.tab-layout {
    display: flex;
    flex: 1;
    min-height: 0;
    height: 100%;
}
.tab-nav-wrap {
    position: relative;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
}
/* Both are mobile-only: below 900px the sidebar collapses into a picker. */
.tab-picker { display: none; }
.tab-nav-scrim { display: none; }
.tab-nav {
    flex: 1;
    width: 200px;
    display: flex;
    flex-direction: column;
    padding: 1rem 0;
    background: var(--bg-secondary);
    overflow-y: auto;
}
.tab-nav-item {
    padding: 0.625rem 1.25rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    border: none;
    background: none;
    text-align: left;
    border-left: 3px solid transparent;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.tab-nav-item > i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: auto;
    font-size: 0.875rem;
    line-height: 1;
    vertical-align: 0;
    flex-shrink: 0;
}
.tab-nav-item > i::before { display: block; line-height: 1; vertical-align: 0; }
.tab-nav-item:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary, rgba(0,0,0,0.04));
}
.tab-nav-item.active {
    color: var(--accent-color);
    border-left-color: var(--accent-color);
    background: var(--bg-primary);
    font-weight: 600;
}
.tab-nav-divider {
    height: 1px;
    background: var(--bg-tertiary);
    margin: 0.5rem 1.25rem;
}
.manage-main {
    flex: 1;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
}
.manage-panel-wrap {
    position: relative;
    flex: 1;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
}
.panel-loader {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 20;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    background: var(--bg-primary);
    font-size: 0.875rem;
    color: var(--text-secondary);
}
.manage-panel-wrap.is-loading .panel-loader { display: flex; }
.panel-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: panel-spin 0.7s linear infinite;
}
@keyframes panel-spin { to { transform: rotate(360deg); } }

.tab-panel {
    flex: 1;
    min-width: 0;
    min-height: 0;
    padding: 1.5rem;
    overflow-y: auto;
}
/* ── Console on small screens ─────────────
   Sixteen tabs never fit a strip, so the sidebar becomes a picker: the button
   says where you are, the panel is the same grouped list as on desktop. The
   breakpoint matches the site nav's so the whole chrome switches at once. */
@media (max-width: 900px) {
    .tab-layout { flex-direction: column; height: auto; }

    /* The event header comes first, then the section picker inside it. Making
       .manage-main a display:contents box promotes its children to flex items
       of .tab-layout so `order` can interleave them with the picker -- the
       alternative was restructuring the DOM, which desktop relies on. */
    .manage-main { display: contents; }
    .manage-head { order: 1; }
    .tab-nav-wrap { order: 2; }
    .manage-panel-wrap { order: 3; }

    .tab-nav-wrap {
        width: 100%;
        z-index: 50;
    }

    .tab-picker {
        display: flex;
        align-items: center;
        gap: 0.625rem;
        width: 100%;
        min-height: 2.875rem;
        padding: 0.5rem 1rem;
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
        font-family: inherit;
        font-size: 0.9375rem;
        font-weight: 650;
        text-align: left;
        color: var(--text-primary);
        background: var(--bg-secondary);
        border: none;
        border-top: 1px solid var(--bg-tertiary);
        border-bottom: 1px solid var(--bg-tertiary);
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
    .tab-picker > i {
        flex-shrink: 0;
        font-size: 1rem;
        line-height: 1;
        color: var(--accent-color);
    }
    .tab-picker > i::before { display: block; line-height: 1; vertical-align: 0; }
    .tab-picker-label {
        flex: 1;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .tab-picker .dropdown-arrow { flex-shrink: 0; }

    .tab-nav-scrim {
        display: block;
        position: fixed;
        inset: 0;
        z-index: -1;
        background: rgb(0 0 0 / 0.45);
    }

    .tab-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: auto;
        flex: none;
        max-height: 70dvh;
        padding: 0.375rem 0;
        padding-bottom: calc(0.375rem + env(safe-area-inset-bottom));
        overscroll-behavior: contain;
        background: var(--bg-primary);
        box-shadow: var(--shadow-md);
        border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    }
    .tab-nav.is-open { display: flex; }

    .tab-nav-item {
        min-height: 2.75rem;
        padding: 0.625rem 1.25rem;
        padding-left: max(1.25rem, env(safe-area-inset-left));
        font-size: 0.9375rem;
    }
    .tab-nav-item > i { width: 1.125rem; font-size: 1rem; }
    .tab-nav-divider { display: block; }

    .tab-panel { padding: 1rem; }
}
/* Landing page section cards */
.lp-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 0.875rem;
    margin-bottom: 0.75rem;
}
.lp-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.75rem;
    font-size: 0.8125rem;
    font-weight: 650;
    color: var(--text-primary);
}
.lp-card-header label { font-weight: 650; }
.lp-nav {
    display: flex;
    flex-wrap: nowrap;
    gap: 3px;
    padding: 4px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    touch-action: pan-x;
}
.lp-nav::-webkit-scrollbar { display: none; }
.lp-nav-btn { flex-shrink: 0; }
.lp-nav-arrow {
    width: 1.625rem;
    height: 1.625rem;
    cursor: pointer;
}
.lp-nav-arrow:disabled {
    opacity: 0.35;
    cursor: default;
    background: var(--bg-secondary);
    color: var(--text-secondary);
}
.lp-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.6875rem;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 650;
    letter-spacing: 0.01em;
    color: var(--text-secondary);
    background: none;
    border: none;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.lp-nav-btn .bi {
    font-size: 0.8125rem;
    line-height: 1;
    opacity: 0.65;
    transition: opacity 0.15s, color 0.15s;
}
.lp-nav-btn:hover { color: var(--text-primary); }
.lp-nav-btn:hover .bi { opacity: 0.9; }
.lp-nav-btn.is-active {
    background: var(--bg-primary);
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}
.lp-nav-btn.is-active .bi {
    color: var(--accent-color);
    opacity: 1;
}
/* Inline dashboard styles for modal */
.modal-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}
.modal-stat-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}
.modal-stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}
.modal-stat-value {
    font-size: 1.25rem;
    font-weight: 700;
}
.preview-pill-track {
    display: flex;
    padding: 4px;
    border-radius: 999px;
    background: rgba(128,128,128,0.12);
    width: fit-content;
}
.preview-pill-track .preview-pill-seg {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 6px 24px;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
    user-select: none;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
    background: transparent;
    color: var(--text-secondary);
}
.preview-pill-track .preview-pill-seg.active {
    background: var(--accent-color);
    color: var(--bg-primary);
    box-shadow: var(--shadow-sm);
}

