.calendar-page {
    --calendar-ink: #111827;
    --calendar-text: #58616f;
    --calendar-muted: #7b8492;
    --calendar-border: #e7eef3;
    --calendar-card: #ffffff;
    --calendar-teal: #29b8c7;
    --calendar-green: #78bd42;
    --calendar-orange: #f39a23;
    --calendar-deep: #001d33;
    --calendar-radius: 16px;
    --calendar-panel-radius: 24px;
    --calendar-shadow: 0 18px 42px rgba(42, 64, 82, 0.11);
    --calendar-soft-shadow: 0 10px 24px rgba(42, 64, 82, 0.08);
    /* Matches the hero's direction (teal left, warm right) so sections flow into each other */
    background: linear-gradient(90deg, #f6fbfc 0%, #ffffff 50%, #fffbf4 100%);
    color: var(--calendar-ink);
    float: left;
    overflow: hidden;
    width: 100%;
}

header {
    background-color: #001d33;
}

.calendar-page * {
    box-sizing: border-box;
}

.calendar-page ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.calendar-container {
    margin: 0 auto;
    max-width: 1210px;
    padding: 0 24px;
    width: 100%;
}

.calendar-section {
    padding: 72px 0;
}

.calendar-page h1,
.calendar-page h2,
.calendar-page h3 {
    color: var(--calendar-ink);
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    letter-spacing: 0;
    margin: 0;
    overflow-wrap: anywhere;
}

.calendar-page h1 {
    font-size: 56px;
    line-height: 1.05;
}

.calendar-page h2 {
    font-size: 38px;
    line-height: 1.14;
}

.calendar-page h3 {
    font-size: 21px;
    line-height: 1.2;
}

.calendar-page p {
    color: var(--calendar-text);
    font-size: 17px;
    line-height: 1.58;
    margin: 0;
    overflow-wrap: break-word;
}

.calendar-hero {
    padding: 126px 0 92px;
}

.calendar-hero-copy {
    margin: 0 auto 46px;
    max-width: 980px;
    text-align: center;
}

.calendar-hero-copy h1 span {
    display: block;
}

.calendar-hero-copy .calendar-lede {
    margin: 0 auto;
    max-width: 680px;
    padding-top: 28px;
}

/* Hero buttons: primary demo + quiet secondary */
.calendar-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 30px;
}

.calendar-hero-actions .calendar-button {
    margin-top: 0;
}

.calendar-hero-visual {
    margin: 0 auto;
    max-width: 900px;
    position: relative;
}

.calendar-media-frame,
.calendar-product-frame {
    background: #ffffff;
    border: 6px solid #ffffff;
    border-radius: var(--calendar-radius);
    box-shadow: var(--calendar-shadow);
    overflow: hidden;
}

.calendar-media-frame img,
.calendar-product-frame img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.calendar-hero-photo {
    aspect-ratio: 16 / 8.45;
    border-radius: 26px;
    border-width: 12px;
    position: relative;
    z-index: 2;
}

.calendar-hero-photo img {
    object-position: center 43%;
}

.calendar-floating-card {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(231, 238, 243, 0.92);
    border-radius: 14px;
    box-shadow: var(--calendar-soft-shadow);
    display: grid;
    gap: 4px;
    max-width: 230px;
    padding: 15px 17px;
    position: absolute;
}

.calendar-floating-card-image {
    background: #ffffff;
    border: 1px solid rgba(205, 215, 228, 0.92);
    border-radius: 16px;
    box-shadow: 0 9px 18px rgba(42, 64, 82, 0.22);
    display: block;
    max-width: none;
    overflow: hidden;
    padding: 0;
    width: clamp(270px, 27vw, 365px);
}

.calendar-floating-card-image img {
    display: block;
    height: auto;
    width: 100%;
}

.calendar-lotus-card {
    padding: 10px 12px;
}

.calendar-floating-card strong {
    color: var(--calendar-ink);
    font-size: 15px;
    line-height: 1.2;
}

.calendar-floating-card span {
    color: var(--calendar-muted);
    font-size: 13px;
    line-height: 1.35;
}

