.app-shell {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 1rem;
    box-sizing: border-box;
}

.app-shell-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0 0 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.app-shell-header-copy {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}

.app-shell-title {
    margin: 0;
    font-size: clamp(1.75rem, 5vw, 2rem);
    line-height: 1.08;
    font-weight: 750;
    letter-spacing: -0.035em;
    color: #111827;
}

.app-shell-subtitle {
    max-width: 62rem;
    margin: 0;
    font-size: 0.93rem;
    line-height: 1.5;
    color: #6b7280;
}

.app-shell-ribbon {
    width: 100%;
    min-width: 0;
}

.app-shell-panel {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #ffffff;
    box-shadow: none;
}

.app-shell-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

.app-shell-actions .rz-button,
.app-shell-actions button {
    width: 100%;
}

@media (min-width: 768px) {
    .app-shell {
        padding: 2rem;
    }

    .app-shell-header {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
        gap: 1.5rem;
        padding-bottom: 1.25rem;
        margin-bottom: 1.5rem;
    }

    .app-shell-actions {
        width: auto;
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
    }

    .app-shell-actions .rz-button,
    .app-shell-actions button {
        width: auto;
    }
}