.lp-frame-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-secondary);
    min-height: 240px;
}
.lp-frame {
    display: block;
    width: 1280px;
    height: 900px;
    border: 0;
    transform-origin: top left;
    background: transparent;
}
.lp-frame-shield {
    position: absolute;
    inset: 0;
    cursor: default;
}
.lp-frame-empty {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    background: var(--bg-secondary);
}
.lp-frame-busy {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: 0.125rem 0.5rem;
}

a.tab-nav-item { text-decoration: none; }

.manage-head {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    border-bottom: 1px solid var(--bg-tertiary);
    background: var(--bg-primary);
}
.manage-back {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    flex-shrink: 0;
    padding: 0.3125rem 0.6875rem 0.3125rem 0.5625rem;
    font-size: 0.75rem;
    font-weight: 650;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border-radius: 100px;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.manage-back:hover { background: var(--accent-light); color: var(--accent-color); }
.manage-back i {
    font-size: 0.875rem;
    transition: transform 0.15s;
}
.manage-back i::before { display: block; line-height: 1; vertical-align: 0; }
.manage-back:hover i { transform: translateX(-2px); }
.manage-back > i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    line-height: 1;
    vertical-align: 0;
    flex-shrink: 0;
}
.manage-back > i::before { display: block; line-height: 1; vertical-align: 0; }
.manage-title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.manage-head-actions { margin-left: auto; display: flex; gap: 0.5rem; flex-shrink: 0; }
.manage-preview > i { display: none; font-size: 0.9375rem; line-height: 1; }
.manage-preview > i::before { display: block; line-height: 1; vertical-align: 0; }

@media (max-width: 900px) {
    /* One row: icon-only back, title, status, icon-only preview. Wrapping put
       Preview alone on a second row and cost ~40px of every screen. */
    .manage-head {
        gap: 0.5rem;
        padding: 0.625rem 1rem;
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
        flex-wrap: nowrap;
    }
    .manage-back {
        width: 2rem;
        height: 2rem;
        padding: 0;
        justify-content: center;
    }
    .manage-back-label { display: none; }
    .manage-title { font-size: 0.9375rem; min-width: 0; }
    .manage-head .badge { flex-shrink: 0; }
    .manage-preview {
        width: 2rem;
        height: 2rem;
        padding: 0;
        gap: 0;
        justify-content: center;
    }
    .manage-preview-label { display: none; }
    .manage-preview > i { display: block; }
}

