:root {
    --shell-bg: #f4efe6;
    --shell-surface: rgba(255, 253, 248, 0.92);
    --shell-surface-strong: rgba(255, 248, 236, 0.9);
    --shell-ink: #2b2218;
    --shell-muted: #6c5b4b;
    --shell-line: rgba(84, 60, 32, 0.14);
    --shell-accent: #8b5e34;
    --shell-accent-soft: rgba(139, 94, 52, 0.12);
    --shell-accent-strong: #3d2a1f;
    --shell-success: #1f6a4f;
    --shell-warning: #9a5b12;
    --shell-danger: #9b3a31;
    --shell-sidebar-ink: #f8f0e5;
    --shell-sidebar-muted: rgba(248, 240, 229, 0.72);
    --shell-shadow: 0 14px 28px rgba(52, 36, 15, 0.09);
    --shell-focus-ring: 0 0 0 3px rgba(139, 94, 52, 0.22);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    background:
        radial-gradient(circle at top left, rgba(139, 94, 52, 0.15), transparent 26%),
        radial-gradient(circle at bottom right, rgba(61, 42, 31, 0.08), transparent 22%),
        linear-gradient(180deg, #f8f1e7 0%, var(--shell-bg) 100%);
    color: var(--shell-ink);
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

a {
    color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: none;
    box-shadow: var(--shell-focus-ring);
}

.shell-skip-link {
    position: absolute;
    left: 16px;
    top: 16px;
    padding: 10px 14px;
    border-radius: 999px;
    background: var(--shell-accent-strong);
    color: var(--shell-sidebar-ink);
    text-decoration: none;
    transform: translateY(-160%);
    transition: transform 180ms ease;
    z-index: 20;
}

.shell-skip-link:focus {
    transform: translateY(0);
}

.shell-app {
    display: grid;
    grid-template-columns: minmax(128px, 146px) minmax(0, 1fr);
    min-height: 100vh;
}

.shell-sidebar {
    position: sticky;
    top: 0;
    width: 146px;
    min-width: 146px;
    height: 100vh;
    padding: 16px 10px 14px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent),
        linear-gradient(160deg, #4d3625 0%, #2e2118 74%);
    color: var(--shell-sidebar-ink);
    display: flex;
    flex-direction: column;
    gap: 14px;
    border-right: 1px solid rgba(255, 248, 236, 0.08);
}

.shell-brand__eyebrow,
.shell-eyebrow,
.shell-row__eyebrow {
    margin: 0;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.72rem;
}

.shell-brand__eyebrow,
.shell-row__eyebrow {
    color: var(--shell-sidebar-muted);
}

.shell-brand__name {
    display: inline-block;
    margin-top: 6px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(0.96rem, 1.16vw, 1.4rem);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.shell-brand__context {
    margin: 10px 0 0;
    color: var(--shell-sidebar-ink);
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1.35;
}

.shell-brand__context span {
    display: block;
    margin-top: 4px;
    color: var(--shell-sidebar-muted);
    font-size: 0.8rem;
}

.shell-nav__list,
.shell-context__list,
.shell-bullet-list,
.shell-checklist {
    list-style: none;
    margin: 0;
    padding: 0;
}

.shell-nav__list {
    display: grid;
    gap: 6px;
}

.shell-nav__link,
.shell-context__link {
    display: block;
    padding: 10px 12px;
    border-radius: 16px;
    border: 1px solid rgba(255, 248, 236, 0.06);
    background: rgba(255, 248, 236, 0.04);
    text-decoration: none;
    transition:
        transform 180ms ease,
        background-color 180ms ease,
        border-color 180ms ease;
}

.shell-nav__link:hover,
.shell-context__link:hover,
.shell-nav__link:focus-visible,
.shell-context__link:focus-visible {
    transform: translateX(4px);
    background: rgba(255, 248, 236, 0.08);
    border-color: rgba(255, 248, 236, 0.14);
}

.shell-nav__link--active {
    background:
        linear-gradient(135deg, rgba(139, 94, 52, 0.28), rgba(255, 248, 236, 0.08));
    border-color: rgba(255, 248, 236, 0.18);
}

.shell-nav__link--primary {
    box-shadow: inset 0 0 0 1px rgba(255, 248, 236, 0.08);
}

.shell-nav__label,
.shell-context__link span {
    display: block;
    font-size: 0.86rem;
    font-weight: 700;
}

.shell-nav__helper,
.shell-context__link small,
.shell-sidebar__note,
.shell-header__copy p,
.shell-section-head p,
.shell-row__meta,
.shell-row__note,
.shell-empty p,
.shell-timeline__item p,
.shell-bullet-list li,
.shell-checklist li {
    color: var(--shell-muted);
}

.shell-nav__helper {
    display: block;
    margin-top: 2px;
    color: var(--shell-sidebar-muted);
    font-size: 0.74rem;
    line-height: 1.2;
}

.shell-context {
    margin-top: auto;
}

.shell-context__head h2,
.shell-header__copy h1,
.shell-section-head h2,
.shell-row h3,
.shell-empty h3,
.shell-timeline__item h3 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
}

.shell-context__head h2 {
    margin-top: 4px;
    font-size: 0.9rem;
}

.shell-context__list {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.shell-context__link--current {
    background: rgba(255, 248, 236, 0.12);
    border-color: rgba(255, 248, 236, 0.16);
}

.shell-context__link small {
    display: block;
    margin-top: 4px;
    font-size: 0.74rem;
}

.shell-sidebar__note {
    margin: 0;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 248, 236, 0.08);
    font-size: 0.74rem;
    line-height: 1.25;
    color: var(--shell-sidebar-muted);
}

.shell-main-frame {
    padding: 16px clamp(14px, 2.2vw, 24px) 24px;
}

.shell-header {
    padding: 14px 16px 16px;
    border: 1px solid var(--shell-line);
    border-radius: 22px;
    background: rgba(255, 253, 248, 0.84);
    box-shadow: var(--shell-shadow);
    backdrop-filter: blur(12px);
    animation: shell-rise 520ms ease both;
}

.shell-breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.shell-breadcrumbs li {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--shell-muted);
    font-size: 0.9rem;
}

.shell-breadcrumbs li + li::before {
    content: "/";
    color: rgba(108, 91, 75, 0.54);
}

.shell-breadcrumbs a {
    text-decoration: none;
}

.shell-header__body {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-end;
    margin-top: 10px;
}

.shell-header__body--compact {
    margin-top: 2px;
}

.shell-eyebrow {
    color: var(--shell-muted);
}

.shell-header__copy h1 {
    margin-top: 6px;
    font-size: clamp(1.5rem, 2.05vw, 2.3rem);
    letter-spacing: -0.03em;
}

.shell-header__copy--compact h1 {
    margin-top: 0;
}

.shell-header__copy p:last-child {
    margin: 8px 0 0;
    max-width: 54ch;
    line-height: 1.4;
}

.shell-header__description--nowrap {
    white-space: nowrap;
    max-width: none;
}

.shell-header__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: flex-end;
}

