.pp-toolbar-avatar {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.pp-toolbar-avatar--letter {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    background: var(--gw);
    color: #fff;
}

.pp-activity .heat {
    min-width: 0;
    width: 100%;
    --heat-gap: 1px;
}

.pp-profile-split {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
}

.pp-profile-rail {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 0 0 auto;
    width: min(100%, var(--pp-card-w, 420px));
    max-width: 100%;
    min-width: 0;
}

.pp-profile-rail__grid {
    width: 100%;
    min-width: 0;
}

.pp-profile-main {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
}

.pp-profile-main > .pg-tabs {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
}

@media (min-width: 1200px) {
    .pp-profile-split {
        flex-direction: row;
        align-items: stretch;
    }

    .pp-profile-rail {
        align-self: flex-start;
    }
}

.pp-avatar {
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    background: var(--gw);
    color: #fff;
}

.pp-tab-panel {
    padding: 4px 0 8px;
}

.pg-page[data-temp-module="user"] .pg-tabs-track > .pg-tab-panel:has(.pp-host-pane) {
    height: 100%;
}

.pp-host-grid > .col {
    display: flex;
}

.pp-host-grid > .col > .cd-card,
.pp-host-grid > .col > .pp-script {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
}

.pp-makers {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 1rem;
}

.pp-makers > .pp-empty {
    flex: 1 1 100%;
}

.pp-makers > .cd-card,
.pp-makers > .pp-maker {
    flex: 0 0 auto;
    width: min(100%, var(--pp-card-w, 420px));
    max-width: 100%;
}

.pp-makers > .cd-card > .cd-card__foot {
    margin-top: auto;
}

.pp-card-foot {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    padding: 0;
    border: 0;
    appearance: none;
    background: transparent;
    box-shadow: none;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 400;
    line-height: 1.2;
    color: var(--muted);
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.pp-card-foot:hover,
.pp-card-foot:focus {
    color: var(--muted);
    text-decoration: none;
    background: transparent;
    box-shadow: none;
}

.pp-card-foot.is-linked,
.pp-card-foot.is-linked:hover,
.pp-card-foot.is-linked:focus {
    color: var(--gw, var(--bs-primary));
}

.pp-card-foot i {
    font-size: 0.8rem;
    line-height: 1;
}

.pp-makers .cd-card .cd-card__main {
    min-width: 0;
}

.pp-makers .cd-card .cd-card__specs {
    max-height: var(--cd-photo-h, 136px);
    min-height: 0;
    overflow: auto;
}

.pp-makers .cd-card .cd-card__spec > span:not(.cd-card__dot) {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pp-makers .cd-card .cd-card__spec > span:last-child {
    flex: 1 1 auto;
}

.pp-maker {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
}

.pp-script {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.pp-script:last-child {
    border-bottom: 0;
}

.pp-empty {
    color: var(--muted);
    margin: 0;
}

.pp-copy-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.pp-copy-row code {
    flex: 1 1 160px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--card);
    color: var(--text);
    word-break: break-all;
}

.pp-copy-row .email-btn {
    flex: 0 0 auto;
}

.pp-vis {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pp-vis__opt {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-height: 0;
    padding-left: 0;
    color: var(--text);
    cursor: pointer;
}

.pp-vis__opt .form-check-input {
    width: 2.5em;
    height: 1.25em;
    margin: 0.2em 0 0;
    float: none;
    flex-shrink: 0;
    cursor: pointer;
}

.pp-vis__opt .form-check-input:disabled {
    cursor: default;
    opacity: 0.48;
    filter: saturate(0.4);
}

.pp-vis__opt:has(.form-check-input:disabled) {
    cursor: default;
    color: var(--muted);
}

.pp-vis__text {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}

.pp-vis__label {
    font-weight: 700;
    font-size: 13px;
}

.pp-vis__hint {
    color: var(--muted);
    font-size: 12px;
}

.lg-access-wrap {
    display: flex;
    justify-content: center;
    padding: 2rem 1rem 3rem;
}

.lg-access {
    width: 50vw;
    min-width: 20rem;
    margin: 0;
    padding: 2.5rem 2.25rem 2rem;
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.lg-access__icon {
    color: var(--danger);
    font-size: 2.75rem;
    margin-bottom: 0.75rem;
}

.lg-access h1 {
    font-size: 1.375rem;
    font-weight: 800;
    margin: 0 0 1.5rem;
}

.lg-access__terms {
    margin: 0 0 1.5rem;
    text-align: left;
    font-size: 1rem;
    line-height: 1.55;
    color: var(--text);
    max-height: 22rem;
    overflow: auto;
}

.lg-access__actions {
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
}

.lg-access__tick {
    flex: 0 0 auto;
    width: 3.6rem;
    height: 3.6rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 1.35rem;
}

.lg-access__submit {
    flex: 1;
    width: auto;
    min-height: 3.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 1rem 1.25rem;
    border: 0;
    border-radius: 10px;
    background: var(--gw);
    color: #fff;
    font-weight: 800;
    font-size: 1.25rem;
    cursor: pointer;
}

.lg-access__submit:hover {
    background: var(--gw-dark);
}

.lg-access__alert {
    margin: 0 0 0.75rem;
    text-align: center;
}

@keyframes lg-tick-flash {
    0%, 100% { background-color: transparent; color: var(--bs-success); }
    40%, 60% { background-color: var(--bs-success); color: #fff; border-color: var(--bs-success); }
}

.lg-access__tick.is-flash {
    animation: lg-tick-flash 0.45s ease-in-out 2;
}

.pp-link {
    display: flex;
    flex-direction: column;
    height: calc(100dvh - 16rem);
    max-height: 100%;
    min-height: 18rem;
}

.pp-link > .row {
    flex: 1 1 auto;
    min-height: 0;
}

.pp-link > .row > [class*="col-"] {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.pp-link-col,
.pp-link-pane {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    min-height: 0;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.pp-link-col {
    padding: 12px;
}

.pp-link-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
}

.pp-link-list__item {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--line) 35%, var(--card));
    color: var(--text);
    text-decoration: none;
}

.pp-link-list__item.is-active {
    border-color: var(--gw);
    background: color-mix(in srgb, var(--gw) 12%, transparent);
}

.pp-link-list__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    min-width: 0;
}

.pp-link-list__name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 700;
}

.pp-link-list__marks {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex: 0 0 auto;
    margin-left: auto;
}

.pp-link-unread {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.15rem;
    height: 1.15rem;
    padding: 0 0.3rem;
    border-radius: 999px;
    background: var(--bs-danger);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1;
}

.pp-link-list__status,
.pp-link-pane__status {
    flex: 0 0 auto;
    margin: 0;
    color: var(--muted);
    font-size: 0.75rem;
    text-transform: lowercase;
}

.pp-link-list__preview {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--muted);
    font-size: 0.8rem;
}

.pp-link-pane__head {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--line);
}

.pp-link-pane__tools {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    margin-left: auto;
}

.pp-link-block {
    user-select: none;
}

.pp-link-block[aria-disabled="true"] {
    opacity: 0.45;
    cursor: default;
}

.pp-link-block.is-armed {
    opacity: 1;
    color: var(--bs-danger);
    border-color: var(--bs-danger);
    cursor: pointer;
}

.pp-link-pane__who,
.pp-link-pane__note,
.pp-link-empty {
    margin: 0;
}

.pp-link-pane__who {
    font-weight: 700;
}

.pp-link-pane__note,
.pp-link-empty {
    padding: 0.85rem 1rem;
    color: var(--muted);
}

.pp-link-pane__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0 1rem 0.85rem;
}

.pp-link-action {
    margin: 0;
}

.pp-link-msg-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0.85rem 1rem;
}

.pp-link-msg {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    align-self: flex-start;
    max-width: min(78%, 34rem);
    margin: 0;
}

.pp-link-msg--mine {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.pp-link-msg__avatar {
    flex: 0 0 auto;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    background: color-mix(in srgb, var(--line) 70%, var(--card));
    color: var(--text);
    object-fit: cover;
}

.pp-link-msg--mine .pp-link-msg__avatar {
    background: color-mix(in srgb, var(--gw) 22%, var(--card));
    color: var(--gw);
}

.pp-link-msg__bubble {
    min-width: 0;
    padding: 0.45rem 0.75rem;
    border-radius: 1rem 1rem 1rem 0.3rem;
    background: color-mix(in srgb, var(--line) 38%, var(--card));
    color: var(--text);
    text-align: left;
}

.pp-link-msg--mine .pp-link-msg__bubble {
    border-radius: 1rem 1rem 0.3rem 1rem;
    background: var(--gw);
    color: #fff;
    text-align: right;
}

.pp-link-msg--unread .pp-link-msg__bubble,
.pp-link-sealed--unread {
    box-shadow: 0 0 0 2px var(--bs-danger);
}

.pp-link-msg--mine .pp-link-msg__meta {
    justify-content: flex-end;
}

.pp-link-msg--mine .pp-link-msg__when,
.pp-link-msg--mine .pp-link-msg__tools {
    margin-left: 0;
}

.pp-link-msg__meta,
.pp-link-sealed {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0 0 0.15rem;
    font-size: 0.75rem;
    color: var(--muted);
}

.pp-link-sealed {
    flex-wrap: wrap;
    margin: 0;
}

.pp-link-sealed > .pp-link-action,
.pp-link-sealed > .pp-link-readout,
.pp-link-msg__bubble > .pp-link-action {
    flex: 1 0 100%;
    margin-top: 0.35rem;
}

.pp-link-action > button.pp-link-readout {
    margin: 0;
}

.pp-link-msg__name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 700;
}

.pp-link-msg__when,
.pp-link-msg__tools {
    margin-left: auto;
    flex: 0 0 auto;
}

.pp-link-msg__when + .pp-link-msg__tools {
    margin-left: 0;
}

.pp-link-msg__when {
    white-space: nowrap;
}

.pp-link-msg__tools {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.pp-link-msg__tools .pp-link-action,
.pp-link-msg__tools .pg-pop-form {
    display: inline-flex;
    margin: 0;
}

.pp-link-trash {
    color: inherit;
    line-height: 1;
    text-decoration: none;
    user-select: none;
}

.pp-link-trash[aria-disabled="true"] {
    opacity: 0.45;
    cursor: default;
}

.pp-link-trash.is-armed {
    opacity: 1;
    cursor: pointer;
}

.pp-link-msg--mine .pp-link-msg__meta,
.pp-link-msg--mine .pp-link-trash {
    color: color-mix(in srgb, #fff 78%, transparent);
}

.pp-link-msg--mine .pp-link-trash.is-armed {
    color: #fff;
}

.pp-link-msg__gone {
    font-style: italic;
    opacity: 0.85;
}

.pp-link-msg__body {
    margin: 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.pp-link-readout {
    margin: 0.35rem 0 0;
    color: var(--muted);
    font-size: 0.75rem;
    line-height: 1.2;
}

button.pp-link-readout {
    display: inline;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    font-size: 0.75rem;
    line-height: 1.2;
    color: var(--muted);
    cursor: pointer;
    text-align: inherit;
}

.pp-link-msg--mine .pp-link-readout {
    color: color-mix(in srgb, #fff 78%, transparent);
}

.pp-link-msg__bubble > button[data-lb-photo] {
    width: min(16rem, 100%);
    margin-top: 0.35rem;
    line-height: 0;
}

.pp-link-msg__media {
    display: block;
    width: 100%;
    max-height: 12rem;
    border-radius: 0.65rem;
    object-fit: contain;
    background: color-mix(in srgb, var(--line) 40%, var(--card));
}

.pp-link-msg__download {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.35rem;
    color: inherit;
    overflow-wrap: anywhere;
}

.pp-link-msg--mine .pp-link-msg__download {
    color: #fff;
}

.pp-link-pane > .ail-stage {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    background: transparent;
}

.pp-link-pane .ail-stage__chat {
    gap: 0;
    padding: 0;
}

.pp-link-pane .ail-stage__chat > .pp-link-msg-list {
    flex: 1 1 auto;
}

.pp-link-compose {
    display: block;
    flex: 0 0 auto;
    margin: 0;
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--line);
}

.pp-link-compose .form-control {
    width: 100%;
    min-width: 0;
    resize: vertical;
}

.pp-link-rail {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
}

.pp-link-rail__kicker {
    margin: 0;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--muted);
}

.pp-link-rail__who {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.pp-link-rail__avatar {
    flex: 0 0 auto;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    object-fit: cover;
    background: color-mix(in srgb, var(--line) 70%, var(--card));
    color: var(--text);
}

.pp-link-rail__name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pp-link-attach,
.pp-link-attach .pg-pop-form {
    display: block;
    width: 100%;
}

.pp-link-attached {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    color: var(--text);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.pp-link-attach-preview img,
.pp-link-attach-preview video {
    display: block;
    align-self: flex-start;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 16rem;
    object-fit: contain;
    border-radius: 0.65rem;
}

.pp-link-contact textarea {
    max-width: 40rem;
}

@media (max-width: 991.98px) {
    .pp-link {
        height: auto;
        min-height: 0;
    }

    .pp-link-col,
    .pp-link-pane {
        min-height: min(70vh, 36rem);
        max-height: min(70vh, 36rem);
    }
}

.orbit-geo {
    position: relative;
    height: 28rem;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius, 0.5rem);
    background: #dbe7f0;
    cursor: grab;
    touch-action: none;
    user-select: none;
}

.orbit-geo:active {
    cursor: grabbing;
}

.orbit-geo:has(+ .orbit-geo-credit) {
    border-bottom: 0;
    border-radius: var(--radius, 0.5rem) var(--radius, 0.5rem) 0 0;
}

.orbit-geo__dot {
    display: block;
    width: 14px;
    height: 14px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: var(--gw, #2563eb);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
}

.orbit-geo__label {
    position: absolute;
    top: 16px;
    left: 50%;
    max-width: 10rem;
    overflow: hidden;
    padding: 0 6px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--card, #fff);
    color: var(--text, #111);
    font-size: 0.75rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
    transform: translateX(-50%);
    pointer-events: none;
}

.orbit-geo__tray {
    position: absolute;
    z-index: 5;
    top: 0.75rem;
    right: 3.25rem;
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    background: #fff;
    color: #2563eb;
    font-size: 1.35rem;
    line-height: 1;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
    cursor: grab;
    touch-action: none;
}

.orbit-geo__tray:active {
    cursor: grabbing;
}

.orbit-geo__ghost {
    position: fixed;
    z-index: 80;
    width: 14px;
    height: 14px;
    margin-left: -7px;
    margin-top: -7px;
    pointer-events: none;
}

.orbit-geo-credit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex: 0 0 auto;
    width: 100%;
    margin: 0;
    padding: 0.35rem 0.75rem;
    border: 1px solid var(--line);
    border-top: 0;
    border-radius: 0 0 var(--radius, 0.5rem) var(--radius, 0.5rem);
    background: var(--card, #fff);
    color: var(--muted, #667);
    font-size: 0.75rem;
    line-height: 1.4;
}

.orbit-geo-credit__title {
    font-weight: 700;
    color: var(--text, #111);
}

.orbit-geo-credit a {
    color: inherit;
}

.orbit-geo .maplibregl-map {
    width: 100%;
    height: 100%;
}

.orbit-geo .maplibregl-ctrl-logo,
.orbit-geo .maplibregl-ctrl-attrib {
    display: none !important;
}

.orbit-geo__marker {
    display: block;
    width: 14px;
    height: 14px;
    text-decoration: none;
}

.orbit-geo[data-orbit-geo-pick="1"] {
    height: 28rem;
    min-height: 28rem;
    cursor: crosshair;
}

/* Card Map fills the profile tab. Fields stay put; the canvas takes the rest. */
.pg-page[data-temp-module="user"] .pg-tabs:has(#pp-map-card),
.pg-page[data-temp-module="user"] .pg-tabs-viewport:has(#pp-map-card),
.pg-page[data-temp-module="user"] .pg-tabs-track:has(#pp-map-card),
.pg-page[data-temp-module="user"] .pg-tab-panel:has(#pp-map-card) {
    height: 100%;
    min-height: 0;
}

.pg-page[data-temp-module="user"] .pg-tab-panel:has(#pp-map-card) {
    display: flex;
    flex-direction: column;
    overflow: auto;
}

.pg-page[data-temp-module="user"] .pg-tab-panel:has(#pp-map-card) > .pg-tab-intro,
.pg-page[data-temp-module="user"] #cdCardPanel:has(#pp-map-card) .cd-card-rail {
    flex: 0 0 auto;
}

.pg-page[data-temp-module="user"] #cdCardPanel:has(#pp-map-card) {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: visible;
}

.pg-page[data-temp-module="user"] #cdCardPanel:has(#pp-map-card) > .d-flex {
    flex: 1 1 auto;
    align-items: stretch;
    min-height: 0;
}

.pg-page[data-temp-module="user"] #cdCardPanel:has(#pp-map-card) > .d-flex > .flex-grow-1,
.pg-page[data-temp-module="user"] #cdCardHost:has(#pp-map-card),
.pg-page[data-temp-module="user"] #cdCardBody:has(#pp-map-card),
#pp-map-card,
#pp-map-form,
#pp-map-card .card-body,
#pp-map-card .pbk-map-stage {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

#pp-map-card .card-header,
#pp-map-card .card-body > :not(.pbk-map-stage) {
    flex: 0 0 auto;
}

#pp-map-card .orbit-geo,
#pp-map-card .orbit-geo[data-orbit-geo-pick="1"] {
    flex: none;
    width: 100%;
    height: calc(100dvh - 30rem);
    min-height: calc(100dvh - 30rem);
}

@media (max-width: 991.98px) {
    .pg-page[data-temp-module="user"] .pg-tab-panel:has(#pp-map-card),
    .pg-page[data-temp-module="user"] #cdCardPanel:has(#pp-map-card),
    .pg-page[data-temp-module="user"] #cdCardPanel:has(#pp-map-card) > .d-flex,
    .pg-page[data-temp-module="user"] #cdCardPanel:has(#pp-map-card) > .d-flex > .flex-grow-1,
    .pg-page[data-temp-module="user"] #cdCardHost:has(#pp-map-card),
    .pg-page[data-temp-module="user"] #cdCardBody:has(#pp-map-card),
    #pp-map-card,
    #pp-map-form,
    #pp-map-card .card-body,
    #pp-map-card .pbk-map-stage {
        display: block;
        flex: none;
        height: auto;
        overflow: visible;
    }

    #pp-map-card .orbit-geo,
    #pp-map-card .orbit-geo[data-orbit-geo-pick="1"] {
        flex: none;
        height: 28rem;
        min-height: 28rem;
    }
}

html[data-theme="dark"] .orbit-geo {
    background: #1c2836;
}

.pg-page[data-temp-module="Makers"] .pg-tabs-viewport:has([data-pe-map-split]),
.pg-page[data-temp-module="Makers"] .pg-tabs-track:has([data-pe-map-split]),
.pg-page[data-temp-module="Makers"] .pg-tab-panel:has([data-pe-map-split]) {
    height: 100%;
    min-height: 0;
}

.pg-page[data-temp-module="Makers"] .pg-tab-panel:has([data-pe-map-split]) {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.pg-page[data-temp-module="Makers"] [data-pe-map-split] {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

.pg-page[data-temp-module="Makers"] [data-pe-map-split] > .row {
    flex: 1 1 auto;
    min-height: 0;
}

.pg-page[data-temp-module="Makers"] [data-pe-map-split] .orbit-geo {
    flex: 1 1 auto;
    height: auto;
    min-height: 16rem;
}

.pg-page[data-temp-module="Makers"] .pe-map-list {
    flex: 1 1 auto;
    overflow-x: hidden;
    overflow-y: auto;
}

.pg-page[data-temp-module="Makers"] .pe-map-list__item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--text);
    text-decoration: none;
}

.pg-page[data-temp-module="Makers"] .pe-map-list__item:has(.cd-card) {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
}

.pg-page[data-temp-module="Makers"] .pe-map-list__item > .cd-card {
    width: 100% !important;
    max-width: none !important;
}

.pg-page[data-temp-module="Makers"] .pe-map-list .cd-card .cd-card__spec > span:not(.cd-card__dot) {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pg-page[data-temp-module="Makers"] .pe-map-list .cd-card__foot--slots {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
}

.pg-page[data-temp-module="Makers"] .pe-map-list__item[hidden] {
    display: none !important;
}

/* Below 900px the open tab grows and the page scrolls. A link terminal stays one screen. */
@media (max-width: 900px) {
    .pp-profile-split,
    .pp-profile-main,
    .pp-profile-main > .pg-tabs,
    .pp-profile-main > .pg-tabs.is-overflow {
        flex: 0 0 auto;
        height: auto;
        min-height: auto;
    }

    .pp-profile-main > .pg-tabs {
        grid-template-rows: auto auto;
    }

    .pp-profile-main > .pg-tabs.is-overflow {
        grid-template-rows: auto auto auto;
    }

    .pp-profile-main .pg-tabs-viewport,
    .pp-profile-main .pg-tabs-track {
        height: auto;
        min-height: auto;
        max-height: none;
    }

    .pp-profile-main .pg-tabs-track > .pg-tab-panel[data-tab-slot="current"],
    .pg-page[data-temp-module="user"] .pg-tabs-track > .pg-tab-panel[data-tab-slot="current"]:has(.pp-host-pane) {
        height: auto;
        min-height: min-content;
        max-height: none;
        overflow: visible;
    }

    .pp-profile-main .pg-tabs-track > .pg-tab-panel:not([data-tab-slot="current"]),
    .pg-page[data-temp-module="user"] .pg-tabs-track > .pg-tab-panel:not([data-tab-slot="current"]):has(.pp-host-pane),
    .pg-page[data-temp-module="user"] .pg-tabs-track > .pg-tab-panel:not([data-tab-slot="current"]):has(#pp-map-card) {
        height: 0;
        min-height: 0;
        max-height: 0;
        overflow: hidden;
    }

    .pg-page[data-temp-module="user"] .pp-profile-main > .pg-tabs:has(#pp-map-card),
    .pg-page[data-temp-module="user"] .pg-tabs-viewport:has(#pp-map-card),
    .pg-page[data-temp-module="user"] .pg-tabs-track:has(#pp-map-card) {
        height: auto;
        min-height: auto;
        max-height: none;
    }

    .pg-page[data-temp-module="Makers"] .pg-tabs-viewport:has([data-pe-map-split]),
    .pg-page[data-temp-module="Makers"] .pg-tabs-track:has([data-pe-map-split]) {
        height: auto;
        min-height: auto;
        max-height: none;
    }

    .pp-link-pane {
        flex: 0 0 auto;
        height: auto;
        max-height: none;
    }

    .pp-link-pane > .ail-stage {
        flex: 0 0 auto;
        height: 70dvh;
        min-height: 22rem;
        max-height: none;
        overflow: hidden;
    }
}

/* Public Profile dashboard canvas. Owned copy of the um-dash look. Class names stay um-dash. DOM ids use pp-dash. */
/* Canvas classes copied from the Library Dashboard. Names stay um-dash. */
.um-dash-canvas {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius);
}

.um-dash-canvas--glass {
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.um-dash-canvas--transparent {
    background-color: transparent;
}

/* Flow Canvas light board: stage #f4f6f9 + `.fc-board` dots. Not the picker color. */
.um-dash-canvas--light_grid {
    color: #1e293b;
    background-color: #f4f6f9;
    background-image: radial-gradient(circle at 1px 1px, rgba(15, 23, 42, 0.16) 1px, transparent 0);
    background-size: 24px 24px;
    background-position: 0 0;
    background-repeat: repeat;
}

/* Flow Canvas dark board: stage #0b0d12 + `.fc-board` dots. Not the picker color. */
.um-dash-canvas--dark_grid {
    color: #e8eaed;
    background-color: #0b0d12;
    background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.06) 1px, transparent 0);
    background-size: 24px 24px;
    background-position: 0 0;
    background-repeat: repeat;
}

html[data-theme] .um-dash-canvas--light_grid .um-dash-tile__label,
html[data-theme] .um-dash-canvas--light_grid .um-dash-section__title {
    color: #1e293b;
    text-shadow: none;
}

html[data-theme] .um-dash-canvas--light_grid .um-dash-section__sub,
html[data-theme] .um-dash-canvas--light_grid .um-dash-card__sub {
    color: rgba(30, 41, 59, 0.72);
}

html[data-theme] .um-dash-canvas--light_grid .um-dash-tile__face,
html[data-theme] .um-dash-canvas--light_grid .um-dash-tile:hover .um-dash-tile__face,
html[data-theme] .um-dash-canvas--light_grid .um-dash-tile:focus-visible .um-dash-tile__face {
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

html[data-theme] .um-dash-canvas--light_grid .um-dash-card,
html[data-theme] .um-dash-canvas--light_grid .um-dash-card:hover {
    background: #fff;
    border-color: rgba(15, 23, 42, 0.12);
    color: #1e293b;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

html[data-theme] .um-dash-canvas--light_grid .um-dash-section,
html[data-theme] .um-dash-canvas--light_grid .um-dash-section--danger,
html[data-theme] .um-dash-canvas--light_grid .um-dash-group,
html[data-theme] .um-dash-canvas--light_grid .um-dash-group--danger {
    background: linear-gradient(160deg, #f8fafc 0%, #fff 72%);
    border-color: rgba(71, 85, 105, 0.45);
    color: #475569;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

html[data-theme] .um-dash-canvas--dark_grid .um-dash-tile__label,
html[data-theme] .um-dash-canvas--dark_grid .um-dash-section__title {
    color: #e8eaed;
    text-shadow: none;
}

html[data-theme] .um-dash-canvas--dark_grid .um-dash-section__sub,
html[data-theme] .um-dash-canvas--dark_grid .um-dash-card__sub {
    color: rgba(232, 234, 237, 0.72);
}

html[data-theme] .um-dash-canvas--dark_grid .um-dash-tile__face,
html[data-theme] .um-dash-canvas--dark_grid .um-dash-tile:hover .um-dash-tile__face,
html[data-theme] .um-dash-canvas--dark_grid .um-dash-tile:focus-visible .um-dash-tile__face {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

html[data-theme] .um-dash-canvas--dark_grid .um-dash-card,
html[data-theme] .um-dash-canvas--dark_grid .um-dash-card:hover {
    background: #161a22;
    border-color: rgba(255, 255, 255, 0.12);
    color: #e8eaed;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

html[data-theme] .um-dash-canvas--dark_grid .um-dash-section,
html[data-theme] .um-dash-canvas--dark_grid .um-dash-section--danger,
html[data-theme] .um-dash-canvas--dark_grid .um-dash-group,
html[data-theme] .um-dash-canvas--dark_grid .um-dash-group--danger {
    background: linear-gradient(160deg, #1e2530 0%, #161a22 70%);
    border-color: rgba(148, 163, 184, 0.55);
    color: #cbd5e1;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.um-dash-grid {
    display: grid;
    grid-template-columns: repeat(var(--um-dash-cols, 6), minmax(0, 1fr));
    grid-template-rows: repeat(var(--um-dash-rows, 4), auto);
    --um-dash-row: 7.25rem;
    --um-dash-gap-y: 0.65rem;
    --um-group-head: calc(var(--um-dash-row) * 0.5);
    gap: var(--um-dash-gap-y) 0.35rem;
    width: 100%;
    height: auto;
    align-content: start;
    flex: 0 1 auto;
    min-height: 12rem;
}

/* Narrow canvas: the flow script repacks tiles. Empty cells stay out of that grid. */
.um-dash-grid[data-um-dash-flow="1"] .um-dash-cell--empty {
    display: none;
}

.um-dash-cell--empty {
    min-height: var(--um-dash-row, 7.25rem);
    border: 0;
    background: transparent;
}

.um-dash-grid[data-tile-size="sm"] {
    --um-dash-row: 5.75rem;
}

.um-dash-grid[data-tile-size="lg"] {
    --um-dash-row: 8.75rem;
}

.um-dash-grid .um-dash-cell--title {
    min-height: calc(var(--um-dash-row, 7.25rem) * 0.5);
}

.um-dash-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.4rem;
    min-width: 0;
    padding: 0.15rem 0.2rem 0.25rem;
    border: 0;
    background: transparent;
    color: var(--text);
    text-decoration: none;
    text-align: center;
}

.um-dash-tile:hover,
.um-dash-tile:focus,
.um-dash-tile:focus-visible {
    color: var(--text);
    text-decoration: none;
    background: transparent;
}

.um-dash-tile__face {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 95px;
    height: 95px;
    border-radius: 16px;
    background: linear-gradient(
        135deg,
        var(--um-tile-accent),
        color-mix(in srgb, var(--um-tile-accent) 38%, #312e81)
    );
    box-shadow: 0 4px 14px color-mix(in srgb, var(--um-tile-accent) 38%, transparent);
    color: #fff;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.um-dash-tile:hover .um-dash-tile__face,
.um-dash-tile:focus-visible .um-dash-tile__face {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px color-mix(in srgb, var(--um-tile-accent) 48%, transparent);
}

.um-dash-tile__label {
    display: block;
    max-width: 95px;
    overflow: hidden;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text);
    text-shadow: 0 1px 2px color-mix(in srgb, var(--card) 70%, transparent);
    word-break: break-word;
}

.um-dash-icon-preview {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 12px;
}

.um-dash-tile__face > img.um-dash-tile__upload,
.um-dash-section__ico > img.um-dash-tile__upload,
.um-dash-group__ico > img.um-dash-tile__upload,
.um-dash-card__ico > img.um-dash-tile__upload {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.um-dash-tile__icon {
    font-size: 2.1rem;
    line-height: 1;
    color: #fff;
    filter: drop-shadow(0 1px 2px color-mix(in srgb, #000 25%, transparent));
}

.um-dash-tile__face--user {
    overflow: hidden;
    border-radius: 50%;
    background: color-mix(in srgb, var(--card) 72%, var(--um-tile-accent));
    color: var(--text);
}

.um-dash-tile__avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.um-dash-tile__avatar-fallback {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

html[data-theme] .um-dash-tile__face--user,
html[data-theme] .um-dash-tile:hover .um-dash-tile__face--user,
html[data-theme] .um-dash-tile:focus-visible .um-dash-tile__face--user,
html[data-theme] .um-dash-canvas--light_grid .um-dash-tile__face--user,
html[data-theme] .um-dash-canvas--dark_grid .um-dash-tile__face--user,
html[data-theme] .um-dash-canvas--light_grid .um-dash-tile:hover .um-dash-tile__face--user,
html[data-theme] .um-dash-canvas--dark_grid .um-dash-tile:hover .um-dash-tile__face--user,
html[data-theme] .um-dash-canvas--light_grid .um-dash-tile:focus-visible .um-dash-tile__face--user,
html[data-theme] .um-dash-canvas--dark_grid .um-dash-tile:focus-visible .um-dash-tile__face--user {
    background: color-mix(in srgb, var(--card) 72%, var(--um-tile-accent));
    box-shadow: none;
    color: var(--text);
}

.um-dash-grid[data-tile-size="sm"] .um-dash-tile__face {
    width: 72px;
    height: 72px;
    border-radius: 14px;
}

.um-dash-grid[data-tile-size="sm"] .um-dash-tile__icon {
    font-size: 1.6rem;
}

.um-dash-grid[data-tile-size="sm"] .um-dash-tile__avatar-fallback {
    font-size: 1.45rem;
}

.um-dash-grid[data-tile-size="sm"] .um-dash-tile__label {
    max-width: 72px;
    font-size: 0.7rem;
}

.um-dash-grid[data-tile-size="lg"] .um-dash-tile__face {
    width: 112px;
    height: 112px;
    border-radius: 18px;
}

.um-dash-grid[data-tile-size="lg"] .um-dash-tile__icon {
    font-size: 2.5rem;
}

.um-dash-grid[data-tile-size="lg"] .um-dash-tile__avatar-fallback {
    font-size: 2.35rem;
}

.um-dash-grid[data-tile-size="lg"] .um-dash-tile__label {
    max-width: 112px;
}

.um-dash-grid[data-tile-size="sm"] .um-dash-tile__face--user,
.um-dash-grid[data-tile-size="lg"] .um-dash-tile__face--user,
.um-dash-tile-wrap--in-group .um-dash-tile__face--user,
.um-dash-tile-wrap--in-head .um-dash-tile__face--user {
    border-radius: 50%;
}

.um-dash-tile-wrap--in-group .um-dash-tile__face,
.um-dash-tile-wrap--in-head .um-dash-tile__face {
    width: calc(95px * 0.75);
    height: calc(95px * 0.75);
}

.um-dash-tile-wrap--in-group .um-dash-tile__icon,
.um-dash-tile-wrap--in-head .um-dash-tile__icon {
    font-size: calc(2.1rem * 0.75);
}

.um-dash-tile-wrap--in-group .um-dash-tile__label,
.um-dash-tile-wrap--in-head .um-dash-tile__label {
    max-width: calc(95px * 0.75);
}

.um-dash-grid[data-tile-size="sm"] .um-dash-tile-wrap--in-group .um-dash-tile__face,
.um-dash-grid[data-tile-size="sm"] .um-dash-tile-wrap--in-head .um-dash-tile__face {
    width: calc(72px * 0.75);
    height: calc(72px * 0.75);
}

.um-dash-grid[data-tile-size="sm"] .um-dash-tile-wrap--in-group .um-dash-tile__icon,
.um-dash-grid[data-tile-size="sm"] .um-dash-tile-wrap--in-head .um-dash-tile__icon {
    font-size: calc(1.6rem * 0.75);
}

.um-dash-grid[data-tile-size="sm"] .um-dash-tile-wrap--in-group .um-dash-tile__label,
.um-dash-grid[data-tile-size="sm"] .um-dash-tile-wrap--in-head .um-dash-tile__label {
    max-width: calc(72px * 0.75);
}

.um-dash-grid[data-tile-size="lg"] .um-dash-tile-wrap--in-group .um-dash-tile__face,
.um-dash-grid[data-tile-size="lg"] .um-dash-tile-wrap--in-head .um-dash-tile__face {
    width: calc(112px * 0.75);
    height: calc(112px * 0.75);
}

.um-dash-grid[data-tile-size="lg"] .um-dash-tile-wrap--in-group .um-dash-tile__icon,
.um-dash-grid[data-tile-size="lg"] .um-dash-tile-wrap--in-head .um-dash-tile__icon {
    font-size: calc(2.5rem * 0.75);
}

.um-dash-grid[data-tile-size="lg"] .um-dash-tile-wrap--in-group .um-dash-tile__label,
.um-dash-grid[data-tile-size="lg"] .um-dash-tile-wrap--in-head .um-dash-tile__label {
    max-width: calc(112px * 0.75);
}

html[data-theme="dark"] .um-dash-tile,
html[data-theme="light"] .um-dash-tile {
    background: transparent;
    border-color: transparent;
    color: var(--text);
}

html[data-theme="dark"] .um-dash-tile:hover,
html[data-theme="dark"] .um-dash-tile:focus,
html[data-theme="dark"] .um-dash-tile:focus-visible,
html[data-theme="light"] .um-dash-tile:hover,
html[data-theme="light"] .um-dash-tile:focus,
html[data-theme="light"] .um-dash-tile:focus-visible {
    background: transparent;
}

html[data-theme="dark"] .um-dash-tile__face {
    box-shadow: 0 4px 16px color-mix(in srgb, var(--um-tile-accent) 55%, transparent);
}

html[data-theme="light"] .um-dash-tile__face {
    box-shadow: 0 4px 14px color-mix(in srgb, var(--um-tile-accent) 32%, #000);
}

html[data-theme="dark"] .um-dash-tile:hover .um-dash-tile__face,
html[data-theme="dark"] .um-dash-tile:focus-visible .um-dash-tile__face {
    box-shadow: 0 8px 24px color-mix(in srgb, var(--um-tile-accent) 62%, transparent);
}

html[data-theme="light"] .um-dash-tile:hover .um-dash-tile__face,
html[data-theme="light"] .um-dash-tile:focus-visible .um-dash-tile__face {
    box-shadow: 0 8px 20px color-mix(in srgb, var(--um-tile-accent) 40%, #000);
}

html[data-theme="dark"] .um-dash-tile__icon,
html[data-theme="light"] .um-dash-tile__icon {
    color: #fff;
}

.pg-page[data-um-dash-locked="1"] .um-dash-chrome-btn,
.pg-page[data-um-dash-locked="1"] [data-ui-page-tools] {
    pointer-events: none;
    opacity: 0.4;
}

.pg-toolbar [data-um-dash-edit-cancel],
.lb-html-face-slot [data-um-dash-edit-cancel] {
    display: none;
}

.pg-page[data-um-dash-locked="1"] .pg-toolbar [data-um-dash-edit-cancel],
.pg-page[data-um-dash-locked="1"] .lb-html-face-slot [data-um-dash-edit-cancel] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.um-dash-tile-wrap {
    --um-tile-accent: #818cf8;
    position: relative;
    min-width: 0;
    width: max-content;
    max-width: 100%;
    display: flex;
    justify-self: center;
}

.um-dash-tile-wrap > .um-dash-tile {
    flex: 0 0 auto;
    width: auto;
}

.um-dash-tile-wrap--section,
.um-dash-tile-wrap--card,
.um-dash-tile-wrap--group {
    width: 100%;
    max-width: 100%;
    justify-self: stretch;
    align-self: stretch;
}

.um-dash-tile-wrap--section > .um-dash-section,
.um-dash-tile-wrap--card > .um-dash-card,
.um-dash-tile-wrap--group > .um-dash-group {
    width: 100%;
    min-width: 0;
}

.um-dash-tile-wrap--tool,
.um-dash-tile-wrap--library,
.um-dash-tile-wrap--network {
    width: 100%;
    max-width: 100%;
    min-height: 0;
    justify-self: stretch;
    align-self: start;
    overflow: visible;
}

.um-dash-tile-wrap--network .cd-card {
    width: 100%;
    max-width: 100%;
}

.um-dash-tile__del,
.um-dash-tile__edit {
    position: absolute;
    top: 0.25rem;
    z-index: 3;
    display: none;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    line-height: 1;
}

.um-dash-tile__edit.pg-pop-form > button {
    width: 100%;
    height: 100%;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.um-dash-tile__del {
    left: 0.25rem;
}

.um-dash-tile__edit {
    right: 0.25rem;
}

#pp-dash-canvas[data-um-dash-edit="1"] .um-dash-tile-wrap--section .um-dash-tile__edit,
#pp-dash-canvas[data-um-dash-edit="1"] .um-dash-tile-wrap--group .um-dash-tile__edit,
#pp-dash-canvas[data-um-dash-edit="1"] .um-dash-tile-wrap--htmlcard .um-dash-tile__edit,
#pp-dash-canvas[data-um-dash-edit="1"] .um-dash-tile-wrap--browser .um-dash-tile__edit {
    right: 1.15rem;
}

.um-dash-section__resize {
    display: none;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 4;
    width: 14px;
    height: 100%;
    cursor: ew-resize;
    touch-action: none;
}

.um-dash-section__resize::after {
    content: "";
    position: absolute;
    top: 10px;
    right: 4px;
    bottom: 10px;
    width: 3px;
    border-radius: 99px;
    background: currentColor;
    opacity: 0.45;
}

#pp-dash-canvas[data-um-dash-edit="1"] .um-dash-tile-wrap--section .um-dash-section__resize,
#pp-dash-canvas[data-um-dash-edit="1"] .um-dash-tile-wrap--group .um-dash-section__resize,
#pp-dash-canvas[data-um-dash-edit="1"] .um-dash-tile-wrap--group .um-dash-group__resize-y,
#pp-dash-canvas[data-um-dash-edit="1"] .um-dash-tile-wrap--htmlcard .um-dash-section__resize,
#pp-dash-canvas[data-um-dash-edit="1"] .um-dash-tile-wrap--htmlcard .um-dash-group__resize-y,
#pp-dash-canvas[data-um-dash-edit="1"] .um-dash-tile-wrap--browser .um-dash-section__resize,
#pp-dash-canvas[data-um-dash-edit="1"] .um-dash-tile-wrap--browser .um-dash-group__resize-y {
    display: block;
}

.um-dash-group__resize-y {
    display: none;
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 4;
    height: 14px;
    cursor: ns-resize;
    touch-action: none;
    pointer-events: auto;
}

.um-dash-group__resize-y::after {
    content: "";
    position: absolute;
    right: 10px;
    bottom: 4px;
    left: 10px;
    height: 3px;
    border-radius: 99px;
    background: currentColor;
    opacity: 0.45;
}

html.is-um-dash-resizing,
html.is-um-dash-resizing * {
    cursor: ew-resize !important;
    user-select: none !important;
}

html.is-um-dash-resizing-y,
html.is-um-dash-resizing-y * {
    cursor: ns-resize !important;
    user-select: none !important;
}

#pp-dash-canvas[data-um-dash-edit="1"] .um-dash-tile__del,
#pp-dash-canvas[data-um-dash-edit="1"] .um-dash-tile__edit {
    display: inline-flex;
}

#pp-dash-canvas[data-um-dash-edit="1"] .um-dash-cell--empty {
    border: 1px dashed var(--line);
    border-radius: var(--radius);
}

/* Light board or a light Color: dark drop-zone ink. Dark board keeps the light ink. */
#pp-dash-canvas.um-dash-canvas--light_grid[data-um-dash-edit="1"] .um-dash-cell--empty,
#pp-dash-canvas.um-dash-canvas--pale[data-um-dash-edit="1"] .um-dash-cell--empty,
html[data-theme="light"] #pp-dash-canvas.um-dash-canvas--transparent[data-um-dash-edit="1"] .um-dash-cell--empty,
html[data-theme="light"] #pp-dash-canvas.um-dash-canvas--inherit[data-um-dash-edit="1"] .um-dash-cell--empty {
    border-color: rgba(15, 23, 42, 0.42);
}

#pp-dash-canvas.um-dash-canvas--dark_grid[data-um-dash-edit="1"] .um-dash-cell--empty,
#pp-dash-canvas.um-dash-canvas--ink[data-um-dash-edit="1"] .um-dash-cell--empty,
html[data-theme="dark"] #pp-dash-canvas.um-dash-canvas--transparent[data-um-dash-edit="1"] .um-dash-cell--empty,
html[data-theme="dark"] #pp-dash-canvas.um-dash-canvas--inherit[data-um-dash-edit="1"] .um-dash-cell--empty {
    border-color: rgba(255, 255, 255, 0.42);
}

.um-dash-appear__swatch {
    width: 2.5rem;
    height: 2.25rem;
    padding: 0.2rem;
    flex: 0 0 auto;
}

#pp-dash-canvas[data-um-dash-edit="1"] .um-dash-cell--in-group {
    z-index: 1;
    background: transparent;
}

#pp-dash-canvas[data-um-dash-edit="1"] .um-dash-tile-wrap {
    outline: 1px dashed var(--gw);
    outline-offset: 1px;
    border-radius: var(--radius);
}

#pp-dash-canvas[data-um-dash-edit="1"] .um-dash-tile,
#pp-dash-canvas[data-um-dash-edit="1"] .um-dash-section,
#pp-dash-canvas[data-um-dash-edit="1"] .um-dash-group__head,
#pp-dash-canvas[data-um-dash-edit="1"] .um-dash-card,
#pp-dash-canvas[data-um-dash-edit="1"] .um-dash-tile-wrap--browser {
    cursor: grab;
    user-select: none;
}

#pp-dash-canvas[data-um-dash-edit="1"] .um-dash-tile-wrap.um-dash-tile-wrap--dragging {
    opacity: 0.55;
}

#pp-dash-canvas[data-um-dash-edit="1"] .um-dash-tile-wrap.um-dash-tile-wrap--dragging .um-dash-tile,
#pp-dash-canvas[data-um-dash-edit="1"] .um-dash-tile-wrap.um-dash-tile-wrap--dragging .um-dash-section,
#pp-dash-canvas[data-um-dash-edit="1"] .um-dash-tile-wrap.um-dash-tile-wrap--dragging .um-dash-group__head,
#pp-dash-canvas[data-um-dash-edit="1"] .um-dash-tile-wrap.um-dash-tile-wrap--dragging .um-dash-card {
    cursor: grabbing;
}

#pp-dash-canvas[data-um-dash-edit="1"] .um-dash-cell--empty.um-dash-cell--over {
    border-style: solid;
    border-color: var(--gw);
    background: color-mix(in srgb, var(--gw) 16%, var(--card));
}

html[data-theme="dark"] #pp-dash-canvas[data-um-dash-edit="1"] .um-dash-tile-wrap {
    outline-color: var(--gw);
}

html[data-theme="light"] #pp-dash-canvas[data-um-dash-edit="1"] .um-dash-tile-wrap {
    outline-color: var(--gw);
}

html[data-theme="dark"] #pp-dash-canvas[data-um-dash-edit="1"] .um-dash-cell--empty.um-dash-cell--over {
    border-color: var(--gw);
    background: color-mix(in srgb, var(--gw) 20%, var(--card));
}

html[data-theme="light"] #pp-dash-canvas[data-um-dash-edit="1"] .um-dash-cell--empty.um-dash-cell--over {
    border-color: var(--gw);
    background: color-mix(in srgb, var(--gw) 12%, var(--card));
}

/* Divider — OS section look, tokens not hardcoded white. */
.um-dash-section {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    min-width: 0;
    padding: 14px 16px 14px 22px;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--um-tile-accent) 22%, var(--line));
    border-radius: 14px;
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--um-tile-accent) 14%, var(--card)),
        color-mix(in srgb, var(--um-tile-accent) 6%, var(--card)) 50%,
        var(--card)
    );
    color: var(--text);
}

