/* Study Tools 1.8.2
 *
 * Layout: a quiet, borderless panel with an app-style tab bar (icon over
 * label), full-bleed notes, and soft cards instead of boxed fields.
 *
 * Every colour is a custom property with an automatic default. The
 * defaults are mixed from the text colour the panel inherits, so the
 * panel reads correctly on light and dark designs before anything is
 * set on the Style tab.
 */
.cd-study {
    --cds-line: color-mix(in srgb, currentColor 12%, transparent);
    --cds-soft: color-mix(in srgb, currentColor 5%, transparent);
    --cds-softer: color-mix(in srgb, currentColor 9%, transparent);
    --cds-dim: color-mix(in srgb, currentColor 58%, transparent);
    --cds-faint: color-mix(in srgb, currentColor 38%, transparent);
    --cds-a: var(--cds-accent, #2563eb);
    --cds-r: var(--cds-radius, 14px);
    --cds-r2: min(var(--cds-r), 10px);

    box-sizing: border-box;
    width: 100%;
    max-width: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--cds-bg, transparent);
    color: var(--cds-text, inherit);
    border: var(--cds-border-width, 1px) solid var(--cds-border, var(--cds-line));
    border-radius: var(--cds-r);
    font-size: var(--cds-font-size, 15px);
    line-height: 1.5;
    text-align: left;
    -webkit-font-smoothing: antialiased;
}
.cd-study.cd-study-font-modern,
.cd-study.cd-study-font-modern button,
.cd-study.cd-study-font-modern input,
.cd-study.cd-study-font-modern select,
.cd-study.cd-study-font-modern textarea {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.cd-study.cd-study-shadow {
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px rgba(0, 0, 0, .06);
}
.cd-study *,
.cd-study *::before,
.cd-study *::after {
    box-sizing: border-box;
}
.cd-study [hidden] {
    display: none !important;
}
.cd-study-empty {
    padding: 20px;
}
.cd-study-sr,
.cd-study-hp {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}
.cd-study .cd-study-icon {
    flex: none;
    display: block;
}

/* Tab bar: icon over label, like a phone app's navigation */
.cd-study .cd-study-tabs {
    display: flex;
    flex: none;
    padding: 0 6px;
    background: var(--cds-tabs-bg, transparent);
    border-bottom: 1px solid var(--cds-border, var(--cds-line));
}
.cd-study.cd-study-tabs-bottom .cd-study-tabs {
    order: 2;
    border-bottom: 0;
    border-top: 1px solid var(--cds-border, var(--cds-line));
}
.cd-study .cd-study-tab {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin: 0;
    padding: 12px 4px 11px;
    border: 0;
    border-radius: 0;
    background: var(--cds-tab-bg, transparent);
    box-shadow: none;
    color: var(--cds-tab-text, var(--cds-faint));
    font-size: .74em;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: .01em;
    text-transform: none;
    cursor: pointer;
    transition: color .15s;
}
.cd-study .cd-study-tab .cd-study-icon {
    width: 22px;
    height: 22px;
}
.cd-study .cd-study-tab:hover,
.cd-study .cd-study-tab:focus {
    background: var(--cds-tab-bg, transparent);
    color: var(--cds-tab-hover-text, var(--cds-tab-active-text, var(--cds-text, inherit)));
}
.cd-study .cd-study-tab.is-active {
    background: var(--cds-tab-active-bg, transparent);
    color: var(--cds-tab-active-text, var(--cds-text, inherit));
}
.cd-study .cd-study-tab.is-active .cd-study-icon {
    stroke-width: 2.3;
}
/* A short marker on the edge that touches the content. */
.cd-study .cd-study-tab::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 22px;
    height: 3px;
    margin-left: -11px;
    border-radius: 3px 3px 0 0;
    background: transparent;
    transition: background-color .15s;
}
.cd-study.cd-study-tabs-bottom .cd-study-tab::after {
    top: 0;
    bottom: auto;
    border-radius: 0 0 3px 3px;
}
.cd-study .cd-study-tab.is-active::after {
    background: var(--cds-tab-indicator, var(--cds-a));
}
.cd-study .cd-study-tab-label {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cd-study .cd-study-dot {
    position: absolute;
    top: 9px;
    left: 50%;
    width: 8px;
    height: 8px;
    margin-left: 7px;
    border-radius: 50%;
    background: var(--cds-a);
}

/* Panels */
.cd-study .cd-study-panels {
    height: var(--cds-height, 560px);
    max-height: 85vh;
    min-height: 300px;
    display: flex;
}
.cd-study .cd-study-panel {
    display: none;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    min-height: 0;
    padding: 16px;
}
.cd-study .cd-study-panel.is-active {
    display: flex;
}
.cd-study .cd-study-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--cds-softer) transparent;
}
.cd-study .cd-study-intro {
    margin: 0;
    padding: 0;
    font-size: .9em;
    color: var(--cds-muted, var(--cds-dim));
}