.calendar-card-icon {
    align-items: center;
    background: linear-gradient(90deg, #45d0ef 0%, #1f97dd 100%);
    border-radius: 12px;
    color: #ffffff !important;
    display: inline-flex;
    font-size: 15px !important;
    height: 38px;
    justify-content: center;
    margin-bottom: 4px;
    width: 38px;
}

.calendar-card-icon-green {
    background: linear-gradient(90deg, #7fd12d 0%, #57b52f 100%);
}

.calendar-floating-card-left {
    left: 26px;
    top: 312px;
    z-index: 4;
}

.calendar-floating-card-right {
    right: -170px;
    top: 92px;
    z-index: 4;
}

.calendar-appointment-card {
    left: -82px;
    top: auto;
    bottom: -14px;
    width: 255px;
    z-index: 5;
}

.calendar-split-grid {
    align-items: center;
    display: grid;
    gap: 52px;
    grid-template-columns: minmax(360px, 0.88fr) minmax(0, 1fr);
}

.calendar-split-grid-reverse {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.92fr);
}

.calendar-split-copy,
.calendar-split-media {
    min-width: 0;
}

.calendar-split-copy p {
    margin-top: 18px;
}

.calendar-check-list {
    display: grid;
    gap: 10px;
    margin: 24px 0 0;
}

.calendar-check-list li {
    background: #ffffff;
    border: 1px solid var(--calendar-border);
    border-radius: 10px;
    color: var(--calendar-text);
    font-size: 16px;
    line-height: 1.45;
    padding: 12px 16px 12px 40px;
    position: relative;
}

.calendar-check-list li::before {
    background: var(--calendar-green);
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(120, 189, 66, 0.12);
    content: "";
    height: 10px;
    left: 17px;
    position: absolute;
    top: 18px;
    width: 10px;
}

.calendar-check-list-compact {
    margin-top: 18px;
}

.calendar-schedule-anywhere .calendar-split-grid {
    align-items: center;
    gap: clamp(50px, 5vw, 78px);
    grid-template-columns: minmax(330px, 0.72fr) minmax(0, 1fr);
}

.calendar-schedule-anywhere .calendar-split-copy {
    max-width: 620px;
}

.calendar-schedule-anywhere .calendar-split-copy h2 {
    margin-bottom: 18px;
}

/* Comfortable line length (~65 characters) */
.calendar-schedule-anywhere .calendar-split-copy p,
.calendar-provider-room .calendar-split-copy p {
    max-width: 36em;
}

/* Bullets sit right under the paragraph, flush left, with thin teal checks
   (same style as the AI Concierge page) */
.calendar-schedule-anywhere .calendar-check-list,
.calendar-provider-room .calendar-check-list {
    gap: 12px;
    margin: 26px 0 0;
}

.calendar-schedule-anywhere .calendar-check-list li,
.calendar-provider-room .calendar-check-list li {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    color: var(--calendar-ink);
    font-size: 17px;
    line-height: 1.5;
    padding: 0 0 0 28px;
}

.calendar-schedule-anywhere .calendar-check-list li::before,
.calendar-provider-room .calendar-check-list li::before {
    background: transparent;
    border: solid #137f8c;
    border-radius: 0;
    border-width: 0 1.75px 1.75px 0;
    box-shadow: none;
    content: "";
    height: 11px;
    left: 5px;
    top: 0.32em;
    transform: rotate(45deg);
    width: 5.5px;
}

.calendar-phone-showcase {
    align-items: center;
    display: flex;
    justify-content: center;
}

.calendar-phone-showcase img {
    display: block;
    height: auto;
    max-width: 340px;
    width: min(100%, 340px);
}

.calendar-daily-tools {
    background: rgba(255, 255, 255, 0.64);
}

.calendar-section-heading {
    margin: 0 auto 34px;
    max-width: 760px;
    text-align: center;
}

.calendar-section-heading p {
    margin-top: 16px;
}

.calendar-tool-visuals {
    margin: 0 auto;
    max-width: 1100px;
    padding-right: 205px;
    position: relative;
}

.calendar-product-frame {
    border-width: 5px;
    box-shadow: 0 14px 34px rgba(42, 64, 82, 0.09);
}

.calendar-product-frame img {
    object-fit: contain;
}

.calendar-product-frame-wide {
    background: #f8fbfc;
    width: 100%;
}



.calendar-waitlist {
    background: linear-gradient(90deg, rgba(255, 250, 242, 0.72), rgba(239, 251, 255, 0.72));
}

.calendar-waitlist-visual {
    margin-left: auto;
    max-width: 560px;
    min-height: 560px;
    position: relative;
}

.calendar-waitlist-photo {
    aspect-ratio: 4 / 5.35;
    border-radius: 22px;
    bottom: 0;
    max-width: 420px;
    position: absolute;
    right: 0;
    width: 76%;
}

.calendar-waitlist-photo img {
    object-position: center;
}

.calendar-waitlist-overlay {
    background: #ffffff;
    border-radius: 18px;
    border-width: 0;
    box-shadow: 0 18px 38px rgba(42, 64, 82, 0.16);
    left: 12%;
    padding: 0;
    position: absolute;
    top: 0;
    width: 46%;
    z-index: 2;
}

/* Waitlist bullets: flush left under the paragraph, teal line icons
   (same teal as the Section 2 checks) */
.calendar-waitlist .calendar-feature-rows {
    display: grid;
    gap: 12px;
    margin-top: 26px;
}

.calendar-feature-rows li {
    align-items: center;
    color: var(--calendar-ink);
    display: flex;
    font-size: 17px;
    font-weight: 400;
    gap: 14px;
    line-height: 1.45;
}

.calendar-row-icon {
    align-items: center;
    background: #eaf6f7;
    border-radius: 10px;
    color: #137f8c;
    display: inline-flex;
    flex: 0 0 34px;
    height: 34px;
    justify-content: center;
}

.calendar-row-icon svg {
    display: block;
}

/* Comfortable line length (~65 characters) */
.calendar-waitlist .calendar-split-copy p {
    max-width: 36em;
}

/* Inline text link (e.g. "Explore Online Booking") */
.calendar-text-link {
    align-items: center;
    color: #137f8c;
    display: inline-flex;
    font-size: 16px;
    font-weight: 700;
    gap: 6px;
    margin-top: 22px;
    text-decoration: none;
}

.calendar-text-link svg {
    transition: transform 160ms ease;
}

.calendar-text-link:hover,
.calendar-text-link:focus {
    color: #0f6670;
    text-decoration: none;
}

.calendar-text-link:hover svg {
    transform: translateX(3px);
}

.calendar-text-link:focus-visible {
    border-radius: 4px;
    outline: 3px solid rgba(31, 151, 221, 0.42);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .calendar-text-link svg,
    .calendar-text-link:hover svg {
        transform: none;
        transition: none;
    }
}

.calendar-online-booking {
    background: rgba(255, 255, 255, 0.76);
}

.calendar-booking-panel {
    align-items: center;
    background:
        radial-gradient(circle at 5% 7%, rgba(155, 228, 238, 0.24), transparent 30%),
        radial-gradient(circle at 95% 92%, rgba(243, 195, 67, 0.14), transparent 28%),
        #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 26px;
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.045);
    display: grid;
    gap: 44px;
    grid-template-columns: minmax(540px, 1.18fr) minmax(0, 0.82fr);
    overflow: hidden;
    padding: 24px 54px 24px 24px;
    position: relative;
}


.calendar-booking-photo {
    aspect-ratio: 16 / 10.5;
    box-shadow: 0 14px 30px rgba(42, 64, 82, 0.1);
}

.calendar-booking-photo img {
    object-position: center;
}

.calendar-booking-copy p {
    margin-top: 18px;
}

.calendar-provider-room {
    background: rgba(255, 255, 255, 0.58);
}

/* Online Booking and Provider & Room paddings were stacking into a large gap */
.calendar-section.calendar-online-booking {
    padding-bottom: 32px;
}

.calendar-section.calendar-provider-room {
    padding-top: 32px;
}

.calendar-provider-room .calendar-split-grid {
    align-items: center;
}

/* Height matches the photo (an unused 72px strip above it was removed) */
.calendar-provider-visual {
    min-height: 378px;
    position: relative;
}

.calendar-provider-photo {
    aspect-ratio: 4 / 3;
    bottom: 0;
    left: 7%;
    position: absolute;
    right: 0;
    top: 0;
}

.calendar-provider-photo img {
    object-position: center;
}

.calendar-provider-selector {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(231, 238, 243, 0.92);
    border-radius: 14px;
    box-shadow: var(--calendar-shadow);
    bottom: -22px;
    max-width: 270px;
    overflow: hidden;
    padding: 7px;
    position: absolute;
    right: -18px;
    width: 38%;
    z-index: 2;
}

.calendar-provider-selector img {
    border-radius: 10px;
    display: block;
    height: auto;
    width: 100%;
}

.calendar-sync-section {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.94));
    padding-bottom: 96px;
    padding-top: 96px;
}

.calendar-sync-panel {
    align-items: center;
    display: grid;
    gap: 76px;
    grid-template-columns: minmax(380px, 0.78fr) minmax(0, 1fr);
}

/* Sync illustration: AestheticsPro appointment -> two connected calendars */
.calendar-sync-visual {
    background:
        radial-gradient(circle at 18% 12%, rgba(69, 208, 239, 0.12), transparent 34%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 252, 0.96));
    border: 1px solid rgba(219, 230, 235, 0.9);
    border-radius: 28px;
    box-shadow: 0 18px 42px rgba(42, 64, 82, 0.09);
    justify-self: start;
    max-width: 440px;
    padding: 24px;
    position: relative;
    width: 100%;
}

.calendar-sync-source {
    background: #ffffff;
    border: 1px solid rgba(219, 230, 235, 0.94);
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(42, 64, 82, 0.07);
    padding: 18px 18px 16px;
}

.calendar-sync-logo {
    display: block;
    height: 22px;
    margin-bottom: 14px;
    width: auto;
}

.calendar-sync-appt {
    background: #f3fafb;
    border-left: 3px solid #137f8c;
    border-radius: 4px 10px 10px 4px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 12px;
}

.calendar-sync-appt-time {
    color: #137f8c;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.calendar-sync-appt strong {
    color: var(--calendar-ink);
    font-size: 15px;
    line-height: 1.3;
}

