/* Admin site styles. No inline styles anywhere (decision D11): everything is a class. Logical properties keep it correct in both directions. */
.admin-body {
    min-height: 100vh;
    background-color: var(--bs-body-bg);
}

.recovery-codes {
    font-family: var(--bs-font-monospace);
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    direction: ltr;
    text-align: start;
    columns: 2;
    column-gap: 1.5rem;
    padding-inline-start: 1.25rem;
}

.qr-image {
    width: 12rem;
    height: 12rem;
    image-rendering: pixelated;
}

.secret-key {
    font-family: var(--bs-font-monospace);
    direction: ltr;
    unicode-bidi: isolate;
    word-break: break-all;
}

.code-input {
    font-family: var(--bs-font-monospace);
    font-size: 1.4rem;
    letter-spacing: 0.3em;
    direction: ltr;
    text-align: center;
}

.password-help li {
    margin-block-end: 0.25rem;
}

.media-thumb {
    aspect-ratio: 4 / 3;
    width: 100%;
    object-fit: cover;
    background: var(--bs-secondary-bg);
}

.media-placeholder {
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bs-secondary-bg);
    color: var(--bs-secondary-color);
    font-weight: 600;
    letter-spacing: 0.05em;
}

.media-preview {
    max-width: 100%;
    max-height: 28rem;
    object-fit: contain;
    background: var(--bs-secondary-bg);
}

.media-chip {
    width: 2.5rem;
    height: 2.5rem;
    object-fit: cover;
}

.media-embed {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
}

.media-embed-audio {
    width: 100%;
    height: 166px;
    border: 0;
}

@media print {
    .no-print,
    nav,
    footer {
        display: none !important;
    }
}

/* The content editor (Phase 6). */
/* A fixed height: Quill sizes its container as a percentage of this box, and a percentage of an auto height inside a flex row made the row measure too short (found by the browser run). The text scrolls inside. */
.cms-editor-box, .cms-editor-box.ql-container { height: 22rem; background: var(--bs-body-bg); }
/* Quill uses the box itself as its container, and its own style sheet (loaded after this one) says height 100%, so the rule above has to be as specific. */
.gallery-thumb { width: 64px; height: 64px; object-fit: cover; border-radius: .25rem; background: var(--bs-secondary-bg); }
.diff-added { background: var(--bs-success-bg-subtle); color: var(--bs-success-text-emphasis); text-decoration: none; padding: 0 .15rem; border-radius: .2rem; }
.diff-removed { background: var(--bs-danger-bg-subtle); color: var(--bs-danger-text-emphasis); text-decoration: line-through; padding: 0 .15rem; border-radius: .2rem; }
.diff-skip { color: var(--bs-secondary-color); }
.diff-text { line-height: 2; }