.um-dash-section::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    border-radius: 14px 0 0 14px;
    background: linear-gradient(
        180deg,
        var(--um-tile-accent),
        color-mix(in srgb, var(--um-tile-accent) 38%, #312e81)
    );
}

.um-dash-section__ico {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(
        135deg,
        var(--um-tile-accent),
        color-mix(in srgb, var(--um-tile-accent) 38%, #312e81)
    );
    box-shadow: 0 8px 18px color-mix(in srgb, var(--um-tile-accent) 32%, transparent);
    color: #fff;
    font-size: 1.15rem;
}

.um-dash-section__glyph {
    color: #fff;
}

.um-dash-section__txt {
    min-width: 0;
}

.um-dash-section__title {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.1;
    color: var(--text);
}

.um-dash-section__sub {
    margin-top: 3px;
    font-size: 0.82rem;
    color: color-mix(in srgb, var(--text) 62%, var(--card));
}

.um-dash-section--danger {
    border-color: color-mix(in srgb, #dc2626 32%, var(--line));
    background: linear-gradient(
        135deg,
        color-mix(in srgb, #dc2626 12%, var(--card)),
        color-mix(in srgb, #dc2626 4%, var(--card))
    );
}

.um-dash-section--danger::before {
    background: linear-gradient(180deg, #f87171, #dc2626);
}

.um-dash-section--danger .um-dash-section__ico {
    background: linear-gradient(135deg, #f87171, #dc2626);
    box-shadow: 0 8px 18px color-mix(in srgb, #dc2626 32%, transparent);
}

.um-dash-section--danger .um-dash-section__title {
    color: #dc2626;
}

.um-dash-tile-wrap--title-row:not(.um-dash-tile-wrap--group) {
    min-height: 0;
    height: 100%;
    overflow: hidden;
}

.um-dash-tile-wrap--title-row .um-dash-section {
    height: 100%;
    min-height: 0;
    gap: 8px;
    padding: 0 12px 0 16px;
}

.um-dash-tile-wrap--title-row .um-dash-section__ico {
    width: 1.25rem;
    height: 1.25rem;
    font-size: 0.7rem;
    box-shadow: none;
}

/* Slim divider matches the group title track: half a grid row, same icon and type. */
.um-dash-tile-wrap--slim {
    align-self: start;
    height: var(--um-group-head, calc(var(--um-dash-row, 7.25rem) * 0.5));
    min-height: 0;
}

.um-dash-tile-wrap--slim .um-dash-section,
.um-dash-tile-wrap--slim.um-dash-tile-wrap--title-row .um-dash-section {
    height: 100%;
    min-height: 0;
    gap: 8px;
    padding: 0 12px 0 16px;
}

.um-dash-tile-wrap--slim .um-dash-section__ico,
.um-dash-tile-wrap--slim.um-dash-tile-wrap--title-row .um-dash-section__ico {
    width: 23px;
    height: 23px;
    font-size: 0.68rem;
    box-shadow: 0 4px 10px color-mix(in srgb, var(--um-tile-accent) 32%, transparent);
}

.um-dash-tile-wrap--slim .um-dash-section__txt {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 1px;
    min-width: 0;
}

.um-dash-tile-wrap--slim .um-dash-section__title {
    min-width: 0;
    overflow: hidden;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.um-dash-tile-wrap--slim .um-dash-section__sub {
    min-width: 0;
    margin-top: 0;
    overflow: hidden;
    font-size: 0.68rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

html[data-theme="dark"] .um-dash-section--danger .um-dash-section__title {
    color: #f87171;
}

html[data-theme="dark"] .um-dash-section,
html[data-theme="light"] .um-dash-section,
html[data-theme="dark"] .um-dash-group,
html[data-theme="light"] .um-dash-group {
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--um-tile-accent) 14%, var(--card)),
        var(--card)
    );
    border-color: color-mix(in srgb, var(--um-tile-accent) 22%, var(--line));
    color: var(--text);
}

html[data-theme="dark"] .um-dash-section--danger,
html[data-theme="light"] .um-dash-section--danger,
html[data-theme="dark"] .um-dash-group--danger,
html[data-theme="light"] .um-dash-group--danger {
    background: linear-gradient(
        135deg,
        color-mix(in srgb, #dc2626 12%, var(--card)),
        var(--card)
    );
}

/* Group header is the title track: half a grid row, so the cells inside match the board. */
.um-dash-tile-wrap--group {
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-self: stretch;
    justify-self: stretch;
    height: 100%;
    pointer-events: none;
}

.um-dash-tile-wrap:not(.um-dash-tile-wrap--group) {
    z-index: 2;
}

.um-dash-tile-wrap--group .um-dash-tile__del,
.um-dash-tile-wrap--group .um-dash-tile__edit,
.um-dash-tile-wrap--group .um-dash-section__resize,
.um-dash-tile-wrap--group .um-dash-group__head {
    pointer-events: auto;
}

.um-dash-tile-wrap--in-head {
    box-sizing: border-box;
    pointer-events: none;
}

.um-dash-tile-wrap--in-head .um-dash-tile,
.um-dash-tile-wrap--in-head .um-dash-tile__del,
.um-dash-tile-wrap--in-head .um-dash-tile__edit {
    pointer-events: auto;
}

.um-dash-group {
    position: relative;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--um-tile-accent) 22%, var(--line));
    border-radius: 14px;
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--um-tile-accent) 14%, var(--card)),
        color-mix(in srgb, var(--um-tile-accent) 6%, var(--card)) 50%,
        var(--card)
    );
    color: var(--text);
    pointer-events: none;
}

.um-dash-group::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    border-radius: 14px 0 0 14px;
    background: linear-gradient(
        180deg,
        var(--um-tile-accent),
        color-mix(in srgb, var(--um-tile-accent) 38%, #312e81)
    );
}

.um-dash-group__head {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 8px;
    height: var(--um-group-head, calc(var(--um-dash-row, 7.25rem) * 0.5));
    min-width: 0;
    padding: 0 12px 0 16px;
    background: transparent;
}

.um-dash-group__ico {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 23px;
    height: 23px;
    border-radius: 50%;
    background: linear-gradient(
        135deg,
        var(--um-tile-accent),
        color-mix(in srgb, var(--um-tile-accent) 38%, #312e81)
    );
    box-shadow: 0 4px 10px color-mix(in srgb, var(--um-tile-accent) 32%, transparent);
    color: #fff;
    font-size: 0.68rem;
}

.um-dash-group__glyph {
    color: #fff;
}

.um-dash-group__txt {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 1px;
    min-width: 0;
}

.um-dash-group__title {
    display: block;
    min-width: 0;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--text);
}

.um-dash-group__sub {
    display: block;
    min-width: 0;
    font-size: 0.68rem;
    line-height: 1.1;
    color: color-mix(in srgb, var(--text) 62%, var(--card));
}

.um-dash-group__unseen {
    display: inline-flex;
    flex-shrink: 0;
    margin-left: auto;
}

.um-dash-group__pin {
    width: 1.5rem;
    height: 1.5rem;
    padding: 0;
    line-height: 1;
    pointer-events: auto;
}

.um-dash-video-away {
    flex-shrink: 0;
    margin: 0;
    padding: 6px 10px;
    font-size: 0.72rem;
    line-height: 1.2;
    color: color-mix(in srgb, var(--text) 72%, var(--card));
    pointer-events: none;
}

.um-dash-group > .um-dash-video-away {
    margin: 0 8px 8px 12px;
}

.um-dash-group__body--media:has(.um-dash-video-away) .um-dash-gallery {
    height: auto;
}

.um-dash-group__body {
    flex: 1 1 auto;
    min-height: 0;
    margin: 0 8px 8px;
    border: 1px solid color-mix(in srgb, var(--um-tile-accent) 22%, var(--line));
    border-radius: 10px;
    background: transparent;
}

.um-dash-group__body .um-dash-html {
    height: 100%;
    min-height: 0;
    overflow: auto;
    padding: 8px;
    pointer-events: auto;
}

.um-dash-tile-wrap--group .um-dash-gallery {
    pointer-events: auto;
}

.um-dash-group__body--media {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
}

.um-dash-group__body--posts {
    display: flex;
    flex-direction: column;
    overflow: auto;
    padding: 6px;
    pointer-events: auto;
}

.um-dash-logbook {
    min-width: 0;
    min-height: 0;
}

.um-dash-logbook__empty {
    font-size: 0.68rem;
    color: color-mix(in srgb, var(--text) 62%, var(--card));
}

.um-dash-gallery {
    flex: 1 1 auto;
    height: 100%;
    min-height: 0;
}

.um-dash-gallery--grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr));
    align-content: start;
    gap: 0.375rem;
    overflow: auto;
    padding: 0.375rem;
}

.um-dash-gallery__hit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 0;
    border: 0;
    background: color-mix(in srgb, var(--text) 6%, var(--card));
    color: var(--text);
}

.um-dash-gallery--grid .um-dash-gallery__hit {
    height: auto;
    aspect-ratio: 1;
}

.um-dash-gallery__hit img,
.um-dash-gallery__frame {
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}

.um-dash-gallery--slides {
    position: relative;
    overflow: hidden;
}

.um-dash-gallery__pick {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
    pointer-events: none;
}

.um-dash-gallery__slide {
    display: none;
    position: relative;
    height: 100%;
    min-height: 0;
}

.um-dash-gallery__pick:checked + .um-dash-gallery__slide {
    display: block;
}

.um-dash-gallery--slides .um-dash-gallery__hit,
.um-dash-gallery--single .um-dash-gallery__hit,
.um-dash-gallery--slides .um-dash-gallery__frame,
.um-dash-gallery--single .um-dash-gallery__frame {
    background: #000;
    object-fit: contain;
}

.um-dash-gallery__nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    margin: 0;
    border-radius: 999px;
    background: color-mix(in srgb, var(--card) 82%, transparent);
    color: var(--text);
    cursor: pointer;
    transform: translateY(-50%);
}

.um-dash-gallery__nav--prev {
    left: 0.35rem;
}

.um-dash-gallery__nav--next {
    right: 0.35rem;
}

#pp-dash-video-file {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    background: #000;
}

html[data-orbit-dock="1"] #pp-dash-window.um-dash-group__body--media {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-height: 12rem;
}

html[data-orbit-dock="1"] #pp-dash-window .um-dash-gallery--single,
html[data-orbit-dock="1"] #pp-dash-window .um-dash-gallery--slides {
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    min-height: 12rem;
}

.um-dash-htmlcard {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--card);
    color: var(--text);
}

.um-dash-htmlcard > .um-dash-html {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    padding: 10px;
}

.um-dash-tile-wrap--browser {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    justify-self: stretch;
    align-self: stretch;
}

.um-dash-group__body--media > .um-dash-browser {
    flex: 1 1 auto;
    height: 100%;
    pointer-events: auto;
}