body { height: 100vh; overflow: hidden; }
.site-footer { display: none; }
.page-content { display: flex; flex-direction: column; overflow: hidden; min-height: 0; padding: 0; }

/* Hand scrolling back to the page on phones: the fixed shell leaves almost
   nothing for the panel once the site nav, picker and head are stacked, and
   100vh fights the browser chrome. */
@media (max-width: 900px) {
    body { height: auto; overflow: visible; }
    .page-content { overflow: visible; }
    .manage-main { min-height: 0; }
    .manage-panel-wrap { min-height: 0; }
    .tab-panel { flex: none; overflow: visible; }
}

.tab-panel-landing { overflow: hidden; padding: 0; position: relative; }

.lp-seg {
    display: inline-flex;
    gap: 2px;
    padding: 3px;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
}
.lp-seg button {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.3125rem 0.6875rem;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: none;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.lp-seg button:hover { color: var(--text-primary); }
.lp-seg button.is-active {
    background: var(--accent-color);
    color: var(--bg-primary);
    box-shadow: var(--shadow-sm);
}

.lp-theme {
    display: inline-flex;
    align-items: center;
    gap: 0.4375rem;
    padding: 0.25rem 0.5625rem 0.25rem 0.3125rem;
    font-family: inherit;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-primary);
    border: none;
    border-radius: 100px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.lp-theme:hover { color: var(--text-primary); background: var(--bg-tertiary); }
.lp-theme.is-active { background: var(--accent-light); color: var(--accent-color); }
.lp-theme-swatch {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 1px solid var(--bg-tertiary);
}

.lp-swatches {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.375rem;
    margin-bottom: 0.75rem;
}
.lp-swatch-field {
    display: flex;
    align-items: center;
    gap: 0.4375rem;
    padding: 0.3125rem 0.4375rem;
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
}
.lp-swatch-label {
    flex: 1;
    min-width: 0;
    font-size: 0.6875rem;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.lp-swatch-clear {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1.125rem;
    height: 1.125rem;
    padding: 0;
    font-size: 0.6875rem;
    line-height: 1;
    color: var(--text-muted);
    background: none;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.lp-swatch-clear:hover { background: var(--bg-tertiary); color: var(--text-primary); }

.lp-list {
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.lp-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4375rem 0.5625rem;
    font-size: 0.8125rem;
    border-top: 1px solid var(--bg-tertiary);
}
.lp-row:first-child { border-top: none; }
.lp-row-draggable { cursor: grab; }
.lp-row-draggable:active { cursor: grabbing; }
.lp-row-draggable.is-drop-target { box-shadow: inset 0 2px 0 var(--accent-color); }
.lp-drag-handle { color: var(--text-secondary); opacity: 0.7; display: inline-flex; }
.lp-row-dim { opacity: 0.45; }
.lp-avatar,
.lp-avatar-fallback {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    flex-shrink: 0;
}
.lp-avatar { object-fit: cover; }
.lp-avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    font-size: 0.625rem;
    font-weight: 650;
    color: var(--text-secondary);
}
.lp-edit {
    padding: 0.75rem;
    margin-top: 0.375rem;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.07);
}
.lp-count { font-size: 0.8125rem; font-weight: 650; color: var(--text-primary); }

.lp-time {
    flex-shrink: 0;
    min-width: 5.75rem;
    font-size: 0.6875rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
    color: var(--text-secondary);
    white-space: nowrap;
}
.lp-row-title {
    flex: 1 1 auto;
    min-width: 7rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.lp-meta {
    flex: 0 1 auto;
    max-width: 34%;
    font-size: 0.6875rem;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lp-add-dashed {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.4375rem;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: none;
    border: 1px dashed var(--bg-tertiary);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.lp-add-dashed:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background: var(--accent-light);
}

.lp-detail-card {
    padding: 0.625rem 0.75rem;
    margin-bottom: 0.5rem;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
}
.lp-detail-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.375rem;
}
.lp-detail-title {
    flex: 1;
    min-width: 0;
    font-size: 0.875rem;
    font-weight: 650;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.lp-fieldset {
    padding: 0.75rem 0.875rem 0.875rem;
    margin-bottom: 0.75rem;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
}
.lp-fieldset-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.625rem;
}
.lp-fieldset-title {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}
.lp-fieldset .lp-seg { background: var(--bg-secondary); }

.lp-field-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.625rem;
    margin-bottom: 0.625rem;
}
.lp-fieldset .form-group { margin-bottom: 0.625rem; }
.lp-fieldset .form-group:last-child { margin-bottom: 0; }
.lp-fieldset .lp-field-grid:last-child { margin-bottom: 0; }
.lp-field-grid .form-group { margin-bottom: 0; }

#tab-panel .lp-fieldset .form-label {
    margin-bottom: 0.25rem;
    font-size: 0.75rem;
    font-weight: 650;
    color: var(--text-secondary);
}
#tab-panel .lp-fieldset .form-input,
#tab-panel .lp-fieldset select,
#tab-panel .lp-fieldset textarea {
    font-size: 0.8125rem;
    background: var(--bg-secondary);
}
#tab-panel .lp-fieldset .form-input:focus,
#tab-panel .lp-fieldset select:focus,
#tab-panel .lp-fieldset textarea:focus {
    background: var(--bg-secondary);
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px var(--focus-ring);
}