.shell-main {
    margin-top: 16px;
    display: grid;
    gap: 16px;
    animation: shell-rise 680ms ease both;
}

.shell-strip,
.shell-surface {
    border: 1px solid var(--shell-line);
    border-radius: 22px;
    background: var(--shell-surface);
    box-shadow: var(--shell-shadow);
}

.shell-strip {
    padding: 10px 14px;
}

.shell-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 4px;
    margin: 0;
}

.shell-metric {
    padding: 10px 12px;
    border-radius: 16px;
    background: transparent;
}

.shell-metric dt {
    color: var(--shell-muted);
    font-size: 0.86rem;
}

.shell-metric dd {
    margin: 6px 0 0;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1;
}

.shell-metric--success dd {
    color: var(--shell-success);
}

.shell-metric--warning dd {
    color: var(--shell-warning);
}

.shell-stage {
    display: grid;
    grid-template-columns: minmax(0, 1.85fr) minmax(220px, 0.62fr);
    gap: 16px;
}

.shell-stage--full {
    grid-template-columns: minmax(0, 1fr);
}

.shell-pane,
.shell-rail {
    display: grid;
    gap: 16px;
}

.shell-pane--full {
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
}

.shell-surface {
    padding: 16px;
}

.shell-surface--accent {
    background:
        linear-gradient(180deg, rgba(139, 94, 52, 0.08), rgba(255, 253, 248, 0)),
        var(--shell-surface);
}

.shell-section-head p {
    margin: 0;
    max-width: 50ch;
    line-height: 1.35;
}

.shell-section-head h2 {
    margin-top: 6px;
    margin-bottom: 6px;
    font-size: clamp(1.15rem, 1.45vw, 1.45rem);
}

.shell-rows {
    display: grid;
    margin-top: 10px;
}

.shell-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px;
    align-items: center;
    padding: 12px 0;
    border-top: 1px solid var(--shell-line);
}

.shell-row:first-child {
    border-top: none;
}

.shell-row__eyebrow {
    color: var(--shell-muted);
}

