:root {
  --bg:#f4f6f1;
  --paper:#fffefa;
  --ink:#263c33;
  --muted:#586b61;
  --green:#2e6351;
  --line:#dce3d9;
  --soft:#e8eee4;
  --warm:#f7ede2;
  --danger:#8c4139;
  --radius:8px;
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;
  color:var(--ink);
  background:var(--bg);
  font-size:16px;
  line-height:1.7;
  font-synthesis:none;
}
* {
  box-sizing:border-box;
}
body {
  margin:0;
}
button,input,textarea {
  font:inherit;
}
button,a,input,textarea {
  -webkit-tap-highlight-color:transparent;
}
button,a {
  touch-action:manipulation;
}
button {
  cursor:pointer;
}
a {
  color:var(--green);
  text-underline-offset:4px;
}
button:disabled {
  cursor:default;
}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,summary:focus-visible {
  outline:3px solid #9b622e;
  outline-offset:4px;
}
main:focus {
  outline:none;
}
[hidden] {
  display:none!important;
}
p {
  margin:0 0 16px;
}
p:last-child {
  margin-bottom:0;
}
h1,h2,h3 {
  line-height:1.5;
  font-weight:600;
  margin:0 0 12px;
}
h1 {
  font-size:28px;
  letter-spacing:.02em;
}
h2 {
  font-size:21px;
}
h3 {
  font-size:18px;
}
small,.small {
  font-size:13px;
}
.muted {
  color:var(--muted);
  font-size:14px;
}
.eyebrow {
  font-size:12px;
  font-weight:600;
  letter-spacing:.12em;
  color:var(--green);
  margin-bottom:10px;
}
.app-shell {
  max-width:1100px;
  margin:0 auto;
  padding:0 38px 100px;
}
.topbar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:27px 0;
  border-bottom:1px solid var(--line);
  margin-bottom:36px;
}
.brand {
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  color:var(--ink);
  font-size:23px;
  line-height:1.35;
  font-weight:650;
}
.brand small {
  display:block;
  font-size:11px;
  font-weight:400;
  letter-spacing:.12em;
  margin-top:4px;
  color:var(--muted);
}
.brand-mark {
  display:grid;
  place-items:center;
  background:var(--green);
  color:var(--paper);
  width:47px;
  height:47px;
  border-radius:50% 50% 8px 50%;
  font-family:"Songti SC",serif;
  font-weight:400;
}
.button {
  border:1px solid transparent;
  border-radius:6px;
  min-height:46px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:10px 20px;
  font-size:14px;
  font-weight:550;
  line-height:1.6;
  text-decoration:none;
  color:var(--ink);
  background:transparent;
  transition:background .15s;
}
.button.primary {
  background:var(--green);
  color:white;
  border-color:var(--green);
}
.button.secondary,.help-button {
  background:var(--paper);
  color:var(--green);
  border-color:#bbcdbf;
}
.button.ghost {
  color:var(--muted);
}
.button.danger {
  color:var(--danger);
  background:#fff9f6;
  border-color:#d7b5ae;
}
.button:disabled {
  opacity:.48;
}
.button.full {
  width:100%;
}
.button:hover:not(:disabled) {
  filter:brightness(.96);
}
.help-button {
  font-size:13px;
  min-height:40px;
  padding:7px 15px;
}
.page-heading {
  margin-bottom:25px;
}
.page-heading>.muted {
  font-size:15px;
}
.panel {
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:26px;
}
.soft {
  background:var(--soft);
}
.notice {
  background:var(--warm);
  border-left:3px solid #bf9270;
  padding:15px 19px;
  margin:0 0 24px;
  border-radius:0 5px 5px 0;
  font-size:13px;
  color:#624b39;
}
.notice strong {
  display:block;
  margin-bottom:4px;
}
.notice p {
  margin-bottom:0;
}
.notice.warm {
  margin-top:22px;
}
.notice .button {
  margin-top:12px;
}
.welcome {
  display:grid;
  grid-template-columns:minmax(0,1fr) 210px;
  gap:25px;
  align-items:center;
  padding:32px;
  background:#e9efe5;
  margin-bottom:22px;
  overflow:hidden;
}
.welcome h2 {
  font-family:"Songti SC","STSong",serif;
  font-size:30px;
  font-weight:500;
  line-height:1.6;
}
.welcome p:not(.eyebrow) {
  max-width:530px;
  font-size:15px;
  color:var(--muted);
}
.actions {
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}
.quiet-art {
  height:235px;
  position:relative;
  isolation:isolate;
}
.arch {
  position:absolute;
  border-radius:105px 105px 0 0;
}
.arch-back {
  background:#c6d7c3;
  width:160px;
  height:205px;
  right:20px;
  bottom:0;
}
.arch-front {
  border:1px solid #6e8974;
  width:155px;
  height:205px;
  bottom:15px;
  right:0;
}
.quiet-art:after {
  content:"";
  position:absolute;
  width:55px;
  height:55px;
  border-radius:50%;
  background:#e6c3a2;
  right:3px;
  top:0;
  z-index:-1;
}
.quiet-art span {
  position:absolute;
  bottom:44px;
  left:65px;
  writing-mode:vertical-rl;
  letter-spacing:.25em;
  font-family:"Songti SC",serif;
  font-size:17px;
  line-height:2.1;
  color:#4d6655;
}
.two-column {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:22px;
  margin-bottom:24px;
}
.two-column .panel>p:not(.eyebrow) {
  font-size:14px;
  color:var(--muted);
}
.text-link {
  display:inline-flex;
  align-items:center;
  min-height:44px;
  font-size:14px;
  font-weight:600;
  text-decoration:none;
  gap:12px;
}
.small-score {
  font-size:32px;
  font-weight:500;
}
.privacy-note {
  font-size:12px;
  color:var(--muted);
  margin:23px 0;
}
.page-footer {
  display:flex;
  justify-content:space-between;
  gap:15px;
  font-size:12px;
  color:var(--muted);
  border-top:1px solid var(--line);
  padding-top:22px;
  margin-top:40px;
}
.page-footer>span {
  display:flex;
  align-items:center;
  gap:5px;
  flex-wrap:wrap;
}
.page-footer a,.footer-help {
  display:inline-flex;
  align-items:center;
  min-height:44px;
}
.footer-help {
  color:var(--green);
  font:inherit;
  background:transparent;
  border:0;
  padding:0;
  text-decoration:underline;
  text-underline-offset:4px;
}
.tabbar {
  position:fixed;
  bottom:0;
  left:0;
  right:0;
  background:rgba(255,254,250,.98);
  border-top:1px solid var(--line);
  display:flex;
  justify-content:center;
  gap:45px;
  z-index:5;
  padding:8px 20px max(8px,env(safe-area-inset-bottom));
}
.tabbar a {
  min-width:110px;
  min-height:52px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  color:var(--muted);
  font-size:13px;
  text-decoration:none;
  border-radius:6px;
}
.tabbar a>span {
  font-size:11px;
  letter-spacing:.14em;
  line-height:1.3;
  margin-bottom:4px;
}
.tabbar a[aria-current] {
  color:var(--green);
  background:var(--soft);
  font-weight:650;
}
.retest {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:20px;
  background:#e3ece4;
  border-radius:6px;
  margin-bottom:24px;
}
.retest p {
  font-size:13px;
  margin:5px 0 0;
  color:var(--muted);
}
.retest .button {
  flex-shrink:0;
}
.assessment-heading,.assessment-progress,#assessment-form {
  max-width:680px;
  margin-left:auto;
  margin-right:auto;
}
.assessment-heading {
  margin-bottom:16px;
}
.assessment-heading h1 {
  font-size:20px;
  margin-bottom:6px;
}
.assessment-progress {
  margin-bottom:22px;
}
.assessment-progress p {
  display:flex;
  justify-content:space-between;
  gap:12px;
  font-size:13px;
  color:var(--muted);
  margin-bottom:9px;
  font-variant-numeric:tabular-nums;
}
.assessment-progress progress {
  width:100%;
  height:6px;
  display:block;
  appearance:none;
  border:0;
  border-radius:4px;
  background:var(--line);
  color:var(--green);
}
.assessment-progress progress::-webkit-progress-bar {
  background:var(--line);
  border-radius:4px;
}
.assessment-progress progress::-webkit-progress-value {
  background:var(--green);
  border-radius:4px;
}
.assessment-progress progress::-moz-progress-bar {
  background:var(--green);
  border-radius:4px;
}
.question {
  margin:0 0 17px;
  padding:20px 22px;
  min-width:0;
  position:relative;
}
.question legend {
  float:left;
  width:100%;
  margin:0 0 18px;
  padding:0;
  font-size:25px;
  line-height:1.5;
  font-weight:600;
}
.question legend+.answer-options,.question legend+p,.concern-options,.range-question {
  clear:both;
}
.question-number {
  font-weight:400;
  font-size:13px;
  color:var(--muted);
  margin-right:13px;
}
.answer-options {
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:10px;
}
.concern-options {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.option {
  display:flex;
  align-items:center;
  gap:12px;
  background:#fafbf7;
  border:1px solid var(--line);
  border-radius:8px;
  padding:14px 16px;
  min-height:58px;
  font-size:16px;
  cursor:pointer;
  transition:background .18s ease,border-color .18s ease;
}
.option span {
  min-width:0;
  overflow-wrap:anywhere;
}
.option:hover {
  border-color:#8ba590;
}
.option:focus-within {
  outline:2px solid #9b622e;
  outline-offset:3px;
}
.option:has(input:checked) {
  background:#e4eee2;
  border-color:var(--green);
  color:var(--green);
}
.question:has(.question-support) .option:has(input:checked) span {
  animation:answer-settle .2s ease-out;
}
@keyframes answer-settle {
  from { opacity:.65; transform:translateY(2px); }
  to { opacity:1; transform:translateY(0); }
}
.question-support {
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:4px 14px;
  margin-top:14px;
}
.answer-feedback {
  flex:1 1 180px;
  margin:0;
  font-size:13px;
  color:var(--muted);
}
.question-skip {
  flex-shrink:0;
  border:0;
  background:transparent;
  color:var(--muted);
  padding:10px 4px;
  min-height:44px;
  font-size:14px;
  text-decoration:underline;
  text-underline-offset:4px;
}
.question-skip:hover {
  color:var(--green);
}
input[type=radio],input[type=checkbox] {
  accent-color:var(--green);
  width:19px;
  height:19px;
  flex-shrink:0;
  margin:0;
}
.range-question {
  padding:10px 2px 8px;
}
.range-question output {
  display:block;
  color:var(--green);
  font-size:20px;
  font-variant-numeric:tabular-nums;
  margin:12px 0;
  text-align:center;
}
.range-question input[type=range] {
  width:100%;
  min-height:44px;
  margin:0;
  accent-color:var(--green);
  cursor:pointer;
}
.range-labels {
  display:flex;
  justify-content:space-between;
  gap:16px;
  color:var(--muted);
  font-size:13px;
}
.range-labels>:last-child {
  text-align:right;
}
.care-options {
  display:grid;
  gap:10px;
  clear:both;
}
.form-error,.exercise-error {
  color:var(--danger);
  font-size:14px;
  margin:14px 0;
}
.form-error:empty,.exercise-error:empty {
  display:none;
}
.form-actions {
  margin-top:18px;
}
.form-actions .primary {
  flex:1;
}
.compact-notice {
  padding:9px 12px;
  font-size:12px;
  margin-bottom:18px;
}
.compact-notice a {
  white-space:nowrap;
}
.more-info {
  margin:14px 0 20px;
  font-size:14px;
  color:var(--muted);
}
.more-info summary {
  color:var(--green);
  cursor:pointer;
  padding:10px 0;
  min-height:44px;
}
.more-info[open] summary {
  margin-bottom:8px;
}
.more-info p:last-child {
  margin-bottom:0;
}
.score-gauge {
  display:block;
  max-width:210px;
  width:100%;
  height:auto;
  margin:12px auto;
}
.score-gauge text {
  fill:var(--ink);
  font-family:inherit;
}
.concern-cards {
  display:grid;
  gap:14px;
}
.concern-card {
  padding:20px;
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:8px;
}
.concern-card p {
  font-size:14px;
  margin-bottom:12px;
}
.keyword-list {
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin:8px 0 12px;
}
.keyword {
  display:inline-block;
  font-size:12px;
  color:var(--green);
  background:var(--soft);
  border-radius:4px;
  padding:3px 9px;
  overflow-wrap:anywhere;
}
.recommendation {
  color:var(--green);
  font-size:14px;
}
.plan-focus {
  margin-top:20px;
}
.plan-focus .keyword-list {
  margin-bottom:0;
}
.score-panel {
  background:#e8eee4;
}
.score {
  font-size:70px;
  font-family:Georgia,serif;
  line-height:1.25;
  margin:17px 0;
}
.score span {
  font-size:23px;
  color:var(--muted);
}
.score-bands {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:4px;
  margin:22px 0 14px;
}
.score-bands span {
  border-top:5px solid #cdd9c9;
  text-align:center;
  font-size:12px;
  padding-top:8px;
  color:var(--muted);
}
.score-bands .selected {
  border-color:var(--green);
  color:var(--green);
  font-weight:700;
}
.stress-chart,.trend-chart {
  display:block;
  width:100%;
  height:auto;
  margin:20px 0;
}
.chart-label {
  font-size:12px;
  fill:var(--muted);
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;
}
.next-step {
  margin-bottom:24px;
}
.next-step>p:not(.eyebrow) {
  font-size:15px;
}
.plan-summary {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  background:var(--soft);
}
.plan-summary p:last-child {
  font-size:14px;
  color:var(--muted);
}
.progress-seal {
  border-left:1px solid #c6d4c4;
  padding-left:28px;
  text-align:center;
  min-width:145px;
}
.progress-seal strong {
  display:block;
  font-size:44px;
  line-height:1.3;
  font-family:Georgia,serif;
  font-weight:400;
}
.progress-seal span {
  font-size:12px;
  color:var(--muted);
}
.section-note {
  font-size:12px;
  color:var(--muted);
  margin:15px 0 32px;
}
.section-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px;
}
.section-heading h2 {
  margin:0;
}
.section-heading .muted {
  font-size:12px;
}
.day-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
}
.week {
  margin:30px 0;
}
.week h2 {
  font-size:18px;
}
.day-card {
  min-width:0;
  background:var(--paper);
  border:1px solid var(--line);
  padding:16px;
  text-align:left;
  border-radius:6px;
  color:var(--ink);
  display:flex;
  flex-direction:column;
  min-height:145px;
}
.day-top {
  display:flex;
  justify-content:space-between;
  gap:6px;
  font-size:11px;
  color:var(--muted);
  margin-bottom:15px;
}
.day-top span {
  font-size:10px;
}
.day-card strong {
  font-size:15px;
  margin-bottom:8px;
  font-weight:600;
}
.day-kind {
  font-size:11px;
  color:var(--muted);
  margin-top:auto;
}
.day-card.available {
  border-color:#91b19e;
}
.day-card.done {
  background:#e8eee4;
}
.day-card.done .day-top {
  color:var(--green);
}
.day-card.locked {
  background:#edf0ea;
  color:#677468;
}
.day-card.locked .day-kind,.day-card.locked .day-top {
  color:#687367;
}
.back-link {
  display:inline-flex;
  min-height:44px;
  align-items:center;
  text-decoration:none;
  font-size:13px;
  margin:-12px 0 15px;
}
.empty {
  text-align:center;
  padding:38px 20px;
  color:var(--muted);
}
.empty h3 {
  color:var(--ink);
}
.empty p {
  font-size:14px;
}
.empty.compact {
  padding:25px 0;
}
.record-section {
  margin-top:32px;
}
.count {
  font-size:13px;
  font-weight:400;
  color:var(--muted);
  margin-left:6px;
}
.record-list {
  border:1px solid var(--line);
  border-radius:6px;
  background:var(--paper);
  overflow:hidden;
}
.record-row {
  display:flex;
  gap:18px;
  align-items:center;
  justify-content:space-between;
  padding:20px 22px;
  color:var(--ink);
  text-decoration:none;
}
.record-row+.record-row {
  border-top:1px solid var(--line);
}
.record-row strong {
  display:block;
  font-size:15px;
  margin-bottom:3px;
  font-weight:550;
}
.record-row div>span {
  display:block;
  font-size:12px;
  color:var(--muted);
}
.record-row b {
  font-size:23px;
  font-weight:500;
  white-space:nowrap;
}
.record-row small {
  font-size:12px;
  color:var(--muted);
}
.entry-detail section+section {
  margin-top:28px;
  padding-top:24px;
  border-top:1px solid var(--line);
}
.entry-detail h2 {
  font-size:16px;
}
.preserve-lines {
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  font-size:15px;
}
.settings-section {
  margin-bottom:20px;
}
.settings-section p {
  font-size:14px;
}
.danger-zone {
  border-color:#dbc2b9;
}
.danger-zone h2 {
  color:var(--danger);
}
.storage-notice {
  padding:16px;
  background:#f5e7dc;
  border:1px solid #d8b89f;
  margin-bottom:20px;
  font-size:13px;
  color:#673d28;
  border-radius:6px;
}
.modal-open {
  overflow:hidden;
}
.modal-backdrop {
  position:fixed;
  inset:0;
  z-index:20;
  background:rgba(27,43,34,.42);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
}
.modal {
  width:min(100%,480px);
  max-height:calc(100vh - 40px);
  max-height:calc(100dvh - 40px);
  overflow-y:auto;
  background:var(--paper);
  border-radius:10px;
  padding:28px;
  box-shadow:0 15px 80px #1b2b3426;
}
.modal h2 {
  font-size:23px;
}
.modal>p {
  font-size:14px;
}
.modal-actions {
  margin-top:24px;
}
.modal-actions .button {
  flex:1;
}
.hotlines {
  display:grid;
  gap:10px;
  margin:22px 0;
}
.hotlines a {
  border:1px solid #bdcdbd;
  padding:15px 18px;
  display:flex;
  flex-direction:column;
  text-decoration:none;
  background:#eef3e9;
  border-radius:6px;
}
.hotlines a span {
  font-size:13px;
}
.hotlines a strong {
  font-size:26px;
  font-weight:550;
  letter-spacing:.03em;
  line-height:1.5;
}
.hotlines a small {
  font-size:11px;
  color:var(--muted);
}
.toast {
  position:fixed;
  z-index:30;
  bottom:100px;
  left:50%;
  transform:translateX(-50%);
  width:max-content;
  max-width:calc(100% - 36px);
  background:#263c33;
  color:white;
  padding:13px 20px;
  border-radius:6px;
  box-shadow:0 4px 20px #263c331a;
  font-size:14px;
  text-align:center;
}
.skip-link {
  position:fixed;
  top:-80px;
  left:20px;
  z-index:40;
  padding:10px;
  background:var(--paper);
}
.skip-link:focus {
  top:10px;
}
.noscript {
  padding:30px;
  background:var(--warm);
  position:fixed;
  inset:0;
  z-index:50;
}
/* 计时与书写共用练习容器；圆形缩放由时间状态驱动，暂停后保持当前帧。 */
#exercise-mount {
  max-width:720px;
  margin:0 auto;
}
.exercise-intro {
  margin-bottom:20px;
}
.exercise-intro h1 {
  font-size:26px;
}
.exercise-intro p {
  font-size:15px;
}
.exercise-hint {
  padding:15px 17px;
  background:var(--soft);
  border-radius:5px;
  color:var(--muted);
  font-size:13px;
}
.breath-visual {
  height:285px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.breath-orbit {
  position:relative;
  width:220px;
  height:220px;
  border-radius:50%;
  border:1px solid #bacdb7;
  display:flex;
  align-items:center;
  justify-content:center;
}
.breath-circle {
  position:absolute;
  width:190px;
  height:190px;
  border-radius:50%;
  background:#d7e5d2;
  border:1px solid #9fb69a;
  will-change:transform;
}
.breath-center {
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
}
.breath-seconds {
  font-size:47px;
  font-family:Georgia,serif;
  line-height:1.4;
}
.breath-label {
  font-size:14px;
  font-weight:500;
  min-height:24px;
}
.breath-count {
  text-align:center;
}
.exercise-time {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin:20px 0 8px;
}
.exercise-clock {
  font-size:24px;
  font-variant-numeric:tabular-nums;
  font-weight:500;
}
.exercise-progress {
  width:100%;
  height:6px;
  border:0;
  border-radius:5px;
  display:block;
  appearance:none;
  background:var(--line);
  color:var(--green);
}
.exercise-progress::-webkit-progress-bar {
  background:var(--line);
  border-radius:5px;
}
.exercise-progress::-webkit-progress-value {
  background:var(--green);
  border-radius:5px;
}
.exercise-progress::-moz-progress-bar {
  background:var(--green);
  border-radius:5px;
}
.exercise-status {
  min-height:48px;
  margin-top:14px;
}
.exercise-card>.full {
  margin-top:20px;
}
.exercise-card>.small {
  margin-top:12px;
}
.scan-current {
  border-left:3px solid #87a17d;
  background:#eff3ea;
  padding:26px 22px;
  margin:18px 0;
  min-height:225px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.scan-current h3 {
  font-size:21px;
}
.scan-current p {
  font-size:16px;
  line-height:1.9;
}
.scan-history-wrap {
  margin:20px 0;
}
.scan-history-wrap summary {
  color:var(--green);
  cursor:pointer;
  padding:10px 0;
  font-size:14px;
}
.scan-history {
  padding-left:22px;
}
.scan-history li {
  margin:15px 0;
}
.scan-history p {
  font-size:13px;
  color:var(--muted);
}
.field {
  margin:25px 0;
}
.field label {
  font-weight:550;
  display:block;
  margin-bottom:5px;
}
.field label .small {
  font-weight:400;
  margin-left:8px;
}
.field p {
  margin-bottom:10px;
}
.exercise-textarea {
  display:block;
  width:100%;
  min-height:105px;
  resize:vertical;
  background:#fcfcf9;
  border:1px solid #b9c7b8;
  border-radius:5px;
  padding:13px;
  color:var(--ink);
  line-height:1.7;
  font-size:16px;
}
.safety-question {
  margin:28px 0 15px;
  border:1px solid var(--line);
  border-radius:6px;
  padding:18px;
  min-width:0;
}
.safety-question legend {
  padding:0 6px;
  font-size:14px;
  font-weight:550;
}
.safety-choice {
  display:flex;
  align-items:center;
  gap:9px;
  min-height:46px;
  font-size:14px;
  cursor:pointer;
}
.safety-question p {
  margin-bottom:8px;
}
@media(min-width:1100px) {
  .app-shell {
    padding-top:5px;
  }
  .topbar {
    margin-bottom:40px;
  }
  .welcome {
    padding:36px;
  }
  .panel {
    padding:28px;
  }
}
@media(max-width:700px) {
  .app-shell {
    padding:0 20px 100px;
  }
  .topbar {
    padding:20px 0;
    margin-bottom:28px;
  }
  .brand {
    font-size:21px;
  }
  .brand-mark {
    width:42px;
    height:42px;
  }
  .brand small {
    font-size:10px;
  }
  .page-heading {
    margin-bottom:22px;
  }
  h1 {
    font-size:24px;
  }
  h2 {
    font-size:19px;
  }
  .page-heading>.muted {
    font-size:14px;
  }
  .panel {
    padding:21px;
  }
  .notice {
    padding:13px 15px;
    font-size:12px;
  }
  .welcome {
    grid-template-columns:minmax(0,1fr);
    padding:24px;
    position:relative;
  }
  .welcome h2 {
    font-size:26px;
    position:relative;
    z-index:1;
  }
  .welcome p:not(.eyebrow) {
    font-size:14px;
  }
  .quiet-art {
    position:absolute;
    right:-17px;
    top:16px;
    width:110px;
    height:135px;
    opacity:.38;
    z-index:0;
    pointer-events:none;
  }
  .arch-back {
    width:85px;
    height:110px;
    right:10px;
  }
  .arch-front {
    width:85px;
    height:110px;
    bottom:9px;
  }
  .quiet-art span {
    display:none;
  }
  .quiet-art:after {
    width:35px;
    height:35px;
  }
  .welcome>div:first-child {
    position:relative;
    z-index:1;
  }
  .two-column {
    gap:15px;
    grid-template-columns:1fr;
  }
  .two-column .panel {
    padding:21px;
  }
  .tabbar {
    gap:4px;
    padding:8px 12px max(8px,env(safe-area-inset-bottom));
  }
  .tabbar a {
    flex:1;
    min-width:0;
    font-size:12px;
    min-height:49px;
  }
  .tabbar a>span {
    font-size:10px;
  }
  .page-footer {
    font-size:11px;
    flex-direction:column;
    gap:3px;
    margin-top:30px;
  }
  .retest {
    align-items:flex-start;
    flex-direction:column;
    padding:17px;
    gap:12px;
  }
  .retest .button {
    min-height:40px;
  }
  .question {
    padding:18px 15px;
  }
  .question legend {
    font-size:24px;
    line-height:1.5;
    margin-bottom:20px;
  }
  .answer-options {
    grid-template-columns:minmax(0,1fr);
    gap:8px;
  }
  .option {
    font-size:16px;
    padding:12px 13px;
    min-height:54px;
  }
  .concern-options {
    gap:8px;
  }
  .concern-options .option {
    font-size:14px;
    gap:8px;
    padding:11px 9px;
    min-height:64px;
  }
  .assessment-heading h1 {
    font-size:18px;
  }
  .form-actions {
    gap:8px;
  }
  .form-actions .button {
    padding:11px 13px;
  }
  .app-shell:has(#assessment-form) .topbar {
    padding:14px 0;
    margin-bottom:20px;
  }
  .app-shell:has(#assessment-form) .page-footer {
    margin-top:24px;
    padding-top:10px;
  }
  .concern-card {
    padding:17px;
  }
  .compact-notice {
    padding:9px 10px;
  }
  .exercise-intro h1 {
    font-size:24px;
  }
  .question-number {
    margin-right:8px;
  }
  .day-grid {
    grid-template-columns:1fr 1fr;
    gap:10px;
  }
  .day-card {
    padding:14px;
    min-height:143px;
  }
  .day-card strong {
    font-size:14px;
  }
  .week .section-heading {
    gap:8px;
  }
  .week h2 {
    font-size:16px;
  }
  .week .section-heading>.muted {
    font-size:11px;
    white-space:nowrap;
  }
  .plan-summary {
    align-items:flex-start;
    flex-wrap:wrap;
  }
  .progress-seal {
    min-width:95px;
    padding-left:18px;
  }
  .progress-seal strong {
    font-size:34px;
  }
  .progress-seal span {
    font-size:10px;
  }
  .plan-summary>div:first-child {
    flex:1;
  }
  .plan-summary h2 {
    font-size:18px;
  }
  .plan-summary p:last-child {
    font-size:13px;
  }
  .score {
    font-size:62px;
  }
  .record-row {
    padding:18px 16px;
  }
  .record-row strong {
    font-size:14px;
  }
  .record-row div>span {
    font-size:11px;
  }
  .modal-backdrop {
    padding:16px;
  }
  .modal {
    padding:24px 21px;
    max-height:calc(100vh - 32px);
    max-height:calc(100dvh - 32px);
  }
  .modal h2 {
    font-size:21px;
  }
  .modal-actions {
    gap:8px;
  }
  .modal-actions .button {
    padding:10px 13px;
  }
  .breath-visual {
    height:260px;
  }
  .scan-current {
    padding:22px 18px;
    min-height:250px;
  }
  .scan-current h3 {
    font-size:19px;
  }
  .scan-current p {
    font-size:15px;
  }
  .exercise-status {
    font-size:12px;
  }
  .settings-section p {
    font-size:13px;
  }
  .section-heading .button {
    padding:8px 13px;
    min-height:40px;
    white-space:nowrap;
  }
  .section-heading h2 {
    font-size:19px;
  }
}
@media(max-width:360px) {
  .app-shell {
    padding-left:15px;
    padding-right:15px;
  }
  h1 {
    font-size:22px;
  }
  .welcome {
    padding:21px;
  }
  .welcome h2 {
    font-size:24px;
  }
  .day-card {
    padding:11px;
  }
  .day-kind {
    font-size:10px;
  }
  .progress-seal {
    min-width:80px;
    padding-left:12px;
  }
  .button {
    padding:10px 16px;
  }
  .modal-actions {
    flex-direction:column;
  }
  .modal-actions .button {
    width:100%;
  }
}
@media(prefers-reduced-motion:reduce) {
  *,*:before,*:after {
    scroll-behavior:auto!important;
    animation:none!important;
    transition:none!important;
  }
  .breath-circle {
    will-change:auto;
  }
}