.lp-dot {
    display: inline-block;
    width: 4px;
    height: 4px;
    margin-left: 0.125rem;
    border-radius: 50%;
    background: currentColor;
    vertical-align: 0.15em;
}

.lp-vis-label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.lp-detail-head > .c-note { flex-shrink: 0; }
.lp-detail-head > .lp-vis { flex-shrink: 0; margin-bottom: 0; }

.lp-vis { display: flex; gap: 0.625rem; margin-bottom: 0.5rem; }
.lp-vis label {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
}
.lp-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.4375rem 0;
    border-top: 1px solid var(--bg-tertiary);
}
.lp-item-body { flex: 1; min-width: 0; }
.lp-item-accent { font-size: 0.8125rem; font-weight: 650; color: var(--accent-color); }
.lp-item-desc {
    display: block;
    margin-top: 0.0625rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}
.c-nudge button:disabled { opacity: 0.45; cursor: default; }
.c-nudge button:disabled:hover { color: var(--text-muted); }
.lp-detail-card .lp-add-dashed { border-color: var(--bg-tertiary); }

.lp-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}
.lp-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.0625rem;
    max-width: 100%;
    padding: 0.1875rem 0.1875rem 0.1875rem 0.5625rem;
    font-size: 0.8125rem;
    background: var(--bg-primary);
    border-radius: 100px;
}
.lp-chip-name {
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.lp-chip-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    padding: 0;
    font-family: inherit;
    font-size: 0.625rem;
    color: var(--text-muted);
    background: none;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.lp-chip-btn i::before { display: block; line-height: 1; vertical-align: 0; }
.lp-chip-btn:hover { background: var(--bg-tertiary); color: var(--text-primary); }
.lp-chip-btn-danger:hover { background: var(--danger); color: var(--bg-primary); }

.lp-tier {
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 0.5rem;
}
.lp-tier:last-child { margin-bottom: 0; }
.lp-tier-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.625rem;
}
.lp-tier-name {
    flex-shrink: 0;
    max-width: 45%;
    font-size: 0.8125rem;
    font-weight: 650;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.lp-tier-name.is-hidden { text-decoration: line-through; color: var(--text-muted); }
.lp-tier-specs {
    display: flex;
    align-items: center;
    gap: 0.4375rem;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    font-size: 0.6875rem;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.lp-tier-specs i { font-size: 0.75rem; }
.lp-tier-body {
    padding: 0.5rem 0.625rem 0.625rem;
    border-top: 1px solid var(--bg-tertiary);
}
.lp-logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
    gap: 0.375rem;
}
.lp-logo-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.lp-logo-frame {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    height: 54px;
}
.lp-logo-half {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 0.375rem;
    overflow: hidden;
    cursor: pointer;
}
.lp-logo-half input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}
.lp-logo-swap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.125rem 0;
    font-size: 0.5625rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-align: center;
    opacity: 0;
    transition: opacity 0.15s;
}
.lp-logo-half-light .lp-logo-swap {
    color: #3a3f47;
    background: rgba(255, 255, 255, 0.88);
}
.lp-logo-half-dark .lp-logo-swap {
    color: #d5d9df;
    background: rgba(16, 19, 23, 0.88);
}
.lp-logo-half:hover .lp-logo-swap,
.lp-logo-half:focus-within .lp-logo-swap {
    opacity: 1;
}
@media (hover: none) {
    .lp-logo-swap { opacity: 1; }
}
.lp-logo-half img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.lp-logo-half-light {
    background: #ffffff;
}
.lp-logo-half-dark {
    background: #101317;
}
.lp-logo-half-dark .logo-dark-invert {
    filter: invert(1) hue-rotate(180deg);
}
.lp-logo-half-dark .logo-dark-plate {
    background: #f4f5f7;
    border-radius: 6px;
    padding: 0.1875rem 0.3125rem;
    box-sizing: content-box;
}
.lp-logo-tags {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    padding: 0.25rem 0 0;
    font-size: 0.5625rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    text-align: center;
}
.lp-logo-tags .is-own {
    color: var(--accent-color);
}
.lp-logo-foot {
    display: flex;
    align-items: center;
    gap: 0.3125rem;
    padding: 0 0.375rem 0.375rem;
}
.lp-logo-foot input[type="range"] {
    flex: 1;
    min-width: 0;
    height: 3px;
    accent-color: var(--accent-color);
}
.lp-logo-px {
    flex-shrink: 0;
    font-size: 0.625rem;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}
