:root {
    --ink: #1e293b;
    --muted: #64748b;
    --line: #e2e8f0;
    --bg: #f8fafc;
    --panel: #ffffff;
    --accent: #0f766e;
    --accent-dark: #115e59;
    --accent-soft: #ccfbf1;
    --danger: #b91c1c;
    --ok-bg: #ecfdf5;
    --err-bg: #fef2f2;
    --radius: 10px;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.5;
}

.wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 16px;
}

a {
    color: var(--accent-dark);
}

h1 {
    font-size: 2.8rem;
    margin: 0 0 12px;
}

h2 {
    font-size: 2.2rem;
    margin: 0 0 10px;
}

h3 {
    font-size: 1.6rem;
    margin: 20px 0 8px;
}


/* Header / footer */

.site-header {
    background: var(--panel);
    border-bottom: 1px solid var(--line);
}

.header-in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    padding-bottom: 12px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--ink);
    text-decoration: none;
}

.brand-logo {
    border-radius: 50%;
    flex: none;
}

.brand-sub {
    display: block;
    font-weight: 400;
    font-size: 0.82rem;
    color: var(--muted);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.main-nav a {
    text-decoration: none;
    color: var(--ink);
}

.main-nav a:hover {
    color: var(--accent-dark);
}

.nav-email {
    color: var(--muted);
    font-size: 0.92rem;
}

.site-footer {
    border-top: 1px solid var(--line);
    margin-top: 40px;
    padding: 18px 0 28px;
    color: var(--muted);
    font-size: 0.9rem;
}

main.wrap {
    padding-top: 26px;
    padding-bottom: 10px;
}


/* Hero & cards */

.hero {
    text-align: center;
    padding: 30px 10px 8px;
}

.hero-sub {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--accent-dark);
    margin: 0 0 6px;
}

.hero h1 {
    font-size: 2.6rem;
}

.lede {
    font-size: 1.08rem;
    color: var(--muted);
    max-width: 640px;
    margin: 0 auto 18px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.card,
.panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
}

.panel {
    margin-bottom: 20px;
}

.panel.narrow {
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
}

.panel.narrow-wide {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
}

.panel.danger {
    border-color: #fecaca;
}


/* Forms */

.stack {
    display: grid;
    gap: 14px;
}

label {
    display: grid;
    gap: 6px;
    font-weight: 600;
    font-size: 0.95rem;
}

label .muted,
fieldset .muted {
    font-weight: 400;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="datetime-local"],
textarea,
select {
    font: inherit;
    font-size: 16px;
    font-weight: 400;
    color: var(--ink);
    padding: 9px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    width: 100%;
}

input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--accent-soft);
    border-color: var(--accent);
}

fieldset {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px;
    display: grid;
    gap: 12px;
}

legend {
    font-weight: 700;
    padding: 0 6px;
}

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

.grow {
    flex: 1;
}

.row-gap {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.row-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.top-gap {
    margin-top: 14px;
}


/* Buttons */

.btn {
    display: inline-block;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    background: var(--accent);
    color: #fff;
    border: 1px solid var(--accent);
    padding: 9px 18px;
    border-radius: 8px;
    text-decoration: none;
}

.btn:hover {
    background: var(--accent-dark);
}

.btn-ghost {
    background: transparent;
    color: var(--accent-dark);
}

.btn-ghost:hover {
    background: var(--accent-soft);
    color: var(--accent-dark);
}

.btn-danger {
    background: var(--danger);
    border-color: var(--danger);
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.92rem;
}

.btn[disabled] {
    opacity: 0.55;
    cursor: default;
}


/* Notices */

.notice {
    border-radius: 8px;
    padding: 10px 12px;
    margin: 0;
}

.notice.error {
    background: var(--err-bg);
    color: var(--danger);
    border: 1px solid #fecaca;
}

.notice.ok {
    background: var(--ok-bg);
    color: #065f46;
    border: 1px solid #a7f3d0;
}

/* Install hint (PWA) — dashboard only, dismissible */

.install-hint {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--accent-soft);
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    padding: 10px 14px;
    margin: 0 0 14px;
}

.install-hint[hidden] {
    display: none;
}