.um-dash-browser {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    background: transparent;
    color: var(--text);
}

.um-dash-browser__frame {
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    border: 0;
    background: var(--card);
}

.um-dash-browser__empty,
.um-dash-live__empty {
    margin: 0;
}

#pp-dash-canvas[data-um-dash-edit="1"] .um-dash-browser {
    pointer-events: none;
}

html[data-orbit-dock="1"] #pp-dash-window .um-dash-browser,
html[data-orbit-dock="1"] #pp-dash-window .um-dash-browser__frame {
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    min-height: 12rem;
}

.um-dash-html img,
.um-dash-html video {
    max-width: 100%;
    height: auto;
}

.um-dash-html video {
    display: block;
}

.um-dash-group--danger {
    border-color: color-mix(in srgb, #dc2626 32%, var(--line));
    background: linear-gradient(
        135deg,
        color-mix(in srgb, #dc2626 12%, var(--card)),
        color-mix(in srgb, #dc2626 4%, var(--card))
    );
}

.um-dash-group--danger .um-dash-group__head {
    background: transparent;
}

.um-dash-group--danger .um-dash-group__body {
    border-color: color-mix(in srgb, #dc2626 32%, var(--line));
}

.um-dash-group--danger::before {
    background: linear-gradient(180deg, #f87171, #dc2626);
}

.um-dash-group--danger .um-dash-group__ico {
    background: linear-gradient(135deg, #f87171, #dc2626);
    box-shadow: 0 4px 10px color-mix(in srgb, #dc2626 32%, transparent);
}

.um-dash-group--danger .um-dash-group__title {
    color: #dc2626;
}

html[data-theme="dark"] .um-dash-group--danger .um-dash-group__title {
    color: #f87171;
}

html[data-theme] .um-dash-canvas--light_grid .um-dash-group__title {
    color: #1e293b;
}

html[data-theme] .um-dash-canvas--light_grid .um-dash-group__sub {
    color: rgba(30, 41, 59, 0.72);
}

html[data-theme] .um-dash-canvas--dark_grid .um-dash-group__head,
html[data-theme] .um-dash-canvas--light_grid .um-dash-group__head,
html[data-theme] .um-dash-canvas--dark_grid .um-dash-group--danger .um-dash-group__head {
    background: transparent;
}

html[data-theme] .um-dash-canvas--dark_grid .um-dash-group__title {
    color: #f1f5f9;
}

html[data-theme] .um-dash-canvas--dark_grid .um-dash-group__sub {
    color: rgba(241, 245, 249, 0.72);
}

html[data-theme] .um-dash-canvas--dark_grid .um-dash-group__body {
    border-color: rgba(148, 163, 184, 0.55);
}

html[data-theme] .um-dash-canvas--light_grid .um-dash-group__body {
    border-color: rgba(71, 85, 105, 0.45);
}

html[data-theme] .um-dash-canvas--light_grid .um-dash-group--danger .um-dash-group__title {
    color: #dc2626;
}

html[data-theme] .um-dash-canvas--dark_grid .um-dash-group--danger .um-dash-group__title {
    color: #f87171;
}

/* Card — OS classic card, no live counts. */
.um-dash-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--card);
    box-shadow: 0 2px 10px color-mix(in srgb, var(--text) 8%, transparent);
    color: var(--text);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.um-dash-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 22px color-mix(in srgb, var(--text) 12%, transparent);
}

.um-dash-card__head {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    color: #fff;
    background: linear-gradient(
        135deg,
        var(--um-tile-accent),
        color-mix(in srgb, var(--um-tile-accent) 38%, #312e81)
    );
}

.um-dash-card__ico {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
    font-size: 0.9rem;
}

.um-dash-card__glyph {
    color: #fff;
}

.um-dash-card__title {
    min-width: 0;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #fff;
}

.um-dash-card__body {
    flex: 1 1 auto;
    padding: 12px 14px 4px;
    min-width: 0;
}

.um-dash-card__sub {
    margin-bottom: 10px;
    font-size: 0.82rem;
    line-height: 1.4;
    color: color-mix(in srgb, var(--text) 72%, var(--card));
}

.um-dash-card__pill {
    display: inline-flex;
    max-width: 100%;
    overflow: hidden;
    padding: 2px 8px;
    border-radius: 6px;
    background: color-mix(in srgb, var(--gw) 12%, var(--card));
    color: var(--gw);
    font-size: 0.74rem;
    font-weight: 700;
    word-break: break-all;
}

.um-dash-card__actions {
    display: flex;
    align-items: center;
    padding: 10px 12px 12px;
}

.um-dash-card__open {
    flex: 1 1 auto;
    width: 100%;
    background-image: linear-gradient(135deg, #2563eb, #1d4ed8);
    border: 0;
    box-shadow: 0 4px 12px color-mix(in srgb, #2563eb 28%, transparent);
}

.um-dash-card__open:hover,
.um-dash-card__open:focus-visible {
    filter: brightness(1.06);
    color: #fff;
}

html[data-theme="dark"] .um-dash-card,
html[data-theme="light"] .um-dash-card {
    background: var(--card);
    border-color: var(--line);
    color: var(--text);
}

html[data-theme="dark"] .um-dash-card:hover {
    box-shadow: 0 10px 24px color-mix(in srgb, #000 45%, transparent);
}

html[data-theme="light"] .um-dash-card:hover {
    box-shadow: 0 10px 22px color-mix(in srgb, var(--text) 12%, transparent);
}

html[data-theme="dark"] .um-dash-card__head,
html[data-theme="light"] .um-dash-card__head {
    color: #fff;
}

html[data-theme="dark"] .um-dash-card__ico,
html[data-theme="light"] .um-dash-card__ico,
html[data-theme="dark"] .um-dash-card__glyph,
html[data-theme="light"] .um-dash-card__glyph,
html[data-theme="dark"] .um-dash-card__title,
html[data-theme="light"] .um-dash-card__title {
    color: #fff;
}

.um-dash-accent__list {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 0.5rem;
    width: 100%;
    justify-content: center;
}

.um-dash-accent__opt {
    position: relative;
    min-width: 0;
    width: 100%;
    cursor: pointer;
}

.um-dash-accent__opt input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.um-dash-accent__face {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1;
    height: auto;
    border-radius: 0.65rem;
    background: linear-gradient(
        135deg,
        var(--um-tile-accent),
        color-mix(in srgb, var(--um-tile-accent) 38%, #312e81)
    );
    box-shadow: 0 3px 10px color-mix(in srgb, var(--um-tile-accent) 38%, transparent);
    color: #fff;
}

.um-dash-accent__glyph {
    font-size: clamp(0.7rem, 1.4vw, 1rem);
    line-height: 1;
    color: #fff;
}

.um-dash-accent__opt input:checked + .um-dash-accent__face {
    outline: 2px solid var(--gw);
    outline-offset: 2px;
}

.um-dash-accent__opt input:focus-visible + .um-dash-accent__face {
    outline: 2px solid var(--gw);
    outline-offset: 2px;
}
html[data-orbit-dock="1"] #pp-dash-window {
    min-height: 100%;
}

.um-dash-group__body--posts:has(> .um-dash-cmt) {
    overflow: hidden;
}

.um-dash-cmt {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    height: 100%;
    pointer-events: auto;
}

.um-dash-cmt-thread {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    overflow-y: auto;
}

.um-dash-cmt-stream {
    margin-top: auto;
}

.um-dash-cmt-form {
    flex-shrink: 0;
}

.um-dash-cmt-form__field .stt-in {
    width: 100%;
}

.um-dash-cmt-item {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.um-dash-cmt-bubble {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    padding: 0.85rem 1rem;
    background: color-mix(in srgb, var(--text) 5%, var(--card));
    border: 1px solid var(--line);
    border-radius: 1rem;
}

.um-dash-cmt-bubble__body {
    font-size: 1rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.um-dash-cmt-author {
    color: inherit;
    text-decoration: none;
    min-width: 0;
}

.um-dash-cmt-author:hover {
    color: var(--bs-primary);
}

.um-dash-cmt-name {
    font-weight: 600;
}

.um-dash-cmt-avatar {
    width: 2.25rem;
    height: 2.25rem;
    flex: 0 0 2.25rem;
    border-radius: 50%;
    object-fit: cover;
}

.um-dash-cmt-avatar--letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--gw);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
}

#pp-dash-canvas[data-um-dash-edit="1"] .um-dash-cmt {
    pointer-events: none;
}

html[data-orbit-dock="1"]:has(#pp-dash-window .um-dash-cmt),
html[data-orbit-dock="1"]:has(#pp-dash-window .um-dash-cmt) body {
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

html[data-orbit-dock="1"]:has(#pp-dash-window .um-dash-cmt) body,
html[data-orbit-dock="1"]:has(#pp-dash-window .um-dash-cmt) #microWorkContent,
html[data-orbit-dock="1"]:has(#pp-dash-window .um-dash-cmt) #microTabBody,
html[data-orbit-dock="1"]:has(#pp-dash-window .um-dash-cmt) #pp-dash-window {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.um-dash-react {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-end;
}

.um-dash-react__hit {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
}

.um-dash-react__face {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    color: #fff;
    background: linear-gradient(
        135deg,
        var(--um-tile-accent, #818cf8),
        color-mix(in srgb, var(--um-tile-accent, #818cf8) 38%, #312e81)
    );
}

.um-dash-react__face--sm {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 0.4rem;
    font-size: 0.8rem;
}

.um-dash-react__count {
    font-size: 0.8rem;
    font-weight: 600;
}

.um-dash-react__hit.is-on .um-dash-react__face {
    outline: 2px solid var(--gw, #818cf8);
    outline-offset: 2px;
}

/*
 * Orbit 263__App__User_Info — guest styles (prefix uinfo-).
 * Script/html stage fill, plus the version gallery list (no storage upload).
 */

/* Script / HTML identifier: pill row; preview and code fill the card */
.pg-tabs-viewport:has(.uinfo-script-stage),
.pg-tabs-track:has(.uinfo-script-stage) {
    height: 100%;
    min-height: 0;
}

.pg-tab-panel:has(.uinfo-script-stage),
#microTabBody:has(.uinfo-script-stage) {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100%;
    min-height: 0;
    overflow: hidden;
}

.uinfo-board:has(.uinfo-script-stage) {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
}

.uinfo-board:has(.uinfo-script-stage) > .pg-tab-intro {
    flex: 0 0 auto;
}

.uinfo-board:has(.uinfo-script-stage) > .d-flex {
    flex: 1 1 auto;
    min-height: 0;
    padding-bottom: 0;
}

.uinfo-board-pane:has(.uinfo-script-stage),
.uinfo-script-stage,
.uinfo-script-body,
.uinfo-script-fill,
.uinfo-html-stage,
.uinfo-html-body,
.uinfo-html-fill {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

.uinfo-script-body > .pg-pills,
.uinfo-script-body > .alert {
    flex: 0 0 auto;
}

.uinfo-script-body--preview > .uinfo-script-frame,
.uinfo-script-body--code > .uinfo-script-fill {
    margin-left: -1rem;
    margin-right: -1rem;
}

.uinfo-script-frame {
    display: block;
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    border: 0;
    background: #fff;
}

.uinfo-script-fill .ui-monaco,
.uinfo-script-fill .ui-monaco__chrome,
.uinfo-html-fill .ui-monaco,
.uinfo-html-fill .ui-monaco__chrome {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    border: 0;
    border-radius: 0;
}

.uinfo-script-fill .ui-monaco__host,
.uinfo-html-fill .ui-monaco__host {
    flex: 1 1 auto;
    min-height: 0;
    height: auto !important;
}

.uinfo-version-split {
    flex: 1 1 auto;
    min-height: 0;
}

.uinfo-version-list {
    max-height: min(70vh, 36rem);
    overflow-y: auto;
}

.uinfo-version-list .sidebar__link {
    min-width: 0;
}

.uinfo-version-split .uinfo-script-body--preview > .uinfo-script-frame,
.uinfo-version-split .uinfo-script-body--code > .uinfo-script-fill {
    margin-left: 0;
    margin-right: 0;
}

.uinfo-gallery-list {
    max-height: min(70vh, 36rem);
    overflow: auto;
}

.uinfo-gallery-row {
    border: 1px solid var(--line);
    border-radius: 0.5rem;
    background: var(--card);
    padding: 0.5rem;
    overflow: hidden;
}

.uinfo-gallery-row:has(.uinfo-gallery-thumb:has(img, video)) {
    padding-top: 0;
    padding-bottom: 0;
    padding-left: 0;
}

.uinfo-gallery-row:has(.uinfo-gallery-thumb:has(img, video)) > :not(.uinfo-gallery-thumb) {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.uinfo-gallery-row.is-active {
    border-color: var(--gw);
    box-shadow: 0 0 0 1px var(--gw);
}

.uinfo-gallery-row.is-off {
    background-color: color-mix(in srgb, var(--bs-danger, #dc3545) 10%, var(--card));
}

.uinfo-gallery-thumb {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 8.5rem;
    max-width: 25%;
    flex: 0 1 8.5rem;
    min-width: 0;
    align-self: stretch;
    min-height: 2.75rem;
    overflow: hidden;
    color: var(--muted);
    background: color-mix(in srgb, var(--line) 65%, var(--card));
}

.uinfo-gallery-thumb img,
.uinfo-gallery-thumb video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

button.uinfo-gallery-pick {
    border: 0;
    padding: 0;
    cursor: pointer;
}

.uinfo-gallery-thumb--icon,
button.uinfo-gallery-thumb--icon,
button.uinfo-gallery-thumb--icon:hover,
button.uinfo-gallery-thumb--icon:focus {
    width: fit-content;
    max-width: none;
    flex: 0 0 auto;
    align-self: center;
    min-height: 0;
    padding: 0;
    overflow: visible;
    border: 0;
    background: transparent;
    color: var(--muted);
    line-height: 1;
}

.uinfo-gallery-icon,
a.uinfo-gallery-icon,
button.uinfo-gallery-icon {
    color: color-mix(in srgb, var(--muted) 70%, var(--text));
    line-height: 1;
}
.uinfo-media-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 16rem;
    overflow: hidden;
    border-radius: 0.5rem;
    background: color-mix(in srgb, var(--line) 35%, var(--card));
}

.uinfo-media-stage img,
.uinfo-media-stage video {
    display: block;
    width: 100%;
    max-height: min(70vh, 36rem);
    object-fit: contain;
}

.uinfo-item-html {
    max-width: 100%;
    overflow-wrap: anywhere;
}

.uinfo-item-html img,
.uinfo-item-html video {
    max-width: 100%;
    height: auto;
}

[data-temp-module="Logbook"] .ph-grid {
    display: grid;
    grid-template-columns: repeat(var(--lg-per-row, 2), minmax(var(--lg-card-min, 280px), 1fr));
    gap: 14px;
}

[data-temp-module="Logbook"] .ph-designed {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    justify-self: stretch;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

[data-temp-module="Logbook"] .ph-designed > .cd-card {
    width: 100%;
    max-width: 100%;
    align-self: stretch;
}

[data-temp-module="Logbook"] .ph-designed .ph-card__open {
    margin: 0;
}

[data-temp-module="Logbook"] .ph-empty {
    color: var(--muted);
    grid-column: 1 / -1;
}

[data-temp-module="Logbook"] .ph-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

[data-temp-module="Logbook"] .ph-card__head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: linear-gradient(135deg, var(--gw), var(--gw-dark));
    color: #fff;
    font-weight: 700;
}

[data-temp-module="Logbook"] .ph-card__desc {
    padding: 0 14px;
    color: var(--muted);
    font-size: 0.9rem;
}

[data-temp-module="Logbook"] .ph-card__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 14px;
}

[data-temp-module="Logbook"] .ph-chip {
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--line);
}

[data-temp-module="Logbook"] .ph-chip--ok { color: var(--ok); }
[data-temp-module="Logbook"] .ph-chip--lock { color: var(--danger); }
[data-temp-module="Logbook"] .ph-chip--kind { color: var(--gw-dark); }

[data-temp-module="Logbook"] .ph-card__open {
    margin: 0 14px 14px;
    justify-content: center;
}

[data-temp-module="Logbook"] .ph-card__actions {
    display: flex;
    align-items: stretch;
    gap: 8px;
    padding: 0 14px 14px;
}

[data-temp-module="Logbook"] .ph-card__actions > * {
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
}

[data-temp-module="Logbook"] .ph-create { margin-bottom: 16px; }

.lg-feed {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lg-post {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px;
}

.lg-post__meta {
    color: var(--muted);
    font-size: 0.85rem;
}

.lg-post__body {
    margin: 8px 0 0;
    white-space: pre-wrap;
}

.lg-post__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.lg-comments {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.lg-cmt-row--new {
    background: color-mix(in srgb, var(--danger) 10%, transparent);
}

.lg-cmt-st--new {
    --bs-btn-color: var(--gw);
    --bs-btn-border-color: var(--gw);
    --bs-btn-bg: transparent;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--gw);
    --bs-btn-hover-border-color: var(--gw);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--gw);
    --bs-btn-active-border-color: var(--gw);
}

.lg-cmt-st--new.is-on {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--gw);
    --bs-btn-border-color: var(--gw);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--gw-dark, var(--gw));
    --bs-btn-hover-border-color: var(--gw-dark, var(--gw));
}

.lg-comment {
    padding: 8px 0;
}

.lg-comment + .lg-comment {
    border-top: 1px solid var(--line);
}

.lg-access-wrap {
    display: flex;
    justify-content: center;
    padding: 2rem 1rem 3rem;
}

.lg-access {
    width: 50vw;
    min-width: 20rem;
    margin: 0;
    padding: 2.5rem 2.25rem 2rem;
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.lg-access__icon {
    color: var(--danger);
    font-size: 2.75rem;
    margin-bottom: 0.75rem;
}

.lg-access h1 {
    font-size: 1.375rem;
    font-weight: 800;
    margin: 0 0 1.5rem;
}

.lg-access__terms {
    margin: 0 0 1.5rem;
    text-align: left;
    font-size: 1rem;
    line-height: 1.55;
    color: var(--text);
    max-height: 22rem;
    overflow: auto;
}

.lg-access__accept {
    margin: 0 0 0.75rem;
    text-align: left;
    font-size: 1.05rem;
    font-weight: 700;
}

.lg-access__actions {
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
}

.lg-access__tick {
    flex: 0 0 auto;
    width: 3.6rem;
    height: 3.6rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 1.35rem;
}

.lg-access__submit {
    flex: 1;
    width: auto;
    min-height: 3.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 1rem 1.25rem;
    border: 0;
    border-radius: 10px;
    background: var(--gw);
    color: #fff;
    font-weight: 800;
    font-size: 1.25rem;
    cursor: pointer;
}

.lg-access__submit:hover {
    background: var(--gw-dark);
}

.lg-access__alert {
    margin: 0 0 0.75rem;
    text-align: center;
}

@keyframes lg-tick-flash {
    0%, 100% { background-color: transparent; color: var(--bs-success); }
    40%, 60% { background-color: var(--bs-success); color: #fff; border-color: var(--bs-success); }
}

.lg-access__tick.is-flash {
    animation: lg-tick-flash 0.45s ease-in-out 2;
}

[data-ys-origin="logbook_wall"] [data-ys-storage-progress][hidden] {
    display: none !important;
}

.lg-attach-preview {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}

.lg-attach-preview img,
.lg-attach-preview video {
    display: block;
    align-self: flex-start;
    flex: 0 0 auto;
    width: auto;
    height: auto;
    max-width: min(100%, 28rem);
    max-height: 16rem;
    object-fit: contain;
}

.lg-post button[data-lb-photo] video,
.lg-wall-entry button[data-lb-photo] video {
    pointer-events: none;
}

.lg-video-thumb {
    position: relative;
    display: inline-block;
    max-width: 100%;
}

.lg-video-thumb__play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, #000 55%, transparent);
    color: #fff;
}

.lg-video-frame {
    display: block;
    width: min(100%, 28rem);
    aspect-ratio: 16 / 9;
    border: 0;
    background: #000;
}

.lg-photo-stage {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, #000 55%, transparent);
}

.lg-photo-stage[hidden] {
    display: none;
}

.lg-photo-stage__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.lg-photo-stage img,
.lg-photo-stage video,
.lg-photo-stage iframe {
    display: block;
    width: 80vw;
    height: 80vh;
    max-width: 80vw;
    max-height: 80vh;
    object-fit: contain;
    border: 0;
    background: #000;
}

.lg-wall-col {
    width: 100%;
    max-width: var(--lg-wall-width, 800px);
    margin-inline: auto;
}

.lg-wall-body {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.lg-wall-media {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
    min-width: 0;
    align-self: stretch;
    background: #111;
}

.lg-wall-banner {
    position: relative;
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    overflow: hidden;
    line-height: 0;
    background: #111;
    cursor: pointer;
}

.lg-wall-entry button.lg-wall-banner {
    align-self: stretch;
}

.lg-wall-banner img,
.lg-wall-banner video,
.lg-wall-banner iframe {
    display: block;
    width: 100%;
    height: auto;
    max-height: 28rem;
    object-fit: cover;
    object-position: center;
    border: 0;
    background: #111;
}

.lg-wall-banner img,
.lg-wall-banner video {
    pointer-events: none;
}

.lg-wall-banner video,
.lg-wall-banner iframe {
    aspect-ratio: 16 / 9;
}

.lg-wall-banner:hover img,
.lg-wall-banner:hover video {
    filter: brightness(0.92);
}

.lg-wall-banner__play {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 1;
    transform: translate(-50%, -50%);
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, #000 55%, transparent);
    color: #fff;
    font-size: 1.1rem;
    pointer-events: none;
}

a.lg-file-dl.btn {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.35rem;
    min-width: 9rem;
    min-height: 7.5rem;
    padding: 1rem 1.15rem;
    white-space: normal;
    text-align: center;
}

.lg-file-dl i {
    font-size: 1.75rem;
    line-height: 1;
}

.lg-file-dl__name {
    max-width: 11rem;
    font-size: 0.8rem;
    line-height: 1.25;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.lg-file-dl__act {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.lg-wall-entry .collapsing {
    transition: height 0.7s ease;
}

.lg-wall-entry .card-header .btn.text-danger {
    color: var(--bs-danger);
}

.lg-wall-entry .lg-comments-toggle {
    flex-shrink: 0;
}

.lg-wall-entry .lg-comments-toggle[aria-expanded="true"] {
    color: #fff;
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.lg-wall-avatar {
    width: 2rem;
    height: 2rem;
    flex: 0 0 2rem;
    border-radius: 50%;
    overflow: hidden;
}

img.lg-wall-avatar {
    display: block;
    object-fit: cover;
}

span.lg-wall-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    background: var(--gw);
    color: #fff;
}

.lg-wall-avatar--sm {
    width: 1.5rem;
    height: 1.5rem;
    flex-basis: 1.5rem;
    font-size: 0.7rem;
}

a.lg-wall-author:hover {
    color: var(--bs-primary);
}

.lg-wall-identifier {
    font-size: 0.75rem;
    line-height: 1.1;
    text-transform: lowercase;
    color: var(--bs-secondary-color);
}

.lg-alert__row {
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
}

.lg-alert__face {
    flex: 1;
    min-width: 0;
    min-height: 3.6rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.15rem;
    padding: 0.65rem 1rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--card);
    text-align: left;
}

.lg-alert__caption {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--bs-secondary-color);
}

.lg-alert__value {
    font-size: 1rem;
    line-height: 1.35;
    color: var(--text);
    overflow-wrap: anywhere;
}

.lg-unseen-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.15rem;
    height: 1.15rem;
    padding: 0 0.3rem;
    border-radius: 999px;
    background: var(--bs-danger, #dc3545);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1;
    flex-shrink: 0;
}

.lg-sched-rail {
    min-width: 0;
}

@media (min-width: 992px) {
    .row > .lg-sched-rail {
        flex: 0 0 300px;
        width: 300px;
        max-width: 300px;
    }
}

.lg-sched-editor {
    flex: 1 1 16rem;
    width: auto;
    min-width: min(100%, 16rem);
    max-width: 100%;
}

.lg-sched-preview {
    flex: 0 0 var(--lg-wall-width, 800px);
    width: var(--lg-wall-width, 800px);
    max-width: 100%;
}

.lg-sched-list {
    max-height: min(70vh, 36rem);
    overflow-x: hidden;
    overflow-y: auto;
    min-width: 0;
}

.lg-list__item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--text);
    text-decoration: none;
    min-width: 0;
}

.lg-list__item.is-active {
    border-color: var(--gw);
    background: color-mix(in srgb, var(--gw) 12%, transparent);
}

.lg-list__item > i {
    width: 18px;
    margin-top: 0.15rem;
    flex-shrink: 0;
    color: var(--muted);
    text-align: center;
}

.lg-list__item.is-active > i {
    color: var(--gw);
}

#lg-sched-host,
#lg-posts-host {
    position: relative;
    min-height: 12rem;
}

#lg-posts-pane {
    position: relative;
    min-height: 8rem;
}

.lg-posts-pane-ph {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: none;
    background: var(--card);
}

.lg-posts-pane-ph.htmx-request {
    display: flex;
}

.lg-sched-ph {
    position: absolute;
    inset: 0;
    z-index: 2;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    background: var(--card);
}

#lg-sched-host.htmx-request > .lg-sched-ph.htmx-indicator,
#lg-posts-host.htmx-request > .lg-sched-ph.htmx-indicator {
    display: flex !important;
}

.lg-sched-ph > .card {
    width: 100%;
    min-width: 0;
    height: 100%;
}

.ail-stage .lg-ai-post-pick {
    width: 100%;
    min-width: 0;
}

.ail-stage .lg-ai-post-pick > .pg-pop-form {
    display: flex;
    width: 100%;
}

.ail-stage .lg-ai-post-pick > .pg-pop-form > button {
    width: 100%;
}

.lg-staff-wall .pg-tabs-track > .pg-tab-panel[data-tab-id="logbook"] {
    background: transparent;
    border: 0;
    box-shadow: none;
    border-radius: 0;
}

.lg-preview-clip {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 1rem;
}

.lg-preview-clip__text {
    position: relative;
    align-self: stretch;
    width: 100%;
    max-height: var(--lg-preview-h);
    overflow: hidden;
    transition: max-height 1.05s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.lg-preview-clip__text::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: min(calc(6rem + 50px), 85%);
    background: linear-gradient(to bottom, transparent, var(--card));
    pointer-events: none;
    transition: opacity 1.05s ease;
}

.lg-preview-clip.is-open .lg-preview-clip__text {
    max-height: var(--lg-preview-open, var(--lg-preview-h));
}

.lg-preview-clip.is-open .lg-preview-clip__text::after {
    opacity: 0;
}

.lg-preview-more {
    min-height: 50px;
    margin-top: 0.75rem;
}

.lg-preview-more[hidden] {
    display: none;
}

/* Grok Link card. Same density as Content Wizard #cwGrokPane .cw-mu, scoped here. Class prefix lg-mu. */

#lgGrokPane .lg-mu {
    --mu-primary: #5954e8;
    --mu-primary-hover: #4842ce;
    --mu-primary-light: #f0efff;
    --mu-bg: #ffffff;
    --mu-panel: #f8f9fc;
    --mu-line: #e3e7f0;
    --mu-text: #273044;
    --mu-muted: #7c8597;
    --mu-green: #12865e;
    --mu-red: #dc4257;
    --mu-soft-line: #dfddff;
    --mu-input-line: #dce1ec;
    --mu-head-a: #f2f1ff;
    --mu-head-b: #ffffff;
    --mu-ok-bg: #e9f8f0;
    --mu-ok-line: #c9ebda;
    --mu-danger-line: #f0c9d0;
    --mu-danger-bg: #fff0f2;
    --mu-btn-ink: #586175;
    --mu-btn-hover: #f1f2f8;
    --mu-shadow: 0 4px 18px rgba(30, 42, 80, 0.05);
    width: 100%;
    font-size: 15px;
    line-height: 1.45;
    color: var(--mu-text);
}

#lgGrokPane .lg-mu,
#lgGrokPane .lg-mu * {
    box-sizing: border-box;
}

#lgGrokPane .lg-mu-card {
    background: var(--mu-bg);
    border: 1px solid var(--mu-line);
    border-radius: 14px;
    box-shadow: var(--mu-shadow);
}

#lgGrokPane .lg-mu-header {
    background: linear-gradient(110deg, var(--mu-head-a) 0%, var(--mu-head-b) 75%);
    border-bottom: 1px solid var(--mu-line);
    border-radius: 14px 14px 0 0;
    padding: 18px 22px;
}

#lgGrokPane .lg-mu-header-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

#lgGrokPane .lg-mu-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

#lgGrokPane .lg-mu-icon {
    flex: 0 0 50px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--mu-primary);
    color: #fff;
    font-size: 22px;
    font-weight: 800;
}

#lgGrokPane .lg-mu-eyebrow {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
    color: var(--mu-primary);
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

#lgGrokPane .lg-mu-title {
    margin: 4px 0 2px;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.25;
    color: var(--mu-text);
}

#lgGrokPane .lg-mu-section-sub,
#lgGrokPane .lg-mu-hint {
    margin: 0;
    color: var(--mu-muted);
    font-size: 13px;
}

#lgGrokPane .lg-mu-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--mu-ok-bg);
    border: 1px solid var(--mu-ok-line);
    color: var(--mu-green);
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: none;
}

#lgGrokPane .lg-mu-status::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

#lgGrokPane .lg-mu-status-off {
    background: var(--mu-danger-bg);
    border-color: var(--mu-danger-line);
    color: var(--mu-red);
}

#lgGrokPane .lg-mu-time {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    background: var(--mu-bg);
    border: 1px solid var(--mu-line);
    padding: 8px 16px;
    min-width: 168px;
    border-radius: 10px;
}

#lgGrokPane .lg-mu-time small {
    color: var(--mu-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 11px;
    font-weight: 800;
}

#lgGrokPane .lg-mu .lg-group-clock {
    color: var(--mu-text);
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 0.04em;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
    padding: 0;
    border: 0;
    background: transparent;
}