/* Cards */
.cd-study .cd-study-card {
    display: flex;
    gap: 12px;
    padding: 14px;
    border-radius: var(--cds-r2);
    background: var(--cds-card, var(--cds-softer));
}
.cd-study .cd-study-card .cd-study-icon {
    width: 20px;
    height: 20px;
    margin-top: 1px;
    opacity: .7;
}
.cd-study .cd-study-card-title {
    display: block;
    font-weight: 700;
    line-height: 1.35;
}
.cd-study .cd-study-card-text {
    display: block;
    font-size: .92em;
    color: var(--cds-muted, var(--cds-dim));
}

/* Fields: soft filled, no hard outline until focused */
.cd-study .cd-study-field {
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
    min-height: 42px;
    margin: 0;
    padding: 9px 12px;
    background: var(--cds-input-bg, var(--cds-soft));
    color: var(--cds-input-text, var(--cds-text, inherit));
    border: 1px solid var(--cds-input-border, transparent);
    border-radius: var(--cds-r2);
    box-shadow: none;
    font-size: 1em;
    font-weight: 400;
    line-height: 1.4;
    transition: border-color .15s, background-color .15s;
}
.cd-study select.cd-study-field {
    padding-right: 6px;
    font-weight: 600;
    cursor: pointer;
}
.cd-study select.cd-study-field option {
    color: #222;
    background: #fff;
    font-weight: 400;
}
.cd-study .cd-study-field::placeholder {
    color: var(--cds-muted, var(--cds-faint));
    opacity: 1;
}
.cd-study .cd-study-field:hover {
    border-color: var(--cds-input-border, var(--cds-line));
}
.cd-study .cd-study-field:focus {
    outline: 0;
    border-color: var(--cds-a);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--cds-a) 18%, transparent);
}
.cd-study .cd-study-tab:focus-visible,
.cd-study .cd-study-btn:focus-visible,
.cd-study .cd-study-tool:focus-visible,
.cd-study .cd-study-link:focus-visible,
.cd-study .cd-study-verse:focus-visible,
.cd-study .cd-study-result:focus-visible,
.cd-study .cd-study-chip:focus-visible {
    outline: 2px solid var(--cds-a);
    outline-offset: 1px;
}
.cd-study .cd-study-field.is-invalid {
    border-color: var(--cds-error, #c0392b);
}

/* Buttons */
.cd-study .cd-study-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: auto;
    min-height: 42px;
    margin: 0;
    padding: 9px 16px;
    background: var(--cds-btn-bg, var(--cds-a));
    color: var(--cds-btn-text, #fff);
    border: 0;
    border-radius: var(--cds-r2);
    box-shadow: none;
    font-size: .95em;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: normal;
    text-transform: none;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s, color .15s, filter .15s, transform .05s;
}
.cd-study .cd-study-btn:hover,
.cd-study .cd-study-btn:focus {
    background: var(--cds-btn-hover-bg, var(--cds-btn-bg, var(--cds-a)));
    color: var(--cds-btn-hover-text, var(--cds-btn-text, #fff));
    filter: brightness(1.08);
}
.cd-study .cd-study-btn:active {
    transform: translateY(1px);
}
.cd-study .cd-study-btn[disabled] {
    opacity: .5;
    cursor: default;
}
.cd-study .cd-study-btn-alt,
.cd-study .cd-study-btn-alt:hover,
.cd-study .cd-study-btn-alt:focus {
    background: var(--cds-btn2-bg, var(--cds-softer));
    color: var(--cds-btn2-text, var(--cds-text, inherit));
    filter: none;
}
.cd-study .cd-study-btn-alt:hover {
    background: var(--cds-btn2-bg, var(--cds-line));
}
.cd-study .cd-study-btn-wide {
    width: 100%;
}
.cd-study .cd-study-link {
    margin: 0;
    padding: 4px 2px;
    background: none;
    border: 0;
    box-shadow: none;
    color: var(--cds-a);
    font-size: inherit;
    font-weight: 600;
    text-decoration: none;
    text-transform: none;
    letter-spacing: normal;
    cursor: pointer;
}
.cd-study .cd-study-link:hover,
.cd-study .cd-study-link:focus {
    background: none;
    color: var(--cds-a);
    text-decoration: underline;
}
.cd-study .cd-study-link[disabled] {
    opacity: .35;
    cursor: default;
}
.cd-study a {
    color: var(--cds-a);
}
.cd-study .cd-study-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}
.cd-study .cd-study-message {
    font-size: .9em;
    color: var(--cds-error, #c0392b);
}
.cd-study .cd-study-message:empty {
    display: none;
}
.cd-study .cd-study-message.is-success {
    padding: 12px 14px;
    border-radius: var(--cds-r2);
    background: color-mix(in srgb, var(--cds-success, #1e8449) 12%, transparent);
    color: var(--cds-success, #1e8449);
    font-weight: 600;
}

/* Notes: a full-bleed page with a slim toolbar */
.cd-study .cd-study-notes {
    gap: 0;
    padding: 0;
}
.cd-study .cd-study-toolbar {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    border-bottom: 1px solid var(--cds-border, var(--cds-line));
}
.cd-study .cd-study-tools {
    display: flex;
    align-items: center;
    gap: 2px;
}
.cd-study .cd-study-tool {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    min-height: 0;
    margin: 0;
    padding: 0;
    background: transparent;
    color: var(--cds-text, inherit);
    border: 0;
    border-radius: 8px;
    box-shadow: none;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    cursor: pointer;
    transition: background-color .15s;
}
.cd-study .cd-study-tool:hover,
.cd-study .cd-study-tool:focus {
    background: var(--cds-softer);
    color: var(--cds-text, inherit);
}
.cd-study .cd-study-tool[disabled] {
    opacity: .4;
}
.cd-study .cd-study-notes-text {
    padding: 16px 18px;
    outline: 0;
    line-height: 1.65;
    overflow-wrap: anywhere;
    cursor: text;
}
.cd-study .cd-study-notes-text.is-locked {
    opacity: .5;
}
.cd-study .cd-study-notes-text:empty::before {
    content: attr(data-placeholder);
    color: var(--cds-muted, var(--cds-faint));
    pointer-events: none;
}
.cd-study .cd-study-notes-text p,
.cd-study .cd-study-notes-text div {
    margin: 0 0 .7em;
    padding: 0;
}
.cd-study .cd-study-notes-text ul,
.cd-study .cd-study-notes-text ol {
    margin: 0 0 .7em 1.4em;
    padding: 0;
}
.cd-study .cd-study-notes-text ul { list-style: disc; }
.cd-study .cd-study-notes-text ol { list-style: decimal; }
.cd-study .cd-study-notes-text li {
    margin: 0 0 .2em;
    padding: 0;
    list-style: inherit;
}
.cd-study .cd-study-status {
    display: flex;
    flex: none;
    flex-wrap: wrap;
    gap: 2px 12px;
    padding: 8px 18px 10px;
    font-size: .78em;
    color: var(--cds-muted, var(--cds-faint));
}
.cd-study .cd-study-status:not(:has(*:not(:empty))) {
    display: none;
}
.cd-study .cd-study-merge {
    display: flex;
    flex: none;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 12px;
    padding: 12px 14px;
    border-radius: var(--cds-r2);
    background: var(--cds-card, var(--cds-softer));
    font-size: .88em;
}
.cd-study .cd-study-merge .cd-study-btn {
    min-height: 34px;
    padding: 6px 12px;
}

/* Bible */
.cd-study .cd-study-bible-bar {
    display: flex;
    gap: 6px;
}
.cd-study .cd-study-bible-bar .cd-study-book {
    flex: 3 1 0;
    min-width: 0;
}
.cd-study .cd-study-bible-bar .cd-study-chapter {
    flex: 1 1 0;
    min-width: 62px;
}
.cd-study .cd-study-bible-bar .cd-study-version {
    flex: 1.4 1 0;
    min-width: 74px;
}
.cd-study .cd-study-zoom {
    display: flex;
    flex: none;
    gap: 2px;
    padding: 3px;
    border-radius: var(--cds-r2);
    background: var(--cds-input-bg, var(--cds-soft));
}
.cd-study .cd-study-zoom .cd-study-btn {
    min-height: 36px;
    padding: 6px 9px;
    background: transparent;
    border-radius: calc(var(--cds-r2) - 3px);
    font-size: .85em;
}
.cd-study .cd-study-zoom .cd-study-btn:hover {
    background: var(--cds-softer);
}
.cd-study .cd-study-search,
.cd-study .cd-study-chat-compose {
    display: flex;
    gap: 6px;
    margin: 0;
}
.cd-study .cd-study-search .cd-study-field,
.cd-study .cd-study-chat-compose .cd-study-field {
    flex: 1 1 auto;
    min-width: 0;
}
.cd-study .cd-study-search .cd-study-btn,
.cd-study .cd-study-chat-compose .cd-study-btn {
    flex: none;
    width: 42px;
    padding: 0;
}
.cd-study .cd-study-search .cd-study-btn {
    background: var(--cds-btn2-bg, var(--cds-softer));
    color: var(--cds-btn2-text, var(--cds-text, inherit));
    filter: none;
}
.cd-study .cd-study-bible-heading {
    margin: 2px 0 10px;
    padding: 0;
    font-family: inherit;
    font-size: .74em;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--cds-bible-heading, var(--cds-muted, var(--cds-dim)));
}
.cd-study .cd-study-verses {
    font-size: var(--cds-verse-size, 1.05em);
    line-height: 1.75;
}
.cd-study .cd-study-verse {
    display: block;
    margin: 0 -8px;
    padding: 3px 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color .12s;
}
.cd-study .cd-study-verse:hover {
    background: var(--cds-soft);
}
.cd-study .cd-study-verse.is-selected {
    background: var(--cds-verse-selected, color-mix(in srgb, var(--cds-a) 16%, transparent));
}
.cd-study .cd-study-verse-num {
    margin-right: 6px;
    font-size: .66em;
    font-weight: 700;
    vertical-align: super;
    line-height: 0;
    color: var(--cds-verse-num, var(--cds-a));
}
.cd-study .cd-study-bible-note {
    margin-top: 14px;
    font-size: .72em;
    color: var(--cds-muted, var(--cds-faint));
}
.cd-study .cd-study-bible-note:empty {
    display: none;
}
.cd-study .cd-study-selection,
.cd-study .cd-study-results-head,
.cd-study .cd-study-bible-nav {
    display: flex;
    flex: none;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}
.cd-study .cd-study-selection {
    padding: 8px 8px 8px 14px;
    border-radius: var(--cds-r2);
    background: var(--cds-card, var(--cds-softer));
    font-size: .88em;
    font-weight: 600;
}
.cd-study .cd-study-selection .cd-study-btn,
.cd-study .cd-study-bible-nav .cd-study-btn {
    min-height: 36px;
    padding: 6px 12px;
    font-size: .88em;
}
.cd-study .cd-study-selection .cd-study-btn-alt {
    background: var(--cds-btn2-bg, var(--cds-line));
}
.cd-study .cd-study-bible-nav .cd-study-btn {
    background: transparent;
    color: var(--cds-muted, var(--cds-dim));
}
.cd-study .cd-study-bible-nav .cd-study-btn:hover {
    background: var(--cds-soft);
    color: var(--cds-text, inherit);
}
.cd-study .cd-study-bible-nav .cd-study-icon {
    width: 16px;
    height: 16px;
}
.cd-study .cd-study-results-head {
    margin-bottom: 10px;
    font-size: .85em;
    color: var(--cds-muted, var(--cds-dim));
}
.cd-study .cd-study-result {
    display: block;
    width: 100%;
    margin: 0 0 8px;
    padding: 12px 14px;
    background: transparent;
    color: inherit;
    border: 1px solid var(--cds-border, var(--cds-line));
    border-radius: var(--cds-r2);
    box-shadow: none;
    font-size: .95em;
    font-weight: 400;
    line-height: 1.5;
    text-align: left;
    text-transform: none;
    letter-spacing: normal;
    white-space: normal;
    cursor: pointer;
    transition: background-color .12s;
}
.cd-study .cd-study-result:hover,
.cd-study .cd-study-result:focus {
    background: var(--cds-soft);
    color: inherit;
}
.cd-study .cd-study-result-ref {
    display: block;
    margin-bottom: 2px;
    font-weight: 700;
}
.cd-study .cd-study-results-pages {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    font-size: .9em;
}
.cd-study .cd-study-state {
    padding: 28px 0;
    text-align: center;
    font-size: .9em;
    color: var(--cds-muted, var(--cds-faint));
}

/* Prayer */
.cd-study .cd-study-prayer-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 14px 0 0;
}
.cd-study .cd-study-row label {
    display: block;
    margin: 0 0 5px;
    font-size: .72em;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--cds-muted, var(--cds-dim));
}
.cd-study .cd-study-row textarea.cd-study-field {
    resize: vertical;
    min-height: 110px;
}
.cd-study .cd-study-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    font-size: .9em;
    font-weight: normal;
    cursor: pointer;
}
.cd-study .cd-study-check input {
    width: auto;
    margin: 4px 0 0;
    accent-color: var(--cds-a);
}
.cd-study .cd-study-captcha:empty {
    display: none;
}
.cd-study .cd-study-captcha {
    max-width: 100%;
    overflow: hidden;
}
.cd-study .cd-study-wall {
    margin: 16px 0 0;
    text-align: center;
    font-size: .9em;
    font-weight: 600;
}

/* Small uppercase labels */
.cd-study .cd-study-eyebrow {
    margin: 0 0 6px;
    font-size: .72em;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--cds-muted, var(--cds-dim));
}

/* Schedule */
.cd-study .cd-study-next {
    padding: 16px;
    border: 1px solid var(--cds-border, var(--cds-line));
    border-radius: var(--cds-r2);
}
.cd-study .cd-study-schedule.is-live .cd-study-next {
    border-color: var(--cds-a);
    background: color-mix(in srgb, var(--cds-a) 8%, transparent);
}
.cd-study .cd-study-schedule.is-live .cd-study-next-label {
    color: var(--cds-a);
}
.cd-study .cd-study-next-title {
    font-size: 1.15em;
    font-weight: 700;
    line-height: 1.3;
}
.cd-study .cd-study-next-when {
    color: var(--cds-muted, var(--cds-dim));
}
.cd-study .cd-study-count {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 14px;
}
.cd-study .cd-study-count > div {
    padding: 10px 4px 8px;
    border: 1px solid var(--cds-border, var(--cds-line));
    border-radius: var(--cds-r2);
    text-align: center;
}
.cd-study .cd-study-count strong {
    display: block;
    font-size: 1.35em;
    font-weight: 700;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}
.cd-study .cd-study-count span {
    font-size: .66em;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--cds-muted, var(--cds-dim));
}
.cd-study .cd-study-upcoming .cd-study-eyebrow {
    margin-top: 18px;
}
.cd-study .cd-study-service {
    display: flex;
    flex-direction: column;
    margin: 0 0 8px;
    padding: 12px 14px;
    border: 1px solid var(--cds-border, var(--cds-line));
    border-radius: var(--cds-r2);
}
.cd-study .cd-study-service span {
    font-size: .92em;
    color: var(--cds-muted, var(--cds-dim));
}
.cd-study .cd-study-tznote {
    margin: 14px 0 0;
    font-size: .74em;
    color: var(--cds-muted, var(--cds-faint));
}