.install-hint-text {
    margin: 0;
    flex: 1;
    color: var(--accent-dark);
    font-size: .95rem;
}

.install-hint-btn {
    white-space: nowrap;
}

.install-hint-close {
    background: none;
    border: 0;
    color: var(--accent-dark);
    font-size: 1.25rem;
    line-height: 1;
    padding: 2px 4px;
    cursor: pointer;
}


/* Event list & tables */

.event-item {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px 16px;
    display: grid;
    gap: 6px;
}

.event-item h3 {
    margin: 0;
}

/* Dashboard events: FAQ-style one-line headers that expand */
.event-line {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 2px 0;
    background: none;
    border: none;
    font: inherit;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.event-caret {
    flex: none;
    width: 0;
    height: 0;
    border-left: 7px solid var(--accent);
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    transition: transform 0.15s ease;
}

.event-item.open .event-caret,
.faq-item.open .event-caret {
    transform: rotate(90deg);
}

/* Guide demo GIF */
.guide-gif {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
}

/* Home: app demo GIFs, 2 x 2 */
.demo-section {
    margin: 48px 0 40px;
}

.demo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 20px;
}

.demo-card {
    border: 10px solid #1e5b3a;
    border-radius: 14px;
    padding: 14px;
    background: var(--panel);
    display: flex;
    flex-direction: column;
}

.demo-card h3 {
    margin: 0 0 10px;
}

.demo-card img, .demo-card video {
    display: block;
    width: 100%;
    height: auto;
    margin-top: auto;
    border-radius: 6px;
}

@media (max-width: 700px) {
    .demo-grid {
        grid-template-columns: 1fr;
    }
}

/* Pricing page */
.price {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--accent-dark);
    margin: 4px 0 8px;
}

.cards.pricing-cards {
    grid-template-columns: 1fr 1fr;
}

.pricing-cards ul {
    margin: 10px 0 0;
    padding-left: 20px;
    display: grid;
    gap: 6px;
}

@media (max-width: 820px) {
    .cards.pricing-cards {
        grid-template-columns: 1fr;
    }
}

/* Guide: first-level cards sit 40px apart */
.guide > .card,
.guide > .panel {
    margin-bottom: 40px;
}

/* Guide FAQ: one-line questions that expand, same style as the dashboard */
.faq-item {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin: 0 0 14px;
    background: var(--panel);
}

.faq-head {
    margin: 0;
    font-size: 1.05rem;
}

.faq-q {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 2px 0;
    background: none;
    border: none;
    font: inherit;
    color: inherit;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.faq-a {
    padding-top: 10px;
}

.faq-a p {
    margin: 0;
}

.event-line-title {
    font-weight: 700;
    font-size: 1.05rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-line-meta {
    margin-left: auto;
    white-space: nowrap;
    font-size: 0.92rem;
}

.event-detail {
    display: grid;
    gap: 6px;
    padding-top: 6px;
}

.event-desc {
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 560px) {
    .event-line-meta {
        display: none;
    }
}

.step-eyebrow {
    margin: 0 0 4px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent-dark);
}

.review-box {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 18px 20px;
    background: #ffffff;
}

.review-box h3 {
    margin-top: 0;
}

.review-box ul {
    margin: 8px 0 0;
    padding-left: 20px;
}

.review-box li {
    padding: 3px 0;
}

.badge {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-dark);
}

.badge.final {
    background: #fef3c7;
    color: #92400e;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

th,
td {
    text-align: left;
    padding: 8px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

th {
    color: var(--muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* The poll's timeslots sit grouped in one brand-green card */
#pollSlots {
    background: var(--accent);
    border-radius: 12px;
    padding: 16px;
}

#pollSlots .slot-row {
    background: #ffffff;
    border-color: transparent;
}

/* "Propose another time" gets a shallow orange background */
#proposeSection {
    background: #ffedd5;
    border-color: #fed7aa;
}

/* Event form: the Timeslots card in dark green */
.slot-field {
    background: #1e5b3a;
    border-color: #1e5b3a;
}

.slot-field legend {
    background: #1e5b3a;
    color: #ffffff;
    padding: 2px 10px;
    border-radius: 6px;
}

.slot-field legend .muted {
    color: #a7f3d0;
}

.slot-field .slot-edit {
    background: #ffffff;
    border-radius: 8px;
    padding: 10px 12px;
    align-items: center;
}

.slot-field #addSlotBtn {
    background: #ffffff;
    color: #1e5b3a;
    border-color: transparent;
    justify-self: start;
}