.shell-row h3 {
    margin-top: 4px;
    font-size: 1.05rem;
}

.shell-row__meta,
.shell-row__note {
    margin: 6px 0 0;
    line-height: 1.35;
}

.shell-status {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--shell-line);
    background: rgba(255, 253, 248, 0.9);
    font-size: 0.82rem;
    white-space: nowrap;
}

.shell-status--success {
    color: var(--shell-success);
    border-color: rgba(31, 106, 79, 0.2);
    background: rgba(31, 106, 79, 0.08);
}

.shell-status--warning {
    color: var(--shell-warning);
    border-color: rgba(154, 91, 18, 0.2);
    background: rgba(154, 91, 18, 0.09);
}

.shell-status--danger {
    color: var(--shell-danger);
    border-color: rgba(155, 58, 49, 0.2);
    background: rgba(155, 58, 49, 0.08);
}

.shell-text-link,
.shell-breadcrumbs a {
    color: var(--shell-accent);
    text-decoration: none;
}

.shell-text-link:hover,
.shell-breadcrumbs a:hover,
.shell-text-link:focus-visible,
.shell-breadcrumbs a:focus-visible {
    text-decoration: underline;
}

.shell-text-link--export {
    display: inline-block;
    width: fit-content;
}

.shell-text-link--loading {
    pointer-events: none;
    opacity: 0.84;
    text-decoration: none;
}

.shell-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 700;
    transition:
        transform 180ms ease,
        background-color 180ms ease,
        border-color 180ms ease;
}

.shell-button:hover,
.shell-button:focus-visible {
    transform: translateY(-1px);
}

.shell-button--primary {
    background: var(--shell-accent);
    color: #fff8f0;
}

.shell-button--secondary {
    border-color: var(--shell-line);
    background: rgba(255, 253, 248, 0.9);
    color: var(--shell-ink);
}

.shell-button--disabled,
.shell-button[disabled],
.shell-button[aria-disabled="true"] {
    opacity: 0.42;
    pointer-events: none;
    transform: none;
    cursor: default;
}

.shell-empty {
    margin-top: 10px;
    padding: 20px 0 4px;
    border-top: 1px solid var(--shell-line);
}

.shell-empty h3 {
    font-size: 1.2rem;
}

.shell-timeline,
.shell-checklist,
.shell-bullet-list {
    margin-top: 10px;
}

.shell-timeline {
    display: grid;
    gap: 12px;
}

.shell-timeline__item {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding-top: 12px;
    border-top: 1px solid var(--shell-line);
}

.shell-timeline__item:first-child {
    padding-top: 0;
    border-top: none;
}

.shell-timeline__index {
    display: grid;
    place-items: center;
    width: 42px;
    aspect-ratio: 1;
    border-radius: 14px;
    background: var(--shell-accent-soft);
    color: var(--shell-accent);
    font-weight: 700;
}

.shell-timeline__item h3 {
    font-size: 1rem;
}

.shell-timeline__item p {
    margin: 6px 0 0;
    line-height: 1.4;
}

.shell-bullet-list,
.shell-checklist {
    display: grid;
    gap: 8px;
}

.shell-bullet-list li,
.shell-checklist li {
    position: relative;
    padding-left: 14px;
    line-height: 1.4;
}

.shell-bullet-list li::before,
.shell-checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--shell-accent);
    transform: translateY(-50%);
}

.deck-section-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: end;
}

.deck-section-head p:last-child {
    max-width: 54ch;
}

.deck-filter-surface {
    position: relative;
    overflow: hidden;
}

.deck-filter-surface::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: min(340px, 48%);
    height: 2px;
    background: linear-gradient(90deg, rgba(139, 94, 52, 0.88), transparent);
}