/* Give */
.cd-study .cd-study-tab-link,
.cd-study .cd-study-tab-link:hover,
.cd-study .cd-study-tab-link:focus {
    text-decoration: none;
}
.cd-study .cd-study-give {
    position: relative;
    gap: 0;
    padding: 0;
}
.cd-study .cd-study-give-frame {
    flex: 1 1 auto;
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: 0;
    background: transparent;
    opacity: 0;
    transition: opacity .2s;
}
.cd-study .cd-study-give-frame.is-ready {
    opacity: 1;
}
.cd-study .cd-study-give-wait {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    pointer-events: none;
}
.cd-study.cd-study-only-link {
    padding: 16px;
}

/* Chat */
.cd-study .cd-study-chat-bar {
    display: flex;
    flex: none;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 4px 10px;
    min-height: 24px;
    font-size: .8em;
}
.cd-study .cd-study-chat-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    color: var(--cds-muted, var(--cds-dim));
}
.cd-study .cd-study-chat-pill::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    opacity: .6;
}
.cd-study .cd-study-chat-pill.is-open {
    color: var(--cds-success, #1e8449);
}
.cd-study .cd-study-chat-pill.is-open::before {
    opacity: 1;
}
.cd-study .cd-study-chat-staff {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 12px;
}
.cd-study .cd-study-chat-staff .cd-study-link {
    padding: 2px 0;
    font-size: 1em;
}
.cd-study .cd-study-chat-confirm {
    display: flex;
    flex: none;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: var(--cds-r2);
    background: color-mix(in srgb, var(--cds-error, #c0392b) 10%, transparent);
    font-size: .88em;
    font-weight: 600;
}
.cd-study .cd-study-chat-confirm .cd-study-btn {
    min-height: 34px;
    padding: 6px 12px;
    background: var(--cds-error, #c0392b);
    color: #fff;
}
.cd-study .cd-study-chat-closed {
    flex: none;
    margin: 0;
    padding: 12px 14px;
    border-radius: var(--cds-r2);
    background: var(--cds-card, var(--cds-softer));
    text-align: center;
    font-size: .9em;
}
.cd-study .cd-study-chat {
    position: relative;
}
/* Floating reactions drift up over the messages and never take clicks. */
.cd-study .cd-study-float-layer {
    position: absolute;
    left: 0;
    right: 0;
    top: 40px;
    bottom: 110px;
    overflow: hidden;
    pointer-events: none;
    z-index: 2;
}
.cd-study .cd-study-float {
    position: absolute;
    bottom: 0;
    line-height: 1;
    opacity: 0;
    animation: cd-study-float 3.2s ease-out forwards;
    will-change: transform, opacity;
}
@keyframes cd-study-float {
    0%   { transform: translate(0, 0) scale(.6); opacity: 0; }
    12%  { opacity: 1; transform: translate(calc(var(--cds-drift, 0px) * .15), -12%) scale(1.1); }
    70%  { opacity: .9; }
    100% { transform: translate(var(--cds-drift, 0px), -360px) scale(1); opacity: 0; }
}
.cd-study .cd-study-floats {
    display: flex;
    justify-content: center;
    gap: 8px;
}
.cd-study .cd-study-float-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-height: 0;
    margin: 0;
    padding: 0;
    background: var(--cds-chip-bg, var(--cds-soft));
    border: 1px solid transparent;
    border-radius: 50%;
    box-shadow: none;
    font-size: 19px;
    line-height: 1;
    cursor: pointer;
    transition: transform .12s, background-color .12s;
}
.cd-study .cd-study-float-btn:hover,
.cd-study .cd-study-float-btn:focus {
    background: var(--cds-chip-bg, var(--cds-softer));
    border-color: var(--cds-border, var(--cds-line));
}
.cd-study .cd-study-float-btn:active {
    transform: scale(1.25);
}
.cd-study .cd-study-float-btn:focus-visible {
    outline: 2px solid var(--cds-a);
    outline-offset: 1px;
}
.cd-study .cd-study-chip[disabled] {
    cursor: default;
}
.cd-study .cd-study-state:empty {
    display: none;
}
.cd-study .cd-study-chat-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-right: 2px;
}
.cd-study .cd-study-msg {
    position: relative;
    align-self: flex-start;
    max-width: 90%;
}
.cd-study .cd-study-msg.is-own {
    align-self: flex-end;
}
.cd-study .cd-study-msg-meta {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin: 0 6px 3px;
    font-size: .74em;
    color: var(--cds-muted, var(--cds-faint));
}
.cd-study .cd-study-msg-name {
    font-weight: 700;
    color: var(--cds-chat-name, var(--cds-text, inherit));
}
.cd-study .cd-study-msg-staff {
    padding: 1px 7px;
    border-radius: 10px;
    background: var(--cds-staff, var(--cds-a));
    color: #fff;
    font-size: .88em;
    font-weight: 700;
    letter-spacing: .03em;
}
.cd-study .cd-study-msg-body {
    padding: 9px 14px;
    border-radius: 18px;
    border-top-left-radius: 6px;
    background: var(--cds-bubble-bg, var(--cds-softer));
    color: var(--cds-bubble-text, var(--cds-text, inherit));
    line-height: 1.45;
    overflow-wrap: anywhere;
}
.cd-study .cd-study-msg.is-own .cd-study-msg-body {
    border-top-left-radius: 18px;
    border-top-right-radius: 6px;
    background: var(--cds-own-bg, var(--cds-a));
    color: var(--cds-own-text, #fff);
}
.cd-study .cd-study-msg-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    margin: 5px 2px 0;
}
.cd-study .cd-study-msg.is-own .cd-study-msg-meta,
.cd-study .cd-study-msg.is-own .cd-study-msg-foot {
    justify-content: flex-end;
}
.cd-study .cd-study-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 28px;
    min-height: 26px;
    margin: 0;
    padding: 1px 9px;
    background: var(--cds-chip-bg, var(--cds-soft));
    color: var(--cds-chip-text, var(--cds-text, inherit));
    border: 1px solid transparent;
    border-radius: 14px;
    box-shadow: none;
    font-size: .8em;
    font-weight: 600;
    line-height: 1.2;
    text-transform: none;
    letter-spacing: normal;
    cursor: pointer;
    transition: background-color .12s, border-color .12s;
}
.cd-study .cd-study-chip:hover,
.cd-study .cd-study-chip:focus {
    background: var(--cds-chip-bg, var(--cds-softer));
    color: var(--cds-chip-text, var(--cds-text, inherit));
    border-color: var(--cds-border, var(--cds-line));
}
.cd-study .cd-study-chip.is-mine {
    background: var(--cds-chip-active-bg, color-mix(in srgb, var(--cds-a) 16%, transparent));
    color: var(--cds-chip-active-text, var(--cds-text, inherit));
    border-color: color-mix(in srgb, var(--cds-a) 55%, transparent);
}
.cd-study .cd-study-chip-add,
.cd-study .cd-study-chip-del {
    padding: 1px 0;
    color: var(--cds-muted, var(--cds-faint));
}
.cd-study .cd-study-chat-form {
    display: flex;
    flex: none;
    flex-direction: column;
    gap: 6px;
    margin: 0;
}
.cd-study .cd-study-chat-compose .cd-study-field,
.cd-study .cd-study-chat-compose .cd-study-btn {
    border-radius: 21px;
}
.cd-study .cd-study-chat-compose .cd-study-field {
    padding-left: 16px;
}
.cd-study .cd-study-chat-signin {
    margin: 0;
    padding: 12px;
    border-radius: var(--cds-r2);
    background: var(--cds-card, var(--cds-softer));
    text-align: center;
    font-size: .9em;
    font-weight: 600;
}

@media (max-width: 480px) {
    .cd-study .cd-study-panel {
        padding: 12px;
    }
    .cd-study .cd-study-notes,
    .cd-study .cd-study-give {
        padding: 0;
    }
    .cd-study .cd-study-bible-bar {
        flex-wrap: wrap;
    }
    .cd-study .cd-study-bible-bar .cd-study-book {
        flex-basis: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cd-study * {
        transition: none !important;
    }
}
