.practice-calendar-shell,
.household-meetings-shell {
    display: grid;
    gap: 18px;
    color: var(--advisor-ink, #1f2622);
}

.meeting-page-header,
.household-meetings-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.meeting-page-header h1,
.household-meetings-header h2 {
    margin: 4px 0 6px;
    font-family: var(--advisor-serif, "Newsreader", serif);
    font-weight: 500;
}

.household-meetings-header h2 {
    font-size: clamp(28px, 4vw, 40px);
}

.household-meetings-header p:last-child {
    max-width: 720px;
    margin: 0;
    color: var(--advisor-muted, #68736d);
}

.meeting-page-actions,
.household-meetings-header > div:last-child {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.meeting-header-actions {
    flex: 0 0 auto;
    flex-wrap: nowrap;
    align-self: center;
}

.advisor-app .meeting-header-actions .button {
    min-height: 44px;
    padding-inline: 18px;
    border-radius: 12px;
    letter-spacing: 0.025em;
    text-transform: none;
}

.advisor-app .meeting-header-actions .button.primary {
    border-color: var(--advisor-color-accent, #2f6f55);
    background: var(--advisor-color-accent, #2f6f55);
    color: #fff;
    box-shadow: 0 10px 24px rgba(47, 111, 85, 0.18);
}

.advisor-app .meeting-header-actions .button.secondary {
    border-color: color-mix(in srgb, var(--advisor-color-accent-warm, #9a6b2f) 46%, var(--advisor-color-border, #d9dfdb));
    background: color-mix(in srgb, var(--advisor-color-surface, #fff) 84%, #f3ead9);
    color: var(--advisor-color-ink, #1f2622);
}

.meeting-scope-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 16px;
    border: 1px solid var(--advisor-line, #d9dfdb);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(47, 111, 85, 0.09), rgba(255, 255, 255, 0.8));
}

.meeting-scope-band div span,
.meeting-scope-band label span,
.meeting-filter-bar label span {
    display: block;
    margin-bottom: 4px;
    color: var(--advisor-muted, #68736d);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.meeting-scope-band strong {
    font-size: 14px;
}

.meeting-scope-band select,
.meeting-filter-bar select {
    min-height: 36px;
    padding: 7px 34px 7px 10px;
    border: 1px solid var(--advisor-line, #d9dfdb);
    border-radius: 9px;
    background: #fff;
    color: inherit;
}

.meeting-workspace {
    overflow: hidden;
    border: 1px solid var(--advisor-line, #d9dfdb);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 46px rgba(27, 39, 32, 0.06);
}

.meeting-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--advisor-line, #d9dfdb);
}

.meeting-period-controls,
.meeting-view-controls,
.meeting-agenda-range {
    display: flex;
    align-items: center;
    gap: 6px;
}

.meeting-period-controls button,
.meeting-view-controls button,
.meeting-agenda-range button {
    min-height: 34px;
    padding: 7px 10px;
    border: 1px solid var(--advisor-line, #d9dfdb);
    border-radius: 9px;
    background: #fff;
    color: inherit;
    cursor: pointer;
}

.meeting-view-controls button.active,
.meeting-agenda-range button.active {
    border-color: #2f6f55;
    background: #2f6f55;
    color: #fff;
}

.meeting-period-controls strong {
    min-width: 150px;
    margin-left: 8px;
    font-family: var(--advisor-serif, "Newsreader", serif);
    font-size: 21px;
    font-weight: 500;
}

.meeting-filter-bar {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--advisor-line, #d9dfdb);
    background: rgba(245, 247, 245, 0.76);
}

.meeting-filter-count {
    margin-left: auto;
    padding-bottom: 8px;
    color: var(--advisor-muted, #68736d);
    font-size: 12px;
}

.meeting-month-weekdays,
.meeting-month-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.meeting-month-weekdays span {
    padding: 9px 8px;
    border-right: 1px solid var(--advisor-line, #d9dfdb);
    color: var(--advisor-muted, #68736d);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-align: center;
    text-transform: uppercase;
}

.meeting-month-cell {
    min-height: 132px;
    padding: 7px;
    border-top: 1px solid var(--advisor-line, #d9dfdb);
    border-right: 1px solid var(--advisor-line, #d9dfdb);
    background: #fff;
}

.meeting-month-cell:nth-child(7n) {
    border-right: 0;
}

.meeting-month-cell.is-outside {
    background: #f7f8f7;
    color: #9aa29e;
}

.meeting-month-cell.is-today {
    box-shadow: inset 0 3px 0 #2f6f55;
}

.meeting-month-date {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 25px;
    padding: 0 2px;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    text-align: left;
}

.meeting-month-date:disabled {
    cursor: default;
}

.meeting-month-date span {
    font-weight: 700;
}

.meeting-month-date em {
    color: #2f6f55;
    font-size: 9px;
    font-style: normal;
    font-weight: 700;
    text-transform: uppercase;
}

.meeting-month-events {
    display: grid;
    gap: 4px;
    margin-top: 4px;
}

.meeting-month-event {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 2px 5px;
    width: 100%;
    padding: 5px 6px;
    overflow: hidden;
    border: 0;
    border-left: 3px solid var(--meeting-color);
    border-radius: 6px;
    background: color-mix(in srgb, var(--meeting-color) 10%, white);
    color: #27312c;
    cursor: pointer;
    text-align: left;
}

.meeting-month-event strong,
.meeting-month-event span,
.meeting-month-event small {
    overflow: hidden;
    font-size: 9px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.meeting-month-event small {
    grid-column: 1 / -1;
    color: var(--advisor-muted, #68736d);
}

.meeting-month-more {
    padding: 2px 6px;
    color: var(--advisor-muted, #68736d);
    font-size: 9px;
}

.meeting-agenda {
    display: grid;
}

.meeting-agenda-list {
    display: grid;
    gap: 10px;
    padding: 18px;
}

.meeting-load-more {
    display: flex;
    justify-content: center;
    padding: 0 18px 18px;
}

.meeting-agenda-day {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 18px;
    padding: 18px;
    border-bottom: 1px solid var(--advisor-line, #d9dfdb);
}

.meeting-agenda-day:last-child {
    border-bottom: 0;
}

.meeting-agenda-day > header {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
}

.meeting-agenda-day > header > span {
    display: grid;
    place-items: center;
    min-height: 38px;
    border-radius: 10px;
    background: #edf3ef;
    color: #2f6f55;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.meeting-agenda-day header strong,
.meeting-agenda-day header em {
    display: block;
}

.meeting-agenda-day header strong {
    font-size: 13px;
}

.meeting-agenda-day header em {
    margin-top: 4px;
    color: var(--advisor-muted, #68736d);
    font-size: 10px;
    font-style: normal;
}

.meeting-agenda-day > div {
    display: grid;
    gap: 8px;
}

.meeting-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
    border: 1px solid var(--advisor-line, #d9dfdb);
    border-radius: 12px;
    background: #fff;
}

.meeting-card-export {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    align-self: center;
    margin-right: 12px;
    min-height: 32px;
    padding: 7px 11px;
    border: 1px solid var(--advisor-line, #d9dfdb);
    border-radius: 8px;
    color: #2f6f55;
    background: #f8fbf9;
    cursor: pointer;
    font-family: inherit;
    font-size: 10.5px;
    font-weight: 750;
    white-space: nowrap;
    transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}

.meeting-card-export svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.meeting-card-export:hover {
    border-color: #2f6f55;
    background: #edf5f0;
    transform: translateY(-1px);
}

.meeting-card.is-overdue {
    border-color: color-mix(in srgb, #9a6b2f 54%, var(--advisor-line, #d9dfdb));
    background: #fffaf1;
}

.meeting-card-main {
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    width: 100%;
    padding: 12px 13px;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    text-align: left;
}

.meeting-type-dot,
.meeting-type-swatch {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--meeting-color);
}

.meeting-card-copy strong,
.meeting-card-copy em,
.meeting-card-copy small {
    display: block;
}

.meeting-card-copy .meeting-agenda-progress {
    color: #2f6f55;
    font-weight: 700;
}

.meeting-card-copy strong {
    font-size: 13px;
}

.meeting-card-copy em,
.meeting-card-copy small {
    margin-top: 3px;
    color: var(--advisor-muted, #68736d);
    font-size: 10px;
    font-style: normal;
}

.meeting-status {
    padding: 5px 8px;
    border-radius: 999px;
    background: #edf3ef;
    color: #2f6f55;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
}

.meeting-status--cancelled,
.meeting-status--no_show {
    background: #f5ecec;
    color: #915452;
}

.meeting-status--completed {
    background: #eef0f5;
    color: #59667d;
}

.meeting-empty,
.meeting-loading {
    display: grid;
    place-items: center;
    min-height: 250px;
    padding: 30px;
    text-align: center;
}

.meeting-empty strong,
.meeting-empty span {
    display: block;
}

.meeting-empty span {
    margin-top: 6px;
    color: var(--advisor-muted, #68736d);
}

.meeting-loading span {
    width: 26px;
    height: 26px;
    margin-bottom: 10px;
    border: 2px solid #d9dfdb;
    border-top-color: #2f6f55;
    border-radius: 50%;
    animation: meeting-spin 800ms linear infinite;
}

@keyframes meeting-spin {
    to { transform: rotate(360deg); }
}

.meeting-overlay {
    position: fixed;
    z-index: 120;
    inset: 0;
    display: flex;
    justify-content: flex-end;
    background: rgba(18, 25, 21, 0.42);
    backdrop-filter: blur(3px);
}

.meeting-drawer {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto auto;
    width: min(560px, 100vw);
    height: 100%;
    overflow: hidden;
    background: #fbfcfb;
    box-shadow: -28px 0 70px rgba(16, 28, 21, 0.18);
}

.meeting-drawer > header,
.meeting-drawer > footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--advisor-line, #d9dfdb);
}

.meeting-drawer > footer {
    border-top: 1px solid var(--advisor-line, #d9dfdb);
    border-bottom: 0;
}

.meeting-drawer h2 {
    margin: 3px 0 0;
    font-family: var(--advisor-serif, "Newsreader", serif);
    font-size: 30px;
    font-weight: 500;
}

.meeting-drawer form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-content: start;
    padding: 20px;
    overflow: auto;
}

.meeting-field--wide {
    grid-column: 1 / -1;
}

.meeting-field span,
.meeting-type-form label span {
    display: block;
    margin-bottom: 5px;
    color: var(--advisor-muted, #68736d);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.meeting-field input,
.meeting-field select,
.meeting-field textarea,
.meeting-type-form input {
    width: 100%;
    min-height: 40px;
    padding: 9px 10px;
    border: 1px solid var(--advisor-line, #d9dfdb);
    border-radius: 9px;
    background: #fff;
    color: inherit;
    font: inherit;
}

.meeting-field textarea {
    min-height: 96px;
    resize: vertical;
}

.meeting-field > small,
.meeting-agenda-editor-heading small {
    display: block;
    margin-top: 6px;
    color: var(--advisor-muted, #68736d);
    font-size: 10px;
    line-height: 1.4;
}

.meeting-agenda-editor {
    display: grid;
    gap: 10px;
}

.meeting-agenda-editor-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.meeting-agenda-editor-heading > div > span {
    display: block;
    color: var(--advisor-muted, #68736d);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.meeting-agenda-editor-list {
    display: grid;
    gap: 7px;
}

.meeting-agenda-editor-item {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr) 30px 30px 30px;
    gap: 6px;
    align-items: center;
}

.meeting-agenda-editor-item input[type="checkbox"] {
    width: 18px;
    min-height: 18px;
    accent-color: #2f6f55;
}

.meeting-agenda-editor-item input[type="text"] {
    min-width: 0;
}

.meeting-agenda-editor-item.is-complete input[type="text"] {
    color: var(--advisor-muted, #68736d);
    text-decoration: line-through;
}

.meeting-agenda-editor-item button {
    display: grid;
    place-items: center;
    width: 30px;
    min-height: 30px;
    padding: 0;
    border: 1px solid var(--advisor-line, #d9dfdb);
    border-radius: 8px;
    background: #fff;
    color: #59645e;
    cursor: pointer;
}

.meeting-editor-notice {
    min-height: 0;
    padding: 0 20px;
    color: #9a4d49;
    font-size: 12px;
}

.meeting-editor-notice.is-visible {
    min-height: 36px;
    padding-block: 9px;
}

.meeting-drawer--types {
    grid-template-rows: auto minmax(0, 1fr) auto auto;
}

.meeting-type-list {
    padding: 14px 20px;
    overflow: auto;
}

.meeting-type-list article {
    display: grid;
    grid-template-columns: 12px minmax(0, 1fr) auto auto;
    gap: 10px;
    align-items: center;
    padding: 11px 0;
    border-bottom: 1px solid var(--advisor-line, #d9dfdb);
}

.meeting-type-list article.is-archived {
    opacity: 0.55;
}

.meeting-type-list strong,
.meeting-type-list em {
    display: block;
}

.meeting-type-list em {
    margin-top: 3px;
    color: var(--advisor-muted, #68736d);
    font-size: 10px;
    font-style: normal;
}

.meeting-type-list button {
    border: 0;
    background: transparent;
    color: #2f6f55;
    cursor: pointer;
    font-weight: 700;
}

.meeting-drawer .meeting-type-form {
    grid-template-columns: minmax(0, 1fr) 90px 150px;
    overflow: visible;
    border-top: 1px solid var(--advisor-line, #d9dfdb);
}

.meeting-export-modal {
    display: grid;
    width: min(540px, calc(100vw - 28px));
    max-height: min(720px, calc(100vh - 36px));
    margin: auto;
    overflow: hidden;
    border: 1px solid rgba(217, 223, 219, 0.92);
    border-radius: 18px;
    background: #fbfcfb;
    box-shadow: 0 32px 90px rgba(16, 28, 21, 0.25);
}

.meeting-export-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 24px 24px 18px;
    border-bottom: 1px solid var(--advisor-line, #d9dfdb);
}

.meeting-export-modal-header h2 {
    margin: 4px 0 0;
    font-family: var(--advisor-serif, "Newsreader", serif);
    font-size: clamp(27px, 5vw, 34px);
    font-weight: 500;
    line-height: 1.05;
}

.meeting-export-close {
    display: grid;
    place-items: center;
    width: 34px;
    min-width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid var(--advisor-line, #d9dfdb);
    border-radius: 50%;
    color: var(--advisor-muted, #68736d);
    background: #fff;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
}

.meeting-pdf-summary {
    display: grid;
    grid-template-columns: 12px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    margin: 20px 24px 0;
    padding: 16px 17px;
    border: 1px solid #e0d4c2;
    border-radius: 14px;
    background: #fffdf8;
}

.meeting-pdf-summary > span {
    width: 10px;
    height: 10px;
    margin-top: 4px;
    border-radius: 50%;
    background: var(--meeting-color);
}

.meeting-pdf-summary strong,
.meeting-pdf-summary em,
.meeting-pdf-summary small {
    display: block;
}

.meeting-pdf-summary em,
.meeting-pdf-summary small {
    margin-top: 4px;
    color: var(--advisor-muted, #68736d);
    font-size: 11px;
    font-style: normal;
}

.meeting-pdf-summary-meta {
    display: grid;
    gap: 8px;
    justify-items: end;
}

.meeting-pdf-summary-meta b {
    color: var(--advisor-muted, #68736d);
    font-size: 9px;
    font-weight: 700;
    white-space: nowrap;
}

.meeting-pdf-options {
    display: grid;
    gap: 14px;
    padding: 16px 24px 20px;
    overflow: auto;
}

.meeting-pdf-note-option {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 14px;
    border: 1px solid var(--advisor-line, #d9dfdb);
    border-radius: 10px;
    background: #fff;
}

.meeting-pdf-note-option strong,
.meeting-pdf-note-option small {
    display: block;
}

.meeting-pdf-note-option small {
    margin-top: 4px;
    color: var(--advisor-muted, #68736d);
    font-size: 10px;
    line-height: 1.45;
}

.meeting-pdf-privacy {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 13px 14px;
    border-radius: 11px;
    color: var(--advisor-muted, #68736d);
    background: #eef4f0;
    font-size: 10.5px;
    line-height: 1.45;
}

.meeting-pdf-privacy svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: #2f6f55;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.55;
}

.meeting-pdf-privacy span,
.meeting-pdf-privacy strong {
    display: block;
}

.meeting-pdf-privacy strong {
    margin-bottom: 2px;
    color: #254f3f;
    font-size: 11px;
}

.meeting-export-modal > .meeting-editor-notice {
    padding-inline: 24px;
}

.meeting-export-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px 20px;
    border-top: 1px solid var(--advisor-line, #d9dfdb);
    background: rgba(255, 255, 255, 0.86);
}

.meeting-type-form h3 {
    grid-column: 1 / -1;
    margin: 0;
}

@media (max-width: 900px) {
    .meeting-toolbar,
    .meeting-scope-band {
        align-items: stretch;
        flex-direction: column;
    }

    .meeting-filter-bar {
        flex-wrap: wrap;
    }

    .meeting-filter-count {
        width: 100%;
        margin-left: 0;
    }

    .meeting-month-cell {
        min-height: 96px;
    }

    .meeting-month-event small {
        display: none;
    }
}

@media (max-width: 680px) {
    .meeting-card {
        grid-template-columns: 1fr;
    }

    .meeting-card-export {
        justify-self: start;
        margin: 0 12px 12px 44px;
    }

    .meeting-export-modal {
        width: min(100% - 18px, 540px);
        max-height: calc(100vh - 18px);
        border-radius: 15px;
    }

    .meeting-pdf-summary {
        grid-template-columns: 10px minmax(0, 1fr);
        margin-inline: 16px;
    }

    .meeting-pdf-summary-meta {
        grid-column: 2;
        justify-items: start;
    }

    .meeting-pdf-options,
    .meeting-export-modal-header,
    .meeting-export-modal-actions {
        padding-inline: 16px;
    }

    .meeting-export-modal-actions .button {
        flex: 1;
    }
    .meeting-page-header,
    .household-meetings-header {
        align-items: stretch;
        flex-direction: column;
    }

    .meeting-header-actions {
        width: 100%;
        flex-direction: column;
    }

    .meeting-header-actions .button {
        width: 100%;
    }

    .meeting-view-controls {
        width: 100%;
    }

    .meeting-view-controls button {
        flex: 1;
    }

    .meeting-month {
        overflow-x: auto;
    }

    .meeting-month-weekdays,
    .meeting-month-grid {
        min-width: 760px;
    }

    .meeting-agenda-day {
        grid-template-columns: 1fr;
    }

    .meeting-agenda-editor-item {
        grid-template-columns: 20px minmax(0, 1fr) 30px;
    }

    .meeting-agenda-editor-item [data-meeting-action="agenda-up"],
    .meeting-agenda-editor-item [data-meeting-action="agenda-down"] {
        display: none;
    }

    .meeting-drawer form,
    .meeting-drawer .meeting-type-form {
        grid-template-columns: 1fr;
    }

    .meeting-field--wide,
    .meeting-type-form h3 {
        grid-column: auto;
    }
}