#lgGrokPane .lg-mu-body {
    padding: 20px 22px;
}

#lgGrokPane .lg-mu-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
    gap: 22px;
    align-items: start;
}

#lgGrokPane .lg-mu-col {
    min-width: 0;
}

#lgGrokPane .lg-mu-section-head {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

#lgGrokPane .lg-mu-section-title {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
}

#lgGrokPane .lg-mu-section-sub {
    margin-top: 3px;
}

#lgGrokPane .lg-mu-panel {
    background: var(--mu-bg);
    border: 1px solid var(--mu-line);
    border-radius: 12px;
}

#lgGrokPane .lg-mu-connect {
    padding: 16px;
    background: var(--mu-panel);
}

#lgGrokPane .lg-mu-time-panel {
    margin-top: 16px;
}

#lgGrokPane .lg-mu .progress,
#lgGrokPane .lg-mu .lg-mu-progress {
    height: 2rem;
    margin-top: 4px;
    background: var(--mu-primary-light);
    border-radius: 999px;
    overflow: hidden;
}

#lgGrokPane .lg-mu .progress-bar {
    background: var(--mu-primary);
}

#lgGrokPane .lg-grok-copy {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
    background: var(--mu-primary-light);
    border-color: var(--mu-soft-line);
}

#lgGrokPane .lg-grok-copy .lg-mu-section-sub {
    margin-top: 4px;
}

#lgGrokPane .lg-grok-copy .lg-mu-btn {
    width: 100%;
    min-height: 46px;
    font-size: 15px;
}

#lgGrokPane .lg-grok-hours.input-group {
    display: flex;
    flex-flow: row nowrap;
    align-items: stretch;
    width: 100%;
    max-width: none;
}

#lgGrokPane .lg-grok-hours > .form-select {
    flex: 0 0 5.5rem;
    width: 5.5rem;
    max-width: 5.5rem;
    min-width: 0;
    text-align: center;
    background: var(--mu-bg);
    color: var(--mu-text);
    border-color: var(--mu-input-line);
}

#lgGrokPane .lg-grok-hours > .btn {
    flex: 1 1 auto;
    width: auto;
    white-space: nowrap;
}

#lgGrokPane .lg-mu-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    border-radius: 8px;
    border: 1px solid var(--mu-line);
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
    background: var(--mu-bg);
    color: var(--mu-btn-ink);
    text-decoration: none;
    cursor: pointer;
}

#lgGrokPane .lg-mu-btn:hover {
    background: var(--mu-btn-hover);
    color: var(--mu-btn-ink);
}

#lgGrokPane .lg-mu-btn:focus-visible {
    outline: 2px solid var(--mu-primary);
    outline-offset: 2px;
}

#lgGrokPane .lg-mu-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

#lgGrokPane .lg-mu-btn-primary {
    background: var(--mu-primary);
    color: #fff;
    border-color: var(--mu-primary);
}

#lgGrokPane .lg-mu-btn-primary:hover {
    background: var(--mu-primary-hover);
    color: #fff;
}

#lgGrokPane .lg-mu-btn.is-off {
    background: var(--mu-danger-bg);
    color: var(--mu-red);
    border-color: var(--mu-danger-line);
}

html[data-theme="dark"] #lgGrokPane .lg-mu {
    --mu-primary: #9b97ff;
    --mu-primary-hover: #b2aeff;
    --mu-primary-light: #2c2a52;
    --mu-bg: var(--card, #1b2030);
    --mu-panel: #141824;
    --mu-line: var(--line, #2c3348);
    --mu-text: var(--text, #e7eaf3);
    --mu-muted: #9aa3b8;
    --mu-green: #3dbe8b;
    --mu-red: #ff6b80;
    --mu-soft-line: #3d3a6e;
    --mu-input-line: #3a4258;
    --mu-head-a: #262348;
    --mu-head-b: var(--card, #1b2030);
    --mu-ok-bg: #143028;
    --mu-ok-line: #1f5a42;
    --mu-danger-line: #6a3140;
    --mu-danger-bg: #3a1c24;
    --mu-btn-ink: #d5dae6;
    --mu-btn-hover: #2a3144;
    --mu-shadow: none;
}

@media (max-width: 1150px) {
    #lgGrokPane .lg-mu-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 700px) {
    #lgGrokPane .lg-mu-header-layout,
    #lgGrokPane .lg-mu-time {
        align-items: flex-start;
    }
}

#lgGrokPane .lg-cal {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

#lgGrokPane .lg-cal__bar {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: color-mix(in srgb, var(--gw) 12%, var(--card));
}

#lgGrokPane .lg-cal__nav {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: color-mix(in srgb, var(--gw) 22%, var(--card));
    color: var(--gw-dark);
    text-decoration: none;
}

#lgGrokPane .lg-cal__nav:hover {
    background: var(--gw);
    color: var(--card);
}

#lgGrokPane .lg-cal__title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 12px;
    min-width: 0;
}

#lgGrokPane .lg-cal__title strong {
    font-size: 1.15rem;
    color: var(--gw-dark);
}

#lgGrokPane .lg-cal__badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--gw);
    color: var(--card);
    font-size: 0.8rem;
    font-weight: 700;
}

#lgGrokPane .lg-cal__week {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    color: var(--gw-dark);
    font-size: 0.85rem;
    font-weight: 700;
    text-align: center;
}

#lgGrokPane .lg-cal__grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    grid-auto-rows: minmax(88px, auto);
}

#lgGrokPane .lg-cal__cell {
    min-height: 88px;
    min-width: 0;
    padding: 6px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

#lgGrokPane .lg-cal__cell:nth-child(7n) {
    border-right: 0;
}

#lgGrokPane .lg-cal__cell--pad {
    background: color-mix(in srgb, var(--muted) 8%, var(--card));
}

#lgGrokPane .lg-cal__cell--today {
    background: color-mix(in srgb, var(--gw) 16%, var(--card));
}

#lgGrokPane .lg-cal__cell--pick {
    box-shadow: inset 0 0 0 2px var(--gw);
}

#lgGrokPane .lg-cal__day {
    align-self: stretch;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 4px;
}

#lgGrokPane .lg-cal__num {
    font-weight: 600;
    color: var(--text);
}

#lgGrokPane .lg-cal__cell--today .lg-cal__num {
    color: var(--gw-dark);
}

#lgGrokPane .lg-cal__today {
    flex-shrink: 0;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--gw);
    color: var(--card);
    font-size: 0.65rem;
    font-weight: 700;
}

#lgGrokPane .lg-cal__count {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    max-width: 100%;
    padding: 2px 8px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--gw) 22%, var(--card));
    color: var(--gw-dark);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
}

#lgGrokPane .lg-cal__count i {
    font-size: 0.65rem;
}

#lgGrokPane .lg-cal__line {
    align-self: stretch;
    max-width: 100%;
    overflow: hidden;
    color: var(--text);
    font-size: 0.68rem;
    line-height: 1.25;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

@media (max-width: 480px) {
    #lgGrokPane .lg-mu-body,
    #lgGrokPane .lg-mu-header {
        padding: 14px;
    }
}

.lg-card-grid .ph-designed {
    width: 100%;
    max-width: none;
    min-width: 0;
}

.lg-shelf-head {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}

.lg-shelf-head__mark {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 0.45rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    background: color-mix(in srgb, var(--gw, #3d4f73) 14%, var(--card, #fff));
    color: var(--gw, #3d4f73);
    font-size: 0.85rem;
}

.lg-shelf-head__name {
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.2;
    white-space: nowrap;
}

.lg-shelf-head__count {
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    background: color-mix(in srgb, var(--muted, #64748b) 18%, var(--card, #fff));
    color: var(--muted, #64748b);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
}

.lg-shelf-head__rule {
    flex: 1 1 auto;
    height: 1px;
    background: var(--line, #e2e8f0);
    min-width: 1rem;
}

.lg-shelf-fold {
    flex: 0 0 auto;
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.45rem;
    line-height: 1;
}

.lg-shelf-section:has(> .row:empty) .lg-shelf-fold {
    display: none;
}

.lg-shelf-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.lg-shelf-section > .row:empty,
#lg-shelf-grid-loose:empty {
    display: none;
}

.lg-shelf-section.is-titles .cd-card {
    gap: 0;
}

.lg-shelf-section.is-titles .cd-card__top {
    border-bottom-color: transparent;
    padding-bottom: 0;
}

.lg-shelf-section.is-titles .cd-card__tools {
    display: none;
}

.lg-shelf-section.is-titles .cd-card:not(.is-card-open) .cd-card__fold {
    grid-template-rows: 0fr;
}

.lg-shelf-picks {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
}

.lg-shelf-pick {
    width: auto;
    height: auto;
    min-height: 2rem;
    padding: 0.2rem 0.55rem;
    gap: 0.35rem;
    border-radius: 0.45rem;
    border: 1px solid var(--line, #e2e8f0);
    background: var(--card, #fff);
    color: var(--muted, #64748b);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    line-height: 1.2;
    white-space: nowrap;
}

button.lg-shelf-pick {
    cursor: pointer;
    margin: 0;
}

.lg-shelf-pick.is-on {
    background: color-mix(in srgb, var(--gw, #3d4f73) 16%, var(--card, #fff));
    color: var(--gw, #3d4f73);
    border-color: transparent;
}

.lg-shelf-editor .lg-shelf-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(16rem, 22rem) auto;
    gap: 0.75rem;
    align-items: center;
}

.lg-shelf-editor .lg-shelf-row__form {
    display: contents;
}

.lg-shelf-editor .lg-shelf-row__form > input[type="hidden"] {
    display: none;
}

.lg-shelf-editor .lg-shelf-row__tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.25rem;
}

.lg-shelf-editor .lg-shelf-row__tools .btn {
    width: 2rem;
    height: 2rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 900px) {
    .lg-shelf-editor .lg-shelf-row {
        grid-template-columns: 1fr;
    }
}

.lg-tx-table {
    --bs-table-bg: transparent;
    --bs-table-hover-bg: color-mix(in srgb, var(--bs-info, #0dcaf0) 10%, transparent);
}

.lg-tx-table > :not(caption) > * > * {
    padding: 0.7rem 1rem;
}

.lg-tx-table > thead > tr > * {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--muted, var(--bs-secondary-color));
    white-space: nowrap;
}

/* Logbook Framework — identifiers, versions, markdown. */
#lg-framework-live {
    min-height: 12rem;
}

#lg-framework-read {
    min-height: 12rem;
}

.lg-fw-ph {
    display: none;
}

#lg-framework-live > .lg-fw-ph,
#lg-framework-read > .lg-fw-ph {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.lg-framework-live.is-reloading > .lg-fw-ph,
.lg-framework-live.htmx-request > .lg-fw-ph,
.lg-framework-read.is-reloading > .lg-fw-ph,
.lg-framework-read.htmx-request > .lg-fw-ph {
    display: flex !important;
}

/* Identifier rows: badges and buttons stay as wide as their text. Section arrows sit on the right. */
[data-lg-fw] .sh-ver-list__row {
    align-items: center;
}

[data-lg-fw] .sh-ver-list__side {
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    max-width: none;
    margin-left: auto;
    align-items: flex-end;
    align-self: center;
    justify-content: center;
    padding: 6px 8px;
}

[data-lg-fw] .sh-ver-list__side > .badge,
[data-lg-fw] .sh-ver-list__side > span,
[data-lg-fw] .sh-ver-list__side > form,
[data-lg-fw] .sh-ver-list__side .pg-pop-form,
[data-lg-fw] .sh-ver-list__side .btn {
    width: auto;
    max-width: none;
    flex: 0 0 auto;
}

[data-lg-fw] .sh-ver-list__side form {
    display: inline-flex;
    margin: 0;
}

a[data-lg-fw-nav] {
    position: relative;
}

a[data-lg-fw-nav] > .htmx-indicator {
    position: absolute;
    right: 8px;
    top: 50%;
    margin-top: -0.55em;
    line-height: 1;
    pointer-events: none;
}

a[data-lg-fw-nav].is-warming .htmx-indicator,
a[data-lg-fw-nav].htmx-request .htmx-indicator {
    opacity: 1;
}

[data-lg-fw] .sh-ver-list {
    max-height: min(70vh, 36rem);
    overflow-x: hidden;
    overflow-y: auto;
}

[data-lg-fw] .sh-ver-list__row {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    overflow: hidden;
}

[data-lg-fw] .sh-ver-list__row.is-active {
    border-color: var(--gw);
    background: color-mix(in srgb, var(--gw) 12%, transparent);
}

[data-lg-fw] .sh-ver-list__row--published {
    background: color-mix(in srgb, var(--bs-success) 10%, var(--card));
}

[data-lg-fw] .sh-ver-list__row--published.is-active {
    border-color: var(--bs-success);
    background: color-mix(in srgb, var(--bs-success) 10%, var(--card));
}

[data-lg-fw] .sh-ver-list__side {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    gap: 8px;
    flex: 1 1 9.5rem;
    min-width: 9.5rem;
    padding: 8px 8px 8px 0;
}

[data-lg-fw] .sh-ver-list__badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 4px;
}

[data-lg-fw] .sh-ver-work {
    flex: 0 0 auto;
    align-self: flex-end;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    padding: 0;
}

[data-lg-fw] .sh-ver-work form {
    margin: 0;
}

[data-lg-fw] .sh-ver-work .btn {
    white-space: nowrap;
}

[data-lg-fw] .sh-ver-list__item {
    display: flex;
    flex: 1 1 auto;
    align-items: flex-start;
    min-width: 0;
    gap: 8px;
    padding: 8px 12px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--text);
    text-decoration: none;
}

.lg-framework-view {
    min-height: 24rem;
    border: 1px solid var(--line);
    border-radius: 0.375rem;
    overflow: hidden;
    background: #fff;
}

.lg-framework-view .sh-preview {
    min-height: 24rem;
}

/* Logbook Framework — το tab info μένει. Κάθε στήλη (δύο ή τρεις) κυλάει μόνη της από κάτω. */
@media (min-width: 992px) {
    [data-temp-module="Logbook"].pg-page--fill .pg-tabs-track > .pg-tab-panel[data-tab-slot="current"]:has([data-lg-fw]) {
        display: flex;
        flex-direction: column;
        height: 100%;
        max-height: 100%;
        min-height: 0;
        overflow: hidden;
    }

    [data-temp-module="Logbook"].pg-page--fill .pg-tabs-track > .pg-tab-panel[data-tab-slot="current"]:has([data-lg-fw]) > .pg-tab-intro {
        flex: 0 0 auto;
    }

    [data-temp-module="Logbook"].pg-page--fill .lg-fw-body {
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
        height: auto;
        max-height: none;
        min-height: 0;
        overflow: hidden;
    }

    [data-temp-module="Logbook"].pg-page--fill [data-lg-fw],
    [data-temp-module="Logbook"].pg-page--fill #lg-framework-stage,
    [data-temp-module="Logbook"].pg-page--fill #lg-framework-stage > [class*="col-"] > .row {
        flex: 1 1 auto;
        align-items: stretch;
        flex-wrap: nowrap;
        min-width: 0;
        min-height: 0;
        overflow: hidden;
        --bs-gutter-y: 0;
    }

    [data-temp-module="Logbook"].pg-page--fill [data-lg-fw] > [class*="col-"],
    [data-temp-module="Logbook"].pg-page--fill #lg-framework-stage > [class*="col-"],
    [data-temp-module="Logbook"].pg-page--fill #lg-framework-stage .row > [class*="col-"] {
        display: flex;
        flex-direction: column;
        flex-shrink: 1;
        align-self: stretch;
        min-width: 0;
        min-height: 0;
        max-height: 100%;
        overflow: hidden;
    }

    [data-temp-module="Logbook"].pg-page--fill #lg-framework-live,
    [data-temp-module="Logbook"].pg-page--fill #lg-framework-read,
    [data-temp-module="Logbook"].pg-page--fill #lg-framework-editor,
    [data-temp-module="Logbook"].pg-page--fill [data-lg-fw] > [class*="col-"] > .d-flex,
    [data-temp-module="Logbook"].pg-page--fill #lg-framework-stage > [class*="col-"] > .d-flex,
    [data-temp-module="Logbook"].pg-page--fill #lg-framework-stage .row > [class*="col-"] > .d-flex {
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
        min-width: 0;
        min-height: 0;
        overflow: hidden;
    }

    [data-temp-module="Logbook"].pg-page--fill [data-lg-fw] .sh-ver-list,
    [data-temp-module="Logbook"].pg-page--fill [data-lg-fw] .sidebar__list {
        flex: 1 1 auto;
        align-content: start;
        min-height: 0;
        max-height: none;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    [data-temp-module="Logbook"].pg-page--fill [data-lg-fw] .sh-ver-list > .sh-ver-list__row,
    [data-temp-module="Logbook"].pg-page--fill [data-lg-fw] .sh-ver-list > .page-lead {
        flex: 0 0 auto;
    }

    [data-temp-module="Logbook"].pg-page--fill #lg-framework-editor > .orbit-md--fill,
    [data-temp-module="Logbook"].pg-page--fill #lg-framework-editor > .lg-framework-view,
    [data-temp-module="Logbook"].pg-page--fill #lg-framework-editor > .sh-code-fill {
        flex: 1 1 auto;
        min-height: 0;
        max-height: none;
    }

    [data-temp-module="Logbook"].pg-page--fill #lg-framework-editor > .orbit-md--fill,
    [data-temp-module="Logbook"].pg-page--fill #lg-framework-editor > .lg-framework-view {
        overflow: auto;
        overscroll-behavior: contain;
    }

    [data-temp-module="Logbook"].pg-page--fill #lg-framework-editor > .orbit-md--fill {
        border: 1px solid var(--line);
        border-radius: 8px;
        background: var(--card);
    }

    [data-temp-module="Logbook"].pg-page--fill #lg-framework-editor > .lg-framework-view,
    [data-temp-module="Logbook"].pg-page--fill #lg-framework-editor > .lg-framework-view .sh-preview {
        min-height: 0;
    }

    [data-temp-module="Logbook"].pg-page--fill #lg-framework-editor .sh-code-fill {
        min-height: 0;
        overflow: hidden;
    }

    [data-temp-module="Logbook"].pg-page--fill #lg-framework-editor [data-lg-fw-host] {
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
        min-height: 0;
        overflow: hidden;
    }

    [data-temp-module="Logbook"].pg-page--fill #lg-framework-editor [data-lg-fw-host] > .d-flex {
        flex: 0 0 auto;
    }

    [data-temp-module="Logbook"].pg-page--fill #lg-framework-editor .ui-monaco--fill,
    [data-temp-module="Logbook"].pg-page--fill #lg-framework-editor .ui-monaco--fill .ui-monaco__chrome,
    [data-temp-module="Logbook"].pg-page--fill #lg-framework-editor [data-lg-fw-pane]:not([hidden]) {
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
        min-height: 0;
        height: auto;
        overflow: hidden;
    }

    [data-temp-module="Logbook"].pg-page--fill #lg-framework-editor .ui-monaco__bar,
    [data-temp-module="Logbook"].pg-page--fill #lg-framework-editor .ui-monaco__hint {
        flex: 0 0 auto;
    }

    [data-temp-module="Logbook"].pg-page--fill #lg-framework-editor .ui-monaco--fill .ui-monaco__host {
        flex: 1 1 auto;
        min-height: 0;
        height: auto !important;
    }

    [data-temp-module="Logbook"].pg-page--fill [data-lg-fw] {
        --lg-fw-c1: 25;
        --lg-fw-c2: 25;
    }

    [data-temp-module="Logbook"].pg-page--fill [data-lg-fw] > .lg-fw-col-ids {
        flex: 0 0 calc(var(--lg-fw-c1) * 1%);
        width: calc(var(--lg-fw-c1) * 1%);
        max-width: calc(var(--lg-fw-c1) * 1%);
    }

    [data-temp-module="Logbook"].pg-page--fill [data-lg-fw] > #lg-framework-live {
        flex: 1 1 auto;
        width: auto;
        max-width: none;
    }

    [data-temp-module="Logbook"].pg-page--fill #lg-framework-stage .lg-fw-col-sections {
        flex: 0 0 calc(var(--lg-fw-c2) / (100 - var(--lg-fw-c1)) * 100%);
        width: calc(var(--lg-fw-c2) / (100 - var(--lg-fw-c1)) * 100%);
        max-width: calc(var(--lg-fw-c2) / (100 - var(--lg-fw-c1)) * 100%);
    }

    [data-temp-module="Logbook"].pg-page--fill #lg-framework-stage .lg-fw-col-sections + [class*="col-"] {
        flex: 1 1 auto;
        width: auto;
        max-width: none;
    }
}

@media (max-width: 991.98px) {
    [data-temp-module="Logbook"] [data-lg-fw] .sh-ver-list {
        flex: 0 0 auto;
        height: auto;
        max-height: none;
        overflow: visible;
    }

    [data-temp-module="Logbook"] [data-lg-fw] .sh-ver-list__row {
        flex: 0 0 auto;
        flex-wrap: wrap;
        min-height: min-content;
    }

    [data-temp-module="Logbook"] [data-lg-fw] .sh-ver-list__item,
    [data-temp-module="Logbook"] [data-lg-fw] .sh-ver-list__side {
        flex: 1 1 100%;
        min-width: 0;
    }

    [data-temp-module="Logbook"] [data-lg-fw] .sh-ver-list__side {
        padding: 0 8px 8px 12px;
    }
}
.lg-fw-wait {
    opacity: 0.55;
}

.lg-framework-view .sh-preview {
    display: block;
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    border: 0;
    background: #fff;
}

.lg-fw-body .sh-code-fill {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.lg-fw-body .sh-code-fill > .ui-monaco,
.lg-fw-body [data-lg-fw-pane]:not([hidden]) > .ui-monaco {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

.ph-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.ph-empty {
    color: var(--muted);
    grid-column: 1 / -1;
}

.ph-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.ph-card__head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: linear-gradient(135deg, var(--gw), var(--gw-dark));
    color: #fff;
    font-weight: 700;
}

.ph-card__fav {
    margin-left: auto;
    flex-shrink: 0;
}

.ph-card__fav button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    line-height: 1;
}

.ph-card__fav button[aria-pressed="false"] {
    opacity: 0.72;
}

.ph-card__fav button:hover,
.ph-card__fav button[aria-pressed="true"] {
    opacity: 1;
}

.ph-card__desc {
    padding: 0 14px;
    color: var(--muted);
    font-size: 0.9rem;
}

.ph-card__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 14px;
}

.ph-chip {
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--line);
}

.ph-chip--ok { color: var(--ok); }
.ph-chip--lock { color: var(--danger); }
.ph-chip--kind { color: var(--gw-dark); }

.ph-card__open {
    margin: 0 14px 14px;
    justify-content: center;
}

.ph-card__actions {
    display: flex;
    align-items: stretch;
    gap: 8px;
    padding: 0 14px 14px;
}

.ph-card__actions > * {
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
}

.ph-card__actions form {
    display: flex;
}

.ph-card__actions .pg-test-btn,
.ph-card__actions form .pg-test-btn {
    margin: 0;
    justify-content: center;
    width: 100%;
    flex: 1;
}

.ph-create { margin-bottom: 16px; }
.ph-renew { margin-bottom: 16px; }

/* Script identifier: pill row matches identifier pills; preview and code fill the card */
.pg-tabs-viewport:has(.lb-script-stage),
.pg-tabs-track:has(.lb-script-stage) {
    height: 100%;
    min-height: 0;
}

.pg-tab-panel:has(.lb-script-stage),
#microTabBody:has(.lb-script-stage) {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100%;
    min-height: 0;
    overflow: hidden;
}

.pg-tabs-track > .pg-tab-panel:has(.lb-script-stage) > .orbit-env,
#microTabBody:has(.lb-script-stage) > .orbit-env {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    max-height: 100%;
    overflow: hidden;
}

.lb-board:has(.lb-script-stage) {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    max-height: 100%;
    overflow: hidden;
}

.lb-board:has(.lb-script-stage) > .pg-tab-intro {
    flex: 0 0 auto;
}

.lb-html-face-slot:empty {
    display: none;
}

.lb-html-face {
    flex-shrink: 0;
}

.lb-board-pane .lb-html-face {
    display: none !important;
}

.lb-board-pane:has(.lb-version-plain) {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    align-self: stretch;
    min-height: 0;
    height: 100%;
}

