/* TherapyDesk client space - calm, warm and easy on a phone. The practice colour comes in as --accent. */
:root { --accent: #2f6f73; --bg: #f6f2ec; --card: #fffdf9; --ink: #2b2a28; --muted: #77716a; --line: #e9e2d8; --soft: #eef4f2; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 -apple-system, "Segoe UI", Roboto, Calibri, "Helvetica Neue", Arial, sans-serif; }
.wrap { max-width: 720px; margin: 0 auto; padding: 8px 18px 48px; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; margin: 0; color: #1f1e1c; }
h1 { font-size: 30px; line-height: 1.2; }
h2 { font-size: 21px; margin: 30px 4px 12px; }
h3 { font-size: 19px; margin: 2px 0 6px; }
p { margin: 0 0 10px; }
.muted { color: var(--muted); }
.bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; max-width: 720px; margin: 0 auto; padding: 16px 18px 6px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.logo { height: 36px; width: auto; border-radius: 6px; }
.pname { font: 400 19px/1.2 Georgia, serif; color: var(--accent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-actions { display: flex; gap: 6px; flex: none; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px 20px 16px; margin: 0 0 14px; box-shadow: 0 2px 10px rgba(80, 60, 30, .04); }
button, .btn { font: inherit; font-weight: 600; border-radius: 999px; padding: 10px 20px; cursor: pointer; border: 1px solid var(--accent); background: #fff; color: var(--accent); text-decoration: none; display: inline-block; line-height: 1.3; }
button.primary { background: var(--accent); color: #fff; }
button.ghost { border-color: transparent; background: transparent; color: var(--accent); padding: 8px 12px; }
button.small { font-size: 15px; padding: 6px 12px; }
button.wide { width: 100%; margin-top: 8px; padding: 13px; }
button:disabled { opacity: .55; cursor: default; }
button:focus-visible, .btn:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; }
input[type=text], input[type=password], textarea { width: 100%; font: inherit; padding: 12px 14px; border: 1px solid #d9d1c5; border-radius: 12px; background: #fff; color: inherit; margin: 4px 0 12px; }
textarea { resize: vertical; min-height: 80px; }
label { font-weight: 600; font-size: 15px; }
label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--muted); margin: 2px 0 10px; }
label.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.err { color: #a3352a; min-height: 0; margin: 4px 0; font-size: 15px; }
.login { max-width: 440px; margin: 28px auto 18px; padding: 28px 24px 22px; }
.login h1 { margin-bottom: 6px; }
.leaf { font-size: 34px; margin-bottom: 6px; }
.hello { padding: 18px 4px 4px; }
.hello h1 { font-size: 28px; }
.chips { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.chip { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 10px 16px; display: flex; align-items: baseline; gap: 8px; }
.chip b { font: 400 26px/1 Georgia, serif; color: var(--accent); }
.chip span { color: var(--muted); font-size: 15px; }
.note { border-left: 5px solid var(--accent); }
.notes .hidden-old { display: none; }
.notes.show-old .hidden-old { display: block; }
.meta { color: var(--muted); font-size: 14px; }
.tag { font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 2px; }
.tag .rep { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--muted); }
.txt p:last-child { margin-bottom: 4px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; }
.actions:empty { display: none; }
.done-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.done-mark { color: var(--accent); font-weight: 700; }
.media { margin: 10px 0; }
.media audio, .media video, .media img { width: 100%; max-width: 100%; border-radius: 12px; }
.practice .week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 10px; }
.day { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.day .dot { width: 34px; height: 34px; border-radius: 50%; border: 2px dashed #d8cfc2; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 16px; }
.day.on .dot { background: var(--accent); border: 2px solid var(--accent); }
.day.today .dot { box-shadow: 0 0 0 3px var(--soft); }
.day .lbl { font-size: 12px; color: var(--muted); }
.day.today .lbl { color: var(--ink); font-weight: 700; }
.count { color: var(--muted); font-size: 15px; margin-top: 8px; }
.note-ask { margin-top: 10px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.note-ask textarea { min-height: 60px; margin: 0; }
.reflect blockquote { margin: 8px 0 12px; padding: 10px 14px; background: var(--soft); border-radius: 12px; }
.reflect textarea { margin-top: 8px; }
details.finished { margin-top: 6px; }
details.finished summary { cursor: pointer; color: var(--muted); padding: 8px 4px; }
details.finished .card { opacity: .82; }
.cal-head { max-width: 400px; margin-left: auto; margin-right: auto; display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-title { font: 400 19px/1.2 Georgia, serif; }
.cal-head .nav { width: 38px; height: 38px; padding: 0; font: 400 22px/1 Georgia, serif; border-color: var(--line); }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; text-align: center; margin: 0 auto 12px; max-width: 400px; }
.cal .wd { font-size: 12px; color: var(--muted); }
.cal .cd { aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; border-radius: 12px; font-size: 14px; color: #a39a8e; background: #f4efe7; }
.cal .cd.empty { background: transparent; }
.cal .cd.g1 { background: color-mix(in srgb, var(--accent) 28%, #fff); color: #fff; }
.cal .cd.g2 { background: color-mix(in srgb, var(--accent) 55%, #fff); color: #fff; }
.cal .cd.g3 { background: var(--accent); color: #fff; }
.cal .cd.today { outline: 2px solid var(--accent); outline-offset: 1px; color: var(--ink); }
.cal .cd.today.g1, .cal .cd.today.g2, .cal .cd.today.g3 { color: #fff; }
.gentle { color: var(--muted); font-style: italic; font-size: 15px; margin: 0; }
.foot { margin-top: 34px; font-size: 15px; color: var(--muted); }
.crisis { background: #fbefe9; border-left: 4px solid #b8573f; border-radius: 12px; padding: 12px 16px; color: #4a3a33; }
.crisis p { margin: 4px 0; }
.crisis ul { margin: 4px 0 0; padding-left: 20px; }
.privacy { text-align: center; margin-top: 16px; }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: #2b2a28; color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 15px; z-index: 10; max-width: 90%; }
@media (max-width: 520px) { body { font-size: 16px; } .card { padding: 18px 16px 14px; border-radius: 16px; } h1 { font-size: 26px; } .day .dot { width: 30px; height: 30px; } }
@media (prefers-reduced-motion: no-preference) { .card { transition: box-shadow .2s; } }
/* language menu */
.langmenu { position: relative; }
.langlist { position: absolute; right: 0; top: 100%; margin: 6px 0 0; padding: 6px 0; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 24px rgba(60, 40, 20, .12); min-width: 160px; z-index: 20; }
.langlist button { display: block; width: 100%; text-align: left; border: 0; border-radius: 0; background: transparent; color: var(--ink); font-weight: 400; padding: 9px 16px; }
.langlist button:hover { background: var(--soft); }
.langlist button.on { font-weight: 700; color: var(--accent); }
/* an activity, full screen */
body.noscroll { overflow: hidden; }
.overlay { position: fixed; inset: 0; background: var(--bg); z-index: 30; display: flex; flex-direction: column; }
.overlay-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; background: var(--card); border-bottom: 1px solid var(--line); }
.overlay-bar b { font: 400 19px/1.2 Georgia, serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.overlay-body { flex: 1; display: flex; }
.overlay-body iframe { flex: 1; border: 0; width: 100%; background: #fff; }
.center { text-align: center; margin: 40px auto; }
.mins { align-self: center; }
/* questionnaires */
.tool-form { margin-top: 10px; }
.tool fieldset.q { border: 0; border-top: 1px solid var(--line); margin: 0; padding: 12px 0 8px; }
.tool legend { font-weight: 600; padding: 0; margin-bottom: 6px; }
.tool .opt { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 16px; padding: 5px 0; cursor: pointer; }
.tool .opt input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.tool fieldset.bad legend { color: #a3352a; }
/* questionnaire chart */
.chart { width: 100%; height: auto; display: block; }
.chart .grid { stroke: #ece6dc; stroke-width: 1; }
.chart .axis { fill: var(--muted); font-size: 12px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 10px 0 8px; font-size: 15px; }
.legend .key { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