.lp-logo-dark {
    display: grid;
    gap: 0.25rem;
    padding: 0 0.375rem 0.375rem;
}
.lp-logo-dark select {
    width: 100%;
    font-size: 0.625rem;
    padding: 0.125rem 0.25rem;
    color: var(--text-secondary);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
}
.lp-logo-darkset {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.125rem 0.25rem;
    font-size: 0.625rem;
    color: var(--text-secondary);
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
}
.lp-logo-darkset span {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.lp-logo-darkset button {
    flex-shrink: 0;
    padding: 0;
    font-size: 0.625rem;
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
}
.lp-logo-darkset button:hover {
    color: var(--danger);
}
.lp-logo-del {
    position: absolute;
    top: 0.1875rem;
    right: 0.1875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.125rem;
    height: 1.125rem;
    padding: 0;
    font-size: 0.6875rem;
    line-height: 1;
    color: var(--text-secondary);
    background: var(--bg-primary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s, background 0.15s, color 0.15s;
}
.lp-logo-tile:hover .lp-logo-del,
.lp-logo-del:focus-visible { opacity: 1; }
.lp-logo-del:hover { background: var(--danger); color: var(--bg-primary); }
@media (hover: none) {
    .lp-logo-del { opacity: 1; }
}
.lp-confirm-logos {
    display: flex;
    flex-shrink: 0;
    gap: 0.25rem;
}
.lp-confirm-logo {
    width: 84px;
    height: 44px;
    padding: 0.25rem 0.375rem;
    object-fit: contain;
    background: #ffffff;
    border-radius: var(--radius-sm);
    box-sizing: border-box;
}
.lp-confirm-logo.is-dark {
    background: #101317;
}
.lp-confirm-logo.is-dark.logo-dark-invert {
    filter: invert(1) hue-rotate(180deg);
}
.lp-confirm-logo.is-dark.logo-dark-plate {
    padding: 0.25rem 0.375rem;
    background: #f4f5f7;
    border-radius: var(--radius-sm);
    box-sizing: border-box;
}
.lp-logo-add {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.1875rem;
    min-height: 78px;
    font-family: inherit;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: none;
    border: 1px dashed var(--bg-tertiary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.lp-logo-add:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background: var(--accent-light);
}
.lp-logo-add i { font-size: 1rem; }
.lp-logo-add input { display: none; }

.lp-block-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 0.5rem;
}
.lp-block {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.1875rem;
    padding: 0.75rem;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
}
.lp-block-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    margin-bottom: 0.1875rem;
    font-size: 0.9375rem;
    color: var(--accent-color);
    background: var(--accent-light);
    border-radius: var(--radius-sm);
}
.lp-block-icon i::before { display: block; line-height: 1; vertical-align: 0; }
.lp-block-title {
    font-size: 0.8125rem;
    font-weight: 650;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.lp-block-desc {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.75rem;
    line-height: 1.45;
    color: var(--text-secondary);
}
.lp-block-tools {
    position: absolute;
    top: 0.375rem;
    right: 0.375rem;
    display: flex;
    gap: 0.125rem;
    opacity: 0;
    transition: opacity 0.15s;
}
.lp-block:hover .lp-block-tools,
.lp-block-tools:focus-within { opacity: 1; }
@media (hover: none) {
    .lp-block-tools { opacity: 1; }
}
.lp-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.375rem;
    height: 1.375rem;
    padding: 0;
    font-family: inherit;
    font-size: 0.6875rem;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.lp-icon-btn i::before { display: block; line-height: 1; vertical-align: 0; }
.lp-icon-btn:hover { background: var(--accent-light); color: var(--accent-color); }
.lp-icon-btn-danger:hover { background: var(--danger); color: var(--bg-primary); }

.lp-avatar-lg {
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
}
.lp-spk-body {
    display: flex;
    flex-direction: column;
    gap: 0.0625rem;
    flex: 1;
    min-width: 0;
}
.lp-spk-name {
    font-size: 0.8125rem;
    font-weight: 650;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.lp-spk-meta {
    font-size: 0.6875rem;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.lp-eye {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.625rem;
    height: 1.625rem;
    padding: 0;
    font-size: 0.8125rem;
    color: var(--text-muted);
    background: none;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.lp-eye i::before { display: block; line-height: 1; vertical-align: 0; }
.lp-eye:hover { background: var(--bg-tertiary); color: var(--text-primary); }
.lp-eye.is-on { color: var(--accent-color); }
.lp-eye.is-on:hover { background: var(--accent-light); }

.lp-photo-field {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}
.lp-photo-field input[type="file"] { flex: 1; min-width: 0; }
.lp-photo-preview,
.lp-photo-fallback {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    flex-shrink: 0;
}
.lp-photo-preview { object-fit: cover; }
.lp-photo-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    color: var(--text-muted);
    background: var(--bg-secondary);
}
.lp-photo-fallback i::before { display: block; line-height: 1; vertical-align: 0; }

.btn.lp-save.is-saved,
.btn.lp-save.is-saved:hover {
    background: var(--success);
    border-color: var(--success);
    color: #fff;
}
.btn.lp-save.is-dirty {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-color) 28%, transparent);
}
.lp-dirty {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--warning);
    background: color-mix(in srgb, var(--warning) 14%, transparent);
    white-space: nowrap;
}
.lp-dirty .bi {
    display: inline-flex;
    align-items: center;
    font-size: 0.5rem;
    line-height: 1;
    animation: lp-dirty-pulse 1.6s ease-in-out infinite;
}
.lp-dirty .bi::before { vertical-align: 0; line-height: 1; }
@keyframes lp-dirty-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

.lp-menu {
    position: fixed;
    z-index: 9999;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.28);
    overflow: hidden;
}
.lp-menu-drafts { width: 300px; }
.lp-menu-tpl { width: 240px; }