.deck-filters {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(160px, 0.95fr) repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.deck-filters--compact {
    grid-template-columns: minmax(0, 1.6fr) minmax(160px, 0.95fr) minmax(180px, 1fr) auto;
}

.deck-filter {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.deck-filter span,
.deck-row__label {
    color: var(--shell-muted);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.deck-filter input,
.deck-filter select {
    width: 100%;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid rgba(84, 60, 32, 0.16);
    border-radius: 16px;
    background: rgba(255, 252, 247, 0.96);
    color: var(--shell-ink);
    font: inherit;
}

.deck-filter input:focus,
.deck-filter select:focus {
    outline: 2px solid rgba(139, 94, 52, 0.18);
    outline-offset: 2px;
    border-color: rgba(139, 94, 52, 0.34);
}

.deck-filter--actions {
    align-self: end;
    grid-auto-flow: column;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.deck-list {
    margin-top: 10px;
    border-top: 1px solid var(--shell-line);
}

.deck-table-head {
    display: grid;
    grid-template-columns: minmax(280px, 1.45fr) minmax(150px, 0.7fr) minmax(180px, 0.9fr) minmax(120px, 0.55fr) minmax(110px, 0.5fr);
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--shell-line);
}

.deck-table-head__cell {
    color: var(--shell-muted);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.deck-row {
    display: grid;
    grid-template-columns: minmax(220px, 1.2fr) minmax(150px, 0.86fr) minmax(180px, 0.9fr) minmax(140px, 0.7fr);
    gap: 10px;
    align-items: start;
    padding: 12px 0;
    border-top: 1px solid var(--shell-line);
}

.deck-row:first-child {
    border-top: none;
}

.deck-row--presentation {
    grid-template-columns: minmax(280px, 1.45fr) minmax(150px, 0.7fr) minmax(180px, 0.9fr) minmax(120px, 0.55fr) minmax(110px, 0.5fr);
    gap: 12px;
}

.deck-row__lead h3,
.deck-empty-state h3 {
    margin: 4px 0 0;
    font-size: 1rem;
}

.deck-row__detail,
.deck-row__status {
    display: grid;
    gap: 6px;
}

.deck-row__detail--tag {
    align-content: start;
}

.deck-row__detail--muted strong {
    font-size: 0.98rem;
    line-height: 1.45;
}

.deck-row__detail strong,
.deck-row__status p,
.deck-row__detail p {
    line-height: 1.55;
}

.deck-row__detail p,
.deck-row__status p,
.deck-row__disabled-action {
    margin: 0;
    color: var(--shell-muted);
}

.deck-row__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 6px 12px;
    min-width: 0;
    grid-column: 1 / -1;
}

.deck-row__actions--stacked {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 6px;
    grid-column: auto;
}

.deck-row__action-link,
.deck-row__action-button {
    font-size: 0.92rem;
    line-height: 1.2;
}

.deck-row__action-form {
    margin: 0;
}

.deck-row__action-button {
    padding: 0;
    border: none;
    background: none;
    color: var(--shell-danger);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.deck-row__action-button:hover,
.deck-row__action-button:focus-visible {
    text-decoration: underline;
}

.deck-row__disabled-action {
    font-size: 0.92rem;
    line-height: 1.5;
}

.deck-chip {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    align-self: start;
    width: fit-content;
    max-width: 100%;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid var(--shell-line);
    background: rgba(255, 253, 248, 0.92);
    color: var(--shell-ink);
    font-size: 0.94rem;
    white-space: nowrap;
}

.deck-chip--success {
    color: var(--shell-success);
    border-color: rgba(31, 106, 79, 0.2);
    background: rgba(31, 106, 79, 0.08);
}

.deck-chip--warning {
    color: var(--shell-warning);
    border-color: rgba(154, 91, 18, 0.2);
    background: rgba(154, 91, 18, 0.09);
}

.deck-chip--default {
    color: var(--shell-muted);
    border-color: rgba(84, 60, 32, 0.14);
    background: rgba(255, 253, 248, 0.92);
}

.deck-empty-state {
    margin-top: 10px;
    padding: 18px 0 2px;
    border-top: 1px solid var(--shell-line);
}

.deck-empty-state p:last-child {
    max-width: 54ch;
    line-height: 1.6;
}

@media (min-width: 1180px) {
    .shell-header__copy--compact .shell-header__description {
        max-width: none;
        white-space: nowrap;
    }
}

.deck-empty-state .shell-button,
.export-empty-state .shell-button {
    margin-top: 14px;
}

.wizard-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(255, 244, 227, 0.95), transparent 32%),
        linear-gradient(140deg, rgba(111, 72, 31, 0.08), rgba(255, 253, 248, 0.22)),
        var(--shell-surface);
}

.wizard-hero::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: min(420px, 62%);
    height: 2px;
    background: linear-gradient(90deg, rgba(139, 94, 52, 0.94), transparent);
}

.wizard-hero__copy {
    max-width: 60ch;
}

.wizard-progress {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.wizard-progress__item {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--shell-line);
    border-radius: 20px;
    background: rgba(255, 252, 246, 0.82);
    text-decoration: none;
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        background-color 180ms ease,
        box-shadow 180ms ease;
}

.wizard-progress__item:hover,
.wizard-progress__item:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(139, 94, 52, 0.28);
    box-shadow: 0 12px 24px rgba(52, 36, 15, 0.08);
}

.wizard-progress__item p,
.wizard-progress__item h3 {
    margin: 0;
}