.calendar-sync-appt span:last-child {
    color: var(--calendar-muted);
    font-size: 12.5px;
}

/* Connector: a short line splitting to both calendars */
.calendar-sync-flow {
    height: 46px;
    position: relative;
}

.calendar-sync-flow::before {
    background: #cfe3e6;
    content: "";
    height: 100%;
    left: 50%;
    position: absolute;
    top: 0;
    width: 1.5px;
}

.calendar-sync-flow span {
    background: #ffffff;
    border: 1px solid #d7eef1;
    border-radius: 999px;
    color: #137f8c;
    font-size: 11px;
    font-weight: 700;
    left: 50%;
    letter-spacing: 0.06em;
    padding: 4px 10px;
    position: absolute;
    text-transform: uppercase;
    top: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
}

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

.calendar-sync-app {
    align-items: flex-start;
    background: #ffffff;
    border: 1px solid rgba(219, 230, 235, 0.94);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px;
    text-align: left;
}

/* Official Google / Apple Calendar app icons.
   A shape-following shadow lifts them off the white card (the Apple icon is mostly white). */
.calendar-sync-icon {
    display: block;
    filter:
        drop-shadow(0 0 0.5px rgba(17, 24, 39, 0.28))
        drop-shadow(0 2px 3px rgba(30, 60, 80, 0.12))
        drop-shadow(0 6px 10px rgba(30, 60, 80, 0.1));
    height: 40px;
    margin-bottom: 12px;
    width: 40px;
}

.calendar-sync-app small svg {
    display: block;
}

.calendar-sync-app strong {
    color: var(--calendar-ink);
    font-size: 14px;
    line-height: 1.3;
}

.calendar-sync-event {
    color: var(--calendar-text);
    font-size: 12.5px;
    line-height: 1.4;
}

.calendar-sync-app small {
    align-items: center;
    color: #3d7f2e;
    display: inline-flex;
    font-size: 11.5px;
    font-weight: 600;
    gap: 4px;
    margin-top: 4px;
}

.calendar-nowrap {
    white-space: nowrap;
}

.calendar-sync-copy {
    max-width: 760px;
}

.calendar-sync-copy p {
    margin-top: 18px;
    max-width: 36em;
}

.calendar-eyebrow {
    color: #b66d13;
    display: inline-block;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.4;
    margin: 0 0 13px;
}

.calendar-schedule-smarter {
    background: #ffffff;
    border-top: 0;
    padding-bottom: 106px;
    padding-top: 24px;
}