/* First-level cards on the event page get double spacing */
.panel-spaced {
    margin-bottom: 40px;
}

/* Event form: larger field titles */
#eventForm label,
#eventForm legend {
    font-size: 1.6rem;
}

.slot-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 12px;
}

.slot-row .slot-when {
    font-weight: 600;
}

.slot-row select {
    width: auto;
    margin-left: auto;
}

.rank-first {
    background: var(--ok-bg);
}

code.link {
    background: var(--bg);
    padding: 2px 6px;
    border-radius: 6px;
    word-break: break-all;
}


/* Landing page */

.hero-ctas {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.free-note {
    color: var(--muted);
    font-size: 0.92rem;
    margin-top: 10px;
}

.shot {
    margin: 0;
}

.shot img {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.shot figcaption {
    color: var(--muted);
    font-size: 0.88rem;
    margin-top: 6px;
}

.hero-shot {
    max-width: 860px;
    margin: 26px auto 4px;
    text-align: left;
}

.hero-split {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 30px;
    align-items: center;
    text-align: left;
}

.hero-split .lede {
    margin-left: 0;
}

.hero-split .hero-ctas {
    justify-content: flex-start;
}

.hero-photo {
    margin: 0;
}

.hero-photo img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--line);
    border-radius: 12px;
}

/* Hero: shallow calendar background covering the whole hero, photo floating on top */
.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(155deg, #2f7d4f, #1e5b3a 58%);
    color: #ffffff;
    min-height: 550px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg svg {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(14, 42, 26, 0.92) 0%, rgba(14, 42, 26, 0.55) 42%, rgba(14, 42, 26, 0) 68%),
        linear-gradient(180deg, rgba(14, 42, 26, 0.18), rgba(14, 42, 26, 0.42));
}

.hero-split {
    position: relative;
    z-index: 1;
}

.hero-photo {
    position: relative;
    transform: rotate(1.5deg);
}

/* Dark hero: text and button go light */
.hero .hero-sub {
    color: #a7f3d0;
}

.hero .lede {
    color: rgba(255, 255, 255, 0.88);
}

.hero .free-note {
    color: rgba(255, 255, 255, 0.75);
}

.hero .btn {
    background: #ffffff;
    color: #1e5b3a;
}

.hero .btn:hover {
    background: #f0fdfa;
}

.hero-photo img {
    border: 6px solid #ffffff;
    border-radius: 10px;
    box-shadow: 0 24px 44px rgba(15, 23, 42, 0.22);
    width: auto;
    height: 400px;
    max-width: none;
}

/* Hero full-bleed: the calendar band spans the full screen width (like
   mdanderson.org / doodle.com); the content stays in the reading column */
body {
    overflow-x: clip;
}

.hero {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding-left: 16px;
    padding-right: 16px;
}

.hero-split {
    grid-template-columns: 1fr auto;
    max-width: 1048px;
    margin-left: auto;
    margin-right: auto;
}

/* Mobile: the layout stacks, so the text sits on a solid color instead of the veil */
@media (max-width: 820px) {
    .hero-text {
        background: #17452c;
        border-radius: 14px;
        padding: 22px 18px;
    }

    .hero-photo img {
        width: 100%;
        height: auto;
    }
}

/* Mid-size screens: the fixed-size hero photo gives way to fluid scaling */
@media (max-width: 1080px) {
    .hero-split {
        grid-template-columns: 0.8fr 1.2fr;
        max-width: 888px;
    }

    .hero-photo img {
        width: 100%;
        height: auto;
        max-width: 100%;
    }
}

/* Home: use-case cards — image on one side, text on the other, sliding in on scroll */
.uc-section {
    margin: 42px 0 10px;
}

.uc-head {
    text-align: center;
    margin-bottom: 22px;
}

.uc-lede {
    color: var(--muted);
    max-width: 560px;
    margin: 6px auto 0;
}

.uc-cards {
    display: grid;
    gap: 56px;
}