.wizard-progress__item p {
    color: var(--shell-muted);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.wizard-progress__item h3 {
    margin-top: 6px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.98rem;
}

.wizard-progress__item--done {
    border-color: rgba(31, 106, 79, 0.24);
    background: rgba(242, 251, 246, 0.9);
}

.wizard-progress__item--current {
    border-color: rgba(139, 94, 52, 0.24);
    background: rgba(255, 248, 238, 0.94);
}

.wizard-progress__number {
    display: grid;
    place-items: center;
    width: 44px;
    aspect-ratio: 1;
    border-radius: 14px;
    background: var(--shell-accent-soft);
    color: var(--shell-accent);
    font-weight: 700;
}

.wizard-surface {
    position: relative;
}

.wizard-surface--muted {
    background:
        linear-gradient(180deg, rgba(132, 118, 102, 0.05), rgba(255, 253, 248, 0)),
        var(--shell-surface);
}

.wizard-section-head {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: end;
}

.wizard-form {
    display: grid;
    gap: 18px;
    margin-top: 18px;
}

.wizard-form--date {
    grid-template-columns: minmax(0, 260px) auto;
    align-items: end;
}

.wizard-form--stacked {
    gap: 26px;
}

.wizard-form__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.wizard-form__actions--stacked {
    justify-content: space-between;
}

.wizard-final-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.wizard-field {
    min-width: 0;
}

.wizard-manual-prayer-panel--hidden {
    display: none;
}

.wizard-manual-preces-panel--hidden {
    display: none;
}

.wizard-field textarea,
.wizard-field select,
.wizard-field input {
    width: 100%;
}

.wizard-field textarea {
    padding: 14px;
    border: 1px solid rgba(84, 60, 32, 0.16);
    border-radius: 18px;
    background: rgba(255, 252, 247, 0.96);
    color: var(--shell-ink);
    font: inherit;
    resize: vertical;
}

.wizard-field textarea:focus {
    outline: 2px solid rgba(139, 94, 52, 0.18);
    outline-offset: 2px;
    border-color: rgba(139, 94, 52, 0.34);
}

.wizard-error {
    color: var(--shell-danger);
    font-size: 0.9rem;
    line-height: 1.5;
}

.wizard-error--block {
    margin: 0 0 12px;
}

.wizard-helper {
    color: var(--shell-muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

.wizard-liturgy {
    margin-top: 26px;
    display: grid;
    gap: 18px;
}

.wizard-liturgy__hero {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 22px;
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(255, 247, 232, 0.94), rgba(255, 252, 246, 0.82));
    border: 1px solid rgba(139, 94, 52, 0.14);
}

.wizard-liturgy__hero--warning {
    background:
        linear-gradient(135deg, rgba(255, 241, 230, 0.96), rgba(255, 249, 241, 0.86));
    border-color: rgba(139, 94, 52, 0.22);
}

.wizard-liturgy__hero h3 {
    margin: 8px 0 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.4rem, 2vw, 1.9rem);
}

.wizard-liturgy__hero p:last-child {
    margin: 10px 0 0;
    color: var(--shell-muted);
}

.wizard-liturgy__actions {
    display: flex;
    align-items: flex-start;
}

.wizard-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    align-content: flex-start;
}

.wizard-badge {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(139, 94, 52, 0.12);
    color: var(--shell-accent-strong);
    font-size: 0.88rem;
    font-weight: 700;
}

.wizard-reading-grid,
.wizard-prayer-grid {
    display: grid;
    gap: 14px;
}

.wizard-reading-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.wizard-prayer-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.wizard-reading-card,
.wizard-prayer-card,
.wizard-choice,
.wizard-radio-card {
    border: 1px solid var(--shell-line);
    border-radius: 22px;
    background: rgba(255, 252, 247, 0.84);
}

.wizard-reading-card,
.wizard-prayer-card {
    padding: 18px;
}

.wizard-reading-card h4,
.wizard-empty h3,
.wizard-choice__head h3 {
    margin: 8px 0 0;
    font-family: Georgia, "Times New Roman", serif;
}

.wizard-reading-card p:last-child,
.wizard-prayer-card p:last-child {
    margin-bottom: 0;
    color: var(--shell-muted);
    line-height: 1.6;
}

.wizard-choice {
    padding: 18px;
    display: grid;
    gap: 12px;
}

.wizard-choice__head p:last-child {
    margin-top: 10px;
    color: var(--shell-muted);
    line-height: 1.6;
}

.wizard-radio-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 16px 18px;
}

