/* Authoring controls exist only on the admin site (/admin adds body.admin) */
body:not(.admin) .admin-only { display: none !important; }
/* Signed-in learners create their own content; the editor (body.admin) creates shared content */
body:not(.admin):not(.signed-in) .author-only { display: none !important; }
body.admin .guest-only, body.signed-in .guest-only { display: none !important; }
/* Cutting / editing the open lesson: only when it is the user's own (or shared, in the editor) */
body:not(.lesson-editable) .lesson-edit { display: none !important; }
.ygs-file { display: inline-flex; align-items: center; gap: 4px; padding: 0 12px; border: 1px solid var(--border-strong);
            border-radius: var(--radius); cursor: pointer; white-space: nowrap; color: var(--text-2); font-size: .9em; }
.ygs-file span { max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