.lb-board-pane:has(.lb-version-plain) > .lb-version-host {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

.lb-version-plain {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    background: var(--card, #fff);
    position: relative;
    z-index: 1;
}

.lb-version-plain > .lb-version-main {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    overflow: auto;
}

.lb-version-plain > .lb-board-col--2 {
    overflow: auto;
}

.lb-version-plain .lb-board-items,
.lb-version-plain .lb-board-items > .row {
    flex: 1 1 auto;
    min-height: 0;
}

.lb-board:has(.lb-script-stage) > .d-flex {
    flex: 1 1 auto;
    min-height: 0;
    padding-bottom: 0;
}

.lb-board:has(.lb-script-stage) > .d-flex > .lb-board-layout {
    flex: 1 1 auto;
    align-items: stretch !important;
    min-height: 0;
    height: 100%;
    overflow: hidden;
}

.lb-board:has(.lb-script-stage) .lb-board-col--1,
.lb-board-pane:has(.lb-script-stage) {
    height: 100%;
    overflow: hidden;
}

.lb-board-pane:has(.lb-script-stage),
.lb-script-stage,
.lb-script-body,
.lb-script-fill,
.lb-script-fill > [data-lb-loc-root],
.lb-script-body--preview > [data-lb-loc-root] {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

.lb-script-body > .pg-pills,
.lb-script-body > .alert {
    flex: 0 0 auto;
}

.lb-script-body [data-lb-loc-root] {
    gap: 0;
}

.lb-script-fill [data-lb-loc-panel]:not(.d-none),
.lb-script-body--preview [data-lb-loc-panel]:not(.d-none) {
    flex: 1 1 auto;
    min-height: 0;
}

.lb-script-body--preview > .lb-script-frame,
.lb-script-body--preview > [data-lb-loc-root],
.lb-script-body--code > .lb-script-fill {
    margin-left: -1rem;
    margin-right: -1rem;
}

.lb-script-body--preview > .lb-script-frame {
    min-height: 28rem;
}

.lb-script-frame {
    display: block;
    width: 100%;
    flex: 1 1 auto;
    height: 100%;
    max-height: 100%;
    min-height: 0;
    border: 0;
    background: var(--card);
}

.lb-script-fill .ui-monaco,
.lb-script-fill .ui-monaco__chrome {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    border: 0;
    border-radius: 0;
}

.lb-script-fill .ui-monaco__host {
    flex: 1 1 auto;
    min-height: 0;
    height: auto !important;
}

.lb-html-stage,
.lb-html-body,
.lb-html-fill {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

.lb-html-fill .ui-monaco,
.lb-html-fill .ui-monaco__chrome {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.lb-html-fill .ui-monaco__host {
    flex: 1 1 auto;
    min-height: 0;
    height: auto !important;
}

.lb-html-fill > .lb-speech-read,
.lb-html-fill [data-lb-loc-panel]:not(.d-none) > .lb-speech-read {
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-height: 0;
    height: 100%;
    overflow: hidden;
}

.lb-speech-read .orbit-md--fill {
    flex: 1 1 auto;
    min-height: 0;
}

.lb-version-tabs__pane:not(.d-none) > .lb-play-slots {
    flex: 0 0 auto;
    min-height: 0;
}

.lb-play-slot {
    flex: 0 0 auto;
    min-height: 4.5rem;
    padding: 0.75rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
}

.lb-play-slot__shot,
.lb-play-slot__empty,
.lb-play-slot__video {
    width: 7rem;
    height: 5.25rem;
    object-fit: cover;
    flex: 0 0 auto;
}

.lb-play-slot__audio {
    width: 16rem;
    max-width: 100%;
    height: 2.5rem;
    flex: 0 0 auto;
}

.lb-item-html {
    max-width: 100%;
    overflow-wrap: anywhere;
}

.lb-item-html img,
.lb-item-html video {
    max-width: 100%;
    height: auto;
}

.lb-gallery-nav .lb-gallery-nav__btn {
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.lb-gallery-nav .lb-read-eye {
    width: 2.25rem;
    height: 2.25rem;
}

.lb-gallery-nav .lb-gallery-nav__seen {
    width: auto;
    padding-left: 0.45rem;
    padding-right: 0.45rem;
    gap: 0.2rem;
}

.lb-gallery-nav .progress {
    height: 0.3rem;
    background: var(--line);
}

.lb-gallery-nav .progress-bar {
    background: var(--gw);
}

.lb-gallery-stage {
    overflow: hidden;
    width: 100%;
}

.lb-gallery-track {
    display: flex;
    width: 300%;
    transform: translateX(-33.333333%);
}

.lb-gallery-slide {
    flex: 0 0 33.333333%;
    width: 33.333333%;
    min-width: 0;
}

.lb-board[data-lb-view="column"] .lb-board-layout > .lb-idf-slider {
    flex: 1 1 0;
    width: auto;
    max-width: none;
    min-width: 0;
    min-height: 0;
}

.lb-board.is-lb-tabs .lb-idf-slider {
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
}

.lb-idf-slider > .lb-gallery-stage {
    flex: 1 1 auto;
    min-height: 0;
}

.lb-idf-slider .lb-gallery-track,
.lb-idf-slider .lb-gallery-slide,
.lb-idf-slider .lb-gallery-slide > .lb-board-pane {
    height: 100%;
    min-height: 0;
}

.lb-idf-slider .lb-gallery-slide {
    overflow: auto;
}

.lb-gallery-track.is-lb-gallery-next,
.lb-gallery-track.is-lb-gallery-prev {
    transition: transform 0.4s ease;
}

.lb-gallery-track.is-lb-gallery-next {
    transform: translateX(-66.666666%);
}

.lb-gallery-track.is-lb-gallery-prev {
    transform: translateX(0);
}

.lb-gallery-track.is-lb-gallery-instant {
    transition: none;
}

@media (prefers-reduced-motion: reduce) {
    .lb-gallery-track.is-lb-gallery-next,
    .lb-gallery-track.is-lb-gallery-prev {
        transition: none;
    }
}

.repo-host .table {
    --bs-table-bg: transparent;
    --bs-table-color: inherit;
}

.repo-host__slot td,
.repo-host__cycle td {
    background: color-mix(in srgb, var(--line) 28%, transparent);
}

/* Dim Unlock Library Chapter until phrase matches (not Bootstrap disabled). */
.lb-host-wait {
    opacity: 0.55;
}


.lg-access-wrap {
    display: flex;
    justify-content: center;
    padding: 2rem 1rem 3rem;
}

.lg-access {
    width: 50vw;
    min-width: 20rem;
    margin: 0;
    padding: 2.5rem 2.25rem 2rem;
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.lg-access__icon {
    color: var(--danger);
    font-size: 2.75rem;
    margin-bottom: 0.75rem;
}

.lg-access h1 {
    font-size: 1.375rem;
    font-weight: 800;
    margin: 0 0 1.5rem;
}

.lg-access__terms {
    margin: 0 0 1.5rem;
    text-align: left;
    font-size: 1rem;
    line-height: 1.55;
    color: var(--text);
    max-height: 22rem;
    overflow: auto;
}

.lg-access__actions {
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
}

.lg-access__tick {
    flex: 0 0 auto;
    width: 3.6rem;
    height: 3.6rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 1.35rem;
}

.lg-access__submit {
    flex: 1;
    width: auto;
    min-height: 3.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 1rem 1.25rem;
    border: 0;
    border-radius: 10px;
    background: var(--gw);
    color: #fff;
    font-weight: 800;
    font-size: 1.25rem;
    cursor: pointer;
}

.lg-access__submit:hover {
    background: var(--gw-dark);
}

.lg-access__alert {
    margin: 0 0 0.75rem;
    text-align: center;
}

@keyframes lg-tick-flash {
    0%, 100% { background-color: transparent; color: var(--bs-success); }
    40%, 60% { background-color: var(--bs-success); color: #fff; border-color: var(--bs-success); }
}

.lg-access__tick.is-flash {
    animation: lg-tick-flash 0.45s ease-in-out 2;
}

/* Hosting chapter tick. Same pressable check as the terms button, sized for a table row. */
.lb-host-tick {
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    line-height: 1;
}

/* User reader: short unlock meter on the chapter description line. */
.lb-unlock-meter {
    width: 6.5rem;
    height: 0.5rem;
}

/* Locked chapter gate. Same card as Accept the Terms, narrower than 50vw. */
.lb-unlock-gate {
    display: flex;
    justify-content: flex-end;
    padding: 0;
}

.lb-unlock-card {
    width: min(100%, 28rem);
    margin: 0;
    padding: 2rem 1.75rem 1.5rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.lb-unlock-card h2 {
    font-size: 1.375rem;
    font-weight: 800;
    margin: 0 0 0.75rem;
}

.lb-unlock-card__hint {
    margin: 0 0 0.75rem;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.lb-unlock-card__price {
    margin: 0 0 1.25rem;
    font-weight: 800;
    font-size: 1.05rem;
}

.lb-unlock-card .lg-access__submit {
    width: 100%;
    flex: none;
}

/* User digital product page: four cards — photo, unlock and downloads, specs, content. */
.lb-product-host > .card-body {
    padding-top: 0.5rem;
}

.lb-product-card {
    border: 1px solid var(--line);
    background: var(--card);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.lb-product-page__icon {
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 0.5rem;
    background: color-mix(in srgb, var(--gw) 16%, var(--card));
    color: var(--gw);
}

.lb-product-page__frame {
    width: min(100%, var(--lb-photo-w, 480px));
    height: var(--lb-photo-h, 360px);
    max-width: 100%;
    aspect-ratio: auto;
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: color-mix(in srgb, var(--line) 18%, var(--card));
}

.lb-product-page__buy.lb-unlock-card {
    width: 100%;
}

.lb-product-downloads > div {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line);
}

.lb-product-downloads > div:first-child {
    padding-top: 0;
}

.lb-product-downloads > div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.lb-product-page__frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.lb-product-page__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted);
    text-align: center;
}

.lb-product-page__empty > i {
    font-size: 2rem;
    line-height: 1;
}

.lb-product-page h3 {
    font-size: 1.375rem;
    font-weight: 800;
}

.lb-product-page__buy .modal {
    text-align: start;
}

.lb-product-specs dt,
.lb-product-specs dd {
    margin: 0;
}

.lb-product-specs dt {
    font-weight: 600;
}

.lb-product-preview {
    background: color-mix(in srgb, var(--line) 18%, var(--card));
}

.lb-task-column {
    width: 18rem;
    max-width: 100%;
}

.lb-task-columns {
    align-items: flex-start;
}

.lb-task-list {
    min-height: 2rem;
}

.lb-task-preview .lb-script-frame {
    height: 18rem;
    min-height: 18rem;
    flex: none;
    border: 1px solid var(--line);
}

.lb-task-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin: 0;
    padding: 2.5rem 1rem;
    text-align: center;
}

.lb-task-empty > i {
    font-size: 1.75rem;
    line-height: 1;
    color: var(--gw);
}

.lb-task-empty > p {
    margin: 0;
    max-width: 22rem;
    font-size: 1.05rem;
}

/* Flow identifier: the canvas fills the work pane. Full window covers the app. */
.pg-tabs-viewport:has(.lb-flow-stage),
.pg-tabs-track:has(.lb-flow-stage) {
    height: 100%;
    min-height: 0;
}

#microWorkPane:has(.lb-flow-stage),
#microWorkContent:has(.lb-flow-stage),
.pg-tabs-track > .pg-tab-panel:has(.lb-flow-stage),
.pg-tab-panel:has(.lb-flow-stage),
#microTabBody:has(.lb-flow-stage) {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100%;
    min-height: 0;
    overflow: hidden;
}

.pg-tabs-track > .pg-tab-panel:has(.lb-flow-stage) > .orbit-env {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    max-height: 100%;
    overflow: hidden;
}

.lb-board:has(.lb-flow-stage) {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    max-height: 100%;
    overflow: hidden;
}

.lb-board:has(.lb-flow-stage) > .pg-tab-intro {
    flex: 0 0 auto;
}

.lb-board:has(.lb-flow-stage) > .d-flex {
    flex: 1 1 auto;
    min-height: 0;
    padding: 0;
    gap: 0;
    overflow: hidden;
}

.lb-board.is-booting {
    position: relative;
    min-height: 16rem;
}

.lb-board.is-booting > :not(.lb-board-boot) {
    visibility: hidden;
    position: absolute;
    width: 100%;
    left: 0;
    top: 0;
    pointer-events: none;
}

.lb-board-boot {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.lb-board:not(.is-booting) > .lb-board-boot {
    display: none;
}

.lb-board-boot__stage {
    height: 12rem;
}

.lb-board-tabs {
    flex: 0 0 auto;
    min-width: 0;
}

.lb-board-idf {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
}

.lb-board-idf a {
    color: inherit;
    text-decoration: none;
}

.lb-idf-bubble {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex: 0 0 auto;
    min-height: 3.75rem;
    padding: 0.55rem 0.7rem;
    border: 1px solid var(--line, rgba(148, 163, 184, 0.35));
    border-radius: 14px;
    background: var(--card, #fff);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
}

.lb-idf-bubble.is-active {
    border-color: color-mix(in srgb, var(--gw, var(--bs-primary)) 55%, transparent);
    box-shadow: 0 6px 16px color-mix(in srgb, var(--gw, var(--bs-primary)) 18%, transparent);
}

.lb-idf-bubble__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    flex: 0 0 1rem;
    width: 1rem;
    font-size: 1rem;
    line-height: 1;
}

.lb-idf-bubble__copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.2rem;
    min-width: 0;
    flex: 1 1 auto;
}

.lb-idf-bubble__title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lb-idf-bubble__sub {
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1.2;
    color: var(--bs-secondary-color, #64748b);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lb-idf-bubble__trail {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex: 0 0 auto;
}

html[data-theme="dark"] .lb-idf-bubble {
    background: rgba(15, 23, 42, 0.45);
    border-color: rgba(148, 163, 184, 0.22);
}

.lb-board-layout > .lb-board-pane {
    min-width: 0;
}

.lb-board[data-lb-view="column"] {
    --lb-col-1: 280px;
    --lb-col-2: 240px;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.lb-board[data-lb-view="column"] > .d-flex {
    flex: 1 1 auto;
    min-height: 0;
}

.lb-board[data-lb-view="column"] .lb-board-layout {
    flex: 1 1 auto;
    min-height: 0;
    align-items: stretch;
}

.lb-board[data-lb-view="column"] .lb-board-col--1,
.lb-board[data-lb-view="column"] .lb-board-col--2 {
    align-self: stretch;
    box-sizing: border-box;
}

.lb-board[data-lb-view="column"] .lb-board-col--1 {
    min-height: 0;
    height: 100%;
    max-height: 100%;
    overflow: hidden;
}

.lb-board[data-lb-view="column"] .lb-board-col--1 > .form-label {
    flex: 0 0 auto;
}

.pg-tab-panel:has(> .lb-board[data-lb-view="column"]) {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.lb-board[data-lb-view="column"] .lb-board-layout > .lb-board-pane,
.lb-board[data-lb-view="column"] .lb-board-col--main {
    flex: 1 1 0;
    width: auto;
    max-width: none;
    min-width: 0;
}

.lb-board[data-lb-view="column"] .lb-board-col--main img,
.lb-board[data-lb-view="column"] .lb-board-col--main video {
    max-width: 100%;
    min-width: 0;
    height: auto;
}

/* Vertical on the library page only. Script Hosting has no locked height, so flex-basis 0 collapses the columns. */
.pg-page[data-temp-module^="LibraryRepository"] .lb-board[data-lb-view="column"]:not(.is-lb-tabs):not(:has(.lb-script-stage)):not(:has(.lb-flow-stage)) .lb-board-layout {
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
}

.pg-page[data-temp-module^="LibraryRepository"] .lb-board[data-lb-view="column"]:not(.is-lb-tabs):not(:has(.lb-script-stage)):not(:has(.lb-flow-stage)) .lb-board-layout > .lb-board-pane:not(:has(.lb-board-split)):not(:has(.lb-version-plain)) {
    align-self: stretch;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
}

.pg-page[data-temp-module^="LibraryRepository"] .lb-board[data-lb-view="column"]:not(.is-lb-tabs):not(:has(.lb-script-stage)):not(:has(.lb-flow-stage)) .lb-board-layout > .lb-board-pane:has(.lb-board-split),
.pg-page[data-temp-module^="LibraryRepository"] .lb-board[data-lb-view="column"]:not(.is-lb-tabs):not(:has(.lb-script-stage)):not(:has(.lb-flow-stage)) .lb-board-layout > .lb-board-pane:has(.lb-version-plain) {
    display: flex;
    flex-direction: column;
    align-self: stretch;
    min-height: 0;
    overflow: hidden;
}

.pg-page[data-temp-module^="LibraryRepository"] .lb-board[data-lb-view="column"]:not(.is-lb-tabs) .lb-idf-slider .lb-gallery-slide:has(.lb-board-split),
.pg-page[data-temp-module^="LibraryRepository"] .lb-board[data-lb-view="column"]:not(.is-lb-tabs) .lb-idf-slider .lb-gallery-slide:has(.lb-version-plain) {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.pg-page[data-temp-module^="LibraryRepository"] .lb-board[data-lb-view="column"]:not(.is-lb-tabs) .lb-idf-slider .lb-gallery-slide:has(.lb-board-split) > .lb-board-pane,
.pg-page[data-temp-module^="LibraryRepository"] .lb-board[data-lb-view="column"]:not(.is-lb-tabs) .lb-idf-slider .lb-gallery-slide:has(.lb-version-plain) > .lb-board-pane {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    overflow: hidden;
}

.pg-page[data-temp-module^="LibraryRepository"] .lb-board[data-lb-view="column"]:not(.is-lb-tabs) .lb-board-pane:has(.lb-board-split) > [hx-disinherit],
.pg-page[data-temp-module^="LibraryRepository"] .lb-board[data-lb-view="column"]:not(.is-lb-tabs) .lb-board-pane:has(.lb-version-plain) > .lb-version-host {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.pg-page[data-temp-module^="LibraryRepository"] .lb-board[data-lb-view="column"]:not(.is-lb-tabs) .lb-board-split {
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
}

.pg-page[data-temp-module^="LibraryRepository"] .lb-board[data-lb-view="column"]:not(.is-lb-tabs) .lb-board-split > .lb-board-col--2 {
    min-height: 0;
    overflow: hidden;
}

.pg-page[data-temp-module^="LibraryRepository"] .lb-board[data-lb-view="column"]:not(.is-lb-tabs) .lb-board-split > .lb-board-col--2 > .d-flex {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.pg-page[data-temp-module^="LibraryRepository"] .lb-board[data-lb-view="column"]:not(.is-lb-tabs) .lb-board-split > .lb-board-col--2 [id^="lbSecList-"] {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
}

.pg-page[data-temp-module^="LibraryRepository"] .lb-board[data-lb-view="column"]:not(.is-lb-tabs) .lb-board-split > .lb-board-col--main {
    align-self: stretch;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
}

.lb-board.is-lb-tabs .lb-board-col--1 {
    display: none;
}

.lb-board.is-lb-tabs .lb-board-layout,
.lb-board.is-lb-tabs .lb-board-pane .row {
    flex-wrap: wrap;
}

.lb-board.is-lb-tabs .lb-board-col--2,
.lb-board.is-lb-tabs .lb-board-layout > .lb-board-pane,
.lb-board.is-lb-tabs .lb-board-col--main {
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
}

.lb-board-pane:has(.lb-flow-stage),
.lb-flow-stage,
.lb-flow-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

.lb-flow-bar {
    flex: 0 0 auto;
    background: var(--card, #fff);
    border-bottom: 1px solid var(--line, transparent);
}

.lb-flow-body {
    overflow: hidden;
}

.lb-flow-body > .fc-stage,
.lb-flow-body > .lb-version-plain {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    max-height: 100%;
}

.lb-flow-stage .fc-stage {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    max-height: 100%;
}

.lb-flow-stage .fc-board,
.lb-flow-stage .fc-stage__main {
    min-height: 0;
    overflow: hidden;
}

.lb-flow-stage .fc-stage,
.lb-flow-version-canvas > .fc-stage {
    overflow: hidden;
    border-radius: var(--radius, 16px);
}

.lb-flow-stage .fc-stage__main > .fc-node-pops {
    flex: 0 0 0;
    width: 0;
    height: 0;
    min-height: 0;
    overflow: hidden;
}

.lb-board:has(.lb-flow-stage) .lb-board-layout {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    max-height: 100%;
    overflow: hidden;
}

.lb-board:has(.lb-flow-stage) .lb-board-layout > .lb-board-pane {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    align-self: stretch;
    min-width: 0;
    min-height: 0;
    height: 100%;
    max-height: 100%;
    overflow: hidden;
}

.lb-flow-stage .lb-version-plain > .lb-version-main {
    overflow: hidden;
}

.lb-flow-version-canvas {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    min-width: 0;
}

.lb-flow-version-canvas > .fc-stage {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
}

.lb-flow-stage.is-lb-flow-window,
[data-lb-flow].is-lb-flow-window {
    position: fixed;
    inset: 0;
    z-index: 1040;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    flex: none;
    margin: 0;
    display: flex;
    flex-direction: column;
    background: var(--card, #fff);
}

.lb-flow-stage:fullscreen,
.lb-flow-stage:-webkit-full-screen,
[data-lb-flow]:fullscreen,
[data-lb-flow]:-webkit-full-screen {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--card, #fff);
}

.lb-flow-stage.is-lb-flow-window .fc-stage,
[data-lb-flow].is-lb-flow-window .fc-stage,
.lb-flow-stage:fullscreen .fc-stage,
.lb-flow-stage:-webkit-full-screen .fc-stage,
[data-lb-flow]:fullscreen .fc-stage,
[data-lb-flow]:-webkit-full-screen .fc-stage {
    border-radius: 0;
}

.modal-dialog.lb-reg-pop {
    max-width: 400px;
}

.lb-tab-coin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 50%;
    background: var(--bs-danger);
    color: #fff;
    font-size: 0.55rem;
    line-height: 1;
    flex-shrink: 0;
}

.lb-section-body .collapsing {
    transition: height 0.7s ease;
}

.lb-section-body .lr-comments-toggle {
    flex-shrink: 0;
}

.lb-section-body .lr-comments-toggle[aria-expanded="true"] {
    color: #fff;
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.lr-comment-body {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.lb-read-eye {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--bs-secondary, #6c757d);
    line-height: 1;
    flex-shrink: 0;
    cursor: pointer;
}

.lb-read-eye.is-seen {
    color: var(--bs-success, #198754);
}

.lb-read-eye.is-bookmark {
    color: var(--bs-danger, #dc3545);
}

.lb-read-badge-slot:empty {
    display: none;
}

.lb-read-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.15rem;
    height: 1.15rem;
    padding: 0 0.3rem;
    border-radius: 999px;
    background: var(--danger, var(--bs-danger, #dc3545));
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1;
    flex-shrink: 0;
}

.lb-sec-thumb-hit {
    flex: 0 0 4.5rem;
    width: 4.5rem;
}

.lb-bookmark-lead {
    flex: 0 1 16rem;
    min-width: 9rem;
    align-self: center;
}

.lb-bookmark-index {
    flex: 0 0 auto;
    min-width: 2.5rem;
    font-size: 4.5rem;
    font-weight: 400;
    line-height: 0.85;
    color: var(--bs-gray-400, #ced4da);
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.lb-bookmark-place {
    min-width: 0;
}

.lb-bookmark-note {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 4.75rem;
    resize: none;
}

.lb-bookmark-acts {
    flex: 0 0 8.5rem;
    align-self: center;
}

.lb-bookmark-acts .pg-pop-form {
    width: 100%;
}

.lb-bookmark-menu-host,
.lb-chapter-pop-host {
    position: absolute;
    width: 0;
    height: 0;
    overflow: visible;
}

.lb-bookmark-menu-host > .pg-pop-form,
.lb-chapter-pop-host > .pg-pop-form {
    display: block;
    width: 0;
    height: 0;
    overflow: visible;
}

.lb-chapter-pop-body {
    min-height: 0;
}

.lb-bookmark-menu-list > .lb-bookmark-menu-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.lb-bookmark-menu-index {
    flex: 0 0 2rem;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--bs-gray-500, #adb5bd);
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.lb-bookmark-menu-note {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: pre-wrap;
}

.lb-ai-place .accordion-item,
.lb-ai-place .accordion-button,
.lb-ai-place .accordion-collapse {
    border-radius: 0;
}

.lb-ai-place .accordion-button {
    padding: 0.7rem 1rem;
    background: transparent;
    color: inherit;
    box-shadow: none;
}

.lb-ai-place .accordion-button:not(.collapsed) {
    background: var(--bs-tertiary-bg);
    color: inherit;
    box-shadow: inset 0 -1px 0 var(--bs-border-color);
}

.lb-ai-place .accordion-button:focus {
    box-shadow: none;
}

.lb-ai-place .list-group-item {
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
}

.lb-ai-place__nest {
    border-bottom: 1px solid var(--bs-border-color);
}

.lb-ai-place__nest .accordion-item {
    border: 0;
    background: transparent;
}

.lb-ai-place__nest .accordion-body {
    background: var(--bs-tertiary-bg);
}

.lb-ai-place__child {
    padding-left: 1.75rem;
    background: transparent;
}

/* Grok Link card. Measurements from Script Hosting .sh-mu, renamed lb-mu, scoped to this pane. */

#lbGrokPane .lb-mu {
    --mu-primary: #5954e8;
    --mu-primary-hover: #4842ce;
    --mu-primary-light: #f0efff;
    --mu-bg: #ffffff;
    --mu-panel: #f8f9fc;
    --mu-line: #e3e7f0;
    --mu-text: #273044;
    --mu-muted: #7c8597;
    --mu-green: #12865e;
    --mu-red: #dc4257;
    --mu-soft-line: #dfddff;
    --mu-input-line: #dce1ec;
    --mu-head-a: #f2f1ff;
    --mu-head-b: #ffffff;
    --mu-ok-bg: #e9f8f0;
    --mu-ok-line: #c9ebda;
    --mu-danger-line: #f0c9d0;
    --mu-danger-bg: #fff0f2;
    --mu-btn-ink: #586175;
    --mu-btn-hover: #f1f2f8;
    --mu-shadow: 0 4px 18px rgba(30, 42, 80, 0.05);
    width: 100%;
    font-size: 15px;
    line-height: 1.45;
    color: var(--mu-text);
}

#lbGrokPane .lb-mu,
#lbGrokPane .lb-mu * {
    box-sizing: border-box;
}

#lbGrokPane .lb-mu-card {
    background: var(--mu-bg);
    border: 1px solid var(--mu-line);
    border-radius: 14px;
    box-shadow: var(--mu-shadow);
}

#lbGrokPane .lb-mu-header {
    background: linear-gradient(110deg, var(--mu-head-a) 0%, var(--mu-head-b) 75%);
    border-bottom: 1px solid var(--mu-line);
    border-radius: 14px 14px 0 0;
    padding: 18px 22px;
}

#lbGrokPane .lb-mu-header-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

#lbGrokPane .lb-mu-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

#lbGrokPane .lb-mu-icon {
    flex: 0 0 50px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--mu-primary);
    color: #fff;
    font-size: 22px;
    font-weight: 800;
}

#lbGrokPane .lb-mu-eyebrow {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
    color: var(--mu-primary);
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

#lbGrokPane .lb-mu-title {
    margin: 4px 0 2px;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.25;
    color: var(--mu-text);
}

#lbGrokPane .lb-mu-section-sub,
#lbGrokPane .lb-mu-hint {
    margin: 0;
    color: var(--mu-muted);
    font-size: 13px;
}

#lbGrokPane .lb-mu-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--mu-ok-bg);
    border: 1px solid var(--mu-ok-line);
    color: var(--mu-green);
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: none;
}

#lbGrokPane .lb-mu-status::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

#lbGrokPane .lb-mu-status-off {
    background: var(--mu-danger-bg);
    border-color: var(--mu-danger-line);
    color: var(--mu-red);
}

#lbGrokPane .lb-mu-time {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    background: var(--mu-bg);
    border: 1px solid var(--mu-line);
    padding: 8px 16px;
    min-width: 168px;
    border-radius: 10px;
}

#lbGrokPane .lb-mu-time small {
    color: var(--mu-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 11px;
    font-weight: 800;
}

#lbGrokPane .lb-mu .lb-group-clock {
    color: var(--mu-text);
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 0.04em;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
    padding: 0;
    border: 0;
    background: transparent;
}

#lbGrokPane .lb-mu-body {
    padding: 20px 22px;
}

#lbGrokPane .lb-mu-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
    gap: 22px;
    align-items: start;
}

#lbGrokPane .lb-mu-col {
    min-width: 0;
}

#lbGrokPane .lb-mu-section-head {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

#lbGrokPane .lb-mu-section-title {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
}

#lbGrokPane .lb-mu-section-sub {
    margin-top: 3px;
}

#lbGrokPane .lb-mu-panel {
    background: var(--mu-bg);
    border: 1px solid var(--mu-line);
    border-radius: 12px;
}

#lbGrokPane .lb-mu-connect {
    padding: 16px;
    background: var(--mu-panel);
}

#lbGrokPane .lb-mu-time-panel {
    margin-top: 16px;
}

#lbGrokPane .lb-mu .progress,
#lbGrokPane .lb-mu .lb-mu-progress {
    height: 2rem;
    margin-top: 4px;
    background: var(--mu-primary-light);
    border-radius: 999px;
    overflow: hidden;
}

#lbGrokPane .lb-mu .progress-bar {
    background: var(--mu-primary);
}

#lbGrokPane .lb-grok-copy {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
    background: var(--mu-primary-light);
    border-color: var(--mu-soft-line);
}

#lbGrokPane .lb-grok-copy .lb-mu-section-sub {
    margin-top: 4px;
}

#lbGrokPane .lb-grok-copy .lb-mu-btn {
    width: 100%;
    min-height: 46px;
    font-size: 15px;
}

#lbGrokPane .lb-grok-hours.input-group {
    display: flex;
    flex-flow: row nowrap;
    align-items: stretch;
    width: 100%;
}