.calendar-smarter-panel {
    align-items: center;
    background:
        radial-gradient(ellipse at 0% 0%, rgba(242, 180, 30, 0.16), transparent 55%),
        radial-gradient(ellipse at 100% 100%, rgba(41, 184, 199, 0.16), transparent 55%),
        linear-gradient(135deg, #fffaf2 0%, #f1fbfc 100%);
    border: 1px solid rgba(217, 230, 235, 0.78);
    border-radius: 28px;
    box-shadow:
        0 24px 58px rgba(42, 64, 82, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.72);
    display: grid;
    gap: 58px;
    grid-template-columns: minmax(330px, 0.86fr) minmax(0, 1fr);
    max-width: 1010px;
    margin-left: auto;
    margin-right: auto;
    padding: 58px 62px;
    position: relative;
}

.calendar-smarter-panel::before {
    background: linear-gradient(180deg, transparent, rgba(186, 205, 213, 0.56), transparent);
    bottom: 48px;
    content: "";
    left: 48%;
    position: absolute;
    top: 48px;
    width: 1px;
}

.calendar-smarter-copy,
.calendar-smarter-list {
    position: relative;
    z-index: 1;
}

.calendar-smarter-copy {
    max-width: 520px;
}

.calendar-smarter-copy h2 {
    margin-bottom: 28px;
}

.calendar-smarter-copy p {
    max-width: 500px;
}

.calendar-smarter-list {
    display: flex;
    flex-direction: column;
    justify-self: auto;
    left: 56%;
    list-style: none;
    margin: 0;
    padding: 0;
    position: absolute;
    right: auto;
    top: 50%;
    transform: translateY(-50%);
    width: min(425px, 40%);
}

.calendar-button {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    font-weight: 700;
    justify-content: center;
    margin-top: 28px;
    min-height: 48px;
    padding: 13px 24px;
    text-decoration: none;
    transition: box-shadow 160ms ease, transform 160ms ease;
}

.calendar-button:hover {
    transform: translateY(-1px);
}

.calendar-button-primary {
    background: linear-gradient(90deg, #e35d24 0%, #f2b41e 100%);
    box-shadow: 0 14px 28px rgba(226, 112, 24, 0.22);
    color: #ffffff;
}

.calendar-button:focus-visible {
    outline: 3px solid rgba(31, 151, 221, 0.42);
    outline-offset: 3px;
}

/* Thin teal checks, same as the feature sections above */
.calendar-smarter-list li {
    color: var(--calendar-ink);
    font-size: 17px;
    line-height: 1.45;
    padding: 9px 0 9px 28px;
    position: relative;
}

.calendar-smarter-list li::before {
    border: solid #137f8c;
    border-width: 0 1.75px 1.75px 0;
    content: "";
    height: 11px;
    left: 5px;
    position: absolute;
    top: calc(9px + 0.32em);
    transform: rotate(45deg);
    width: 5.5px;
}

@media (max-width: 1199px) {
    .calendar-page h1 {
        font-size: 50px;
    }

    .calendar-page h2 {
        font-size: 36px;
    }

    .calendar-split-grid,
    .calendar-split-grid-reverse,
    .calendar-booking-panel {
        gap: 40px;
    }

    .calendar-hero-visual {
        max-width: 820px;
    }

    .calendar-floating-card-right {
        right: -112px;
        top: 86px;
        width: 315px;
    }

    .calendar-appointment-card {
        left: -46px;
        width: 238px;
    }
}

@media (max-width: 991px) {
    .calendar-hero {
        padding: 110px 0 62px;
    }

    .calendar-split-grid,
    .calendar-split-grid-reverse,
    .calendar-booking-panel {
        grid-template-columns: 1fr;
    }

    .calendar-section {
        padding: 62px 0;
    }

    .calendar-schedule-anywhere .calendar-split-grid {
        gap: 44px;
        grid-template-columns: 1fr;
    }

    .calendar-schedule-anywhere .calendar-split-copy {
        margin: 0 auto;
        max-width: 720px;
    }

    /* Heading and text first, phone screenshot below */
    .calendar-schedule-anywhere .calendar-split-copy {
        order: -1;
    }

    .calendar-hero-visual {
        margin: 0 auto;
        max-width: 720px;
        width: 100%;
    }

    .calendar-floating-card-right {
        right: -34px;
        top: 78px;
        width: 280px;
    }

    .calendar-appointment-card {
        bottom: -8px;
        left: -18px;
        width: 224px;
    }

    .calendar-split-copy {
        text-align: left;
    }

    .calendar-phone-showcase {
        margin: 0 auto;
        max-width: 460px;
        min-height: auto;
    }

    .calendar-tool-visuals {
        max-width: 720px;
        padding-right: 160px;
    }



    .calendar-waitlist-visual {
        margin: 0 auto;
        max-width: 560px;
    }


    .calendar-provider-visual {
        display: grid;
        gap: 18px;
        margin: 0 auto;
        max-width: 620px;
        min-height: auto;
    }

    .calendar-provider-selector,
    .calendar-provider-photo {
        left: auto;
        max-width: none;
        position: relative;
        right: auto;
        top: auto;
        width: 100%;
    }

    .calendar-sync-panel {
        gap: 34px;
        grid-template-columns: 1fr;
        text-align: center;
    }

    .calendar-sync-copy {
        margin: 0 auto;
    }

    .calendar-sync-copy p {
        margin-left: auto;
        margin-right: auto;
    }

    .calendar-sync-visual {
        justify-self: center;
    }

    .calendar-smarter-panel {
        gap: 42px;
        grid-template-columns: 1fr;
        margin-left: auto;
        margin-right: auto;
        padding: 46px 42px;
    }

    .calendar-smarter-panel::before {
        display: none;
    }

    .calendar-smarter-list {
        left: auto;
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        width: 100%;
    }
}

@media (max-width: 767px) {
    .calendar-container {
        padding: 0 18px;
    }

    .calendar-page h1 {
        font-size: 40px;
    }

    .calendar-page h2 {
        font-size: 31px;
    }

    .calendar-page p {
        font-size: 16px;
    }

    .calendar-hero-copy {
        margin-bottom: 30px;
    }

    /* Hero and Section 2 paddings were stacking into a large empty gap */
    .calendar-hero {
        padding-bottom: 28px;
    }

    .calendar-schedule-anywhere {
        padding-top: 36px;
    }

    .calendar-hero-photo {
        aspect-ratio: 4 / 3.05;
        border-width: 8px;
    }

    .calendar-floating-card {
        display: none;
    }

    .calendar-tool-visuals {
        padding-right: 0;
    }


    .calendar-waitlist-visual {
        display: grid;
        gap: 16px;
        min-height: auto;
    }

    .calendar-waitlist-photo,
    .calendar-waitlist-overlay {
        bottom: auto;
        left: auto;
        max-width: none;
        position: relative;
        right: auto;
        top: auto;
        width: 100%;
    }

    .calendar-waitlist-overlay {
        order: -1;
    }

    .calendar-phone-showcase img {
        max-width: 300px;
        width: min(100%, 300px);
    }

    .calendar-booking-panel {
        border-radius: 22px;
        padding: 30px 22px;
    }

    .calendar-sync-section,
    .calendar-schedule-smarter {
        padding-bottom: 66px;
        padding-top: 66px;
    }

    .calendar-section.calendar-schedule-smarter {
        padding-top: 16px;
    }

    .calendar-sync-visual {
        padding: 24px 18px 20px;
    }

    .calendar-smarter-list li {
        min-height: 0;
    }
}

@media (max-width: 575px) {
    .calendar-hero {
        padding-top: 96px;
    }

    .calendar-page h1 {
        font-size: 34px;
    }

    .calendar-page h2 {
        font-size: 28px;
    }

    .calendar-section {
        padding: 52px 0;
    }

    .calendar-media-frame,
    .calendar-product-frame {
        border-width: 4px;
        border-radius: 14px;
    }


    .calendar-check-list li,
    .calendar-smarter-list li {
        font-size: 15px;
    }

    .calendar-smarter-copy h2 {
        margin-bottom: 20px;
    }

    /* Panel is its own container here, so keep a side gutter on phones */
    .calendar-smarter-panel {
        border-radius: 22px;
        margin-left: 16px;
        margin-right: 16px;
        padding: 34px 24px;
        width: auto;
    }

    .calendar-smarter-list li {
        padding: 8px 0 8px 28px;
    }

    .calendar-sync-destinations {
        gap: 10px;
    }

    .calendar-sync-app {
        padding: 14px 12px;
    }
}

/* ==========================================================================
   Hero: two-column layout (copied from the AI Suite hero)
   Text left; framed square photo right with two floating cards.
   ========================================================================== */
.calendar-hero {
    padding: 126px 0 72px;
    /* Same background as the AP Payments hero: teal left, warm peach right */
    background:
        radial-gradient(circle at 10% 28%, rgba(167, 234, 242, 0.55), transparent 28%),
        radial-gradient(circle at 88% 34%, rgba(255, 205, 116, 0.34), transparent 30%),
        linear-gradient(145deg, #f4fbfc 0%, #ffffff 50%, #fff8ec 100%);
    position: relative;
}

/* Soft fade at the bottom so the hero melts into the next section (no hard line) */
.calendar-hero::after {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #ffffff 100%);
    bottom: 0;
    content: "";
    height: 120px;
    left: 0;
    pointer-events: none;
    position: absolute;
    right: 0;
}

.calendar-hero > .calendar-container {
    position: relative;
    z-index: 1;
}

.calendar-hero-grid {
    align-items: center;
    display: grid;
    gap: 52px;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.88fr);
}

.calendar-hero .calendar-hero-copy {
    margin: 0;
    max-width: none;
    min-width: 0;
    text-align: left;
}

.calendar-hero-eyebrow {
    color: #58616f !important;
    font-size: 16px !important;
    font-weight: 700;
    line-height: 1.4 !important;
    margin: 0 0 12px !important;
}

.calendar-hero .calendar-hero-copy .calendar-lede {
    margin: 22px 0 0;
    max-width: 590px;
    padding-top: 0;
}

.calendar-hero .calendar-hero-actions {
    justify-content: flex-start;
    margin-top: 30px;
}

.calendar-hero .calendar-hero-visual {
    margin: 0;
    max-width: none;
    min-height: 440px;
    min-width: 0;
    position: relative;
}

.calendar-hero-frame {
    aspect-ratio: 1 / 1;
    background: #ffffff;
    border: 6px solid #ffffff;
    border-radius: 16px;
    box-shadow: 0 14px 30px rgba(42, 64, 82, 0.1);
    overflow: hidden;
    padding: 10px;
    width: 100%;
}

.calendar-hero-frame img {
    border-radius: 12px;
    display: block;
    height: 100%;
    object-fit: cover;
    object-position: 58% center;
    width: 100%;
}

/* Floating cards (HTML): white, soft shadow, matching type */
.calendar-hero-card {
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(17, 24, 39, 0.06);
    border-radius: 16px;
    box-shadow:
        0 1px 2px rgba(17, 24, 39, 0.04),
        0 18px 36px -12px rgba(30, 60, 80, 0.28);
    color: #111827;
    display: flex;
    font-family: 'Roboto', sans-serif;
    position: absolute;
    z-index: 2;
}

/* Notification card */
.calendar-hero-card-top {
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
}

.chc-app {
    align-items: center;
    background: #ffffff;
    border: 1px solid #f1e6d2;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(30, 60, 80, 0.08);
    display: inline-flex;
    flex: 0 0 40px;
    height: 40px;
    justify-content: center;
    overflow: hidden;
}

.chc-app img {
    display: block;
    height: auto;
    width: 38px;
}

.chc-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.chc-meta {
    align-items: baseline;
    display: flex;
    gap: 8px;
    justify-content: space-between;
}

.chc-meta strong {
    font-size: 13.5px;
    font-weight: 700;
}

.chc-meta small {
    color: #8a94a1;
    font-size: 12px;
}

.chc-text {
    color: #4f5866;
    font-size: 13px;
    line-height: 1.45;
}

/* Confirmed card */
.calendar-hero-card-bottom {
    flex-direction: column;
    gap: 12px;
    padding: 16px;
}

.chc-head {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.chc-head strong {
    align-items: center;
    color: #137f8c;
    display: inline-flex;
    font-size: 15px;
    font-weight: 700;
    gap: 8px;
}

.chc-check {
    align-items: center;
    background: #e3f4f6;
    border-radius: 50%;
    color: #137f8c;
    display: inline-flex;
    height: 20px;
    justify-content: center;
    width: 20px;
}

.chc-check svg,
.chc-avatar svg {
    display: block;
}

.chc-count {
    background: #f1f5f7;
    border-radius: 999px;
    color: #58616f;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    padding: 5px 9px;
}

.chc-appt {
    align-items: center;
    background: #f8fbfb;
    border-left: 3px solid #137f8c;
    border-radius: 4px 10px 10px 4px;
    display: flex;
    gap: 12px;
    padding: 10px 12px;
}

.chc-avatar {
    align-items: center;
    background: #e3f4f6;
    border-radius: 50%;
    color: #137f8c;
    display: inline-flex;
    flex: 0 0 36px;
    height: 36px;
    justify-content: center;
}

.chc-appt-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.chc-time {
    color: #137f8c;
    font-size: 11.5px;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}

.chc-appt-text strong {
    font-size: 14px;
    font-weight: 700;
}

.chc-appt-text small {
    color: #7b8492;
    font-size: 12px;
}

/* Notification card: top-right corner */
.calendar-hero-card-top {
    right: -24px;
    top: 52px;
    width: 310px;
}

/* Confirmed card: bottom-left corner */
.calendar-hero-card-bottom {
    bottom: 46px;
    left: -18px;
    width: 250px;
}

@media (max-width: 1199px) {
    .calendar-hero-grid {
        gap: 40px;
    }

    .calendar-hero-card-top {
        width: 260px;
    }

    .calendar-hero-card-bottom {
        width: 220px;
    }
}

@media (max-width: 991px) {
    .calendar-hero {
        padding: 112px 0 58px;
    }

    .calendar-hero-grid {
        grid-template-columns: 1fr;
    }

    .calendar-hero .calendar-hero-copy {
        text-align: center;
    }

    .calendar-hero .calendar-hero-copy .calendar-lede {
        margin-left: auto;
        margin-right: auto;
    }

    .calendar-hero .calendar-hero-actions {
        justify-content: center;
    }

    .calendar-hero .calendar-hero-visual {
        margin: 0 auto;
        max-width: 560px;
        width: 100%;
    }
}

/* Phones: cards stack above and below the photo instead of floating */
@media (max-width: 575px) {
    .calendar-hero {
        padding: 96px 0 36px;
    }

    .calendar-hero .calendar-hero-visual {
        display: flex;
        flex-direction: column;
        gap: 14px;
        min-height: auto;
    }

    .calendar-hero-card {
        margin: 0 auto;
        position: relative;
        inset: auto;
    }

    .calendar-hero-card-top {
        max-width: 320px;
        order: 1;
        width: 100%;
    }

    .calendar-hero-frame {
        order: 2;
    }

    .calendar-hero-card-bottom {
        max-width: 240px;
        order: 3;
        width: 100%;
    }
}


/* Schedule from Anywhere: white base continuing from the hero's fade,
   with a faint teal glow behind the phone */
.calendar-section.calendar-schedule-anywhere {
    background:
        radial-gradient(40% 70% at 22% 50%, rgba(167, 234, 242, 0.28), transparent 70%),
        #ffffff;
}

/* App screenshot framed as a phone */
.calendar-phone-showcase img {
    background: #111827;
    border: 9px solid #111827;
    border-radius: 38px;
    box-shadow:
        0 0 0 1px rgba(17, 24, 39, 0.12),
        0 30px 60px -24px rgba(30, 60, 80, 0.38);
    max-width: 300px;
    width: min(100%, 300px);
}

@media (max-width: 767px) {
    .calendar-phone-showcase img {
        border-radius: 32px;
        border-width: 8px;
        max-width: 260px;
        width: min(100%, 260px);
    }
}

/* Daily Appointment Tools: HTML list mock (sample data) */
.calendar-product-frame-wide.cdl {
    background: #ffffff;
    font-family: 'Roboto', sans-serif;
}

.cdl-inner {
    padding: 16px 18px 14px;
}

.cdl-head {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.cdl-head strong {
    color: #111827;
    font-size: 15px;
}

.cdl-win {
    align-items: center;
    display: inline-flex;
    gap: 10px;
}

.cdl-win i {
    color: #6b7280;
    font-size: 13px;
    font-style: normal;
    font-weight: 700;
    line-height: 1;
}

.cdl-win .cdl-i-print {
    border: 1.5px solid #9aa3ae;
    border-radius: 2px;
    height: 10px;
    width: 12px;
}

.cdl-win .cdl-i-help {
    border: 1.5px solid #9aa3ae;
    border-radius: 50%;
    color: #9aa3ae;
    font-size: 9px;
    height: 13px;
    line-height: 10px;
    text-align: center;
    width: 13px;
}

.cdl-win .cdl-i-close {
    color: #111827;
    font-size: 16px;
}

.cdl-tabs {
    border-bottom: 1px solid #eef1f3;
    display: flex;
    gap: 18px;
    margin-top: 10px;
}

.cdl-tabs b,
.cdl-tabs i {
    font-size: 12px;
    font-style: normal;
    padding: 6px 0 8px;
}

.cdl-tabs b {
    box-shadow: inset 0 -2px 0 #1f7f88;
    color: #111827;
}

.cdl-tabs i {
    color: #7b8492;
    font-weight: 500;
}

.cdl-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: flex-end;
    margin: 10px 0 4px;
}

.cdl-filters span {
    border: 1px solid #dfe5e9;
    border-radius: 5px;
    color: #374151;
    font-size: 10.5px;
    padding: 4px 8px;
}

.cdl-filters .cdl-search {
    color: #9aa3ae;
    min-width: 90px;
}

.cdl-filters .cdl-select::after {
    color: #6b7280;
    content: " \2304";
}

.cdl-filters .cdl-arrow {
    color: #4b5563;
    font-weight: 700;
}
















/* Confirmed card */










/* Daily tools highlights: plain checks, not boxes */
.calendar-page .calendar-tool-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 36px;
    justify-content: center;
    list-style: none;
    margin: 30px 0 0;
    padding: 0;
}

.calendar-tool-checks li {
    color: #111827;
    font-size: 16px;
    line-height: 1.45;
    padding-left: 26px;
    position: relative;
}

.calendar-tool-checks li::before {
    border: solid #137f8c;
    border-width: 0 1.75px 1.75px 0;
    content: "";
    height: 10px;
    left: 5px;
    position: absolute;
    top: 0.3em;
    transform: rotate(45deg);
    width: 5px;
}

/* Waitlist: HTML entry card (sample data) */
.calendar-waitlist-overlay.cwl {
    font-family: 'Roboto', sans-serif;
    overflow: hidden;
}

.cwl-head {
    align-items: center;
    background: #f4f7fa;
    border-bottom: 1px solid #e6ebef;
    display: flex;
    justify-content: space-between;
    padding: 11px 14px;
}

.cwl-head strong {
    color: #111827;
    font-size: 13.5px;
}

.cwl-head span {
    color: #7b8492;
    font-size: 11px;
}

.calendar-page .cwl-fields {
    display: grid;
    gap: 7px;
    margin: 0;
    padding: 12px 14px;
}

.cwl-fields div {
    display: grid;
    gap: 8px;
    grid-template-columns: 72px 1fr;
}

.cwl-fields dt {
    color: #7b8492;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.cwl-fields dd {
    color: #1f2937;
    font-size: 12px;
    margin: 0;
}

.cwl-open {
    align-items: center;
    background: #eaf6f8;
    border-radius: 10px;
    display: flex;
    gap: 8px;
    justify-content: space-between;
    margin: 0 10px 10px;
    padding: 9px 10px;
}

.cwl-open span {
    color: #4b5563;
    display: flex;
    flex-direction: column;
    font-size: 11px;
    line-height: 1.3;
}

.cwl-open strong {
    color: #0f6773;
    font-size: 12px;
}

.cwl-open b {
    background: #1f7f88;
    border-radius: 8px;
    color: #ffffff;
    font-size: 11.5px;
    padding: 6px 12px;
}

@media (max-width: 575px) {
    .cdl-inner {
        padding: 12px;
    }

    .cdl-filters,
    .cdl-tabs i {
        display: none;
    }




    .calendar-page .calendar-tool-checks {
        flex-direction: column;
        align-items: flex-start;
    }

    .calendar-tool-checks li {
        font-size: 15px;
    }
}

/* Phones: Confirmed card sits below the list instead of over it */
/* Desktop: Confirmed card sits beside the list, slightly overlapping its edge, clear of the Actions column */
@media (min-width: 992px) {
    .calendar-tool-visuals {
        max-width: 1160px;
        padding-right: 236px;
    }

}

/* Tablet: Confirmed card sits below the list */
@media (min-width: 576px) and (max-width: 991px) {
    .calendar-tool-visuals {
        padding-right: 0;
    }

}

/* Daily list: brand polish (title bar tint like the real modal, softer controls, tinted action icons) */
.cdl-head {
    background: #f4f7fa;
    border-radius: 10px;
    margin: -4px -6px 0;
    padding: 9px 12px;
}

.cdl-tabs b {
    box-shadow: inset 0 -2px 0 #9b3c6f;
}

.cdl-filters span {
    background: #ffffff;
    border-color: #e3e8ec;
    border-radius: 7px;
}

.cdl-filters span:last-child {
    background: #fbf3f7;
    border-color: #ead3df;
    color: #7a2f57;
    font-weight: 600;
}






/* Phones: floating cards overlap their photo where they can do so without
   covering a face or key detail; otherwise they sit below the photo. */
@media (max-width: 575px) {
    /* Hero: photo first, both cards float over its corners */
    .calendar-hero .calendar-hero-visual {
        display: block;
        padding: 30px 0 78px;
        position: relative;
    }

    .calendar-hero-card {
        margin: 0;
        position: absolute;
    }

    .calendar-hero-card-top {
        left: auto;
        max-width: 250px;
        right: -4px;
        top: 0;
        width: 72%;
    }

    .calendar-hero-card-top .chc-text {
        font-size: 11.5px;
    }

    .calendar-hero-card-bottom {
        bottom: 0;
        left: -4px;
        max-width: 210px;
        right: auto;
        width: 60%;
    }

    /* Waitlist: the entry card is too tall to float without covering the provider,
       so it sits below the photo */
    .calendar-waitlist-overlay {
        order: 2;
    }

    .calendar-waitlist-photo {
        order: 1;
    }

    /* Provider & Room: the small selector floats over the photo's lower-left corner */
    .calendar-provider-visual {
        display: block;
        padding-bottom: 62px;
        position: relative;
    }

    .calendar-provider-selector {
        bottom: 0;
        left: -4px;
        max-width: 170px;
        position: absolute;
        right: auto;
        top: auto;
        width: 46%;
    }
}

/* Phones: compact overlay cards, half on the frame edge, inset from the screen edges (matches Telemedicine) */
@media (max-width: 575px) {
    .calendar-hero .calendar-hero-visual {
        padding-top: 34px;
    }

    .calendar-hero-card-top {
        padding: 9px 12px;
        right: 10px;
        width: 66%;
    }

    .calendar-hero-card-top .chc-text {
        font-size: 11px;
    }

    .calendar-hero-card-bottom {
        left: 10px;
        max-width: 230px;
        width: 64%;
    }

    .calendar-provider-selector {
        left: 10px;
    }
}


/* Customization: five cards with gold line icons (3 + 2 rows on tablet, centered) */
.calendar-customize {
    background: #ffffff;
}

.calendar-customize-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: center;
    list-style: none;
    margin: 0 auto;
    max-width: 1162px;
    padding: 0;
}

.calendar-customize-grid li {
    background: #ffffff;
    border: 1px solid var(--calendar-border);
    border-radius: var(--calendar-radius);
    box-shadow: var(--calendar-soft-shadow);
    flex: 1 1 0;
    min-width: 0;
    padding: 24px 22px;
}

.calendar-customize-grid svg {
    color: #d99a2b;
    display: block;
    margin-bottom: 14px;
}

.calendar-page .calendar-customize-grid h3 {
    font-size: 18px;
    line-height: 1.25;
}

.calendar-page .calendar-customize-grid p {
    font-size: 15px;
    line-height: 1.55;
    margin-top: 8px;
}

@media (max-width: 1199px) {
    .calendar-customize-grid li {
        flex: 0 1 calc((100% - 36px) / 3);
    }
}

@media (max-width: 767px) {
    .calendar-customize-grid li {
        flex-basis: calc((100% - 18px) / 2);
    }
}

@media (max-width: 575px) {
    .calendar-customize-grid {
        gap: 12px;
    }

    /* Compact rows on phones: icon beside the title and text */
    .calendar-customize-grid li {
        column-gap: 14px;
        display: grid;
        flex-basis: 100%;
        grid-template-columns: 26px minmax(0, 1fr);
        padding: 16px 18px;
    }

    .calendar-customize-grid svg {
        grid-row: 1 / span 2;
        margin: 0;
    }

    .calendar-page .calendar-customize-grid h3 {
        font-size: 17px;
    }

    .calendar-page .calendar-customize-grid p {
        margin-top: 4px;
    }
}

/* Inline links inside check lists */
.calendar-check-list li a {
    color: #137f8c;
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: rgba(19, 127, 140, 0.35);
    text-underline-offset: 3px;
}

.calendar-check-list li a:hover,
.calendar-check-list li a:focus {
    text-decoration-color: currentColor;
}

/* Daily Appointment Tools: Manage Appt Conf board (sample data).
   Column colors follow the real screen, softened slightly; card tints follow the provider. */
.calendar-tool-visuals {
    max-width: 1100px;
    padding-right: 0;
}

.cdl-win .cdl-i-gear {
    border: 2px dotted #9aa3ae;
    border-radius: 50%;
    height: 13px;
    width: 13px;
}

.cnf-board {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin-top: 8px;
}

.cnf-col {
    background: #f8fafb;
    border: 1px solid #e6ebee;
    border-radius: 9px;
    height: 204px; /* two full cards, the third cut by the fade */
    overflow: hidden;
    -webkit-mask-image: linear-gradient(180deg, #000 86%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 86%, transparent 100%);
}

.calendar-page .cnf-colhead {
    align-items: center;
    color: #ffffff;
    display: flex;
    font-size: 11.5px;
    font-weight: 700;
    justify-content: space-between;
    line-height: 1;
    margin: 0 0 2px;
    padding: 9px 9px 9px 10px;
}

.cnf-colhead b {
    background: rgba(17, 24, 39, 0.78);
    border-radius: 5px;
    font-size: 10px;
    padding: 3px 6px;
}

.cnf-unconf .cnf-colhead { background: #c4954a; }
.cnf-conf .cnf-colhead { background: #5f8a6c; }
.cnf-left .cnf-colhead { background: #6c7a8e; }
.cnf-arr .cnf-colhead { background: #4f78a6; }
.cnf-in .cnf-colhead { background: #7c69a6; }

.cnf-card {
    align-items: center;
    border-radius: 8px;
    display: flex;
    gap: 8px;
    margin: 6px 6px 0;
    padding: 8px 8px 8px 7px;
}

.cnf-pink { background: #f3e2ea; }
.cnf-lav { background: #e3e4f6; }

.cnf-av {
    align-items: center;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.7);
    color: #4b5563;
    display: inline-flex;
    flex: 0 0 28px;
    font-size: 10px;
    font-weight: 700;
    height: 28px;
    justify-content: center;
}

.cnf-txt {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    line-height: 1.3;
    min-width: 0;
}

.cnf-txt strong,
.cnf-txt b,
.cnf-txt small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cnf-txt strong {
    color: #1f2937;
    font-size: 11px;
    font-weight: 700;
}

.cnf-txt b {
    color: #111827;
    font-size: 11.5px;
    font-weight: 600;
}

.cnf-txt small {
    color: #5b6472;
    font-size: 10.5px;
}

/* Checked-out appointments read lighter, like the real board */
.cnf-dim .cnf-txt strong,
.cnf-dim .cnf-txt b,
.cnf-dim .cnf-txt small {
    color: #8a92a0;
}

/* Small red flag, as on the real cards */
.cnf-flag {
    align-self: flex-start;
    border-left: 1.5px solid #9aa3ae;
    flex: 0 0 auto;
    height: 11px;
    margin-top: 3px;
    position: relative;
    width: 8px;
}

.cnf-flag::after {
    background: #e04848;
    border-radius: 0 1px 1px 0;
    content: "";
    height: 6px;
    left: 0;
    position: absolute;
    top: 0;
    width: 7px;
}

/* Tablet: four columns (Checked In hidden) */
@media (min-width: 576px) and (max-width: 991px) {
    .cnf-board {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .cnf-in {
        display: none;
    }
}

/* Phones: Unconfirmed and Confirmed only */
@media (max-width: 575px) {
    .cnf-board {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cnf-left,
    .cnf-arr,
    .cnf-in {
        display: none;
    }

    .cnf-col {
        height: 194px;
    }

    /* Avatars hidden on phones so time, client and provider fit */
    .cnf-av {
        display: none;
    }

    .cnf-card {
        gap: 6px;
        padding: 8px 8px 8px 10px;
    }
}

/* Calendar views mock in "A Calendar That Fits How You Work" (80/20, sample data; Day/Week/Month buttons switch panes) */
.cvw-visual {
    margin: 0 auto 40px;
    max-width: 1100px;
}

.calendar-product-frame-wide.cvw {
    background: #ffffff;
    font-family: 'Roboto', sans-serif;
}

.cvw-inner {
    padding: 14px 16px 0;
}

.cvw-bar {
    align-items: center;
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.cvw-nav {
    display: inline-flex;
    gap: 6px;
}

.cvw-nav i {
    align-items: center;
    border: 1px solid #e3e8ec;
    border-radius: 8px;
    color: #4b5563;
    display: inline-flex;
    font-size: 16px;
    font-style: normal;
    height: 28px;
    justify-content: center;
    width: 28px;
}

.cvw-date {
    color: #111827;
    font-size: 15px;
    margin-right: auto;
}

.cvw-date small,
.cvw-staff small {
    color: #6b7280;
    font-size: 10px;
    margin-left: 6px;
}

.cvw-staff {
    border: 1px solid #e3e8ec;
    border-radius: 8px;
    color: #4b5563;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 6px 10px;
    text-transform: uppercase;
}

.cvw-add {
    align-items: center;
    background: #5f7470;
    border-radius: 8px;
    color: #ffffff;
    display: inline-flex;
    font-size: 18px;
    height: 28px;
    justify-content: center;
    width: 28px;
}

.cvw-toggle {
    border: 1px solid #e3e8ec;
    border-radius: 8px;
    display: inline-flex;
    overflow: hidden;
}

.cvw-toggle button {
    background: #ffffff;
    border: 0;
    border-left: 1px solid #e3e8ec;
    color: #4b5563;
    cursor: pointer;
    font: 600 11px/1 'Roboto', sans-serif;
    letter-spacing: 0.04em;
    padding: 8px 12px;
    text-transform: uppercase;
}

.cvw-toggle button:first-child {
    border-left: 0;
}

.cvw-toggle button[aria-pressed="true"] {
    background: #5f7470;
    color: #ffffff;
}

.cvw-toggle button:focus-visible {
    outline: 2px solid #29b8c7;
    outline-offset: -2px;
}

/* Shared pane sizing: cut off at the bottom like a scrolled screen */
.cvw-pane {
    height: 420px;
    -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent);
    mask-image: linear-gradient(180deg, #000 82%, transparent);
    overflow: hidden;
}

.cvw-pane[hidden] {
    display: none;
}

/* Provider colors */
.cvw-logan { --cv-bg: #fdeef3; --cv-bar: #efdbe3; }
.cvw-kim { --cv-bg: #ecebfb; --cv-bar: #dcdaf2; }
.cvw-none { --cv-bg: #f3f4f6; --cv-bar: #e2e5e9; }

/* Week */
.cvw-week {
    border-top: 1px solid #edf1f4;
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    padding-top: 8px;
}

.cvw-dh {
    color: #4b5563;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin: 0 0 8px;
    text-align: center;
}

.cvw-dh b {
    color: #111827;
    font-size: 15px;
    letter-spacing: 0;
    margin-left: 2px;
}

.cvw-g {
    background: var(--cv-bg);
    border-radius: 10px;
    display: block;
    margin-bottom: 7px;
    padding: 6px 6px 2px;
}

.cvw-gh {
    color: #1f2937;
    display: block;
    font-size: 11px;
    font-weight: 700;
    margin: 0 2px 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cvw-it {
    border-radius: 6px;
    display: block;
    margin-bottom: 5px;
    overflow: hidden;
}

.cvw-it b {
    background: var(--cv-bar);
    color: #1f2937;
    display: block;
    font-size: 10px;
    font-weight: 600;
    padding: 4px 6px;
    white-space: nowrap;
}

.cvw-it span {
    color: #374151;
    display: block;
    font-size: 10.5px;
    font-weight: 500;
    overflow: hidden;
    padding: 4px 6px 3px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Month */
.cvw-mhead,
.cvw-mgrid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.cvw-mhead {
    border-top: 1px solid #edf1f4;
}

.cvw-mhead span {
    color: #4b5563;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 8px 0;
    text-align: center;
}

.cvw-mgrid {
    border-left: 1px solid #edf1f4;
    border-top: 1px solid #edf1f4;
}

.cvw-mc {
    border-bottom: 1px solid #edf1f4;
    border-right: 1px solid #edf1f4;
    min-height: 80px;
    min-width: 0;
    padding: 6px 6px 4px;
}

.cvw-mn {
    color: #111827;
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 4px;
    text-align: right;
}

.cvw-out .cvw-mn {
    color: #b6bdc6;
}

.cvw-today .cvw-mn {
    color: #29b8c7;
}

.cvw-mi {
    background: var(--cv-bg);
    border-left: 3px solid var(--cv-bar);
    border-radius: 5px;
    color: #374151;
    display: block;
    font-size: 10px;
    margin-bottom: 4px;
    overflow: hidden;
    padding: 3px 5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cvw-mi b {
    color: #1f2937;
    font-weight: 600;
}

/* Day */
.cvw-dhead,
.cvw-dbody {
    display: grid;
    gap: 8px;
    grid-template-columns: 44px repeat(2, minmax(0, 1fr));
}

.cvw-dhead {
    border-bottom: 1px solid #edf1f4;
    border-top: 1px solid #edf1f4;
    padding: 8px 0;
}

.cvw-dhead span {
    align-items: center;
    color: #1f2937;
    display: flex;
    font-size: 13px;
    font-weight: 600;
    gap: 8px;
    justify-content: center;
}

.cvw-av {
    align-items: center;
    background: var(--cv-bar);
    border-radius: 50%;
    color: #1f2937;
    display: inline-flex;
    font-size: 10px;
    font-style: normal;
    font-weight: 700;
    height: 26px;
    justify-content: center;
    width: 26px;
}

.cvw-dbody {
    --cv-hr: 84px;
    background: repeating-linear-gradient(180deg, transparent 0, transparent calc(var(--cv-hr) - 1px), #edf1f4 calc(var(--cv-hr) - 1px), #edf1f4 var(--cv-hr));
    padding-top: 6px;
}

.cvw-gut span {
    color: #6b7280;
    display: block;
    font-size: 11px;
    font-weight: 600;
    height: var(--cv-hr);
}

.cvw-dcol {
    position: relative;
}

.cvw-db {
    background: var(--cv-bg);
    border-left: 4px solid var(--cv-bar);
    border-radius: 6px;
    box-sizing: border-box;
    color: #374151;
    display: block;
    font-size: 11px;
    height: calc(var(--h) * var(--cv-hr) / 60 - 4px);
    left: 0;
    overflow: hidden;
    padding: 5px 8px;
    position: absolute;
    right: 0;
    top: calc(var(--t) * var(--cv-hr) / 60);
}

.cvw-db > b {
    color: #111827;
    display: block;
    font-size: 12px;
}

.cvw-db span,
.cvw-db small {
    display: block;
    font-size: 11px;
    line-height: 1.35;
}

@media (max-width: 991px) {
    .cvw-pane {
        height: 380px;
    }

    .cvw-staff {
        display: none;
    }

    .cvw-week {
        gap: 5px;
    }

    .cvw-gh {
        font-size: 10px;
    }

    .cvw-it b {
        font-size: 9px;
        padding: 3px 4px;
    }

    .cvw-it span {
        font-size: 9.5px;
        padding: 3px 4px;
    }

    .cvw-mi b {
        display: none;
    }
}

@media (max-width: 575px) {
    .cvw-visual {
        margin-bottom: 28px;
    }

    .cvw-inner {
        padding: 10px 10px 0;
    }

    .cvw-bar {
        flex-wrap: wrap;
        gap: 8px;
    }

    .cvw-nav,
    .cvw-add {
        display: none;
    }

    .cvw-date {
        font-size: 13px;
    }

    .cvw-toggle button {
        padding: 7px 10px;
    }

    /* Week: Monday to Wednesday on phones */
    .cvw-week {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .cvw-week .cvw-col:nth-child(1),
    .cvw-week .cvw-col:nth-child(n+5) {
        display: none;
    }

    .cvw-it b {
        font-size: 9.5px;
    }

    .cvw-it span {
        font-size: 10px;
    }

    /* Month: dots instead of names on phones */
    .cvw-mc {
        min-height: 54px;
        padding: 4px;
    }

    .cvw-mn {
        font-size: 11px;
        text-align: center;
    }

    .cvw-mi {
        border-left: 0;
        border-radius: 50%;
        display: inline-block;
        font-size: 0;
        height: 7px;
        margin: 0 1px;
        padding: 0;
        background: var(--cv-bar);
        width: 7px;
    }

    .cvw-mc {
        text-align: center;
    }

    .cvw-dhead span {
        font-size: 12px;
    }

    .cvw-db small {
        display: none;
    }
}

.calendar-page .cvw-dh {
    font-size: 11px;
    line-height: 1.2;
}

.calendar-page .cvw-dh b {
    font-size: 15px;
}

/* Toolbar date: week start for Week/Month, the day itself for Day */
.cvw-d-day { display: none; }
.cvw[data-view="day"] .cvw-d-wk { display: none; }
.cvw[data-view="day"] .cvw-d-day { display: inline; }

/* "Try switching views" hint and toggle nudge */
.calendar-page .cvw-hint {
    align-items: center;
    color: var(--calendar-muted);
    display: flex;
    font-size: 13px;
    font-weight: 500;
    gap: 6px;
    justify-content: flex-end;
    line-height: 1;
    margin: 0 6px 10px;
}

.cvw-hint svg {
    color: #d99a2b;
}

.cvw-toggle button:hover:not([aria-pressed="true"]) {
    background: #f1f5f4;
    color: #1f2937;
}

@keyframes cvwNudge {
    0% { box-shadow: 0 0 0 0 rgba(41, 184, 199, 0.4); }
    70% { box-shadow: 0 0 0 8px rgba(41, 184, 199, 0); }
    100% { box-shadow: 0 0 0 0 rgba(41, 184, 199, 0); }
}

.cvw-toggle.cvw-nudge {
    animation: cvwNudge 1.6s ease-out 0.4s 2;
}

@media (prefers-reduced-motion: reduce) {
    .cvw-toggle.cvw-nudge {
        animation: none;
    }
}

@media (max-width: 575px) {
    .calendar-page .cvw-hint {
        font-size: 12px;
        margin-bottom: 8px;
    }
}

/* Synced event: time + company name, with the service ID (no service name, for client privacy) */
.calendar-sync-id {
    color: var(--calendar-muted);
    font-size: 11.5px;
    line-height: 1.4;
}
