/* HoloNotes (first released as Present to Patient). Shell, buttons, and sign-in come from /desktop/desktop.css.
   Report sizes are in em so the same cards scale up on the shared screen.

   The whole page is dark, like the shared screen it leads to. /desktop/desktop.css
   is written for light pages, so its colours are replaced here: the first five
   below are its own names, and its menu, cards, buttons and fields are restyled
   under "Dark page" at the end of this file. */

:root {
    --ink: #eef4ff;
    --sub: rgba(208, 223, 255, .68);
    --paper: rgba(255, 255, 255, .07);       /* quiet fill: chips, quotes, small buttons */
    --line: rgba(130, 180, 255, .17);
    --blue: #7db2ff;
    --ex-bg: #04070f;                        /* the page itself */
    --ex-glass: rgba(120, 165, 255, .065);   /* cards on the page */
    --ex-body: rgba(226, 235, 255, .84);     /* running text on a card */
    --ex-link: #a9d2ff;
    --ex-now: #ff6b5e;
    --ex-now-soft: rgba(255, 93, 82, .17);
    --ex-soon: #ffb24a;
    --ex-soon-soft: rgba(255, 178, 74, .16);
    --ex-watch: #6bb6ff;
    --ex-watch-soft: rgba(107, 182, 255, .16);
    --ex-noted: #93a0bd;
    --ex-noted-soft: rgba(160, 175, 205, .17);
    --ex-good: #37e8c2;
    --ex-private: rgba(255, 214, 120, .055);
    --ex-private-line: rgba(255, 214, 120, .22);
    color-scheme: dark;
}

.ex-shell { max-width: 1240px; }
.ex-shell #loading, .ex-shell #signedOut { margin-left: auto; margin-right: auto; }
.ex-shell h2 { font-size: 20px; letter-spacing: -.02em; font-weight: 600; margin: 0 0 10px; }
.ex-shell .banner a, .ex-shell .quiet a { color: var(--blue); }
/* As wide as the sample visits under it. Text cards keep a readable width. */
#listView { max-width: 1120px; margin: 0 auto; }
#listView > .panel, #listView > .banner { max-width: 760px; }
body.is-presenting { overflow: hidden; }

.ex-page-head { margin-bottom: 18px; }
/* The HoloNotes title logo, where the page name used to be written out. */
.ex-brand { margin: 0 0 12px; line-height: 0; }
.ex-brand img { display: inline-block; height: 43px; width: auto; max-width: 100%; margin-left: -1px; }
.ex-back {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--sub);
    font-size: 14px;
    text-decoration: none;
}
.ex-back:hover { color: var(--ink); }

/* ── List ─────────────────────────────────────────────────────────────── */

.ex-empty .quiet { margin: 0; }
.ex-howto { margin: 0 0 16px; padding-left: 20px; line-height: 1.6; }
.ex-howto li { margin-bottom: 4px; }

/* ── Sample visits ────────────────────────────────────────────────────── */