#lbGrokPane .lb-grok-hours > .form-select {
    flex: 0 0 5.5rem;
    width: 5.5rem;
    max-width: 5.5rem;
    min-width: 0;
    text-align: center;
    background: var(--mu-bg);
    color: var(--mu-text);
    border-color: var(--mu-input-line);
}

#lbGrokPane .lb-grok-hours > .btn {
    flex: 1 1 auto;
    width: auto;
    white-space: nowrap;
}

#lbGrokPane .lb-mu-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    border-radius: 8px;
    border: 1px solid var(--mu-line);
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
    background: var(--mu-bg);
    color: var(--mu-btn-ink);
    text-decoration: none;
    cursor: pointer;
}

#lbGrokPane .lb-mu-btn:hover {
    background: var(--mu-btn-hover);
    color: var(--mu-btn-ink);
}

#lbGrokPane .lb-mu-btn:focus-visible {
    outline: 2px solid var(--mu-primary);
    outline-offset: 2px;
}

#lbGrokPane .lb-mu-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

#lbGrokPane .lb-mu-btn-primary {
    background: var(--mu-primary);
    color: #fff;
    border-color: var(--mu-primary);
}

#lbGrokPane .lb-mu-btn-primary:hover {
    background: var(--mu-primary-hover);
    color: #fff;
}

#lbGrokPane .lb-mu-btn.is-off {
    background: var(--mu-danger-bg);
    color: var(--mu-red);
    border-color: var(--mu-danger-line);
}

html[data-theme="dark"] #lbGrokPane .lb-mu {
    --mu-primary: #9b97ff;
    --mu-primary-hover: #b2aeff;
    --mu-primary-light: #2c2a52;
    --mu-bg: var(--card, #1b2030);
    --mu-panel: #141824;
    --mu-line: var(--line, #2c3348);
    --mu-text: var(--text, #e7eaf3);
    --mu-muted: #9aa3b8;
    --mu-green: #3dbe8b;
    --mu-red: #ff6b80;
    --mu-soft-line: #3d3a6e;
    --mu-input-line: #3a4258;
    --mu-head-a: #262348;
    --mu-head-b: var(--card, #1b2030);
    --mu-ok-bg: #143028;
    --mu-ok-line: #1f5a42;
    --mu-danger-line: #6a3140;
    --mu-danger-bg: #3a1c24;
    --mu-btn-ink: #d5dae6;
    --mu-btn-hover: #2a3144;
    --mu-shadow: none;
}

@media (max-width: 1150px) {
    #lbGrokPane .lb-mu-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 700px) {
    #lbGrokPane .lb-mu-header-layout,
    #lbGrokPane .lb-mu-time {
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    #lbGrokPane .lb-mu-body,
    #lbGrokPane .lb-mu-header {
        padding: 14px;
    }
}

/* Library Framework */
#lb-lf-live,
#lb-lf-read {
    min-height: 12rem;
}

.lb-lf-ph {
    display: none;
}

#lb-lf-live.is-reloading > .lb-lf-ph,
#lb-lf-live.htmx-request > .lb-lf-ph,
#lb-lf-read.is-reloading > .lb-lf-ph,
#lb-lf-read.htmx-request > .lb-lf-ph {
    display: flex !important;
}

a[data-lb-lf-nav] {
    position: relative;
}

a[data-lb-lf-nav] > .htmx-indicator {
    position: absolute;
    right: 8px;
    top: 50%;
    margin-top: -0.55em;
    line-height: 1;
    pointer-events: none;
}

a[data-lb-lf-nav].is-warming .htmx-indicator,
a[data-lb-lf-nav].htmx-request .htmx-indicator {
    opacity: 1;
}

.lb-lf-list {
    max-height: min(70vh, 36rem);
    overflow-x: hidden;
    overflow-y: auto;
}

.lb-lf-list__row {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    overflow: hidden;
}

.lb-lf-list__row.is-active {
    border-color: var(--gw);
    background: color-mix(in srgb, var(--gw) 12%, transparent);
}

.lb-lf-list__side {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    gap: 8px;
    flex: 1 1 9.5rem;
    min-width: 9.5rem;
    padding: 8px 8px 8px 0;
}

.lb-lf-list__badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 4px;
}

.lb-lf-list__item {
    display: flex;
    flex: 1 1 auto;
    align-items: flex-start;
    min-width: 0;
    gap: 8px;
    padding: 8px 12px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--text);
    text-decoration: none;
}

.lb-lf-code-fill {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.lb-lf-code-fill > .lb-lf-pane:not(.d-none),
.lb-lf-code-fill > .ui-monaco,
.lb-lf-pane > .ui-monaco {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
}

.lb-lf-code-fill > .lb-lf-pane.d-none {
    display: none;
}

.lb-lf-view {
    min-height: 24rem;
    border: 1px solid var(--line);
    border-radius: 0.375rem;
    overflow: hidden;
    background: var(--card);
}

.lb-lf-view .lb-lf-preview {
    display: block;
    width: 100%;
    min-height: 24rem;
    border: 0;
}

#lb-lf-editor .lb-lf-code-fill {
    min-height: 24rem;
}

.lb-lf-wait {
    opacity: 0.55;
}

#lbLfImportDlg .modal-content,
[id$="lbLfImportDlg"] .modal-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100%;
    overflow: hidden;
}

#lbLfImportDlg .modal-content > form,
[id$="lbLfImportDlg"] .modal-content > form {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    max-height: 100%;
    overflow: hidden;
}

#lbLfImportDlg .modal-header,
#lbLfImportDlg .modal-footer,
[id$="lbLfImportDlg"] .modal-header,
[id$="lbLfImportDlg"] .modal-footer {
    flex: 0 0 auto;
}

#lbLfImportDlg .modal-body,
[id$="lbLfImportDlg"] .modal-body {
    min-height: 0;
    flex: 1 1 auto;
    overflow-x: hidden;
    overflow-y: auto;
}

#lbLfImportDlg .lb-lf-body,
#lbLfImportDlg [data-lb-lf],
#lbLfImportDlg #lb-lf-live,
#lbLfImportDlg #lb-lf-stage,
#lbLfImportDlg #lb-lf-read,
#lbLfImportDlg #lb-lf-editor,
#lbLfImportDlg #lb-lf-editor > .orbit-md--fill,
#lbLfImportDlg .lb-lf-list,
#lbLfImportDlg .sidebar__list,
[id$="lbLfImportDlg"] .lb-lf-body,
[id$="lbLfImportDlg"] [data-lb-lf],
[id$="lbLfImportDlg"] #lb-lf-live,
[id$="lbLfImportDlg"] #lb-lf-stage,
[id$="lbLfImportDlg"] #lb-lf-read,
[id$="lbLfImportDlg"] #lb-lf-editor,
[id$="lbLfImportDlg"] .lb-lf-list,
[id$="lbLfImportDlg"] .sidebar__list {
    flex: none;
    height: auto;
    max-height: none;
    overflow: visible;
}

#lbLfImportDlg .lb-lf-view,
[id$="lbLfImportDlg"] .lb-lf-view {
    height: auto;
    min-height: 24rem;
    overflow: hidden;
}

#lbLfImportDlg .lb-lf-view .lb-lf-preview,
[id$="lbLfImportDlg"] .lb-lf-view .lb-lf-preview {
    flex: none;
    width: 100%;
    height: auto;
    min-height: 24rem;
}

@media (min-width: 992px) {
    [data-temp-module="LibraryRepository"].pg-page--fill .lb-lf-body {
        flex: none;
        height: auto;
        max-height: none;
        min-height: 0;
        overflow: visible;
    }

    [data-temp-module="LibraryRepository"].pg-page--fill [data-lb-lf],
    [data-temp-module="LibraryRepository"].pg-page--fill #lb-lf-live,
    [data-temp-module="LibraryRepository"].pg-page--fill #lb-lf-stage,
    [data-temp-module="LibraryRepository"].pg-page--fill #lb-lf-stage > [class*="col-"],
    [data-temp-module="LibraryRepository"].pg-page--fill #lb-lf-stage .row,
    [data-temp-module="LibraryRepository"].pg-page--fill #lb-lf-read,
    [data-temp-module="LibraryRepository"].pg-page--fill #lb-lf-editor {
        min-width: 0;
    }

    [data-temp-module="LibraryRepository"].pg-page--fill #lb-lf-live,
    [data-temp-module="LibraryRepository"].pg-page--fill #lb-lf-read,
    [data-temp-module="LibraryRepository"].pg-page--fill #lb-lf-editor,
    [data-temp-module="LibraryRepository"].pg-page--fill [data-lb-lf] > [class*="col-"],
    [data-temp-module="LibraryRepository"].pg-page--fill #lb-lf-stage > [class*="col-"],
    [data-temp-module="LibraryRepository"].pg-page--fill #lb-lf-stage .row > [class*="col-"] {
        display: flex;
        flex-direction: column;
    }

    [data-temp-module="LibraryRepository"].pg-page--fill [data-lb-lf],
    [data-temp-module="LibraryRepository"].pg-page--fill #lb-lf-stage,
    [data-temp-module="LibraryRepository"].pg-page--fill #lb-lf-stage > [class*="col-"] > .row,
    [data-temp-module="LibraryRepository"].pg-page--fill [data-lb-lf] > [class*="col-"] > .d-flex,
    [data-temp-module="LibraryRepository"].pg-page--fill #lb-lf-stage > [class*="col-"] > .d-flex,
    [data-temp-module="LibraryRepository"].pg-page--fill #lb-lf-stage .row > [class*="col-"] > .d-flex,
    [data-temp-module="LibraryRepository"].pg-page--fill #lb-lf-read,
    [data-temp-module="LibraryRepository"].pg-page--fill #lb-lf-editor,
    [data-temp-module="LibraryRepository"].pg-page--fill #lb-lf-editor > .lb-lf-code-fill,
    [data-temp-module="LibraryRepository"].pg-page--fill #lb-lf-editor > .orbit-md--fill,
    [data-temp-module="LibraryRepository"].pg-page--fill #lb-lf-editor > .lb-lf-view {
        flex: 1 0 auto;
    }

    [data-temp-module="LibraryRepository"].pg-page--fill [data-lb-lf] .lb-lf-list {
        flex: 1 0 auto;
        max-height: none;
        overflow: visible;
    }

    [data-temp-module="LibraryRepository"].pg-page--fill [data-lb-lf] .sidebar__list {
        flex: 0 0 auto;
        align-content: start;
        max-height: none;
        overflow: visible;
    }

    [data-temp-module="LibraryRepository"].pg-page--fill #lb-lf-editor .lb-lf-code-fill {
        min-height: 0;
    }

    [data-temp-module="LibraryRepository"].pg-page--fill #lb-lf-editor > .orbit-md--fill {
        flex: none;
        height: auto;
        max-height: none;
        min-height: 0;
        overflow: visible;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: var(--card);
    }

    [data-temp-module="LibraryRepository"].pg-page--fill #lb-lf-editor .ui-monaco--fill,
    [data-temp-module="LibraryRepository"].pg-page--fill #lb-lf-editor .ui-monaco--fill .ui-monaco__chrome,
    [data-temp-module="LibraryRepository"].pg-page--fill #lb-lf-editor .lb-lf-pane:not(.d-none) {
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
        min-height: 0;
        height: auto;
    }

    [data-temp-module="LibraryRepository"].pg-page--fill #lb-lf-editor .ui-monaco--fill .ui-monaco__host {
        flex: 1 1 auto;
        min-height: 0;
        height: auto !important;
    }
}

.um-dash-canvas {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius);
}

.um-dash-canvas--glass {
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.um-dash-canvas--transparent {
    background-color: transparent;
}

/* Flow Canvas light board: stage #f4f6f9 + `.fc-board` dots. Not the picker color. */
.um-dash-canvas--light_grid {
    color: #1e293b;
    background-color: #f4f6f9;
    background-image: radial-gradient(circle at 1px 1px, rgba(15, 23, 42, 0.16) 1px, transparent 0);
    background-size: 24px 24px;
    background-position: 0 0;
    background-repeat: repeat;
}

/* Flow Canvas dark board: stage #0b0d12 + `.fc-board` dots. Not the picker color. */
.um-dash-canvas--dark_grid {
    color: #e8eaed;
    background-color: #0b0d12;
    background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.06) 1px, transparent 0);
    background-size: 24px 24px;
    background-position: 0 0;
    background-repeat: repeat;
}

html[data-theme] .um-dash-canvas--light_grid .um-dash-tile__label,
html[data-theme] .um-dash-canvas--light_grid .um-dash-section__title {
    color: #1e293b;
    text-shadow: none;
}

html[data-theme] .um-dash-canvas--light_grid .um-dash-section__sub,
html[data-theme] .um-dash-canvas--light_grid .um-dash-card__sub {
    color: rgba(30, 41, 59, 0.72);
}

html[data-theme] .um-dash-canvas--light_grid .um-dash-tile__face,
html[data-theme] .um-dash-canvas--light_grid .um-dash-tile:hover .um-dash-tile__face,
html[data-theme] .um-dash-canvas--light_grid .um-dash-tile:focus-visible .um-dash-tile__face {
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

html[data-theme] .um-dash-canvas--light_grid .um-dash-card,
html[data-theme] .um-dash-canvas--light_grid .um-dash-card:hover {
    background: #fff;
    border-color: rgba(15, 23, 42, 0.12);
    color: #1e293b;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

html[data-theme] .um-dash-canvas--light_grid .um-dash-section,
html[data-theme] .um-dash-canvas--light_grid .um-dash-section--danger,
html[data-theme] .um-dash-canvas--light_grid .um-dash-group,
html[data-theme] .um-dash-canvas--light_grid .um-dash-group--danger {
    background: linear-gradient(160deg, #f8fafc 0%, #fff 72%);
    border-color: rgba(71, 85, 105, 0.45);
    color: #475569;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

html[data-theme] .um-dash-canvas--dark_grid .um-dash-tile__label,
html[data-theme] .um-dash-canvas--dark_grid .um-dash-section__title {
    color: #e8eaed;
    text-shadow: none;
}

html[data-theme] .um-dash-canvas--dark_grid .um-dash-section__sub,
html[data-theme] .um-dash-canvas--dark_grid .um-dash-card__sub {
    color: rgba(232, 234, 237, 0.72);
}

html[data-theme] .um-dash-canvas--dark_grid .um-dash-tile__face,
html[data-theme] .um-dash-canvas--dark_grid .um-dash-tile:hover .um-dash-tile__face,
html[data-theme] .um-dash-canvas--dark_grid .um-dash-tile:focus-visible .um-dash-tile__face {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

html[data-theme] .um-dash-canvas--dark_grid .um-dash-card,
html[data-theme] .um-dash-canvas--dark_grid .um-dash-card:hover {
    background: #161a22;
    border-color: rgba(255, 255, 255, 0.12);
    color: #e8eaed;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

html[data-theme] .um-dash-canvas--dark_grid .um-dash-section,
html[data-theme] .um-dash-canvas--dark_grid .um-dash-section--danger,
html[data-theme] .um-dash-canvas--dark_grid .um-dash-group,
html[data-theme] .um-dash-canvas--dark_grid .um-dash-group--danger {
    background: linear-gradient(160deg, #1e2530 0%, #161a22 70%);
    border-color: rgba(148, 163, 184, 0.55);
    color: #cbd5e1;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.um-dash-grid {
    display: grid;
    grid-template-columns: repeat(var(--um-dash-cols, 6), minmax(0, 1fr));
    grid-template-rows: repeat(var(--um-dash-rows, 4), auto);
    --um-dash-row: 7.25rem;
    --um-dash-gap-y: 0.65rem;
    --um-group-head: calc(var(--um-dash-row) * 0.5);
    gap: var(--um-dash-gap-y) 0.35rem;
    width: 100%;
    height: auto;
    align-content: start;
    flex: 0 1 auto;
    min-height: 12rem;
}

/* Narrow canvas: the flow script repacks tiles. Empty cells stay out of that grid. */
.um-dash-grid[data-um-dash-flow="1"] .um-dash-cell--empty {
    display: none;
}

.um-dash-cell--empty {
    min-height: var(--um-dash-row, 7.25rem);
    border: 0;
    background: transparent;
}

.um-dash-grid[data-tile-size="sm"] {
    --um-dash-row: 5.75rem;
}

.um-dash-grid[data-tile-size="lg"] {
    --um-dash-row: 8.75rem;
}

.um-dash-grid .um-dash-cell--title {
    min-height: calc(var(--um-dash-row, 7.25rem) * 0.5);
}

.um-dash-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.4rem;
    min-width: 0;
    padding: 0.15rem 0.2rem 0.25rem;
    border: 0;
    background: transparent;
    color: var(--text);
    text-decoration: none;
    text-align: center;
}

.um-dash-tile:hover,
.um-dash-tile:focus,
.um-dash-tile:focus-visible {
    color: var(--text);
    text-decoration: none;
    background: transparent;
}

.um-dash-tile__face {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 95px;
    height: 95px;
    border-radius: 16px;
    background: linear-gradient(
        135deg,
        var(--um-tile-accent),
        color-mix(in srgb, var(--um-tile-accent) 38%, #312e81)
    );
    box-shadow: 0 4px 14px color-mix(in srgb, var(--um-tile-accent) 38%, transparent);
    color: #fff;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.um-dash-tile:hover .um-dash-tile__face,
.um-dash-tile:focus-visible .um-dash-tile__face {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px color-mix(in srgb, var(--um-tile-accent) 48%, transparent);
}

.um-dash-tile__label {
    display: block;
    max-width: 95px;
    overflow: hidden;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text);
    text-shadow: 0 1px 2px color-mix(in srgb, var(--card) 70%, transparent);
    word-break: break-word;
}

.um-dash-icon-preview {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 12px;
}

.um-dash-tile__face > img.um-dash-tile__upload,
.um-dash-section__ico > img.um-dash-tile__upload,
.um-dash-group__ico > img.um-dash-tile__upload,
.um-dash-card__ico > img.um-dash-tile__upload {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.um-dash-tile__icon {
    font-size: 2.1rem;
    line-height: 1;
    color: #fff;
    filter: drop-shadow(0 1px 2px color-mix(in srgb, #000 25%, transparent));
}

.um-dash-tile__face--user {
    overflow: hidden;
    border-radius: 50%;
    background: color-mix(in srgb, var(--card) 72%, var(--um-tile-accent));
    color: var(--text);
}

.um-dash-tile__avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.um-dash-tile__avatar-fallback {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

html[data-theme] .um-dash-tile__face--user,
html[data-theme] .um-dash-tile:hover .um-dash-tile__face--user,
html[data-theme] .um-dash-tile:focus-visible .um-dash-tile__face--user,
html[data-theme] .um-dash-canvas--light_grid .um-dash-tile__face--user,
html[data-theme] .um-dash-canvas--dark_grid .um-dash-tile__face--user,
html[data-theme] .um-dash-canvas--light_grid .um-dash-tile:hover .um-dash-tile__face--user,
html[data-theme] .um-dash-canvas--dark_grid .um-dash-tile:hover .um-dash-tile__face--user,
html[data-theme] .um-dash-canvas--light_grid .um-dash-tile:focus-visible .um-dash-tile__face--user,
html[data-theme] .um-dash-canvas--dark_grid .um-dash-tile:focus-visible .um-dash-tile__face--user {
    background: color-mix(in srgb, var(--card) 72%, var(--um-tile-accent));
    box-shadow: none;
    color: var(--text);
}

.um-dash-grid[data-tile-size="sm"] .um-dash-tile__face {
    width: 72px;
    height: 72px;
    border-radius: 14px;
}

.um-dash-grid[data-tile-size="sm"] .um-dash-tile__icon {
    font-size: 1.6rem;
}

.um-dash-grid[data-tile-size="sm"] .um-dash-tile__avatar-fallback {
    font-size: 1.45rem;
}

.um-dash-grid[data-tile-size="sm"] .um-dash-tile__label {
    max-width: 72px;
    font-size: 0.7rem;
}

.um-dash-grid[data-tile-size="lg"] .um-dash-tile__face {
    width: 112px;
    height: 112px;
    border-radius: 18px;
}

.um-dash-grid[data-tile-size="lg"] .um-dash-tile__icon {
    font-size: 2.5rem;
}

.um-dash-grid[data-tile-size="lg"] .um-dash-tile__avatar-fallback {
    font-size: 2.35rem;
}

.um-dash-grid[data-tile-size="lg"] .um-dash-tile__label {
    max-width: 112px;
}

.um-dash-grid[data-tile-size="sm"] .um-dash-tile__face--user,
.um-dash-grid[data-tile-size="lg"] .um-dash-tile__face--user,
.um-dash-tile-wrap--in-group .um-dash-tile__face--user,
.um-dash-tile-wrap--in-head .um-dash-tile__face--user {
    border-radius: 50%;
}

.um-dash-tile-wrap--in-group .um-dash-tile__face,
.um-dash-tile-wrap--in-head .um-dash-tile__face {
    width: calc(95px * 0.75);
    height: calc(95px * 0.75);
}

.um-dash-tile-wrap--in-group .um-dash-tile__icon,
.um-dash-tile-wrap--in-head .um-dash-tile__icon {
    font-size: calc(2.1rem * 0.75);
}

.um-dash-tile-wrap--in-group .um-dash-tile__label,
.um-dash-tile-wrap--in-head .um-dash-tile__label {
    max-width: calc(95px * 0.75);
}

.um-dash-grid[data-tile-size="sm"] .um-dash-tile-wrap--in-group .um-dash-tile__face,
.um-dash-grid[data-tile-size="sm"] .um-dash-tile-wrap--in-head .um-dash-tile__face {
    width: calc(72px * 0.75);
    height: calc(72px * 0.75);
}

.um-dash-grid[data-tile-size="sm"] .um-dash-tile-wrap--in-group .um-dash-tile__icon,
.um-dash-grid[data-tile-size="sm"] .um-dash-tile-wrap--in-head .um-dash-tile__icon {
    font-size: calc(1.6rem * 0.75);
}

.um-dash-grid[data-tile-size="sm"] .um-dash-tile-wrap--in-group .um-dash-tile__label,
.um-dash-grid[data-tile-size="sm"] .um-dash-tile-wrap--in-head .um-dash-tile__label {
    max-width: calc(72px * 0.75);
}

.um-dash-grid[data-tile-size="lg"] .um-dash-tile-wrap--in-group .um-dash-tile__face,
.um-dash-grid[data-tile-size="lg"] .um-dash-tile-wrap--in-head .um-dash-tile__face {
    width: calc(112px * 0.75);
    height: calc(112px * 0.75);
}

.um-dash-grid[data-tile-size="lg"] .um-dash-tile-wrap--in-group .um-dash-tile__icon,
.um-dash-grid[data-tile-size="lg"] .um-dash-tile-wrap--in-head .um-dash-tile__icon {
    font-size: calc(2.5rem * 0.75);
}

.um-dash-grid[data-tile-size="lg"] .um-dash-tile-wrap--in-group .um-dash-tile__label,
.um-dash-grid[data-tile-size="lg"] .um-dash-tile-wrap--in-head .um-dash-tile__label {
    max-width: calc(112px * 0.75);
}

html[data-theme="dark"] .um-dash-tile,
html[data-theme="light"] .um-dash-tile {
    background: transparent;
    border-color: transparent;
    color: var(--text);
}

html[data-theme="dark"] .um-dash-tile:hover,
html[data-theme="dark"] .um-dash-tile:focus,
html[data-theme="dark"] .um-dash-tile:focus-visible,
html[data-theme="light"] .um-dash-tile:hover,
html[data-theme="light"] .um-dash-tile:focus,
html[data-theme="light"] .um-dash-tile:focus-visible {
    background: transparent;
}

html[data-theme="dark"] .um-dash-tile__face {
    box-shadow: 0 4px 16px color-mix(in srgb, var(--um-tile-accent) 55%, transparent);
}

html[data-theme="light"] .um-dash-tile__face {
    box-shadow: 0 4px 14px color-mix(in srgb, var(--um-tile-accent) 32%, #000);
}

html[data-theme="dark"] .um-dash-tile:hover .um-dash-tile__face,
html[data-theme="dark"] .um-dash-tile:focus-visible .um-dash-tile__face {
    box-shadow: 0 8px 24px color-mix(in srgb, var(--um-tile-accent) 62%, transparent);
}

html[data-theme="light"] .um-dash-tile:hover .um-dash-tile__face,
html[data-theme="light"] .um-dash-tile:focus-visible .um-dash-tile__face {
    box-shadow: 0 8px 20px color-mix(in srgb, var(--um-tile-accent) 40%, #000);
}

html[data-theme="dark"] .um-dash-tile__icon,
html[data-theme="light"] .um-dash-tile__icon {
    color: #fff;
}

.pg-page[data-um-dash-locked="1"] .um-dash-chrome-btn,
.pg-page[data-um-dash-locked="1"] [data-ui-page-tools] {
    pointer-events: none;
    opacity: 0.4;
}

.pg-toolbar [data-um-dash-edit-cancel],
.lb-html-face-slot [data-um-dash-edit-cancel] {
    display: none;
}

.pg-page[data-um-dash-locked="1"] .pg-toolbar [data-um-dash-edit-cancel],
.pg-page[data-um-dash-locked="1"] .lb-html-face-slot [data-um-dash-edit-cancel] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.um-dash-tile-wrap {
    --um-tile-accent: #818cf8;
    position: relative;
    min-width: 0;
    width: max-content;
    max-width: 100%;
    display: flex;
    justify-self: center;
}

.um-dash-tile-wrap > .um-dash-tile {
    flex: 0 0 auto;
    width: auto;
}

.um-dash-tile-wrap--section,
.um-dash-tile-wrap--card,
.um-dash-tile-wrap--group {
    width: 100%;
    max-width: 100%;
    justify-self: stretch;
    align-self: stretch;
}

.um-dash-tile-wrap--section > .um-dash-section,
.um-dash-tile-wrap--card > .um-dash-card,
.um-dash-tile-wrap--group > .um-dash-group {
    width: 100%;
    min-width: 0;
}

.um-dash-tile-wrap--tool,
.um-dash-tile-wrap--library,
.um-dash-tile-wrap--network {
    width: 100%;
    max-width: 100%;
    min-height: 0;
    justify-self: stretch;
    align-self: start;
    overflow: visible;
}

.um-dash-tile-wrap--network .cd-card {
    width: 100%;
    max-width: 100%;
}

.um-dash-tile__del,
.um-dash-tile__edit {
    position: absolute;
    top: 0.25rem;
    z-index: 3;
    display: none;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    line-height: 1;
}

.um-dash-tile__edit.pg-pop-form > button {
    width: 100%;
    height: 100%;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.um-dash-tile__del {
    left: 0.25rem;
}

.um-dash-tile__edit {
    right: 0.25rem;
}

#um-dash-canvas[data-um-dash-edit="1"] .um-dash-tile-wrap--section .um-dash-tile__edit,
#um-dash-canvas[data-um-dash-edit="1"] .um-dash-tile-wrap--group .um-dash-tile__edit,
#um-dash-canvas[data-um-dash-edit="1"] .um-dash-tile-wrap--htmlcard .um-dash-tile__edit {
    right: 1.15rem;
}

.um-dash-section__resize {
    display: none;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 4;
    width: 14px;
    height: 100%;
    cursor: ew-resize;
    touch-action: none;
}

.um-dash-section__resize::after {
    content: "";
    position: absolute;
    top: 10px;
    right: 4px;
    bottom: 10px;
    width: 3px;
    border-radius: 99px;
    background: currentColor;
    opacity: 0.45;
}

#um-dash-canvas[data-um-dash-edit="1"] .um-dash-tile-wrap--section .um-dash-section__resize,
#um-dash-canvas[data-um-dash-edit="1"] .um-dash-tile-wrap--group .um-dash-section__resize,
#um-dash-canvas[data-um-dash-edit="1"] .um-dash-tile-wrap--group .um-dash-group__resize-y,
#um-dash-canvas[data-um-dash-edit="1"] .um-dash-tile-wrap--htmlcard .um-dash-section__resize,
#um-dash-canvas[data-um-dash-edit="1"] .um-dash-tile-wrap--htmlcard .um-dash-group__resize-y {
    display: block;
}

.um-dash-group__resize-y {
    display: none;
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 4;
    height: 14px;
    cursor: ns-resize;
    touch-action: none;
    pointer-events: auto;
}

.um-dash-group__resize-y::after {
    content: "";
    position: absolute;
    right: 10px;
    bottom: 4px;
    left: 10px;
    height: 3px;
    border-radius: 99px;
    background: currentColor;
    opacity: 0.45;
}

html.is-um-dash-resizing,
html.is-um-dash-resizing * {
    cursor: ew-resize !important;
    user-select: none !important;
}

html.is-um-dash-resizing-y,
html.is-um-dash-resizing-y * {
    cursor: ns-resize !important;
    user-select: none !important;
}

#um-dash-canvas[data-um-dash-edit="1"] .um-dash-tile__del,
#um-dash-canvas[data-um-dash-edit="1"] .um-dash-tile__edit {
    display: inline-flex;
}

#um-dash-canvas[data-um-dash-edit="1"] .um-dash-cell--empty {
    border: 1px dashed var(--line);
    border-radius: var(--radius);
}

/* Light board or a light Color: dark drop-zone ink. Dark board keeps the light ink. */
#um-dash-canvas.um-dash-canvas--light_grid[data-um-dash-edit="1"] .um-dash-cell--empty,
#um-dash-canvas.um-dash-canvas--pale[data-um-dash-edit="1"] .um-dash-cell--empty,
html[data-theme="light"] #um-dash-canvas.um-dash-canvas--transparent[data-um-dash-edit="1"] .um-dash-cell--empty,
html[data-theme="light"] #um-dash-canvas.um-dash-canvas--inherit[data-um-dash-edit="1"] .um-dash-cell--empty {
    border-color: rgba(15, 23, 42, 0.42);
}

#um-dash-canvas.um-dash-canvas--dark_grid[data-um-dash-edit="1"] .um-dash-cell--empty,
#um-dash-canvas.um-dash-canvas--ink[data-um-dash-edit="1"] .um-dash-cell--empty,
html[data-theme="dark"] #um-dash-canvas.um-dash-canvas--transparent[data-um-dash-edit="1"] .um-dash-cell--empty,
html[data-theme="dark"] #um-dash-canvas.um-dash-canvas--inherit[data-um-dash-edit="1"] .um-dash-cell--empty {
    border-color: rgba(255, 255, 255, 0.42);
}

.um-dash-appear__swatch {
    width: 2.5rem;
    height: 2.25rem;
    padding: 0.2rem;
    flex: 0 0 auto;
}

#um-dash-canvas[data-um-dash-edit="1"] .um-dash-cell--in-group {
    z-index: 1;
    background: transparent;
}

#um-dash-canvas[data-um-dash-edit="1"] .um-dash-tile-wrap {
    outline: 1px dashed var(--gw);
    outline-offset: 1px;
    border-radius: var(--radius);
}

#um-dash-canvas[data-um-dash-edit="1"] .um-dash-tile,
#um-dash-canvas[data-um-dash-edit="1"] .um-dash-section,
#um-dash-canvas[data-um-dash-edit="1"] .um-dash-group__head,
#um-dash-canvas[data-um-dash-edit="1"] .um-dash-card {
    cursor: grab;
    user-select: none;
}

#um-dash-canvas[data-um-dash-edit="1"] .um-dash-tile-wrap.um-dash-tile-wrap--dragging {
    opacity: 0.55;
}

#um-dash-canvas[data-um-dash-edit="1"] .um-dash-tile-wrap.um-dash-tile-wrap--dragging .um-dash-tile,
#um-dash-canvas[data-um-dash-edit="1"] .um-dash-tile-wrap.um-dash-tile-wrap--dragging .um-dash-section,
#um-dash-canvas[data-um-dash-edit="1"] .um-dash-tile-wrap.um-dash-tile-wrap--dragging .um-dash-group__head,
#um-dash-canvas[data-um-dash-edit="1"] .um-dash-tile-wrap.um-dash-tile-wrap--dragging .um-dash-card {
    cursor: grabbing;
}

#um-dash-canvas[data-um-dash-edit="1"] .um-dash-cell--empty.um-dash-cell--over {
    border-style: solid;
    border-color: var(--gw);
    background: color-mix(in srgb, var(--gw) 16%, var(--card));
}

html[data-theme="dark"] #um-dash-canvas[data-um-dash-edit="1"] .um-dash-tile-wrap {
    outline-color: var(--gw);
}

html[data-theme="light"] #um-dash-canvas[data-um-dash-edit="1"] .um-dash-tile-wrap {
    outline-color: var(--gw);
}