.wizard-radio-card input {
    margin-top: 5px;
}

.wizard-radio-card strong,
.wizard-summary-list dd {
    display: block;
}

.wizard-radio-card small,
.wizard-summary-list p {
    display: block;
    margin-top: 6px;
    color: var(--shell-muted);
    line-height: 1.5;
}

.wizard-empty {
    padding: 8px 0 0;
}

.wizard-empty p:last-child {
    max-width: 52ch;
    color: var(--shell-muted);
    line-height: 1.6;
}

.wizard-empty--compact {
    padding-top: 0;
}

.wizard-summary-list {
    display: grid;
    gap: 16px;
    margin: 16px 0 0;
}

.wizard-summary-list dt {
    color: var(--shell-muted);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.wizard-summary-list dd {
    margin: 8px 0 0;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.45;
}

.wizard-song-grid,
.wizard-review-grid {
    display: grid;
    gap: 16px;
}

.wizard-song-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.wizard-song-card,
.wizard-review-card,
.wizard-review-row,
.wizard-review-missing {
    border: 1px solid var(--shell-line);
    border-radius: 22px;
    background: rgba(255, 252, 247, 0.84);
}

.wizard-song-card,
.wizard-review-card,
.wizard-review-row,
.wizard-review-missing {
    padding: 18px;
}

.wizard-song-card {
    display: grid;
    gap: 16px;
}

.wizard-song-card__head,
.wizard-song-card__filters {
    display: grid;
    gap: 12px;
}

.wizard-song-card__head h3,
.wizard-review-card h3,
.wizard-review-row h3 {
    margin: 8px 0 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.15rem;
}

.wizard-song-card__head p:last-child,
.wizard-review-card p:last-child,
.wizard-review-row p:last-child {
    margin: 8px 0 0;
    color: var(--shell-muted);
    line-height: 1.6;
}

.wizard-song-card__filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wizard-song-results,
.wizard-review-list {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.wizard-song-result {
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(255, 248, 238, 0.72);
    border: 1px solid rgba(139, 94, 52, 0.1);
}

.wizard-song-result strong,
.wizard-song-result small {
    display: block;
}

.wizard-song-result small {
    margin-top: 4px;
    color: var(--shell-muted);
    line-height: 1.5;
}

.wizard-song-result--selected,
.wizard-review-row--selected {
    border-color: rgba(31, 106, 79, 0.2);
    background: rgba(242, 251, 246, 0.92);
}

.wizard-review-row--empty {
    border-color: rgba(154, 91, 18, 0.16);
    background: rgba(255, 249, 239, 0.92);
}

.wizard-review-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-top: 22px;
}

.wizard-review-list {
    margin-top: 18px;
}

.wizard-review-row {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 16px;
    align-items: start;
}

.wizard-review-missing {
    margin-top: 18px;
}

.wizard-review-missing .shell-bullet-list {
    margin-top: 12px;
}

.export-notice {
    padding: 20px 22px;
    border: 1px solid var(--shell-line);
    border-radius: 24px;
    background: rgba(255, 253, 248, 0.94);
    box-shadow: var(--shell-shadow);
}

.export-notice h2 {
    margin: 8px 0 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.35rem;
}

.export-notice p:last-child {
    margin: 10px 0 0;
    color: var(--shell-muted);
    line-height: 1.6;
}

.export-notice--success {
    border-color: rgba(31, 106, 79, 0.2);
    background: rgba(242, 251, 246, 0.92);
}

.export-notice--warning {
    border-color: rgba(154, 91, 18, 0.2);
    background: rgba(255, 249, 239, 0.94);
}

.export-notice--danger {
    border-color: rgba(155, 58, 49, 0.2);
    background: rgba(252, 244, 243, 0.94);
}

.export-focus-surface {
    display: grid;
    gap: 20px;
}

.export-deck-picker {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.export-deck-picker__item {
    display: grid;
    gap: 6px;
    padding: 16px 18px;
    border: 1px solid var(--shell-line);
    border-radius: 20px;
    background: rgba(255, 252, 247, 0.9);
    text-decoration: none;
}

.export-deck-picker__item strong {
    font-size: 1rem;
}

.export-deck-picker__item span {
    color: var(--shell-muted);
    line-height: 1.5;
}

.export-deck-picker__item--active {
    border-color: rgba(139, 94, 52, 0.22);
    background: rgba(255, 248, 238, 0.94);
}

.export-focus-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 14px;
}

.export-focus-card {
    padding: 18px;
    border: 1px solid var(--shell-line);
    border-radius: 22px;
    background: rgba(255, 252, 247, 0.86);
}

.export-focus-card h3 {
    margin: 8px 0 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.2rem;
}

.export-focus-card__links,
.export-form__actions,
.export-job-row__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.export-focus-card__links,
.export-form__actions {
    margin-top: 16px;
}

.export-form {
    display: grid;
    gap: 18px;
    margin-top: 14px;
}

.export-revision-grid {
    display: grid;
    gap: 12px;
}

.export-radio-card {
    background: rgba(255, 252, 247, 0.96);
}

.export-radio-card strong,
.export-radio-card small {
    display: block;
}

.export-form__hint {
    margin: 0;
    color: var(--shell-muted);
    line-height: 1.55;
}

.export-job-row {
    grid-template-columns: minmax(0, 1fr) auto auto;
}

.export-job-row--highlighted {
    margin-inline: -12px;
    padding-inline: 12px;
    border-radius: 22px;
    background: rgba(255, 248, 238, 0.64);
}

.export-job-row__actions {
    justify-content: flex-end;
}

.export-empty-state {
    margin-top: 0;
    border-top: none;
    padding-top: 4px;
}

.template-settings-hero {
    position: relative;
    overflow: hidden;
}

.template-settings-hero::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: min(360px, 56%);
    height: 2px;
    background: linear-gradient(90deg, rgba(139, 94, 52, 0.9), transparent);
}