.uc-card {
    display: grid;
    grid-template-columns: 5fr 7fr;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
    margin: 0;
    min-height: 320px;
}

.uc-card.flip {
    grid-template-columns: 7fr 5fr;
}

.uc-card.flip .uc-media {
    order: 2;
}

.uc-media {
    margin: 0;
}

.uc-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.uc-body {
    padding: 38px 40px;
    align-self: center;
}

.uc-cat {
    color: var(--accent-dark);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin: 0 0 4px;
}

.uc-body h3 {
    font-size: 28px;
    margin: 0 0 12px;
}

.uc-chips {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    padding: 0;
    margin: 0 0 12px;
}

.uc-chips li {
    background: var(--accent-soft);
    color: var(--accent-dark);
    border-radius: 999px;
    padding: 7px 15px;
    font-size: 15.5px;
}

.uc-more {
    font-weight: 600;
}

/* Scroll reveal: cards start offset and slide in as they enter the viewport.
   The hidden start state applies only when reveal.js adds .js-reveal. */
.js-reveal .uc-card {
    opacity: 0;
    transform: translateX(-44px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.js-reveal .uc-card.flip {
    transform: translateX(44px);
}

.js-reveal .uc-card.in {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 700px) {
    .uc-card,
    .uc-card.flip {
        grid-template-columns: 1fr;
    }

    .uc-card.flip .uc-media {
        order: 0;
    }

    .uc-media img {
        height: 250px;
    }

    .js-reveal .uc-card,
    .js-reveal .uc-card.flip {
        transform: translateY(26px);
    }

    .js-reveal .uc-card.in {
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .js-reveal .uc-card {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

.card[id] {
    scroll-margin-top: 84px;
}

/* Hover (pointer devices only): the card lifts and its photo zooms a touch;
   both ease back out when the mouse leaves */
.uc-media {
    overflow: hidden;
}

.uc-media img {
    transition: transform 0.5s ease;
}

@media (hover: hover) {
    .uc-card {
        transition: transform 0.35s ease, box-shadow 0.35s ease;
    }

    .js-reveal .uc-card {
        transition: opacity 0.65s ease, transform 0.65s ease, box-shadow 0.35s ease;
    }

    .uc-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 14px 30px rgba(15, 23, 42, 0.13);
    }

    .js-reveal .uc-card.in:hover {
        transform: translateY(-5px);
    }

    .uc-card:hover .uc-media img {
        transform: scale(1.1);
    }
}

/* View more / View less: only the first three cards show until expanded
   (the .collapsed class is added by uc-toggle.js, so no-JS still shows all) */
.uc-cards.collapsed .uc-card:nth-child(n+4) {
    display: none;
}

.uc-toggle-wrap {
    text-align: center;
    margin: 28px 0 0;
}

.uc-toggle {
    color: var(--accent-dark);
    font-weight: 600;
    font-size: 1.05rem;
}

@media (max-width: 820px) {
    .hero-split {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-split .lede {
        margin: 0 auto 18px;
    }
    .hero-split .hero-ctas {
        justify-content: center;
    }
}

.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    align-items: center;
    margin: 34px 0;
}

.cta-band {
    text-align: center;
    margin-top: 24px;
}

@media (max-width: 700px) {
    .feature-row {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 701px) {
    .feature-row.flip .shot {
        order: 2;
    }
}


/* Guide page */

.guide h2 {
    margin-top: 30px;
}

.guide li {
    margin: 4px 0;
}


/* Poll answer modes */

.mode-option {
    display: block;
    font-weight: 400;
    margin: 6px 0;
}

#pollSlots.no-rank .rank-select {
    display: none;
}

@media (max-width: 560px) {
    .hero h1 {
        font-size: 1.55rem;
    }
    .slot-row select {
        margin-left: 0;
    }
}


/* Mobile pass — results tables scroll inside their panels instead of
   crushing, the header stacks, and tap targets get taller. */

#slotStandings,
#proposalList,
#responseList {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

#slotStandings table,
#proposalList table,
#responseList table {
    width: max-content;
    min-width: 100%;
}

@media (max-width: 640px) {
    .header-in {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .main-nav {
        gap: 8px 14px;
    }
    .main-nav a {
        padding: 6px 0;
    }
    .nav-email {
        max-width: 60vw;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .panel,
    .card {
        padding: 16px;
    }
    .btn {
        padding: 11px 18px;
    }
    .btn-small {
        padding: 9px 12px;
    }
    main.wrap {
        padding-top: 18px;
    }
    .hero {
        padding-top: 18px;
    }
    th,
    td {
        padding: 7px 6px;
    }
}

@media (max-width: 400px) {
    .hero-ctas .btn {
        width: 100%;
        text-align: center;
    }
}


/* Use-cases page: half-height hero (275px vs the home hero's 550px) */
.hero-short {
    min-height: 275px;
}

/* Use-cases carousel */

.carousel {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: #082f2c;
    margin-top: 40px;
}

.carousel-track {
    display: flex;
    transition: transform 0.6s ease;
}

.carousel-slide {
    min-width: 100%;
    margin: 0;
}

.carousel-slide img {
    display: block;
    width: 100%;
    height: auto;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(8, 47, 44, 0.55);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

.carousel-btn:hover {
    background: rgba(8, 47, 44, 0.85);
}

.carousel-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 10px;
    display: flex;
    gap: 7px;
    justify-content: center;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.35);
    padding: 0;
    cursor: pointer;
}

.carousel-dot.active {
    background: #fff;
}

.carousel-caption {
    text-align: center;
    margin-top: 10px;
    font-size: 1.02rem;
}

.uc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-top: 26px;
}

.uc-grid h3 {
    margin-top: 0;
}

.uc-grid p {
    color: var(--muted);
    font-size: 0.94rem;
    margin: 0;
}

/* Date & time picker (event form slot rows) — replaces the native
   datetime-local popup with a roomy calendar + time chips. */
.dtp {
    position: relative;
}

.dtp-field {
    font: inherit;
    font-size: 16px;
    color: var(--ink);
    padding: 9px 34px 9px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%230f766e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E") no-repeat right 10px center;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.dtp-field:focus {
    outline: 2px solid var(--accent-soft);
    border-color: var(--accent);
}

.dtp-pop {
    position: absolute;
    left: 0;
    top: calc(100% + 6px);
    z-index: 60;
    width: 604px;
    max-width: 92vw;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 18px 50px rgba(15, 40, 60, 0.20);
    padding: 14px;
}

.dtp-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.dtp-title {
    font-weight: 700;
}

.dtp-nav {
    width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--accent-dark);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.dtp-nav:hover:not(:disabled) {
    background: var(--accent-soft);
}

.dtp-nav:disabled {
    opacity: 0.35;
    cursor: default;
}

.dtp-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
}

.dtp-dows {
    margin-bottom: 2px;
}

.dtp-dows span {
    text-align: center;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--muted);
    padding: 2px 0;
}

.dtp-day {
    height: 38px;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: 0.95rem;
    cursor: pointer;
    padding: 0;
}

.dtp-day:hover:not(:disabled) {
    background: var(--accent-soft);
}

.dtp-day:disabled {
    color: #c3cad2;
    cursor: default;
}

.dtp-day.is-today {
    box-shadow: inset 0 0 0 1px var(--accent);
}

.dtp-day.is-sel {
    background: var(--accent);
    color: #fff;
    font-weight: 700;
}

.dtp-main {
    display: flex;
    gap: 36px;
}

.dtp-cal {
    width: 300px;
    flex: none;
}

.dtp-time {
    flex: 1;
    border-left: 1px solid var(--line);
    padding-left: 28px;
}

@media (max-width: 640px) {
    .dtp-pop {
        width: 324px;
    }

    .dtp-main {
        flex-direction: column;
    }

    .dtp-cal {
        width: auto;
    }

    .dtp-time {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid var(--line);
        padding-top: 10px;
    }
}

.dtp-time-label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 6px;
}

.dtp-dur-label {
    margin-top: 12px;
}

.dtp-end {
    font-size: 0.98rem;
    font-weight: 600;
}

.dtp-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
    border-top: 1px solid var(--line);
    padding-top: 10px;
}

.dtp-summary {
    font-size: 0.9rem;
    font-weight: 600;
}

.dtp-note {
    margin-top: 8px;
    font-size: 0.82rem;
    color: var(--muted);
}
