/* Study guide viewer / create-study-guide toolbar layout (shared shell on /app) */

.app-study-hub-wrap {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: clamp(0.75rem, 2vw, 1.25rem) clamp(0.75rem, 2vw, 1.5rem) 2rem;
    box-sizing: border-box;
}

.app-study-hub-toolbar {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.app-study-hub-back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(61, 214, 140, 0.45);
    background: transparent;
    color: #e2e8f0;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.app-study-hub-back:hover {
    background: rgba(61, 214, 140, 0.1);
    border-color: rgba(61, 214, 140, 0.65);
}

.app-study-hub-title {
    margin: 0;
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    font-weight: 700;
    color: #f8fafc;
    letter-spacing: -0.02em;
    flex: 1;
    min-width: 0;
}

.app-hub-editor-mount {
    flex: 1;
    min-height: 0;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.app-study-hub-toast {
    position: fixed;
    bottom: 5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10050;
    padding: 0.65rem 1.25rem;
    border-radius: 999px;
    background: rgba(30, 30, 30, 0.95);
    border: 1px solid rgba(61, 214, 140, 0.35);
    color: #e2e8f0;
    font-size: 0.88rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}