.template-settings-form {
    display: grid;
    gap: 18px;
    margin-top: 18px;
}

.template-pack-grid {
    display: grid;
    gap: 14px;
}

.template-pack-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    padding: 18px;
    border: 1px solid var(--shell-line);
    border-radius: 22px;
    background: rgba(255, 252, 247, 0.9);
    cursor: pointer;
}

.template-pack-card input {
    margin-top: 6px;
}

.template-pack-card--selected {
    border-color: rgba(31, 106, 79, 0.24);
    background: rgba(242, 251, 246, 0.92);
}

.template-pack-card__head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    align-items: start;
}

.template-pack-card__head strong {
    font-size: 1.05rem;
}

.template-pack-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.template-pack-card__summary,
.template-pack-card__description {
    margin: 10px 0 0;
    color: var(--shell-muted);
    line-height: 1.55;
}

.template-settings-form__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.account-settings-stage {
    align-items: start;
}

.account-settings-hero {
    position: relative;
    overflow: hidden;
}

.account-settings-hero__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(220px, 0.8fr);
    gap: 20px;
    align-items: center;
}

.account-identity {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    justify-self: end;
    width: 100%;
    max-width: 340px;
}

.account-brand-mark {
    width: 78px;
    height: 78px;
    border-radius: 24px;
    border: 1px solid rgba(84, 60, 32, 0.12);
    background:
        linear-gradient(135deg, rgba(139, 94, 52, 0.14), rgba(61, 42, 31, 0.02)),
        rgba(255, 252, 247, 0.96);
    display: grid;
    place-items: center;
    overflow: hidden;
    color: var(--shell-accent-strong);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.account-brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.account-identity__copy {
    display: grid;
    gap: 8px;
}

.account-identity__copy strong {
    font-size: 1rem;
}

.account-identity__copy p {
    margin: 0;
    color: var(--shell-muted);
    line-height: 1.4;
}

.account-form {
    display: grid;
    gap: 18px;
    margin-top: 18px;
}

.account-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.account-field {
    display: grid;
    gap: 8px;
}

.account-field--full {
    grid-column: 1 / -1;
}

.account-field__label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--shell-muted);
}

.account-form__control {
    width: 100%;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 16px;
    border: 1px solid var(--shell-line);
    background: rgba(255, 253, 248, 0.95);
    color: var(--shell-ink);
    font: inherit;
}

.account-form__control--file {
    padding: 10px 14px;
}

.account-logo-upload {
    display: grid;
    gap: 10px;
}

.account-field__help,
.account-form__permission-note {
    margin: 0;
    color: var(--shell-muted);
    line-height: 1.45;
}

.account-field__error,
.account-form__errors p {
    margin: 0;
    color: var(--shell-danger);
    line-height: 1.45;
}

.account-form__errors {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(155, 58, 49, 0.18);
    background: rgba(155, 58, 49, 0.06);
}

.account-form__permission-note {
    margin-top: 18px;
}

.account-facts {
    display: grid;
    gap: 14px;
    margin: 0;
}

.account-facts div {
    padding-top: 14px;
    border-top: 1px solid var(--shell-line);
}

.account-facts div:first-child {
    padding-top: 0;
    border-top: none;
}

.account-facts dt {
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--shell-muted);
}

