.pres-layout {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 1rem;
    min-height: 420px;
}

.pres-sidebar {
    border: 1px solid var(--tool-border);
    border-radius: var(--tool-radius-sm);
    background: var(--tool-panel);
    overflow: auto;
    max-height: min(70vh, 560px);
}

.pres-slide-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px;
}

.pres-thumb {
    display: block;
    width: 100%;
    padding: 8px;
    border: 1px solid var(--tool-border);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.12);
    color: var(--tool-muted);
    font-size: 0.72rem;
    text-align: left;
    cursor: pointer;
    transition: border-color 160ms ease, background 160ms ease;
}

.pres-thumb.is-active {
    border-color: var(--tool-accent);
    background: rgba(97, 208, 148, 0.12);
    color: var(--tool-text);
}

.pres-thumb-title {
    display: block;
    margin-bottom: 4px;
    font-weight: 700;
    color: var(--tool-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pres-thumb-preview {
    aspect-ratio: 16 / 9;
    border-radius: 4px;
    background: #10110e;
    overflow: hidden;
    font-size: 0.62rem;
    padding: 4px;
    line-height: 1.2;
}

.pres-editor-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pres-slide-editor {
    min-height: 360px;
    padding: 1.5rem;
    border: 1px solid var(--tool-border);
    border-radius: var(--tool-radius-sm);
    background: #10110e;
    color: #f5f7ef;
    outline: none;
    overflow: auto;
}

.pres-slide-editor:focus {
    border-color: rgba(97, 208, 148, 0.6);
}

.pres-slide-editor h1,
.pres-slide-editor h2 {
    margin: 0 0 0.75rem;
    line-height: 1.15;
}

.pres-slide-editor ul {
    margin: 0;
    padding-left: 1.25rem;
}

.pres-slide-editor .pres-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.pres-slide-editor img {
    max-width: 100%;
    max-height: 220px;
    object-fit: contain;
    border-radius: 6px;
}

.pres-image-row {
    display: flex;
    gap: 0.5rem;
}

.pres-present {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    background: #000;
}

.pres-present.hidden {
    display: none !important;
}

.pres-present-slide {
    flex: 1;
    display: grid;
    place-items: center;
    padding: 2rem;
    overflow: auto;
}

.pres-present-slide .pres-slide-inner {
    width: min(100%, 1100px);
    aspect-ratio: 16 / 9;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    overflow: auto;
}

.pres-present-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    background: rgba(16, 17, 14, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 900px) {
    .pres-layout {
        grid-template-columns: 1fr;
    }

    .pres-sidebar {
        max-height: 180px;
    }

    .pres-slide-list {
        flex-direction: row;
        overflow-x: auto;
    }

    .pres-thumb {
        min-width: 120px;
    }
}
