.tab-layout {
    display: flex;
    flex: 1;
    min-height: 0;
    height: 100%;
}
.tab-nav {
    flex-shrink: 0;
    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;
}
@media (max-width: 640px) {
    .tab-layout { flex-direction: column; }
    .tab-nav {
        width: 100%;
        flex-direction: row;
        border-right: none;
        border-bottom: 1px solid var(--bg-tertiary);
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0;
    }
    .tab-nav-item {
        border-left: none;
        border-bottom: 3px solid transparent;
        white-space: nowrap;
        padding: 0.5rem 0.75rem;
    }
    .tab-nav-item.active { border-bottom-color: var(--accent-color); border-left-color: transparent; }
    .tab-nav-divider { display: none; }
    .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: wrap;
    gap: 2px;
    padding: 3px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}
.lp-nav-btn {
    padding: 0.3125rem 0.625rem;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 600;
    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;
}
.lp-nav-btn:hover { color: var(--text-primary); background: var(--bg-tertiary); }
.lp-nav-btn.is-active {
    background: var(--accent-color);
    color: var(--bg-primary);
    box-shadow: var(--shadow-sm);
}
/* 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; }

@media (max-width: 640px) {
    .manage-head { padding: 0.75rem 1rem; gap: 0.5rem; flex-wrap: wrap; }
    .manage-title { font-size: 0.9375rem; }
}

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

.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-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;
}

.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;
}
