:root {
    color-scheme: light;
    --ink: #172942;
    --muted: #4c607b;
    --line: #d8e3f1;
    --paper: #fff;
    --ground: #f4f7fc;
    --accent: #194f91;
    --accent-deep: #103966;
    --blue-wash: #eaf2fd;
    --blue-hover: #dceafd;
    font: 16px/1.5 "Inter", "Geist", system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--ground); color: var(--ink); }
a { color: var(--accent); text-underline-offset: .18em; }
button, input, textarea, select { font: inherit; }
button, summary { cursor: pointer; }
:focus-visible { outline: 3px solid #2d66ad; outline-offset: 3px; }
h1, h2, p { margin: 0 0 .8rem; }
h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.12; letter-spacing: -.045em; }
h2 { font-size: 1.24rem; line-height: 1.25; letter-spacing: -.015em; }
small { display: block; color: var(--muted); }
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.site-bar, .page { width: calc(100% - clamp(2rem, 5vw, 5rem)); margin: 0 auto; }
.site-bar, .account, .heading-row, .heading-main { display: flex; align-items: center; gap: .9rem; }
.site-bar, .heading-row { justify-content: space-between; }
.site-bar { min-height: 4.1rem; }
.brand { font-size: 1.45rem; font-weight: 800; text-decoration: none; letter-spacing: -.04em; color: var(--accent-deep); }
.brand-org { margin-inline-start: .35rem; padding-inline-start: .6rem; border-inline-start: 1px solid currentColor; font-size: .66em; font-weight: 700; letter-spacing: .12em; }
.account { font-size: .9rem; color: var(--muted); }
.page { padding: 2.35rem 0 4rem; }
.page.narrow { max-width: 32rem; padding-top: 4rem; }
.breadcrumb { margin: 0 0 1rem; font-size: .9rem; color: var(--muted); }
.heading-row { margin: 0 0 1.35rem; flex-wrap: wrap; }
.heading-main { flex-wrap: wrap; }
.heading-main h1 { margin: 0; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: .85rem; padding: 1.3rem; }
.page > .card, .page > .work-grid, .study-list { margin-bottom: 1rem; }
.page.login-page { display: grid; grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); width: 100%; min-height: 100vh; padding: 0; }
.login-intro {
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 2rem;
    padding: clamp(2rem, 4.5vw, 5rem);
    color: #fff;
    background:
        radial-gradient(circle at 92% 85%, rgb(102 162 236 / .18), transparent 42%),
        linear-gradient(150deg, #112a50, #173d6d);
}
.login-intro .brand { color: inherit; }
.login-intro .brand-org { color: #c2d7f4; }
.login-intro-copy { align-self: center; padding-bottom: clamp(0rem, 3vh, 2rem); }
.login-intro-copy h1 { max-width: 10ch; font-size: clamp(3rem, 5.2vw, 5.5rem); line-height: 1.02; letter-spacing: -.045em; }
.login-intro-copy p { max-width: 29ch; margin: 1.4rem 0 0; color: #d0dff4; }
.login-illustration {
    position: relative;
    isolation: isolate;
    width: min(100%, 24rem);
    aspect-ratio: 1.85;
    margin-block-start: clamp(1.3rem, 4vh, 2.75rem);
    font-size: clamp(.75rem, 1.25vw, 1rem);
}
.login-illustration::before {
    content: "";
    position: absolute;
    inset: -15% 1% -15% 27%;
    z-index: -1;
    background: repeating-radial-gradient(circle, transparent 0 1.35em, rgb(181 215 255 / .22) 1.4em, transparent 1.48em 2em);
    mask-image: radial-gradient(ellipse, #000 23%, transparent 69%);
}
.illustration-queue {
    position: absolute;
    inset: 18% 25% auto 4%;
    display: grid;
    gap: .55em;
    padding: .75em;
    border: 1px solid #c2d8f4;
    border-radius: 1.15em;
    background: #edf5ff;
    box-shadow: 0 1.1em 2.5em rgb(6 28 58 / .34);
    transform: rotate(-7deg);
}
.illustration-contact {
    display: flex;
    align-items: center;
    gap: .65em;
    min-height: 2.1em;
    padding: .35em .55em;
    border: 1px solid #d5e4f7;
    border-radius: .55em;
    background: #f8fbff;
}
.illustration-contact:first-child {
    border-color: #a5c5ee;
    background: #dceaff;
}
.illustration-contact::before {
    content: "";
    flex: 0 0 1.16em;
    aspect-ratio: 1;
    border-radius: 50%;
    background: #a2bee5;
}
.illustration-contact:first-child::before { background: #3168aa; }
.illustration-contact span {
    width: 53%;
    height: .32em;
    border-radius: 1em;
    background: #9bb8df;
}
.illustration-contact:nth-child(2) span { width: 64%; }
.illustration-contact:nth-child(3) span { width: 43%; }
.illustration-call {
    position: absolute;
    inset: 27% 7% auto auto;
    display: grid;
    place-items: center;
    width: 5.5em;
    aspect-ratio: 1;
    border: 1px solid #a8ccf7;
    border-radius: 1.4em;
    background: linear-gradient(145deg, #c7e0ff, #8fb9f3);
    color: #153f76;
    box-shadow: 0 .75em 1.5em rgb(12 42 81 / .3);
    transform: rotate(12deg);
}
.phone-symbol {
    position: relative;
    display: block;
    box-sizing: content-box;
    width: .74em;
    height: .51em;
    border: .095em solid currentColor;
    border-top: 0;
    border-radius: .16em .16em .48em .48em;
    transform: rotate(43deg);
}
.phone-symbol::before, .phone-symbol::after {
    content: "";
    position: absolute;
    top: -.034em;
    width: .21em;
    height: .29em;
    border-radius: .075em;
    background: currentColor;
}
.phone-symbol::before { left: -.106em; }
.phone-symbol::after { right: -.106em; }
.illustration-call .phone-symbol { font-size: 2.6em; }
.login-access-icon {
    display: grid;
    place-items: center;
    width: 3.3rem;
    aspect-ratio: 1;
    margin-bottom: 1.3rem;
    border: 1px solid #c1d7f1;
    border-radius: 1rem;
    background: var(--blue-wash);
    color: var(--accent-deep);
}
.login-access-icon .phone-symbol { font-size: 1.6rem; }
.login-access { display: grid; place-items: center; padding: clamp(2rem, 5vw, 5rem); }
.login-form { width: min(100%, 25rem); }
.login-form h2 { margin-bottom: 1.25rem; font-size: clamp(1.85rem, 3vw, 2.45rem); letter-spacing: -.04em; }
.login-form h3 { margin: 1.25rem 0 .8rem; color: var(--muted); font-size: .95rem; font-weight: 650; }
.login-form > .button { width: 100%; min-height: 3rem; }
.login-form .button.secondary { justify-content: flex-start; min-height: 2.85rem; background: var(--paper); }
.login-form .button.secondary:hover { background: var(--blue-wash); }
.work-grid, .study-list, .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.work-grid { align-items: start; }
.study-link { display: block; text-decoration: none; color: var(--ink); }
.study-link:hover { border-color: var(--accent); }
.study-link h2 { margin-bottom: .45rem; }
.status { display: inline-block; padding: .18rem .65rem; border-radius: 20rem; background: #eef1f2; color: #384951; font-size: .83rem; }
.status-active { color: #125247; background: #e4f3ec; }
.status-paused { color: #684413; background: #f9efd9; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.5rem; padding: .46rem .82rem; border: 1px solid transparent; border-radius: .45rem; font-weight: 650; text-decoration: none; text-align: center; }
.primary { background: var(--accent); color: white; }
.primary:hover { background: var(--accent-deep); }
.secondary { background: var(--blue-wash); border-color: #c3d5ed; color: var(--accent-deep); }
.secondary:hover, .quiet:hover { background: var(--blue-hover); }
.quiet { background: transparent; color: var(--accent); }
.fit { width: fit-content; }
label { display: grid; gap: .3rem; color: var(--ink); font-size: .91rem; }
input:not([type=hidden]), select, textarea { width: 100%; min-width: 0; padding: .45rem .55rem; color: var(--ink); background: white; border: 1px solid #a9bcd3; border-radius: .35rem; }
textarea { resize: vertical; }
.stack { display: grid; gap: .8rem; }
.form-row { display: flex; align-items: end; gap: .65rem; flex-wrap: wrap; }
.form-row > label { flex: 1 1 9rem; }
.form-row.dense { margin-top: .5rem; }
.member-row + .member-row { margin-top: .65rem; }
details > summary { font-weight: 650; }
details[open] > summary { margin-bottom: .75rem; }
.metrics { display: flex; gap: .7rem; flex-wrap: wrap; margin: 0 0 1rem; }
.metrics > div { min-width: 6.5rem; padding: .57rem .75rem; background: var(--blue-wash); border-radius: .55rem; }
.metrics dt { color: var(--muted); font-size: .84rem; }
.metrics dd { margin: 0; font-size: 1.33rem; font-weight: 750; }
.plain-list { list-style: none; margin: 0; padding: 0; }
.queue-row, .agenda-row, .attempt { padding: .65rem 0; border-top: 1px solid var(--line); }
.queue-row, .agenda-row { display: flex; gap: .7rem; align-items: flex-start; }
.queue-row { justify-content: space-between; align-items: center; flex-wrap: wrap; }
.agenda-row > div:last-child { flex: 1; }
.date-time { flex: 0 0 auto; color: var(--accent-deep); font-weight: 700; font-variant-numeric: tabular-nums; }
.note { margin: .2rem 0; overflow-wrap: anywhere; white-space: pre-wrap; color: var(--muted); }
.export-links { display: flex; flex-wrap: wrap; gap: 1rem; }
.phone { display: block; font-size: 1.45rem; margin-bottom: .8rem; font-weight: 700; }
.contact-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; border-bottom: 1px solid var(--line); padding-bottom: .75rem; }
.contact-fields dt { color: var(--muted); font-size: .85rem; }
.contact-fields dd { margin: 0; overflow-wrap: anywhere; }
.contact-card h2 { margin-top: 1rem; }
.appointment-label { color: var(--accent); font-weight: 750; }
.release-form { margin-top: .5rem; }
.message { padding: .65rem .85rem; border-radius: .45rem; background: var(--blue-wash); color: #234773; }
.message.error { color: #852e2e; background: #f8e8e6; }
.message.success { color: #175144; background: #e5f3ec; }
@media (max-width: 48rem) {
    .site-bar .brand { flex-shrink: 0; }
    .account { min-width: 0; flex-wrap: wrap; justify-content: flex-end; gap: .25rem .75rem; padding-block: .45rem; }
    .page.login-page { grid-template-columns: 1fr; min-height: 0; }
    .login-intro { gap: 1.8rem; }
    .login-intro-copy { padding: 0; }
    .login-intro-copy h1 { max-width: 15ch; font-size: clamp(2.5rem, 8vw, 3.5rem); }
    .login-intro-copy p { margin-top: .8rem; }
    .login-illustration { width: min(100%, 15.5rem); margin-block-start: 1.35rem; }
    .login-access-icon { width: 2.9rem; margin-bottom: .9rem; }
    .login-access { place-items: start center; }
    .work-grid, .study-list { grid-template-columns: 1fr; }
    .page { padding-top: 1.4rem; }
}
@media (max-width: 30rem) {
    .form-grid { grid-template-columns: 1fr; }
    .card { padding: 1rem; }
}

.call-work-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); }
.outcome-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.outcome-group { display: grid; gap: .75rem; align-content: start; }
.outcome-group h3 { margin: 0; font-size: .94rem; font-weight: 750; }
.outcome { justify-content: flex-start; min-height: 3.75rem; padding: .7rem 1rem; font-size: 1.05rem; text-align: left; }
.outcome-positive { background: #e5f4e9; border-color: #9ac6ad; color: #164e36; }
.outcome-positive:hover { background: #d4eddd; }
.outcome-retry { background: #fbefd8; border-color: #dfbe80; color: #624000; }
.outcome-retry:hover { background: #f6e4bd; }
.outcome-closed { background: #f9e9e9; border-color: #e2b1b1; color: #792b30; }
.outcome-closed:hover { background: #f4dada; }
[data-call-actions][aria-busy="true"] .outcome { cursor: wait; }
.call-note { border-top: 1px solid var(--line); padding-top: .7rem; }
.call-note > summary { color: var(--muted); font-size: .9rem; }
.schedule-dialog { width: min(27rem, calc(100% - 2rem)); border: 1px solid var(--line); border-radius: .8rem; padding: 1.35rem; color: var(--ink); }
.schedule-dialog::backdrop { background: rgb(12 33 60 / .46); }
.dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .45rem; margin-top: 1rem; }
@media (max-width: 48rem) {
    .call-work-grid { grid-template-columns: 1fr; }
}
@media (max-width: 30rem) {
    .outcome-buttons { grid-template-columns: 1fr; }
}

.queue-start { margin-bottom: .65rem; }
.queue-priority input { width: 7rem; }
.appointment-notice span + a,
.appointment-instruction { margin-inline-start: .5rem; }