.lp-menu-head {
    padding: 0.625rem 0.75rem;
    background: var(--bg-secondary);
}
.lp-menu-label {
    margin-bottom: 0.4375rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}
.lp-menu-hint {
    padding: 0 0.75rem 0.625rem;
    font-size: 0.6875rem;
    line-height: 1.4;
    color: var(--text-secondary);
    background: var(--bg-secondary);
}
.lp-menu-btns { display: flex; gap: 0.375rem; }
.lp-menu-btns .c-action { flex: 1; justify-content: center; }
.lp-menu-head .c-input { background: var(--bg-primary); }
.lp-menu-head .c-input:focus { background: var(--bg-primary); }
.c-action.is-open { background: var(--accent-light); color: var(--accent-color); }
.lp-menu-ok {
    margin-top: 0.375rem;
    font-size: 0.6875rem;
    font-weight: 650;
    text-align: center;
    color: var(--success);
}

.lp-menu-list {
    max-height: 280px;
    overflow-y: auto;
    padding: 0.25rem 0;
}
.lp-menu-empty {
    padding: 0.875rem 0.75rem;
    font-size: 0.75rem;
    text-align: center;
    color: var(--text-muted);
}

.lp-menu-row {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-left: 2px solid transparent;
    transition: background 0.12s;
}
.lp-menu-row:hover { background: var(--bg-secondary); }
.lp-menu-row.is-active {
    background: var(--accent-light);
    border-left-color: var(--accent-color);
}
.lp-menu-main {
    flex: 1;
    min-width: 0;
    padding: 0;
    font-family: inherit;
    text-align: left;
    color: var(--text-primary);
    background: none;
    border: none;
    cursor: pointer;
}
.lp-menu-row-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
}
.lp-menu-ver { font-size: 0.8125rem; font-weight: 650; }
.lp-menu-badge {
    margin-left: 0.25rem;
    font-size: 0.5625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--accent-color);
}
.lp-menu-time {
    flex-shrink: 0;
    font-size: 0.625rem;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}