html[data-theme="dark"] #um-dash-canvas[data-um-dash-edit="1"] .um-dash-cell--empty.um-dash-cell--over {
    border-color: var(--gw);
    background: color-mix(in srgb, var(--gw) 20%, var(--card));
}

html[data-theme="light"] #um-dash-canvas[data-um-dash-edit="1"] .um-dash-cell--empty.um-dash-cell--over {
    border-color: var(--gw);
    background: color-mix(in srgb, var(--gw) 12%, var(--card));
}

/* Divider — OS section look, tokens not hardcoded white. */
.um-dash-section {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    min-width: 0;
    padding: 14px 16px 14px 22px;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--um-tile-accent) 22%, var(--line));
    border-radius: 14px;
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--um-tile-accent) 14%, var(--card)),
        color-mix(in srgb, var(--um-tile-accent) 6%, var(--card)) 50%,
        var(--card)
    );
    color: var(--text);
}

.um-dash-section::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    border-radius: 14px 0 0 14px;
    background: linear-gradient(
        180deg,
        var(--um-tile-accent),
        color-mix(in srgb, var(--um-tile-accent) 38%, #312e81)
    );
}

.um-dash-section__ico {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(
        135deg,
        var(--um-tile-accent),
        color-mix(in srgb, var(--um-tile-accent) 38%, #312e81)
    );
    box-shadow: 0 8px 18px color-mix(in srgb, var(--um-tile-accent) 32%, transparent);
    color: #fff;
    font-size: 1.15rem;
}

.um-dash-section__glyph {
    color: #fff;
}

.um-dash-section__txt {
    min-width: 0;
}

.um-dash-section__title {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.1;
    color: var(--text);
}

.um-dash-section__sub {
    margin-top: 3px;
    font-size: 0.82rem;
    color: color-mix(in srgb, var(--text) 62%, var(--card));
}

.um-dash-section--danger {
    border-color: color-mix(in srgb, #dc2626 32%, var(--line));
    background: linear-gradient(
        135deg,
        color-mix(in srgb, #dc2626 12%, var(--card)),
        color-mix(in srgb, #dc2626 4%, var(--card))
    );
}

.um-dash-section--danger::before {
    background: linear-gradient(180deg, #f87171, #dc2626);
}

.um-dash-section--danger .um-dash-section__ico {
    background: linear-gradient(135deg, #f87171, #dc2626);
    box-shadow: 0 8px 18px color-mix(in srgb, #dc2626 32%, transparent);
}

.um-dash-section--danger .um-dash-section__title {
    color: #dc2626;
}

.um-dash-tile-wrap--title-row:not(.um-dash-tile-wrap--group) {
    min-height: 0;
    height: 100%;
    overflow: hidden;
}

.um-dash-tile-wrap--title-row .um-dash-section {
    height: 100%;
    min-height: 0;
    gap: 8px;
    padding: 0 12px 0 16px;
}

.um-dash-tile-wrap--title-row .um-dash-section__ico {
    width: 1.25rem;
    height: 1.25rem;
    font-size: 0.7rem;
    box-shadow: none;
}

/* Slim divider matches the group title track: half a grid row, same icon and type. */
.um-dash-tile-wrap--slim {
    align-self: start;
    height: var(--um-group-head, calc(var(--um-dash-row, 7.25rem) * 0.5));
    min-height: 0;
}

.um-dash-tile-wrap--slim .um-dash-section,
.um-dash-tile-wrap--slim.um-dash-tile-wrap--title-row .um-dash-section {
    height: 100%;
    min-height: 0;
    gap: 8px;
    padding: 0 12px 0 16px;
}

.um-dash-tile-wrap--slim .um-dash-section__ico,
.um-dash-tile-wrap--slim.um-dash-tile-wrap--title-row .um-dash-section__ico {
    width: 23px;
    height: 23px;
    font-size: 0.68rem;
    box-shadow: 0 4px 10px color-mix(in srgb, var(--um-tile-accent) 32%, transparent);
}

.um-dash-tile-wrap--slim .um-dash-section__txt {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 1px;
    min-width: 0;
}

.um-dash-tile-wrap--slim .um-dash-section__title {
    min-width: 0;
    overflow: hidden;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.um-dash-tile-wrap--slim .um-dash-section__sub {
    min-width: 0;
    margin-top: 0;
    overflow: hidden;
    font-size: 0.68rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

html[data-theme="dark"] .um-dash-section--danger .um-dash-section__title {
    color: #f87171;
}

html[data-theme="dark"] .um-dash-section,
html[data-theme="light"] .um-dash-section,
html[data-theme="dark"] .um-dash-group,
html[data-theme="light"] .um-dash-group {
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--um-tile-accent) 14%, var(--card)),
        var(--card)
    );
    border-color: color-mix(in srgb, var(--um-tile-accent) 22%, var(--line));
    color: var(--text);
}

html[data-theme="dark"] .um-dash-section--danger,
html[data-theme="light"] .um-dash-section--danger,
html[data-theme="dark"] .um-dash-group--danger,
html[data-theme="light"] .um-dash-group--danger {
    background: linear-gradient(
        135deg,
        color-mix(in srgb, #dc2626 12%, var(--card)),
        var(--card)
    );
}

/* Group header is the title track: half a grid row, so the cells inside match the board. */
.um-dash-tile-wrap--group {
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-self: stretch;
    justify-self: stretch;
    height: 100%;
    pointer-events: none;
}

.um-dash-tile-wrap:not(.um-dash-tile-wrap--group) {
    z-index: 2;
}

.um-dash-tile-wrap--group .um-dash-tile__del,
.um-dash-tile-wrap--group .um-dash-tile__edit,
.um-dash-tile-wrap--group .um-dash-section__resize,
.um-dash-tile-wrap--group .um-dash-group__head {
    pointer-events: auto;
}

.um-dash-tile-wrap--in-head {
    box-sizing: border-box;
    pointer-events: none;
}

.um-dash-tile-wrap--in-head .um-dash-tile,
.um-dash-tile-wrap--in-head .um-dash-tile__del,
.um-dash-tile-wrap--in-head .um-dash-tile__edit {
    pointer-events: auto;
}

.um-dash-group {
    position: relative;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--um-tile-accent) 22%, var(--line));
    border-radius: 14px;
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--um-tile-accent) 14%, var(--card)),
        color-mix(in srgb, var(--um-tile-accent) 6%, var(--card)) 50%,
        var(--card)
    );
    color: var(--text);
    pointer-events: none;
}

.um-dash-group::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    border-radius: 14px 0 0 14px;
    background: linear-gradient(
        180deg,
        var(--um-tile-accent),
        color-mix(in srgb, var(--um-tile-accent) 38%, #312e81)
    );
}

.um-dash-group__head {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 8px;
    height: var(--um-group-head, calc(var(--um-dash-row, 7.25rem) * 0.5));
    min-width: 0;
    padding: 0 12px 0 16px;
    background: transparent;
}

.um-dash-group__ico {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 23px;
    height: 23px;
    border-radius: 50%;
    background: linear-gradient(
        135deg,
        var(--um-tile-accent),
        color-mix(in srgb, var(--um-tile-accent) 38%, #312e81)
    );
    box-shadow: 0 4px 10px color-mix(in srgb, var(--um-tile-accent) 32%, transparent);
    color: #fff;
    font-size: 0.68rem;
}

.um-dash-group__glyph {
    color: #fff;
}

.um-dash-group__txt {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 1px;
    min-width: 0;
}

.um-dash-group__title {
    display: block;
    min-width: 0;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--text);
}

.um-dash-group__sub {
    display: block;
    min-width: 0;
    font-size: 0.68rem;
    line-height: 1.1;
    color: color-mix(in srgb, var(--text) 62%, var(--card));
}

.um-dash-group__unseen {
    display: inline-flex;
    flex-shrink: 0;
    margin-left: auto;
}

.um-dash-group__pin {
    width: 1.5rem;
    height: 1.5rem;
    padding: 0;
    line-height: 1;
    pointer-events: auto;
}

.um-dash-video-away {
    flex-shrink: 0;
    margin: 0;
    padding: 6px 10px;
    font-size: 0.72rem;
    line-height: 1.2;
    color: color-mix(in srgb, var(--text) 72%, var(--card));
    pointer-events: none;
}

.um-dash-group > .um-dash-video-away {
    margin: 0 8px 8px 12px;
}

.um-dash-group__body--media:has(.um-dash-video-away) .um-dash-gallery {
    height: auto;
}

.um-dash-group__body {
    flex: 1 1 auto;
    min-height: 0;
    margin: 0 8px 8px;
    border: 1px solid color-mix(in srgb, var(--um-tile-accent) 22%, var(--line));
    border-radius: 10px;
    background: transparent;
}

.um-dash-group__body .um-dash-html {
    height: 100%;
    min-height: 0;
    overflow: auto;
    padding: 8px;
    pointer-events: auto;
}

.um-dash-tile-wrap--group .um-dash-gallery {
    pointer-events: auto;
}

.um-dash-group__body--media {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
}

.um-dash-group__body--posts {
    display: flex;
    flex-direction: column;
    overflow: auto;
    padding: 6px;
    pointer-events: auto;
}

.um-dash-group__body--posts:has(> .lb-cmt) {
    overflow: hidden;
}

.lb-cmt {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    height: 100%;
}

.lb-cmt-thread {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    overflow-y: auto;
}

.lb-cmt-stream {
    margin-top: auto;
}

.lb-cmt-form {
    flex-shrink: 0;
}

.lb-cmt-bubble {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem 0.9rem;
    background: color-mix(in srgb, var(--text) 5%, var(--card));
    border: 1px solid var(--line);
    border-radius: 1rem;
}

.lb-cmt-bubble__body {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.lb-cmt-replies {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-left: 2.25rem;
}

.lb-cmt-item--reply .lb-cmt-bubble {
    background: color-mix(in srgb, var(--gw) 10%, var(--card));
}

.lb-cmt-bubble:has(.lb-cmt-seen.is-unseen) {
    background: color-mix(in srgb, var(--bs-danger) 10%, var(--card));
}

.lb-cmt-author {
    color: inherit;
    text-decoration: none;
}

.lb-cmt-name {
    font-weight: 600;
}

.lb-cmt-avatar,
.lb-cmt-avatar--letter {
    width: 2.25rem;
    height: 2.25rem;
    flex: 0 0 2.25rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--text) 12%, var(--card));
    font-weight: 600;
}

.um-dash-logbook {
    min-width: 0;
    min-height: 0;
}

.um-dash-logbook__empty {
    font-size: 0.68rem;
    color: color-mix(in srgb, var(--text) 62%, var(--card));
}

.um-dash-gallery {
    flex: 1 1 auto;
    height: 100%;
    min-height: 0;
}

.um-dash-gallery--grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr));
    align-content: start;
    gap: 0.375rem;
    overflow: auto;
    padding: 0.375rem;
}

.um-dash-gallery__hit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 0;
    border: 0;
    background: color-mix(in srgb, var(--text) 6%, var(--card));
    color: var(--text);
}

.um-dash-gallery--grid .um-dash-gallery__hit {
    height: auto;
    aspect-ratio: 1;
}

.um-dash-gallery__hit img,
.um-dash-gallery__frame {
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}

.um-dash-gallery--slides {
    position: relative;
    overflow: hidden;
}

.um-dash-gallery__pick {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
    pointer-events: none;
}

.um-dash-gallery__slide {
    display: none;
    position: relative;
    height: 100%;
    min-height: 0;
}

.um-dash-gallery__pick:checked + .um-dash-gallery__slide {
    display: block;
}

.um-dash-gallery--slides .um-dash-gallery__hit,
.um-dash-gallery--single .um-dash-gallery__hit,
.um-dash-gallery--slides .um-dash-gallery__frame,
.um-dash-gallery--single .um-dash-gallery__frame {
    background: #000;
    object-fit: contain;
}

.um-dash-gallery__nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    margin: 0;
    border-radius: 999px;
    background: color-mix(in srgb, var(--card) 82%, transparent);
    color: var(--text);
    cursor: pointer;
    transform: translateY(-50%);
}

.um-dash-gallery__nav--prev {
    left: 0.35rem;
}

.um-dash-gallery__nav--next {
    right: 0.35rem;
}

#cwDashVideoFrame {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    background: #000;
}

.um-dash-tile-wrap--htmlcard {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    justify-self: stretch;
    align-self: stretch;
}

.um-dash-htmlcard {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--card);
    color: var(--text);
}

.um-dash-htmlcard > .um-dash-html {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    padding: 10px;
}

.um-dash-html img,
.um-dash-html video {
    max-width: 100%;
    height: auto;
}

.um-dash-html video {
    display: block;
}

.um-dash-group--danger {
    border-color: color-mix(in srgb, #dc2626 32%, var(--line));
    background: linear-gradient(
        135deg,
        color-mix(in srgb, #dc2626 12%, var(--card)),
        color-mix(in srgb, #dc2626 4%, var(--card))
    );
}

.um-dash-group--danger .um-dash-group__head {
    background: transparent;
}

.um-dash-group--danger .um-dash-group__body {
    border-color: color-mix(in srgb, #dc2626 32%, var(--line));
}

.um-dash-group--danger::before {
    background: linear-gradient(180deg, #f87171, #dc2626);
}

.um-dash-group--danger .um-dash-group__ico {
    background: linear-gradient(135deg, #f87171, #dc2626);
    box-shadow: 0 4px 10px color-mix(in srgb, #dc2626 32%, transparent);
}

.um-dash-group--danger .um-dash-group__title {
    color: #dc2626;
}

html[data-theme="dark"] .um-dash-group--danger .um-dash-group__title {
    color: #f87171;
}

html[data-theme] .um-dash-canvas--light_grid .um-dash-group__title {
    color: #1e293b;
}

html[data-theme] .um-dash-canvas--light_grid .um-dash-group__sub {
    color: rgba(30, 41, 59, 0.72);
}

html[data-theme] .um-dash-canvas--dark_grid .um-dash-group__head,
html[data-theme] .um-dash-canvas--light_grid .um-dash-group__head,
html[data-theme] .um-dash-canvas--dark_grid .um-dash-group--danger .um-dash-group__head {
    background: transparent;
}

html[data-theme] .um-dash-canvas--dark_grid .um-dash-group__title {
    color: #f1f5f9;
}

html[data-theme] .um-dash-canvas--dark_grid .um-dash-group__sub {
    color: rgba(241, 245, 249, 0.72);
}

html[data-theme] .um-dash-canvas--dark_grid .um-dash-group__body {
    border-color: rgba(148, 163, 184, 0.55);
}

html[data-theme] .um-dash-canvas--light_grid .um-dash-group__body {
    border-color: rgba(71, 85, 105, 0.45);
}

html[data-theme] .um-dash-canvas--light_grid .um-dash-group--danger .um-dash-group__title {
    color: #dc2626;
}

html[data-theme] .um-dash-canvas--dark_grid .um-dash-group--danger .um-dash-group__title {
    color: #f87171;
}

/* Card — OS classic card, no live counts. */
.um-dash-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--card);
    box-shadow: 0 2px 10px color-mix(in srgb, var(--text) 8%, transparent);
    color: var(--text);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.um-dash-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 22px color-mix(in srgb, var(--text) 12%, transparent);
}

.um-dash-card__head {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    color: #fff;
    background: linear-gradient(
        135deg,
        var(--um-tile-accent),
        color-mix(in srgb, var(--um-tile-accent) 38%, #312e81)
    );
}

.um-dash-card__ico {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
    font-size: 0.9rem;
}

.um-dash-card__glyph {
    color: #fff;
}

.um-dash-card__title {
    min-width: 0;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #fff;
}

.um-dash-card__body {
    flex: 1 1 auto;
    padding: 12px 14px 4px;
    min-width: 0;
}

.um-dash-card__sub {
    margin-bottom: 10px;
    font-size: 0.82rem;
    line-height: 1.4;
    color: color-mix(in srgb, var(--text) 72%, var(--card));
}

.um-dash-card__pill {
    display: inline-flex;
    max-width: 100%;
    overflow: hidden;
    padding: 2px 8px;
    border-radius: 6px;
    background: color-mix(in srgb, var(--gw) 12%, var(--card));
    color: var(--gw);
    font-size: 0.74rem;
    font-weight: 700;
    word-break: break-all;
}

.um-dash-card__actions {
    display: flex;
    align-items: center;
    padding: 10px 12px 12px;
}

.um-dash-card__open {
    flex: 1 1 auto;
    width: 100%;
    background-image: linear-gradient(135deg, #2563eb, #1d4ed8);
    border: 0;
    box-shadow: 0 4px 12px color-mix(in srgb, #2563eb 28%, transparent);
}

.um-dash-card__open:hover,
.um-dash-card__open:focus-visible {
    filter: brightness(1.06);
    color: #fff;
}

html[data-theme="dark"] .um-dash-card,
html[data-theme="light"] .um-dash-card {
    background: var(--card);
    border-color: var(--line);
    color: var(--text);
}

html[data-theme="dark"] .um-dash-card:hover {
    box-shadow: 0 10px 24px color-mix(in srgb, #000 45%, transparent);
}

html[data-theme="light"] .um-dash-card:hover {
    box-shadow: 0 10px 22px color-mix(in srgb, var(--text) 12%, transparent);
}

html[data-theme="dark"] .um-dash-card__head,
html[data-theme="light"] .um-dash-card__head {
    color: #fff;
}

html[data-theme="dark"] .um-dash-card__ico,
html[data-theme="light"] .um-dash-card__ico,
html[data-theme="dark"] .um-dash-card__glyph,
html[data-theme="light"] .um-dash-card__glyph,
html[data-theme="dark"] .um-dash-card__title,
html[data-theme="light"] .um-dash-card__title {
    color: #fff;
}

.um-dash-accent__list {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 0.5rem;
    width: 100%;
    justify-content: center;
}

.um-dash-accent__opt {
    position: relative;
    min-width: 0;
    width: 100%;
    cursor: pointer;
}

.um-dash-accent__opt input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.um-dash-accent__face {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1;
    height: auto;
    border-radius: 0.65rem;
    background: linear-gradient(
        135deg,
        var(--um-tile-accent),
        color-mix(in srgb, var(--um-tile-accent) 38%, #312e81)
    );
    box-shadow: 0 3px 10px color-mix(in srgb, var(--um-tile-accent) 38%, transparent);
    color: #fff;
}

.um-dash-accent__glyph {
    font-size: clamp(0.7rem, 1.4vw, 1rem);
    line-height: 1;
    color: #fff;
}

.um-dash-accent__opt input:checked + .um-dash-accent__face {
    outline: 2px solid var(--gw);
    outline-offset: 2px;
}

.um-dash-accent__opt input:focus-visible + .um-dash-accent__face {
    outline: 2px solid var(--gw);
    outline-offset: 2px;
}

/* Tab info stays. The scroll starts on the block under it. */
.pg-page[data-temp-module^="LibraryRepository"] .pg-tabs-track > .pg-tab-panel[data-tab-slot="current"] {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.pg-page[data-temp-module^="LibraryRepository"] .pg-tab-panel[data-tab-slot="current"] > .orbit-env,
.pg-page[data-temp-module^="LibraryRepository"] .pg-tab-panel[data-tab-slot="current"] > :has(> .pg-tab-intro) {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    overflow: hidden;
}

.pg-page[data-temp-module^="LibraryRepository"] .lb-board:has(> .pg-tab-intro) {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    overflow: hidden;
}

.pg-page[data-temp-module^="LibraryRepository"] .pg-tab-intro {
    flex: 0 0 auto;
}

.pg-page[data-temp-module^="LibraryRepository"] .lb-board:not(:has(.lb-script-stage)):not(:has(.lb-flow-stage)) > .pg-tab-intro ~ *,
.pg-page[data-temp-module^="LibraryRepository"] :has(> .pg-tab-intro):not(.lb-board):not(:has(.lb-script-stage)):not(:has(.lb-flow-stage)) > .pg-tab-intro ~ * {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
}

.pg-page[data-temp-module^="LibraryRepository"] .lb-board[data-lb-view="column"]:not(.is-lb-tabs):not(:has(.lb-script-stage)):not(:has(.lb-flow-stage)) > .pg-tab-intro ~ * {
    overflow: hidden;
}

@media (max-width: 900px) {
    .pg-page[data-temp-module^="LibraryRepository"] .pg-page__body:has(> .pg-tabs) {
        overflow: hidden;
    }

    .pg-page[data-temp-module^="LibraryRepository"] .pg-page__body:has(> .pg-tabs) > .pg-tabs,
    .pg-page[data-temp-module^="LibraryRepository"] .pg-page__body:has(> .pg-tabs) > .pg-tabs.is-overflow {
        flex: 1 1 auto;
        min-height: 0;
        height: 100%;
        grid-template-rows: auto minmax(0, 1fr);
    }

    .pg-page[data-temp-module^="LibraryRepository"] .pg-page__body:has(> .pg-tabs) > .pg-tabs.is-overflow {
        grid-template-rows: auto auto minmax(0, 1fr);
    }

    .pg-page[data-temp-module^="LibraryRepository"] .pg-tabs-viewport,
    .pg-page[data-temp-module^="LibraryRepository"] .pg-tabs-track {
        height: 100%;
        min-height: 0;
    }

    .pg-page[data-temp-module^="LibraryRepository"] .pg-tabs-track > .pg-tab-panel[data-tab-slot="current"] {
        height: 100%;
        min-height: 0;
        max-height: none;
        overflow: hidden;
    }
}

.lb-shelf-head {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}

.lb-shelf-head__mark {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 0.45rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    background: color-mix(in srgb, var(--gw, #3d4f73) 14%, var(--card, #fff));
    color: var(--gw, #3d4f73);
    font-size: 0.85rem;
}

.lb-shelf-head__name {
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.2;
    white-space: nowrap;
}

.lb-shelf-head__count {
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    background: color-mix(in srgb, var(--muted, #64748b) 18%, var(--card, #fff));
    color: var(--muted, #64748b);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
}

.lb-shelf-head__rule {
    flex: 1 1 auto;
    height: 1px;
    background: var(--line, #e2e8f0);
    min-width: 1rem;
}

.lb-shelf-fold {
    flex: 0 0 auto;
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.45rem;
    line-height: 1;
}

.lb-shelf-section:has(> .row:empty) .lb-shelf-fold {
    display: none;
}

.lb-shelf-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.lb-shelf-section > .row:empty,
#lb-shelf-grid-loose:empty {
    display: none;
}

.lb-shelf-section.is-titles .cd-card {
    gap: 0;
}

.lb-shelf-section.is-titles .cd-card__top {
    border-bottom-color: transparent;
    padding-bottom: 0;
}

.lb-shelf-section.is-titles .cd-card__tools {
    display: none;
}

.lb-shelf-section.is-titles .cd-card:not(.is-card-open) .cd-card__fold {
    grid-template-rows: 0fr;
}

.lb-shelf-picks {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
}

.lb-shelf-pick {
    width: auto;
    height: auto;
    min-height: 2rem;
    padding: 0.2rem 0.55rem;
    gap: 0.35rem;
    border-radius: 0.45rem;
    border: 1px solid var(--line, #e2e8f0);
    background: var(--card, #fff);
    color: var(--muted, #64748b);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    line-height: 1.2;
    white-space: nowrap;
}

button.lb-shelf-pick {
    cursor: pointer;
    margin: 0;
}

.lb-shelf-pick.is-on {
    background: color-mix(in srgb, var(--gw, #3d4f73) 16%, var(--card, #fff));
    color: var(--gw, #3d4f73);
    border-color: transparent;
}

.lb-shelf-editor .lb-shelf-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(16rem, 22rem) auto;
    gap: 0.75rem;
    align-items: center;
}

.lb-shelf-editor .lb-shelf-row__form {
    display: contents;
}

.lb-shelf-editor .lb-shelf-row__form > input[type="hidden"] {
    display: none;
}

.lb-shelf-editor .lb-shelf-row__tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.25rem;
}

.lb-shelf-editor .lb-shelf-row__tools .btn {
    width: 2rem;
    height: 2rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 900px) {
    .lb-shelf-editor .lb-shelf-row {
        grid-template-columns: 1fr;
    }
}

/* Transactions and Hosting Status tables: inset cells, sky-blue row hover at 10%. */
.lr-tx-table {
    --bs-table-bg: transparent;
    --bs-table-hover-bg: color-mix(in srgb, var(--bs-info, #0dcaf0) 10%, transparent);
}

.lr-tx-table > :not(caption) > * > * {
    padding: 0.7rem 1rem;
}

.lr-tx-table > thead > tr > * {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--muted, var(--bs-secondary-color));
    white-space: nowrap;
}


/* Shelf inside a module. Class names stay .sh-shelf-logbook and .script-hosting-logbook. */
.pg-page--fill:has(.sh-shelf-logbook) > .pg-page__body {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.pg-page--fill:has(.sh-shelf-logbook) > .pg-page__body > .pg-tabs {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.pg-page--fill:has(.sh-shelf-logbook) > .pg-page__body > .pg-tabs > .pg-tabs-viewport {
    flex: 1 1 auto;
    min-height: 0;
}

.sh-shelf-logbook {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 100%;
    min-height: calc(100dvh - 9.5rem);
    overflow: hidden;
}

/* Shelf rule reuses the slim dash section. Height matches the inspected 35px bar. */
.sh-shelf-logbook > .script-hosting-logbook {
    flex: 0 0 auto;
    width: 100%;
    height: 35px;
    min-height: 35px;
}

.sh-shelf-logbook__body {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sh-shelf-logbook__body > .pg-tabs {
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sh-shelf-logbook__body > .pg-tabs > .pg-tabs-viewport {
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.pg-tab-panel:has(> .sh-shelf-logbook) {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.sh-shelf-logbook .pg-tabs-track > .pg-tab-panel {
    background: var(--card);
    border: 2px solid color-mix(in srgb, var(--gw) 22%, var(--line));
    border-radius: var(--radius);
    box-shadow: none;
    align-self: stretch;
    min-height: 100%;
}

.sh-shelf-logbook .lb-item-empty.card {
    background: transparent;
    border: 0;
    box-shadow: none;
}

.sh-shelf-logbook [data-tab-slot][data-tab-loading]::before {
    background: var(--card);
}

.sh-shelf-logbook .lb-board-pane[data-sh-pane-loading] {
    position: relative;
    min-height: 8rem;
}

.sh-shelf-logbook .lb-board-pane[data-sh-pane-loading]::after {
    content: "";
    position: absolute;
    z-index: 3;
    top: 2.5rem;
    left: 50%;
    width: 28px;
    height: 28px;
    margin-left: -14px;
    border: 3px solid var(--line);
    border-top-color: var(--gw);
    border-radius: 50%;
    animation: pg-tab-spin 0.7s linear infinite;
}

.sh-shelf-logbook .pg-focus-btn,
.sh-shelf-logbook .pg-tabs-menu-btn {
    display: none;
}

.sh-shelf-logbook .pg-pills__item.is-pending {
    color: var(--muted);
}

.sh-shelf-logbook .pg-pills__item.is-pending.is-active {
    color: var(--gw-dark);
}

.sh-shelf-logbook .pg-pills__item.is-pending .pg-pills__label,
.sh-shelf-logbook .pg-pills__item.is-pending .pg-pills__icon {
    opacity: 1;
}

.sh-shelf-logbook.is-booting::after {
    content: none;
}

/* Shelf carousel stays one chapter. The page rule height:auto must not open the neighbor boards inside this card. */
.sh-shelf-logbook .pg-tabs-viewport {
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}
.sh-shelf-logbook .pg-tabs-track {
    width: 300%;
    height: 100%;
    min-height: 0;
    transform: translateX(-33.333333%);
}
.sh-shelf-logbook .pg-tabs-track > .pg-tab-panel {
    width: 33.333333%;
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}
.sh-shelf-logbook .pg-tabs-track > .pg-tab-panel:not([data-tab-slot="current"]) {
    visibility: hidden;
    pointer-events: none;
}
.sh-shelf-logbook .pg-tabs-track > .pg-tab-panel[data-tab-slot="current"] {
    visibility: visible;
    height: 100%;
    min-height: 0;
    max-height: 100%;
    overflow: auto;
}

/* Library split. The pill row stays full width. The second pane stays hidden until the button beside Full screen. */
.pg-page[data-temp-module^="LibraryRepository"] > .pg-page__body:has(> #lbDetailStage) {
    overflow: hidden;
    gap: 0;
}

#lbDetailStage {
    position: relative;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    height: 100%;
}

#lbDetailStage > .lb-split-main {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    height: 100%;
}

#lbDetailStage > .lb-split-main > .pg-tabs {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
}

#lbSplitRight[hidden],
#lbDetailStage > .lb-split-grip[hidden],
#lbDetailStage .lb-split-pin[hidden] {
    display: none !important;
}

#lbSplitRight {
    position: relative;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#lbSplitRight > .lb-split-right__body {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: auto;
}

.lb-split-pin {
    align-self: center;
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1.5px solid var(--gw);
    border-radius: 10px;
    background: transparent;
    color: var(--gw);
    cursor: pointer;
}

.lb-split-pin:hover,
.lb-split-pin:focus-visible {
    background: color-mix(in srgb, var(--gw) 12%, transparent);
}

.lb-split-pin[aria-pressed="true"] {
    background: var(--gw);
    border-color: var(--gw);
    color: #fff;
}

.lb-split-pin[aria-pressed="true"]:hover,
.lb-split-pin[aria-pressed="true"]:focus-visible {
    background: var(--gw);
}

.lb-split-pin i.fa-solid {
    width: auto;
    font-size: 1rem;
    line-height: 1;
}

#lbDetailStage > .lb-split-grip {
    position: absolute;
    z-index: 6;
    width: 8px;
    max-width: 16px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: col-resize;
    touch-action: none;
}

.lb-split-num-row {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    line-height: 1;
}

.lb-split-num {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 1.65em;
    height: 1.65em;
    border: 1.5px solid var(--gw);
    border-radius: 50%;
    background: transparent;
    color: var(--gw);
    font-size: 1em;
    font-weight: 700;
    line-height: 1;
}

#lbDetailStage > .lb-split-grip::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
    border-radius: 1px;
    background: var(--line);
}

#lbDetailStage > .lb-split-grip:hover::before,
#lbDetailStage > .lb-split-grip.is-drag::before {
    width: 3px;
    background: var(--gw);
}

body.lb-split-dragging {
    cursor: col-resize;
    user-select: none;
}

#lbDetailStage[data-lb-split="1"] .pg-tabs-viewport {
    position: relative;
}

#lbDetailStage[data-lb-split="1"] .pg-pills__item.is-lb-split-mate:not(.is-active) {
    box-shadow: inset 0 -2px 0 var(--gw);
}

@media (min-width: 901px) {
    #lbDetailStage[data-lb-split="1"] {
        display: grid;
        grid-template-columns: minmax(220px, var(--lb-split-left, 1fr)) minmax(220px, var(--lb-split-right, 1fr));
        grid-template-rows: auto minmax(0, 1fr);
        gap: 8px;
    }

    #lbDetailStage[data-lb-split="1"]:has(.pg-tabs.is-overflow) {
        grid-template-rows: auto auto minmax(0, 1fr);
    }

    #lbDetailStage[data-lb-split="1"] > .lb-split-main,
    #lbDetailStage[data-lb-split="1"] > .lb-split-main > .pg-tabs {
        display: contents;
    }

    #lbDetailStage[data-lb-split="1"] > .lb-split-main > .pg-tabs > .pg-tabs-bar {
        grid-column: 1 / -1;
        grid-row: 1;
        min-width: 0;
    }

    #lbDetailStage[data-lb-split="1"] > .lb-split-main > .pg-tabs > .pg-tabs-dots {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    #lbDetailStage[data-lb-split="1"] > .lb-split-main > .pg-tabs > .pg-tabs-viewport {
        grid-column: 1;
        grid-row: 2;
        min-width: 0;
        min-height: 0;
    }

    #lbDetailStage[data-lb-split="1"]:has(.pg-tabs.is-overflow) > .lb-split-main > .pg-tabs > .pg-tabs-viewport {
        grid-row: 3;
    }

    #lbDetailStage[data-lb-split="1"] > #lbSplitRight {
        grid-column: 2;
        grid-row: 2;
        height: 100%;
    }

    #lbDetailStage[data-lb-split="1"]:has(.pg-tabs.is-overflow) > #lbSplitRight {
        grid-row: 3;
    }
}

@media (max-width: 900px) {
    .pg-page[data-temp-module^="LibraryRepository"] > .pg-page__body:has(> #lbDetailStage[data-lb-split="1"]) {
        overflow-x: hidden;
        overflow-y: auto;
    }

    #lbDetailStage[data-lb-split="1"] {
        display: flex;
        flex-direction: column;
        height: auto;
        min-height: auto;
        gap: 8px;
    }

    #lbDetailStage[data-lb-split="1"] > .lb-split-main,
    #lbDetailStage[data-lb-split="1"] > .lb-split-main > .pg-tabs {
        display: flex;
        flex-direction: column;
        height: auto;
        min-height: 28rem;
    }

    #lbDetailStage[data-lb-split="1"] .pg-tabs-viewport,
    #lbDetailStage[data-lb-split="1"] .pg-tabs-track,
    #lbDetailStage[data-lb-split="1"] .pg-tabs-track > .pg-tab-panel[data-tab-slot="current"] {
        height: auto;
        min-height: 28rem;
        max-height: none;
        overflow: visible;
    }

    #lbDetailStage[data-lb-split="1"] > #lbSplitRight {
        min-height: 28rem;
    }

    #lbDetailStage[data-lb-split="1"] > .lb-split-grip {
        display: none !important;
    }
}

/* 265 Card Designer — card article and designer split.
   Theme uses --card, --line, --gw, --muted, --radius, --shadow.
   Served by Kernel__Module_Extra_Css when a host app is listed. */

.cd-card-list {
    max-height: min(70vh, 36rem);
    overflow-y: auto;
}

.cd-card-rail {
    width: 100%;
    max-width: 200px;
    flex: 0 0 auto;
}

.cd-card-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
}

.cd-card-stage > .cd-card {
    min-width: 500px;
}

.cd-card-list .sidebar__link,
.cd-card-list .sidebar__link:hover,
.cd-card-list .sidebar__link:focus,
.cd-card-list .sidebar__link:visited {
    min-width: 0;
    max-width: 200px;
    color: inherit;
    text-decoration: none;
}

#cdCardHost {
    position: relative;
    min-height: 12rem;
}

#cdCardHost > .cd-card-ph {
    display: none;
    position: absolute;
    inset: 0;
    background: var(--card);
}

#cdCardHost.htmx-request > .cd-card-ph {
    display: block;
}

.cd-card__row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 0 14px;
}