.ex-samples {
    max-width: 1120px;
    margin: 44px auto 0;
    padding: 30px 28px 28px;
    border-radius: 32px;
    background: radial-gradient(120% 90% at 50% 0%, #0f1c3a 0%, #060a14 64%);
    box-shadow: inset 0 0 0 1px rgba(130, 180, 255, .13), 0 34px 60px -44px rgba(0, 0, 0, .9);
    color: #e9f1ff;
}
.ex-samples-head { margin-bottom: 22px; text-align: center; }
.ex-shell .ex-samples-head h2 { margin: 0 0 6px; font-size: 22px; color: #fff; }
.ex-samples-head p { margin: 0; color: rgba(214, 228, 255, .7); font-size: 15px; line-height: 1.45; }
.ex-samples-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.ex-sample {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 10px 10px 14px;
    border-radius: 22px;
    background: rgba(255, 255, 255, .04);
    box-shadow: inset 0 0 0 1px rgba(140, 190, 255, .14);
    color: inherit;
    text-decoration: none;
    transition: box-shadow .25s var(--ease), transform .25s var(--ease), background .25s var(--ease);
    animation: exSampleIn .5s var(--ease) both;
    animation-delay: calc(var(--i, 0) * 45ms);
}
.ex-sample:hover, .ex-sample:focus-visible {
    background: rgba(98, 214, 255, .07);
    box-shadow: inset 0 0 0 1px rgba(98, 214, 255, .7), 0 0 36px -10px rgba(98, 214, 255, .6);
    transform: translateY(-3px);
    outline: none;
}
.ex-sample-art {
    position: relative;
    display: block;
    aspect-ratio: 1;
    margin-bottom: 10px;
    border-radius: 15px;
    overflow: hidden;
    background: #000;
}
.ex-sample-art img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.ex-sample:hover .ex-sample-art img, .ex-sample:focus-visible .ex-sample-art img { transform: scale(1.07); }
.ex-sample-play {
    position: absolute;
    right: 9px;
    bottom: 9px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    padding-left: 2px;
    background: rgba(12, 20, 40, .55);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .32);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 12px;
    transition: background .25s var(--ease);
}
.ex-sample:hover .ex-sample-play, .ex-sample:focus-visible .ex-sample-play { background: linear-gradient(135deg, #2563eb, #10b981); }
.ex-sample strong { padding: 0 4px; color: #fff; font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.ex-sample-blurb { padding: 0 4px; color: rgba(214, 228, 255, .66); font-size: 13px; line-height: 1.35; }

/* ── Your visits: the signed-in dentist's own, drawn like the samples ─── */

.ex-yours { margin-top: 0; }
/* The list is drawn again while Carey is writing. Only the first drawing animates. */
.ex-visit:not(.is-fresh) { animation: none; }
.ex-visit:focus-within {
    background: rgba(98, 214, 255, .07);
    box-shadow: inset 0 0 0 1px rgba(98, 214, 255, .7), 0 0 36px -10px rgba(98, 214, 255, .6);
}
/* Grows, so the link under it sits on the bottom edge of every card in a row. */
.ex-visit-open { display: flex; flex: 1 1 auto; flex-direction: column; gap: 3px; color: inherit; text-decoration: none; outline: none; }
.ex-visit-open strong { overflow-wrap: anywhere; }
.ex-visit-date { padding: 0 4px; color: rgba(214, 228, 255, .46); font-size: 12.5px; line-height: 1.35; }
.ex-visit-more {
    align-self: flex-start;
    margin: 9px 4px 0;
    color: rgba(150, 205, 255, .9);
    font-size: 12.5px;
    font-weight: 500;
    text-decoration: none;
}
.ex-visit-more:hover, .ex-visit-more:focus-visible { color: #fff; text-decoration: underline; outline: none; }
.ex-visit-status {
    position: absolute;
    left: 8px;
    top: 8px;
    max-width: calc(100% - 16px);
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(8, 14, 30, .66);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: #dbe8ff;
    font-size: 11.5px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ex-visit-status.is-busy { color: #9fe6ff; animation: exPulse 1.6s ease-in-out infinite; }
.ex-visit-status.is-problem { color: #ffb9ab; }
/* A visit with no picture yet: still being written, or it could not be. */
.ex-visit-wait {
    display: block;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 52%, rgba(98, 214, 255, .34), rgba(98, 214, 255, 0) 44%), #050a16;
}
.ex-visit-wait.is-busy { animation: exPulse 1.6s ease-in-out infinite; }
.ex-yours-note { margin: 20px 0 0; color: rgba(214, 228, 255, .5); font-size: 13px; text-align: center; }

/* Above the cards once the list is long: a search box, then a button for each recent day. */
.ex-yours-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 0 0 22px; }
.ex-find {
    display: flex;
    flex: 1 1 262px;
    align-items: center;
    gap: 10px;
    max-width: 380px;
    height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .05);
    box-shadow: inset 0 0 0 1px rgba(140, 190, 255, .2);
    color: rgba(214, 228, 255, .6);
    font-size: 14px;
    transition: box-shadow .2s var(--ease), background .2s var(--ease);
}
.ex-find:focus-within { background: rgba(98, 214, 255, .07); box-shadow: inset 0 0 0 1px rgba(98, 214, 255, .75); }
.ex-find-input {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    padding: 0;
    border: 0;
    background: none;
    color: #fff;
    font: inherit;
    font-size: 14px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}
.ex-find-input::placeholder { color: rgba(214, 228, 255, .45); }
.ex-find-input::-webkit-search-cancel-button { -webkit-appearance: none; }
/* Beside the search box when the row has room for them all, under it when not. */
.ex-days { display: flex; flex: 0 1 auto; flex-wrap: wrap; gap: 8px; min-width: 0; }
.ex-day {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 34px;
    padding: 0 13px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .05);
    box-shadow: inset 0 0 0 1px rgba(140, 190, 255, .18);
    color: rgba(224, 235, 255, .82);
    font: inherit;
    font-size: 13.5px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: box-shadow .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.ex-day:hover, .ex-day:focus-visible { background: rgba(98, 214, 255, .09); box-shadow: inset 0 0 0 1px rgba(98, 214, 255, .6); color: #fff; outline: none; }
.ex-day.is-on { background: linear-gradient(135deg, rgba(37, 99, 235, .55), rgba(16, 185, 129, .45)); box-shadow: inset 0 0 0 1px rgba(150, 215, 255, .55); color: #fff; }
.ex-day-count { color: rgba(214, 228, 255, .5); font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; }
.ex-day.is-on .ex-day-count { color: rgba(255, 255, 255, .8); }
/* Days further back are picked from a menu that looks like the buttons beside it. */
.ex-day-menu {
    padding-right: 30px;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23c5d8ff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}
.ex-day-menu.is-on { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23ffffff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"), linear-gradient(135deg, rgba(37, 99, 235, .55), rgba(16, 185, 129, .45)); background-repeat: no-repeat, no-repeat; background-position: right 12px center, 0 0; }
.ex-day-menu option { background: #0b1326; color: #fff; }

/* For screen readers only: how many visits a search or a day left. */
.ex-yours-status { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* One day of visits under its own heading. */
.ex-day-group + .ex-day-group { margin-top: 28px; }
.ex-shell .ex-day-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
    margin: 0 0 12px;
    padding: 0 4px 10px;
    border-bottom: 1px solid rgba(140, 190, 255, .12);
    color: rgba(214, 228, 255, .6);
    font-size: 13.5px;
    font-weight: 400;
    letter-spacing: 0;
}
.ex-day-head strong { color: #fff; font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.ex-day-total { margin-left: auto; color: rgba(214, 228, 255, .5); font-size: 12.5px; }
.ex-yours-none, .ex-yours-more { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 18px 0 4px; text-align: center; }
.ex-yours-none p { margin: 0; color: rgba(214, 228, 255, .7); font-size: 15px; overflow-wrap: anywhere; }
.ex-yours-more { padding-top: 26px; }

/* Your visits, while the list is being fetched: one row of placeholder cards with a light sweeping across. */
.ex-loading { margin-top: 0; }
.ex-skel { pointer-events: none; }
.ex-skel-art, .ex-skel-line {
    display: block;
    background: linear-gradient(100deg, rgba(140, 190, 255, .07) 30%, rgba(150, 205, 255, .2) 50%, rgba(140, 190, 255, .07) 70%) 0 0 / 240% 100%;
    animation: exShimmer 1.6s linear infinite;
    animation-delay: calc(var(--i, 0) * 90ms);
}
.ex-skel-art { aspect-ratio: 1; margin-bottom: 10px; border-radius: 15px; }
.ex-skel-line { width: 72%; height: 12px; margin: 4px 4px 2px; border-radius: 6px; }
.ex-skel-line + .ex-skel-line { width: 46%; height: 10px; }

/* ── Waiting and error card ───────────────────────────────────────────── */

.ex-notice {
    max-width: 520px;
    margin: 32px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.ex-notice .carey-orb { margin-bottom: 14px; }
.ex-notice h1 { font-size: 24px; }
.ex-notice .lede { margin-bottom: 0; }
.ex-notice-actions { justify-content: center; }

/* ── Review screen ────────────────────────────────────────────────────── */

.ex-topbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 20px;
}
.ex-topbar .lede { margin: 0; }
.ex-topbar-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pill.ex-present-btn { background: linear-gradient(135deg, #2f7bff, #16c79a); color: #fff; font-weight: 600; padding: 12px 22px; }
.pill.ex-present-btn:hover { background: linear-gradient(135deg, #4a8dff, #22dcae); }

.ex-review { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.ex-review-note { margin: 0 0 14px; color: var(--sub); font-size: 14px; line-height: 1.45; }
.ex-hidden-count { color: var(--ex-soon); font-weight: 500; }

/* The bar above the cards: email this presentation to the patient. */
.ex-share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    margin: 0 0 16px;
    padding: 14px 16px;
    border-radius: 18px;
    background: var(--ex-glass);
    box-shadow: inset 0 0 0 1px var(--line);
}
.ex-share-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 260px; font-size: 14px; line-height: 1.45; }
.ex-share-text strong { font-weight: 600; }
.ex-share-text span { color: var(--sub); overflow-wrap: anywhere; }
.ex-share-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ex-share .pill { padding: 9px 14px; font-size: 14px; }
.ex-share .status { flex: 1 0 100%; margin: 0; }
.ex-share-form { flex: 1 0 100%; }
.ex-share-form .field, .ex-share-form .quiet { max-width: 460px; }
.ex-share-form .field:first-child { margin-top: 4px; }
.ex-share-form .actions { margin-top: 12px; }
.ex-share-form .quiet { margin: 10px 0 0; font-size: 13px; }

/* ── A patient's own link ─────────────────────────────────────────────── */

/* No site menu: the page belongs to the practice that sent it. */
body.is-patient-link .site-header { display: none; }
body.is-patient-link .ex-shell { padding-top: 40px; }
.ex-patient-card { margin-top: 24px; }
.ex-patient-office {
    margin: 0 0 18px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -.01em;
    color: var(--ink);
}
.ex-patient-card .actions { margin-top: 22px; }
.ex-patient-card .text-btn { margin-top: 6px; color: var(--blue); cursor: pointer; }
.ex-patient-card .text-btn:disabled { color: var(--sub); cursor: default; }
.ex-code-form { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.ex-code-input {
    width: 9.5em;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    outline: none;
    background: rgba(255, 255, 255, .06);
    color: var(--ink);
    font: 600 22px/1.2 var(--font);
    letter-spacing: .28em;
    text-align: center;
}
.ex-code-input::placeholder { color: rgba(208, 223, 255, .32); font-weight: 400; }
.ex-code-input:focus { border-color: #62d6ff; box-shadow: 0 0 0 3px rgba(98, 214, 255, .16); }
.ex-powered {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 6px;
    color: var(--sub);
    font-size: 12.5px;
    text-decoration: none;
}
.ex-powered img { height: 14px; width: auto; filter: brightness(1.3) saturate(1.1); }

.ex-private {
    position: sticky;
    top: 92px;
    max-height: calc(100vh - 112px);
    overflow: auto;
    padding: 20px;
    border-radius: 24px;
    background: var(--ex-private);
    box-shadow: inset 0 0 0 1px var(--ex-private-line);
    font-size: 14px;
    line-height: 1.5;
}
.ex-private-head h2 { font-size: 17px; margin: 0 0 4px; }
.ex-private-head h2 i { font-size: 13px; color: #e6c66a; margin-right: 4px; }
.ex-private-head p { margin: 0 0 14px; color: var(--sub); font-size: 13px; }
.ex-private h3 {
    margin: 18px 0 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #d9bf73;
}
.ex-private-note { margin: 0 0 10px; color: var(--sub); }
.ex-private-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ex-private-list li { padding: 11px 13px; border-radius: 14px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09); }
.ex-private-list li strong { display: block; font-weight: 600; }
.ex-private-list li p { margin: 4px 0 0; color: var(--sub); }
.ex-private-list--plain li { background: transparent; box-shadow: none; padding: 0 0 0 16px; position: relative; }
.ex-private-list--plain li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: #d9bf73; }
.ex-private-list summary { cursor: pointer; font-weight: 500; }
.ex-kind {
    display: inline-block;
    margin-bottom: 5px;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--ex-noted-soft);
    color: var(--sub);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .03em;
}
.ex-kind--gap { background: var(--ex-soon-soft); color: #ffd08a; }
.ex-kind--alternative { background: var(--ex-watch-soft); color: var(--ex-link); }
.ex-quote { font-style: italic; }

/* ── Report cards (both screens) ──────────────────────────────────────── */

.ex-report { font-size: 16px; display: flex; flex-direction: column; gap: 1.75em; }
.ex-section { display: flex; flex-direction: column; gap: .9em; }
.ex-heading {
    margin: 0;
    font-size: .8em;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--sub);
}
.ex-shell .ex-heading { font-size: .8em; margin: 0; letter-spacing: .08em; }

.ex-card {
    position: relative;
    padding: 1.25em 1.4em;
    border-radius: 1.4em;
    background: var(--ex-glass);
    box-shadow: inset 0 0 0 1px var(--line), 0 18px 36px -30px rgba(0, 0, 0, .8);
    transition: box-shadow .3s var(--ease), transform .3s var(--ease), opacity .2s var(--ease);
    scroll-margin: 120px;
}
.ex-card h3 { margin: 0; font-size: 1.2em; letter-spacing: -.02em; font-weight: 600; line-height: 1.25; }
.ex-card p { margin: .55em 0 0; font-size: 1em; line-height: 1.5; color: var(--ex-body); }
.ex-card.is-spot {
    box-shadow: 0 0 0 3px rgba(98, 214, 255, .85), 0 0 0 10px rgba(55, 232, 194, .14), 0 24px 48px -28px rgba(98, 214, 255, .5);
    transform: translateY(-2px);
}
.ex-card.is-hidden-item { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .16); }
.ex-card.is-hidden-item > :not(.ex-card-tools) { opacity: .42; }

.ex-summary { background: linear-gradient(135deg, rgba(47, 123, 255, .2), rgba(22, 199, 154, .13)); }
.ex-card .ex-summary-text { margin: 0; font-size: 1.3em; line-height: 1.45; letter-spacing: -.01em; color: var(--ink); }
.ex-card .ex-summary-hint { font-size: .85em; color: var(--ex-soon); }

.ex-found-grid { display: grid; gap: 1.1em; }
.ex-found.has-map .ex-found-grid { grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr); align-items: start; }
.ex-cards { display: flex; flex-direction: column; gap: .8em; min-width: 0; }
.ex-cards--plan { display: grid; grid-template-columns: repeat(auto-fit, minmax(17em, 1fr)); align-items: start; }

.ex-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: .8em; }
.ex-finding { border-left: .32em solid var(--ex-noted-soft); }
.ex-finding--now { border-left-color: var(--ex-now); }
.ex-finding--soon { border-left-color: var(--ex-soon); }
.ex-finding--watch { border-left-color: var(--ex-watch); }
.ex-urgency, .ex-visits {
    flex: none;
    padding: .25em .75em;
    border-radius: 999px;
    font-size: .78em;
    font-weight: 600;
    white-space: nowrap;
}
.ex-urgency--now { background: var(--ex-now-soft); color: #ffb0a6; }
.ex-urgency--soon { background: var(--ex-soon-soft); color: #ffd08a; }
.ex-urgency--watch { background: var(--ex-watch-soft); color: var(--ex-link); }
.ex-visits { background: var(--ex-noted-soft); color: var(--ex-body); }

.ex-chips { display: flex; flex-wrap: wrap; gap: .45em; margin-top: .9em; }
.ex-chip {
    display: inline-flex;
    align-items: center;
    padding: .3em .8em;
    border: 0;
    border-radius: 999px;
    background: var(--paper);
    color: var(--ex-body);
    font-size: .82em;
    font-weight: 500;
}
.ex-chip--link { background: var(--ex-watch-soft); color: var(--ex-link); }
.ex-chip--link:hover { background: rgba(107, 182, 255, .28); }

.ex-card .ex-why strong { color: var(--ink); font-weight: 600; }
.ex-steps { list-style: none; margin: 1em 0 0; padding: 0; display: flex; flex-direction: column; }
.ex-steps li { position: relative; display: flex; align-items: flex-start; gap: .7em; padding-bottom: .7em; font-size: .95em; line-height: 1.4; }
.ex-steps li:last-child { padding-bottom: 0; }
.ex-steps li:not(:last-child)::before {
    content: "";
    position: absolute;
    left: .8em;
    top: 1.7em;
    bottom: .05em;
    width: 2px;
    margin-left: -1px;
    background: rgba(107, 182, 255, .28);
}
.ex-step-dot {
    flex: none;
    width: 1.6em;
    height: 1.6em;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--ex-watch-soft);
    color: var(--ex-link);
    font-size: .85em;
    font-weight: 600;
}

.ex-compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(17em, 1fr)); gap: .8em; align-items: start; }
.ex-option--pick { box-shadow: 0 0 0 2px rgba(55, 232, 194, .6), 0 18px 36px -30px rgba(0, 0, 0, .8); }
.ex-pick-label {
    display: inline-block;
    margin-bottom: .6em;
    padding: .25em .75em;
    border-radius: 999px;
    background: rgba(55, 232, 194, .16);
    color: #7df0d2;
    font-size: .78em;
    font-weight: 600;
}
.ex-pick-label--other { background: var(--ex-noted-soft); color: var(--ex-body); }
.ex-pick-label--next { background: var(--ex-watch-soft); color: var(--ex-link); }
.ex-card .ex-needs { padding: .55em .8em; border-radius: .8em; background: var(--ex-watch-soft); font-size: .92em; color: var(--ex-body); }
.ex-card .ex-needs strong { color: var(--ex-link); font-weight: 600; }
.ex-pros, .ex-cons { list-style: none; margin: .8em 0 0; padding: 0; display: flex; flex-direction: column; gap: .35em; font-size: .95em; line-height: 1.4; }
.ex-pros li, .ex-cons li { position: relative; padding-left: 1.5em; }
.ex-pros li::before, .ex-cons li::before { position: absolute; left: 0; top: 0; font-weight: 700; }
.ex-pros li::before { content: "+"; color: var(--ex-good); }
.ex-cons li::before { content: "\2212"; color: var(--ex-now); }

.ex-card.ex-wait { background: linear-gradient(135deg, var(--ex-soon-soft), var(--ex-glass) 70%); }

/* Review-only parts of a card. */
.ex-evidence {
    margin: 1em 0 0;
    padding: .7em .9em;
    border-radius: .9em;
    background: var(--paper);
    color: var(--sub);
    font-size: .85em;
    line-height: 1.45;
    font-style: italic;
}
.ex-evidence-label {
    display: block;
    margin-bottom: .2em;
    font-style: normal;
    font-size: .82em;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.ex-card-tools { display: flex; align-items: center; justify-content: flex-end; gap: .8em; margin-top: .9em; }
.ex-hidden-note { color: var(--ex-soon); font-size: .85em; font-weight: 500; }
.ex-toggle {
    padding: .4em .9em;
    border: 0;
    border-radius: 999px;
    background: var(--paper);
    color: var(--ex-body);
    font-size: .82em;
    font-weight: 500;
}
.ex-toggle:hover { background: rgba(255, 255, 255, .14); }
.ex-toggle[aria-pressed="true"] { background: #fff; color: #0a1020; }

/* ── Tooth map ────────────────────────────────────────────────────────── */

.ex-map {
    margin: 0;
    padding: 1em;
    border-radius: 1.4em;
    background: var(--ex-glass);
    box-shadow: inset 0 0 0 1px var(--line), 0 18px 36px -30px rgba(0, 0, 0, .8);
    position: sticky;
    top: 92px;
}
.ex-map-svg { display: block; width: 100%; height: auto; }
.ex-tooth rect { fill: rgba(255, 255, 255, .05); stroke: rgba(160, 195, 255, .26); stroke-width: 1.2; transition: fill .25s var(--ease), stroke .25s var(--ease), stroke-width .25s var(--ease); }
.ex-tooth text { font-family: var(--font); font-size: 11.5px; fill: rgba(208, 223, 255, .5); pointer-events: none; }
.ex-tooth.is-flagged { cursor: pointer; outline: none; }
.ex-tooth.is-flagged text { fill: #06101f; font-weight: 700; font-size: 13px; }
.ex-tooth--now rect { fill: var(--ex-now); stroke: var(--ex-now); }
.ex-tooth--soon rect { fill: var(--ex-soon); stroke: var(--ex-soon); }
.ex-tooth--watch rect { fill: var(--ex-watch); stroke: var(--ex-watch); }
.ex-tooth--noted rect { fill: var(--ex-noted); stroke: var(--ex-noted); }
.ex-tooth.is-flagged:hover rect, .ex-tooth.is-flagged:focus-visible rect { stroke: #fff; stroke-width: 2.5; }
.ex-tooth.is-lit rect { stroke: #fff; stroke-width: 3.5; animation: exToothPulse 1.2s ease-in-out infinite; }
.ex-map-label { font-family: var(--font); font-size: 19px; font-weight: 600; fill: rgba(226, 235, 255, .84); }
.ex-map-side { font-family: var(--font); font-size: 14px; fill: rgba(208, 223, 255, .5); }
.ex-map-legend { list-style: none; margin: .6em 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .4em 1.1em; font-size: .82em; color: var(--ex-body); }
.ex-legend { display: flex; align-items: center; gap: .45em; }
.ex-legend::before { content: ""; width: .8em; height: .8em; border-radius: .25em; background: var(--ex-noted); }
.ex-legend--now::before { background: var(--ex-now); }
.ex-legend--soon::before { background: var(--ex-soon); }
.ex-legend--watch::before { background: var(--ex-watch); }

/* ── Carey panel ──────────────────────────────────────────────────────── */

.carey-panel { display: flex; flex-direction: column; min-height: 0; }
.carey-head { display: flex; align-items: center; gap: 12px; }
.carey-name { margin: 0; font-weight: 600; letter-spacing: -.02em; }
.carey-status { margin: 2px 0 0; color: var(--sub); min-height: 1.3em; }
/* The conversation and the questions to tap scroll as one, so the questions never take room from an answer. */
.carey-scroll { display: flex; flex-direction: column; gap: .7em; overflow-y: auto; min-height: 0; overscroll-behavior: contain; }
.carey-scroll.has-more {
    -webkit-mask-image: linear-gradient(#000 calc(100% - 2.6em), transparent);
    mask-image: linear-gradient(#000 calc(100% - 2.6em), transparent);
}
.carey-log { display: flex; flex: none; flex-direction: column; gap: .6em; }
.carey-log:empty { display: none; }
.carey-toggle { display: none; }
.carey-bubble { max-width: 92%; padding: .7em 1em; border-radius: 1.2em; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.carey-bubble--question { align-self: flex-end; background: rgba(90, 140, 255, .22); color: #fff; border-bottom-right-radius: .4em; }
/* The shared screen draws its own edge on this bubble (stage.css). */
.carey-panel--review .carey-bubble--question { box-shadow: inset 0 0 0 1px rgba(130, 180, 255, .35); }
.carey-bubble--answer { align-self: flex-start; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--line); border-bottom-left-radius: .4em; }
.carey-bubble--answer:empty { display: none; }
.carey-bubble--error { align-self: stretch; max-width: none; background: var(--ex-now-soft); color: #ffb9b3; font-size: .9em; }
.carey-chips { display: flex; flex: none; flex-wrap: wrap; gap: .5em; }
.carey-chips:empty { display: none; }
/* While Carey is working there is nothing to tap. The questions keep their place under the
   answer, unseen, so the panel does not change size while the answer is written. */
.carey-panel.is-busy .carey-chips { visibility: hidden; }
.carey-chip {
    padding: .55em 1em;
    border: 0;
    border-radius: 999px;
    background: rgba(98, 214, 255, .07);
    box-shadow: inset 0 0 0 1px rgba(98, 214, 255, .34);
    color: #c3ecff;
    font-weight: 500;
    text-align: left;
    line-height: 1.3;
    transition: background .2s var(--ease);
}
.carey-chip:hover:not(:disabled) { background: rgba(98, 214, 255, .18); }
.carey-chip:disabled { opacity: .5; cursor: default; }
.carey-form { display: flex; gap: .5em; }
.carey-input {
    flex: 1;
    min-width: 0;
    padding: .8em 1.1em;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    color: var(--ink);
    outline: none;
}
.carey-input::placeholder { color: rgba(208, 223, 255, .42); }
.carey-input:focus { border-color: #62d6ff; box-shadow: 0 0 0 3px rgba(98, 214, 255, .16); }
.carey-send {
    flex: none;
    padding: 0 1.3em;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #2f7bff, #16c79a);
    color: #fff;
    font-weight: 600;
}
.carey-send:hover:not(:disabled) { background: linear-gradient(135deg, #4a8dff, #22dcae); }
.carey-send:disabled { background: rgba(255, 255, 255, .1); color: rgba(208, 223, 255, .42); cursor: default; }

/* Private chat inside the For-you panel. */
.carey-panel--review { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--ex-private-line); gap: 12px; font-size: 14px; }
.carey-panel--review .carey-name { font-size: 15px; }
.carey-panel--review .carey-status { font-size: 13px; }
.carey-panel--review .carey-scroll { max-height: 320px; }
.carey-panel--review .carey-chip { font-size: 13px; }

/* The shared screen is styled in stage.css. */

/* ── Dark page ────────────────────────────────────────────────────────── */

/* The parts that come from /desktop/desktop.css and the site menu, which are
   drawn for light pages. Nothing here reaches the shared screen: stage.css is
   loaded after this file and sets its own colours. */

html { background: var(--ex-bg); }
body { background: transparent; color: var(--ink); }
/* A soft light behind the top of the page. It stays put while the page scrolls. */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(70% 52% at 50% -8%, rgba(40, 88, 200, .3), transparent 72%),
        radial-gradient(38% 34% at 90% 2%, rgba(40, 220, 190, .09), transparent 70%);
    pointer-events: none;
}

/* Cards */
.panel {
    background: linear-gradient(180deg, rgba(120, 165, 255, .09), rgba(120, 165, 255, .04));
    box-shadow: inset 0 0 0 1px var(--line), 0 30px 60px -40px rgba(0, 0, 0, .9);
}
.banner { background: var(--ex-glass); box-shadow: inset 0 0 0 1px var(--line); }
.status { color: #ff9b8f; }
.after-mark {
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .2), rgba(59, 130, 246, .22) 60%, rgba(16, 185, 129, .24));
    box-shadow: inset 0 0 0 1px rgba(130, 180, 255, .3);
}
.after-spinner { border-color: rgba(130, 180, 255, .25); border-top-color: #62d6ff; }

/* Buttons: white for the main action, glass for the second one. */
.pill { background: #fff; color: #0a1020; font-weight: 500; }
.pill:hover { background: #d6e6ff; }
.pill:disabled { background: rgba(255, 255, 255, .1); color: rgba(208, 223, 255, .42); }
.pill.secondary { background: rgba(255, 255, 255, .06); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.pill.secondary:hover { background: rgba(255, 255, 255, .12); }
.pill.secondary:disabled { background: rgba(255, 255, 255, .04); color: rgba(208, 223, 255, .42); }
.pill.ex-present-btn:disabled { background: rgba(255, 255, 255, .1); color: rgba(208, 223, 255, .42); }
.text-btn { color: var(--sub); }
.text-btn:hover { color: #fff; }

/* Fields */
.field input, .field select { background: rgba(255, 255, 255, .06); color: var(--ink); }
.field input::placeholder { color: rgba(208, 223, 255, .42); }
.field input:focus, .field select:focus { border-color: #62d6ff; box-shadow: 0 0 0 3px rgba(98, 214, 255, .16); }

/* Site menu */
.nav-pill {
    background: rgba(9, 14, 28, .88);
    box-shadow: 0 16px 36px -18px rgba(0, 0, 0, .8), inset 0 0 0 1px rgba(130, 180, 255, .16);
}
/* The logo starts in a deep blue that sinks into a dark bar. */
.site-header .brand img { filter: brightness(1.35) saturate(1.08); }
.premium-divider { background: rgba(255, 255, 255, .26); }
.premium-badge-img { background: linear-gradient(90deg, #6ea8ff 0%, #6ea8ff 45%, #4ee08a 100%); }
.nav-row { color: rgba(214, 228, 255, .72); }
.nav-row a:hover, .nav-burger:hover, .site-header a[aria-current="page"] { color: #fff; }
.nav-burger { color: #fff; }
.nav-burger:hover { background: rgba(255, 255, 255, .09); }
.nav-sheet > a, .nav-sheet button.cn-premium-toggle-mobile, .nav-signout { color: rgba(226, 235, 255, .86); }
.nav-sheet a:hover, .nav-sheet button.cn-premium-toggle-mobile:hover, .nav-signout:hover { background: rgba(255, 255, 255, .08); }
.btn-dark { background: #fff; color: #0a1020; }
.btn-dark:hover { background: linear-gradient(135deg, #2f7bff, #16c79a); color: #fff; }
.cn-premium-panel {
    background: rgba(14, 22, 42, .96);
    box-shadow: 0 18px 36px -16px rgba(0, 0, 0, .8), inset 0 0 0 1px rgba(130, 180, 255, .18);
}
.cn-premium-item, .cn-premium-item-mobile { color: rgba(214, 228, 255, .78); }
/* The phone menu's sub-links have no look of their own on this page. */
.cn-premium-item-mobile { padding: 9px 16px; border-radius: 12px; font-size: 15px; text-decoration: none; }
.cn-premium-item:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.cn-premium-item.is-active, .cn-premium-item-mobile.is-active, .cn-premium-nav-mobile.is-active .cn-premium-toggle-mobile { color: #fff; }
.cn-premium-toggle:focus-visible, .cn-premium-toggle-mobile:focus-visible, .cn-premium-item:focus-visible, .cn-premium-item-mobile:focus-visible { outline-color: #62d6ff; }

@keyframes exPulse { 50% { opacity: .55; } }
@keyframes exShimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }
@keyframes exSampleIn { from { opacity: 0; transform: translateY(10px); } }
@keyframes exToothPulse { 50% { stroke-width: 1.5; } }

/* ── Smaller screens ──────────────────────────────────────────────────── */

@media (max-width: 1080px) {
    .ex-review { grid-template-columns: minmax(0, 1fr); }
    .ex-private { position: static; max-height: none; }
}
/* The placeholder cards stay one row: as many as there are columns. */
@media (max-width: 980px) {
    .ex-samples-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .ex-skel:nth-child(n+5) { display: none; }
}
@media (max-width: 720px) {
    .ex-samples { padding: 24px 16px 18px; border-radius: 26px; }
    .ex-samples-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
    .ex-skel:nth-child(n+4) { display: none; }
}
@media (max-width: 720px) {
    /* 16px, so a phone does not zoom the page when the box is tapped. */
    .ex-find-input { font-size: 16px; }
}
@media (max-width: 520px) {
    .ex-find { max-width: none; }
    .ex-samples-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ex-skel:nth-child(n+3) { display: none; }
}
@media (max-width: 760px) {
    .ex-found.has-map .ex-found-grid { grid-template-columns: minmax(0, 1fr); }
    .ex-map { position: static; }
}
@media (prefers-reduced-motion: reduce) {
    .ex-card, .ex-tooth rect, .ex-sample, .ex-sample-art img, .ex-find, .ex-day { transition: none; }
    .ex-visit-wait.is-busy, .ex-visit-status.is-busy, .ex-tooth.is-lit rect, .ex-sample { animation: none; }
    .ex-skel-art, .ex-skel-line { animation: none; background-position: 50% 0; }
    .ex-sample:hover, .ex-sample:focus-visible { transform: none; }
    .ex-sample:hover .ex-sample-art img, .ex-sample:focus-visible .ex-sample-art img { transform: none; }
}