.lp-menu-sub {
    margin-top: 0.0625rem;
    font-size: 0.6875rem;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.lp-menu-acts {
    display: flex;
    align-items: center;
    gap: 0.125rem;
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.15s;
}
.lp-menu-row:hover .lp-menu-acts,
.lp-menu-acts:focus-within { opacity: 1; }
@media (hover: none) {
    .lp-menu-acts { opacity: 1; }
}
.lp-menu-act,
.lp-menu-del {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1.375rem;
    height: 1.375rem;
    padding: 0;
    font-family: inherit;
    font-size: 0.6875rem;
    color: var(--text-muted);
    background: none;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.lp-menu-act i::before,
.lp-menu-del i::before { display: block; line-height: 1; vertical-align: 0; }
.lp-menu-act:hover { background: var(--accent-light); color: var(--accent-color); }
.lp-menu-del:hover { background: var(--danger); color: var(--bg-primary); }
.lp-menu-act:disabled,
.lp-menu-del:disabled { opacity: 0.4; cursor: default; }
.lp-menu-act:disabled:hover,
.lp-menu-del:disabled:hover { background: none; color: var(--text-muted); }

.lp-menu-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.4375rem 0.75rem;
    font-family: inherit;
    font-size: 0.8125rem;
    text-align: left;
    color: var(--text-primary);
    background: none;
    border: none;
    cursor: pointer;
    transition: background 0.12s;
}
.lp-menu-item:hover { background: var(--bg-secondary); }
.lp-menu-swatch {
    flex-shrink: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.lp-menu-item-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}
.lp-menu-item-sub {
    font-size: 0.625rem;
    color: var(--text-muted);
    text-transform: capitalize;
}

.lp-bar-count {
    padding: 0.0625rem 0.3125rem;
    margin-left: 0.125rem;
    border-radius: 100px;
    background: var(--bg-tertiary);
    font-size: 0.625rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* ── Landing editor on small screens ─────
   The split pane cannot work at phone width (two 180px columns), so the panes
   stack and only one shows at a time, switched by .lp-mobile-switch. The
   layout lives in inline styles on the template, hence the !important. */
.lp-mobile-switch { display: none; }

.lp-bar-overflow { display: contents; }
.lp-bar-more { display: contents; }
.lp-bar-more-btn { display: none; }

@media (max-width: 900px) {
    .lp-abs { position: static !important; }
    .lp-shell {
        height: auto !important;
        padding: 0.75rem 1rem 1rem !important;
    }
    .lp-split {
        flex-direction: column !important;
        overflow: visible !important;
        min-height: 0 !important;
    }
    .lp-pane {
        flex: none !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        border-right: none !important;
    }
    .lp-pane > * { overflow: visible !important; }
    .lp-pane-off { display: none !important; }

    .lp-mobile-switch {
        display: flex;
        flex-shrink: 0;
        margin-bottom: 0.75rem;
    }

    /* The preview mode pills sit in a 52px strip sized for desktop. */
    .lp-pane-preview > div:first-child { height: auto !important; padding-bottom: 0.75rem; }
    .preview-pill-track { width: 100%; }
    .preview-pill-track .preview-pill-seg { padding: 6px 8px; }

    /* fitPreview() overwrites this with an explicit px width; the 100% keeps
       the first paint from flashing a cropped desktop render. */
    .lp-frame { width: 100%; }

    /* Pinned to the bottom of the screen, not to the end of the content: on a
       phone the form is long and Save should never be a scroll away. */
    .lp-savebar {
        position: fixed !important;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 40;
        margin-top: 0 !important;
        padding: 0.625rem 1rem !important;
        padding-left: max(1rem, env(safe-area-inset-left)) !important;
        padding-right: max(1rem, env(safe-area-inset-right)) !important;
        padding-bottom: calc(0.625rem + env(safe-area-inset-bottom)) !important;
        flex-wrap: nowrap !important;
        gap: 0.5rem !important;
        background: var(--bg-primary);
        border-top: 1px solid var(--border-color) !important;
        box-shadow: 0 -2px 12px rgb(0 0 0 / 0.18);
    }
    .lp-bar-spacer { display: none !important; }

    /* Save owns the row; the editor tools shrink to icon + count. */
    .lp-savebar .lp-save {
        flex: 1;
        min-width: 0;
        height: 2.5rem;
        justify-content: center;
        font-size: 0.875rem;
    }
    .lp-savebar .c-action-soft {
        flex-shrink: 0;
        height: 2.5rem;
        padding: 0 0.625rem;
    }
    .lp-bar-label { display: none; }
    .lp-savebar .lp-dirty { padding: 0.25rem 0.5rem; }

    /* Export / Import / Preview live in a menu above the bar. */
    .lp-bar-overflow { display: block; position: relative; flex-shrink: 0; }
    .lp-bar-more-btn {
        display: inline-flex;
        justify-content: center;
        width: 2.5rem;
        height: 2.5rem;
        padding: 0;
    }
    .lp-bar-more {
        display: none;
        position: absolute;
        right: 0;
        bottom: calc(100% + 0.5rem);
        z-index: 50;
        flex-direction: column;
        gap: 0.375rem;
        min-width: 11rem;
        padding: 0.5rem;
        background: var(--bg-primary);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-md);
    }
    .lp-bar-more.is-open { display: flex; }
    .lp-bar-more .btn { justify-content: flex-start; height: 2.375rem; }

    /* Keep the last field clear of the pinned bar. */
    .lp-shell { padding-bottom: calc(4.5rem + env(safe-area-inset-bottom)) !important; }

    /* The teleported menus are positioned from their trigger's left edge, which
       at 300px wide runs off a phone screen. Span the viewport instead. */
    .lp-menu {
        left: 0.5rem !important;
        right: 0.5rem !important;
        width: auto !important;
        max-height: 70dvh;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .tab-panel-landing { overflow: visible; }
}

.lp-icon-picker { position: relative; }
.lp-icon-picker-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-align: left;
    cursor: pointer;
}
.lp-icon-picker-btn:focus-visible {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px var(--focus-ring);
}
.lp-icon-picker-glyph {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
    font-size: 0.875rem;
    color: var(--accent-color);
    background: var(--accent-light);
    border-radius: var(--radius-sm);
}
.lp-icon-picker-glyph i::before { display: block; line-height: 1; vertical-align: 0; }
.lp-icon-picker-label {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.lp-icon-picker-caret { font-size: 0.6875rem; color: var(--text-muted); flex-shrink: 0; }
.lp-icon-picker-pop {
    position: fixed;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}
.lp-icon-picker-search {
    position: relative;
    flex-shrink: 0;
    padding: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}
.lp-icon-picker-search > i {
    position: absolute;
    left: 1.125rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    color: var(--text-muted);
    pointer-events: none;
}
.lp-icon-picker-search .form-input { padding-left: 1.875rem; }
.lp-icon-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(4.5rem, 1fr));
    gap: 0.25rem;
    padding: 0.5rem;
    overflow-y: auto;
}
.lp-icon-picker-opt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3125rem;
    padding: 0.5rem 0.25rem;
    font-family: inherit;
    font-size: 0.6875rem;
    line-height: 1.2;
    color: var(--text-secondary);
    background: none;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.lp-icon-picker-opt i { font-size: 1.125rem; color: var(--text-primary); }
.lp-icon-picker-opt i::before { display: block; line-height: 1; vertical-align: 0; }
.lp-icon-picker-opt span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.lp-icon-picker-opt:hover { background: var(--bg-secondary); color: var(--text-primary); }
.lp-icon-picker-opt.is-active {
    color: var(--accent-color);
    background: var(--accent-light);
    border-color: var(--accent-color);
}
.lp-icon-picker-opt.is-active i { color: var(--accent-color); }
.lp-icon-picker-empty { margin: 0; padding: 0.75rem; text-align: center; }

.lp-size-select {
    width: 5.75rem;
    flex-shrink: 0;
    margin-bottom: 0.125rem;
    font-size: 0.75rem;
}
.lp-case-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    height: 2.125rem;
    padding: 0 0.5625rem;
    margin-bottom: 0.125rem;
    font-family: inherit;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.lp-case-btn:hover { color: var(--text-primary); }
.lp-case-btn.is-on { color: var(--accent-color); background: var(--accent-light); border-color: var(--accent-color); }