.cd-card__row > .cd-card__photo {
    width: 8.5rem;
    flex: 0 0 8.5rem;
    position: static;
    height: auto;
    border-radius: 0;
    background: transparent;
    font-size: inherit;
}

.cd-card__row > .cd-card__specs {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cd-card__pick {
    width: 3rem;
    height: 3rem;
    object-fit: cover;
    flex: 0 0 3rem;
}

.cd-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    min-width: 0;
}

.cd-card__top,
.cd-card__title,
.cd-card__tools,
.cd-card__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cd-card__top {
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.cd-card__title {
    min-width: 0;
    flex: 1 1 auto;
    font-size: 1.05rem;
}

.cd-card__title > .cd-card__title-link,
.cd-card__title > strong {
    min-width: 0;
    flex: 0 1 auto;
}

.cd-card__progress--title {
    flex: 1 1 7rem;
    min-width: 6.5rem;
    max-width: 11rem;
}

.cd-card.sh-id-tint {
    box-shadow: 0 12px 28px color-mix(in srgb, var(--sh-id-shadow) 42%, transparent);
}

.cd-card .pp-toolbar-avatar {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 50%;
    object-fit: cover;
}

.cd-card img.pp-toolbar-avatar {
    display: block;
}

.cd-card .pp-toolbar-avatar--letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1;
    background: var(--gw);
    color: #fff;
}

.cd-card__title strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cd-card__lead {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.8rem;
    font-weight: 400;
    line-height: 1.2;
    color: var(--muted);
}

.cd-card__title-link {
    color: inherit;
    text-decoration: none;
    min-width: 0;
}

.cd-card__headline {
    min-width: 0;
    font-size: 1rem;
    line-height: 1.3;
}

.cd-card__headline strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cd-card__foot-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    padding: 0;
    border: 0;
    appearance: none;
    background: transparent;
    box-shadow: none;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 400;
    line-height: 1.2;
    color: var(--muted);
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.cd-card__foot-link:hover,
.cd-card__foot-link:focus {
    color: var(--muted);
    text-decoration: none;
    background: transparent;
    box-shadow: none;
}

.cd-card__foot-link i {
    font-size: 0.8rem;
    line-height: 1;
}

.cd-card__main {
    display: grid;
    grid-template-columns: var(--cd-photo-w, 176px) minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.cd-card__col,
.cd-card__side {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.cd-card .cd-card__photo {
    position: relative;
    width: var(--cd-photo-w, 176px);
    height: var(--cd-photo-h, 136px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
    background: var(--line);
    color: var(--muted);
    font-size: 1.6rem;
}

.cd-spec-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
}

.cd-spec-row__form {
    display: contents;
}

.cd-spec-row__form > input[type="hidden"] {
    display: none;
}

.cd-spec-row__form--stack {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    grid-column: 1 / 3;
}

.cd-spec-row__tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.25rem;
    min-width: 8.75rem;
}

.cd-spec-row__tools .btn {
    width: 2rem;
    height: 2rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cd-spec-row--source {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) auto;
}

.cd-spec-row--source .cd-spec-row__form--stack {
    grid-column: 1 / 4;
}

.cd-spec-mode {
    flex: 0 0 auto;
}

.cd-spec-row__tools .cd-spec-mode .btn {
    width: auto;
    min-width: 3.1rem;
    height: 2rem;
    padding: 0 0.5rem;
    font-size: 0.75rem;
}

.cd-spec-row__tools > .d-flex {
    gap: 0.25rem;
}

a.cd-card__photo {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.cd-card__foot > .w-100 {
    flex: 1 1 100%;
    min-width: 0;
}

.cd-card .cd-card__photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cd-card .cd-card__photo[data-cd-slideshow] {
    height: auto;
    overflow: visible;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.35rem;
    background: transparent;
    border-radius: 0;
    font-size: inherit;
    color: inherit;
}

.cd-card .cd-card__frame {
    position: relative;
    width: 100%;
    height: var(--cd-photo-h, 136px);
    overflow: hidden;
    border-radius: 8px;
    background: var(--line);
}

.cd-card .cd-card__shot {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.cd-card .cd-card__shot[hidden] {
    display: none;
}

.cd-card .cd-card__nav {
    position: static;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    flex: 0 0 auto;
    background: transparent;
    color: var(--muted);
    font-size: 0.75rem;
    line-height: 1;
    cursor: pointer;
}

.cd-card .cd-card__pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
}

.cd-card .cd-card__pager-dot {
    width: 0.45rem;
    height: 0.45rem;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--line);
    cursor: pointer;
}

.cd-card .cd-card__pager-dot.is-on {
    background: var(--gw);
}

.cd-card .cd-card__specs {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 6.5rem;
}

.cd-card__spec {
    display: flex;
    align-items: baseline;
    gap: 8px;
    min-width: 0;
}

.cd-card__dot {
    width: 6px;
    height: 6px;
    margin-top: 0.4rem;
    border-radius: 50%;
    background: var(--gw);
    flex: 0 0 6px;
}

.cd-card__spec.is-empty .cd-card__dot {
    background: var(--muted);
    opacity: 0.45;
}

.cd-card__bar {
    display: block;
    height: 0.55rem;
    width: 70%;
    border-radius: 999px;
    background: var(--line);
}

.cd-card__progress {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cd-card__meter {
    flex: 1 1 auto;
    height: 6px;
    border-radius: 999px;
    background: var(--line);
    overflow: hidden;
}

.cd-card__meter > span {
    display: block;
    height: 100%;
    background: var(--gw);
}

.cd-card__pct {
    font-size: 0.8rem;
    color: var(--muted);
    flex: 0 0 auto;
}

.cd-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.cd-card__foot--slots {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.cd-card__foot-slot--center {
    justify-self: center;
}

.cd-card__foot--slots > .cd-card__actions {
    margin-left: 0;
    justify-self: end;
}

.cd-card__actions {
    margin-left: auto;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.cd-card__quiet {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: var(--muted);
    font: inherit;
    font-size: 0.8rem;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.cd-card__quiet:hover,
.cd-card__quiet:focus {
    color: var(--muted);
    text-decoration: none;
}

.cd-card__quiet.is-saved {
    cursor: default;
}

.cd-card__quiet-form {
    display: inline-flex;
    margin: 0;
}

.cd-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--card);
    color: inherit;
}

.cd-card__icon[aria-pressed="true"],
.cd-card__icon[aria-expanded="true"] {
    color: var(--gw-dark);
    border-color: var(--gw);
}

.cd-card__fold {
    display: grid;
    grid-template-rows: 1fr;
    min-height: 0;
}

.cd-card__fold-inner {
    min-height: 0;
    overflow: hidden;
}

.cd-card__desc,
.cd-card__tags {
    display: grid;
    grid-template-rows: 0fr;
    min-height: 0;
    overflow: hidden;
    flex-shrink: 0;
    transition: grid-template-rows 0.45s ease;
}

.cd-card__desc.is-open,
.cd-card__tags.is-open {
    grid-template-rows: 1fr;
}

.cd-card__qr svg {
    display: block;
    width: 100%;
    max-width: 220px;
    height: auto;
    margin-inline: auto;
}

.cd-card__desc-inner,
.cd-card__tags-inner {
    min-height: 0;
    overflow: hidden;
    padding-top: 12px;
}

.cd-card--bucket .cd-card__desc-inner {
    padding-bottom: 12px;
}

.cd-card__tags .cd-card__chips {
    padding-top: 0;
}

.cd-card--bucket .cd-card__desc {
    margin-top: -12px;
    margin-bottom: -7px;
}

.cd-card--bucket .cd-card__tags {
    margin-top: -12px;
}

.cd-card__html > :last-child {
    margin-bottom: 0;
}

.cd-card__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 12px;
}

/* 264__App__User_Storage — My Storage tree and slots. Prefix ys-storage / ys-acc. */

.pg-page[data-temp-module="UserStorage"] > .pg-page__body {
    padding: 0;
}

/* Wide: the body stays one locked window. Narrow: that body scrolls. */
@media (min-width: 901px) {
    .pg-page[data-temp-module="UserStorage"] > .pg-page__body {
        overflow: hidden;
    }
}

@media (max-width: 900px) {
    .pg-page[data-temp-module="UserStorage"] > .pg-page__body {
        overflow-x: hidden;
        overflow-y: auto;
    }
}

.pg-page[data-temp-module="UserStorage"] .pg-tabs-track > .pg-tab-panel {
    display: flex;
    flex-direction: column;
}

.ys-storage-page {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    margin: 0;
    gap: 0;
}

#ysPackPopHost,
#ysUploadPopHost,
#ys-pick-pack-host {
    position: absolute;
    width: 0;
    height: 0;
    overflow: visible;
}

.pg-tab-intro .ys-storage-quota {
    flex: 0 0 16rem;
    width: 16rem;
    min-width: 12rem;
}

.ys-storage-board {
    flex: 1 1 auto;
    min-height: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
}

.ys-storage-board__split {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
}

.ys-storage-picker {
    min-width: 0;
    border-top: 1px solid var(--line);
}

@media (min-width: 992px) {
    .ys-storage-picker {
        border-top: 0;
        border-left: 1px solid var(--line);
    }
}

.ys-storage-col__list,
.ys-storage-col__item {
    background: transparent;
    border: 0;
    border-radius: 0;
}

.ys-storage-col__item {
    padding: 1rem;
}

.ys-storage-quota .progress {
    height: 0.5rem;
    background: var(--line);
}

.ys-storage-item-host {
    position: relative;
    min-height: 0;
}

.ys-storage-item-ph {
    position: absolute;
    inset: 0;
    z-index: 2;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    background: var(--card);
}

.ys-storage-item-host.htmx-request > .ys-storage-item-ph.htmx-indicator {
    display: flex !important;
}

.ys-storage-item-ph > .card {
    width: 100%;
    min-width: 0;
    height: 100%;
}

.ys-storage-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    min-width: 0;
}

.ys-storage-col {
    min-height: 0;
    height: 100%;
}

.ys-storage-col__list,
.ys-storage-col__item {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
}

.ys-storage-col__item:has([data-ys-storage-host]) {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.ys-storage-col__item .ys-storage-item-host {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
    overflow: hidden;
}

.ys-storage-col__item #ys-storage-item-body,
.ys-storage-col__item #ys-pick-item-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.ys-storage-col__item #ys-storage-item-body:has([data-ys-storage-host]),
.ys-storage-col__item #ys-pick-item-body:has([data-ys-storage-host]) {
    overflow: hidden;
}

.ys-storage-col__item [data-ys-storage-host] {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.ys-storage-col__item .ys-storage-pane {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
}

.ys-storage-list a {
    color: inherit;
    text-decoration: none;
}

.ys-storage-list .sidebar__label {
    display: block;
    max-width: 100%;
    box-sizing: border-box;
}

.ys-storage-list .sidebar__acc,
.ys-storage-list .sidebar__acc-panel,
.ys-storage-list .sidebar__list,
.ys-storage-list .sidebar__link {
    min-width: 0;
    max-width: 100%;
}

.ys-storage-list [hidden] {
    display: none !important;
}

.ys-storage-pane[hidden] {
    display: none !important;
}

.ys-storage-upload-bar {
    flex: 0 0 auto;
}

.ys-storage-quota {
    color: var(--text);
}

.ys-storage-pane .accordion {
    --bs-accordion-btn-padding-y: 0.25rem;
    --bs-accordion-active-color: var(--bs-accordion-color, inherit);
    --bs-accordion-active-bg: transparent;
    --bs-accordion-btn-active-icon: var(--bs-accordion-btn-icon);
}

.ys-acc-header {
    min-width: 0;
    margin-bottom: 0;
    gap: 0.25rem;
    overflow: visible;
    padding: 0.25rem 0 0.25rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.5;
}

.ys-acc-thumb {
    width: 80px;
    height: 80px;
    flex: 0 0 80px;
    object-fit: cover;
    margin: 0.35rem 0.75rem 0.35rem 0;
    border: 1px solid var(--line);
    border-radius: var(--radius, 0.375rem);
    background: var(--card);
    display: block;
}

.ys-acc-thumb--empty {
    background: var(--line);
}

.ys-acc-title {
    flex: 0 1 auto;
    max-width: 40%;
    min-width: 0;
    padding: 0 0.5rem 0 0;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}

.ys-acc-name {
    flex: 1 1 16rem;
    min-width: 0;
    max-width: 46%;
    gap: 0.125rem;
    padding: 0.15rem 0.5rem 0.15rem 0;
}

.ys-acc-name > .ys-acc-title {
    flex: 0 0 auto;
    max-width: 100%;
    padding: 0;
}

.ys-acc-audio {
    width: 16rem;
    max-width: 100%;
    height: 2.5rem;
    flex: 0 0 auto;
}

.ys-acc-meta {
    flex: 1 0 auto;
    min-width: 0;
}

.ys-acc-meta > :empty {
    display: none;
}

.ys-acc-header > .accordion-button.ys-acc-chevron {
    flex: 0 0 calc(var(--bs-accordion-btn-icon-width, 1.25rem) + 1rem);
    width: calc(var(--bs-accordion-btn-icon-width, 1.25rem) + 1rem);
    max-width: calc(var(--bs-accordion-btn-icon-width, 1.25rem) + 1rem);
    min-width: calc(var(--bs-accordion-btn-icon-width, 1.25rem) + 1rem);
    padding: 0.25rem 0.75rem;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    justify-content: center;
    align-self: stretch;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: inherit;
}

.ys-acc-header > .accordion-button.ys-acc-chevron::after {
    margin-left: 0;
}

.ys-storage-pane .ys-acc-header .accordion-button:not(.collapsed) {
    color: inherit;
    background: transparent;
    box-shadow: none;
}

.ys-access-wrap {
    display: flex;
    justify-content: center;
    padding: 2rem 1rem 3rem;
}

.ys-access {
    width: min(50vw, 40rem);
    min-width: 20rem;
    margin: 0;
    padding: 2.5rem 2.25rem 2rem;
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.ys-access__icon {
    color: var(--danger);
    font-size: 2.75rem;
    margin-bottom: 0.75rem;
}

.ys-access h1 {
    font-size: 1.375rem;
    font-weight: 800;
    margin: 0 0 1.5rem;
}

.ys-access__terms {
    margin: 0 0 1.5rem;
    text-align: left;
    font-size: 1rem;
    line-height: 1.55;
    color: var(--text);
    max-height: 22rem;
    overflow: auto;
}

.ys-access__actions {
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
}

.ys-access__tick {
    flex: 0 0 auto;
    width: 3.6rem;
    height: 3.6rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 1.35rem;
}

.ys-access__submit {
    flex: 1;
    width: auto;
    min-height: 3.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 1rem 1.25rem;
    border: 0;
    border-radius: 10px;
    background: var(--gw);
    color: #fff;
    font-weight: 800;
    font-size: 1.25rem;
    cursor: pointer;
}

.ys-access__submit:hover {
    background: var(--gw-dark);
}

.ys-access__alert {
    margin: 0 0 0.75rem;
    text-align: center;
}

@keyframes ys-tick-flash {
    0%, 100% { background-color: transparent; color: var(--bs-success); }
    40%, 60% { background-color: var(--bs-success); color: #fff; border-color: var(--bs-success); }
}

.ys-access__tick.is-flash {
    animation: ys-tick-flash 0.45s ease-in-out 2;
}

#ysUploadPopDlg .modal-dialog.ys-storage-pop {
    --bs-modal-width: 92vw;
    width: 92vw;
    max-width: 92vw;
    height: 88vh;
    max-height: 88vh;
    margin: 6vh auto 0;
}

#ysUploadPopDlg .ys-storage-pop .modal-content {
    height: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
}

#ysUploadPopDlg .ys-storage-pop .modal-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    padding: 0;
}

.ys-storage-preview {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border: 1px solid var(--line);
    border-radius: var(--radius, 0.375rem);
    background: var(--card);
    display: block;
}

.ys-storage-preview--file {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    color: var(--text);
    font-size: 0.75rem;
    font-weight: 600;
}

.ys-storage-preview--file .fa-file {
    font-size: 1.75rem;
}

.ys-storage-preview-hit,
.ys-acc-thumb-hit {
    line-height: 0;
    background: transparent;
}

.ys-storage-play-host {
    position: relative;
}

.ys-storage-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    line-height: 1;
}

.ys-storage-play .fa-play {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    padding-left: 0.15rem;
}

.ys-acc-thumb-hit {
    flex: 0 0 auto;
}

.ys-storage-preview-hit:focus-visible,
.ys-acc-thumb-hit:focus-visible {
    outline: 2px solid var(--gw);
    outline-offset: 2px;
}

.ys-storage-preview-full {
    display: block;
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    height: auto;
    margin-inline: auto;
    object-fit: contain;
}

.ys-storage-upload-progress {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ys-storage-upload-progress[hidden] {
    display: none !important;
}

.ys-storage-upload-progress .progress {
    height: 0.5rem;
}

#ysUploadPopDlg .modal-body > .ys-storage-page {
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
}

[data-ys-slot-delete] {
    user-select: none;
}

[data-ys-slot-delete][aria-disabled="true"] {
    opacity: 0.45;
    cursor: default;
}

[data-ys-slot-delete].is-armed {
    opacity: 1;
    color: var(--bs-danger);
    border-color: var(--bs-danger);
    cursor: pointer;
}