.account-facts dd {
    margin: 6px 0 0;
    font-size: 1rem;
    line-height: 1.4;
}

.content-stage {
    align-items: start;
}

.content-hero {
    display: grid;
    gap: 18px;
}

.content-metrics {
    margin-top: 2px;
}

.content-readonly-note,
.content-card__note {
    margin: 0;
    color: var(--shell-muted);
    line-height: 1.55;
}

.content-form {
    display: grid;
    gap: 18px;
    margin-top: 18px;
}

.content-form--create {
    padding-top: 16px;
    border-top: 1px solid var(--shell-line);
}

.content-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.content-field {
    display: grid;
    gap: 8px;
}

.content-field--full {
    grid-column: 1 / -1;
}

.content-field__label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--shell-muted);
}

.content-form__control {
    width: 100%;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 16px;
    border: 1px solid var(--shell-line);
    background: rgba(255, 253, 248, 0.95);
    color: var(--shell-ink);
    font: inherit;
}

.content-form__control--textarea {
    min-height: 110px;
    padding: 14px;
    resize: vertical;
}

.content-form__checkbox {
    width: 18px;
    height: 18px;
}

.content-field__help,
.content-card__meta {
    margin: 0;
    color: var(--shell-muted);
    line-height: 1.5;
}

.content-field__error,
.content-form__errors p {
    margin: 0;
    color: var(--shell-danger);
    line-height: 1.45;
}

.content-form__errors {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(155, 58, 49, 0.18);
    background: rgba(155, 58, 49, 0.06);
}

.content-inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.content-list {
    display: grid;
    gap: 14px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--shell-line);
}

.content-card {
    padding: 18px;
    border: 1px solid var(--shell-line);
    border-radius: 22px;
    background: rgba(255, 252, 247, 0.86);
}

.content-card__head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: start;
}

.content-card__head h3 {
    margin: 4px 0 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.1rem;
}

.content-card__badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.content-inline-form {
    margin-top: 12px;
}

.content-inline-form__button {
    padding: 0;
    border: none;
    background: none;
    font: inherit;
    cursor: pointer;
}

.content-inline-form__button:hover,
.content-inline-form__button:focus-visible {
    text-decoration: underline;
}

@keyframes shell-rise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1080px) {
    .shell-app {
        grid-template-columns: 1fr;
    }

    .shell-sidebar {
        position: static;
        height: auto;
        border-right: none;
        border-bottom: 1px solid rgba(255, 248, 236, 0.08);
    }

    .shell-main-frame {
        padding-top: 20px;
    }

    .shell-stage {
        grid-template-columns: 1fr;
    }

    .wizard-progress {
        grid-template-columns: 1fr;
    }

    .deck-filters,
    .deck-row,
    .export-focus-grid,
    .deck-table-head,
    .account-form__grid,
    .content-form__grid {
        grid-template-columns: 1fr 1fr;
    }

    .deck-filters--compact,
    .deck-row--presentation {
        grid-template-columns: 1fr 1fr;
    }

    .deck-table-head {
        display: none;
    }

    .deck-filter--actions,
    .deck-row__actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 780px) {
    .shell-main-frame,
    .shell-sidebar {
        padding-left: 16px;
        padding-right: 16px;
    }

    .shell-header,
    .shell-surface,
    .shell-strip {
        border-radius: 24px;
    }

    .shell-header__body,
    .shell-row {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .shell-header__description--nowrap {
        white-space: normal;
    }

    .wizard-liturgy__hero,
    .wizard-section-head,
    .wizard-form--date,
    .wizard-form__actions--stacked,
    .wizard-final-actions,
    .account-settings-hero__layout,
    .account-form__grid,
    .content-form__grid {
        grid-template-columns: 1fr;
        display: grid;
    }

    .account-identity {
        justify-self: start;
    }

    .deck-section-head,
    .deck-filters,
    .deck-row,
    .export-focus-grid,
    .deck-table-head,
    .content-card__head {
        grid-template-columns: 1fr;
    }

    .deck-filters--compact,
    .deck-row--presentation {
        grid-template-columns: 1fr;
    }

    .deck-table-head {
        display: none;
    }

    .wizard-reading-grid,
    .wizard-prayer-grid,
    .wizard-song-card__filters,
    .wizard-review-row,
    .template-pack-card {
        grid-template-columns: 1fr;
    }

    .deck-filter--actions {
        grid-template-columns: 1fr;
    }

    .export-job-row__actions {
        justify-content: flex-start;
    }

    .shell-row__action {
        padding-top: 2px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0ms !important;
    }
}
