#rehab-diary-preview { display:grid; justify-items:center; padding:clamp(4px,3vw,22px); }
#rehab-diary-preview * { box-sizing:border-box; }
#rehab-diary-preview .phone {
  color-scheme:light dark;
  --paper:light-dark(#f8f2e5,#201e17); --ink:light-dark(#2c3024,#f6eee0);
  --muted:light-dark(#695f50,#c2b6a3); --line:light-dark(#e2d6c1,#4b4537);
  --white:light-dark(#fffbf3,#2b281e); --sage:light-dark(#e3ead9,#35402d);
  --green:light-dark(#385137,#c4d7ac); --deep:#354d35;
  --amber:light-dark(#f4e3c9,#4c3826); --amber-ink:light-dark(#754620,#ffd7aa);
  --russet:light-dark(#92512e,#e4ac81);
  font:14px/1.55 -apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;
  width:min(100%,390px); min-height:654px; display:flex; flex-direction:column;
  border:1px solid var(--line); border-radius:29px; overflow:hidden; background:var(--paper); color:var(--ink);
  box-shadow:0 8px 26px #151c1520;
}
#rehab-diary-preview h1,#rehab-diary-preview h2,#rehab-diary-preview p { margin:0; }
#rehab-diary-preview h1 { font-size:30px; line-height:1.18; letter-spacing:-.055em; font-weight:760; margin:2px 0 5px; }
#rehab-diary-preview h2 { font-size:16px; line-height:1.35; font-weight:720; }
#rehab-diary-preview button,#rehab-diary-preview input,#rehab-diary-preview select,#rehab-diary-preview textarea { font:inherit; }
#rehab-diary-preview button { color:inherit; background:none; border:0; padding:0; min-height:44px; cursor:inherit; }
#rehab-diary-preview .brandbar { display:flex; align-items:center; justify-content:space-between; padding:9px 19px 0; }
#rehab-diary-preview .brand { display:flex; align-items:center; gap:8px; font-weight:760; letter-spacing:.05em; }
#rehab-diary-preview .mark { display:grid; place-items:center; width:32px; height:32px; border-radius:11px; background:#784426; }
#rehab-diary-preview .acorn { position:relative; display:block; width:12px; height:15px; border-radius:48% 48% 52% 52%; background:#efbc83; transform:rotate(25deg); }
#rehab-diary-preview .acorn::before { content:""; position:absolute; width:112%; height:45%; top:-5%; left:-6%; border-radius:55% 55% 27% 27%; background:#ffe1ae; }
#rehab-diary-preview .acorn::after { content:""; position:absolute; width:2px; height:4px; top:-3px; left:45%; border-radius:2px; background:#ffe1ae; }
#rehab-diary-preview .icon { display:inline-grid; place-items:center; min-width:17px; line-height:1; }
#rehab-diary-preview .icon svg { width:18px; height:18px; }
#rehab-diary-preview .icon:has(svg) .fallback { display:none; }
#rehab-diary-preview .iconbutton { display:grid; place-items:center; width:44px; border-radius:12px; }
#rehab-diary-preview .iconbutton:hover { background:var(--sage); }
#rehab-diary-preview .main { flex:1; padding:6px 19px 19px; min-width:0; }
#rehab-diary-preview .screen { display:grid; align-content:start; gap:13px; }
#rehab-diary-preview .date,#rehab-diary-preview .muted { color:var(--muted); font-size:12px; }
#rehab-diary-preview .date { letter-spacing:.045em; font-variant-numeric:tabular-nums; }
#rehab-diary-preview .week { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:3px; }
#rehab-diary-preview .day { display:grid; justify-items:center; align-content:center; min-height:52px; border-radius:13px; gap:2px; }
#rehab-diary-preview .day span { font-size:11px; color:var(--muted); }
#rehab-diary-preview .day b { font-size:15px; line-height:1.25; }
#rehab-diary-preview .day em { width:5px; height:5px; border-radius:2px 2px 50% 50%; background:var(--russet); }
#rehab-diary-preview .day[aria-pressed="true"] { background:var(--deep); color:#fffaf0; }
#rehab-diary-preview .day[aria-pressed="true"] span { color:#d8e6da; }
#rehab-diary-preview .day[aria-pressed="true"] em { background:#f3d5a0; }
#rehab-diary-preview .feature {
  position:relative; isolation:isolate; overflow:hidden; border-radius:20px; padding:16px;
  display:grid; grid-template-columns:minmax(0,1fr) minmax(69px,34%); align-items:center; gap:4px;
  background:linear-gradient(125deg,#324a32,#40573a); color:#fffaf0;
}
#rehab-diary-preview .feature-copy { min-width:0; }
#rehab-diary-preview .feature h2 { font-size:21px; margin:6px 0 4px; }
#rehab-diary-preview .feature p { font-size:12px; color:#e5ead8; margin-bottom:11px; }
#rehab-diary-preview .feature-art {
  position:relative; display:block; width:100%; aspect-ratio:1; align-self:end; margin-bottom:2px;
  background:radial-gradient(circle at 57% 46%,#e6b16c29 0 48%,transparent 49%);
}
#rehab-diary-preview .feature-art::before { content:""; position:absolute; inset:81% 2% 6% 10%; border-radius:50%; background:#203b287c; }
#rehab-diary-preview .feature-art span { position:absolute; display:block; }
#rehab-diary-preview .feature-art .pine { top:13%; right:0; width:22%; height:65%; background:#a3b18a34; clip-path:polygon(50% 0,83% 36%,68% 36%,93% 64%,72% 64%,100% 90%,58% 90%,58% 100%,42% 100%,42% 90%,0 90%,28% 64%,7% 64%,32% 36%,17% 36%); }
#rehab-diary-preview .feature-art .tail {
  top:8%; right:8%; width:55%; height:68%; transform:rotate(28deg);
  border-radius:55% 53% 56% 42% / 45% 48% 62% 57%;
  background:radial-gradient(ellipse at 68% 22%,#f0ad76 3%,#cf814d 44%,#9b502f 78%);
}
#rehab-diary-preview .feature-art .tail::after { content:""; position:absolute; inset:13% 17% 22% 29%; border-radius:55% 50% 48% 42%; border-right:4px solid #f7bf8b75; transform:rotate(3deg); }
#rehab-diary-preview .feature-art .body { top:46%; left:32%; width:38%; height:36%; transform:rotate(-18deg); border-radius:48% 55% 44% 45%; background:#c67a4b; }
#rehab-diary-preview .feature-art .belly { top:52%; left:31%; width:25%; height:26%; transform:rotate(-14deg); border-radius:50%; background:#efbc89; }
#rehab-diary-preview .feature-art .ear { top:19%; left:31%; width:16%; height:27%; transform:rotate(17deg); border-radius:81% 24% 49% 37%; background:#cd8152; }
#rehab-diary-preview .feature-art .ear::after { content:""; position:absolute; inset:22% 29% 18% 32%; background:#f4bc91; border-radius:80% 35% 55% 37%; }
#rehab-diary-preview .feature-art .ear-far { top:22%; left:18%; width:14%; height:23%; transform:rotate(-13deg); background:#a9603c; }
#rehab-diary-preview .feature-art .head { top:32%; left:16%; width:36%; height:29%; border-radius:51% 45% 56% 53%; transform:rotate(9deg); background:#d88b56; }
#rehab-diary-preview .feature-art .cheek { top:44%; left:12%; width:30%; height:17%; border-radius:50% 40% 54% 53%; background:#f3cda0; }
#rehab-diary-preview .feature-art .eye { width:5%; height:6%; top:41%; left:24%; border-radius:50%; background:#30241d; box-shadow:1px -1px 0 -0.5px #ffe7bd; }
#rehab-diary-preview .feature-art .nose { width:5%; height:5%; top:48%; left:11%; border-radius:46% 46% 55% 50%; background:#492f26; }
#rehab-diary-preview .feature-art .foot { width:22%; height:9%; top:77%; left:38%; border-radius:56% 40% 40% 39%; background:#a55b37; transform:rotate(-3deg); }
#rehab-diary-preview .feature-art .paw { width:22%; height:8%; top:65%; left:21%; border-radius:50%; background:#d98c56; transform:rotate(-21deg); }
#rehab-diary-preview .feature-art .acorn { width:13%; height:17%; top:63%; left:16%; transform:rotate(-24deg); }
#rehab-diary-preview .badge { display:inline-flex; align-items:center; gap:6px; font-size:11px; font-weight:650; color:#f9db9f; }
#rehab-diary-preview .dot { width:6px; height:6px; border-radius:50%; background:currentColor; }
#rehab-diary-preview .solid,#rehab-diary-preview .outline,#rehab-diary-preview .light {
  display:inline-flex; align-items:center; justify-content:center; gap:7px; min-height:44px; padding:0 12px;
  border-radius:11px; font-weight:690; text-decoration:none;
}
#rehab-diary-preview .solid { background:var(--deep); color:#fffaf0; }
#rehab-diary-preview .light { background:#f8eed8; color:#234738; }
#rehab-diary-preview .outline { background:var(--white); color:var(--green); border:1px solid var(--line); }
#rehab-diary-preview .full { width:100%; }
#rehab-diary-preview .row,#rehab-diary-preview .section-head { display:flex; align-items:center; justify-content:space-between; gap:8px; min-width:0; }
#rehab-diary-preview .tile { border:1px solid var(--line); border-radius:14px; background:var(--white); padding:11px 12px; }
#rehab-diary-preview button.tile { text-align:left; }
#rehab-diary-preview .row-title { font-size:14px; font-weight:680; }
#rehab-diary-preview .item { display:flex; align-items:center; gap:10px; min-width:0; }
#rehab-diary-preview .item > :last-child { min-width:0; }
#rehab-diary-preview .item-icon { display:grid; place-items:center; flex:0 0 35px; height:35px; border-radius:11px; background:var(--sage); color:var(--green); }
#rehab-diary-preview .item-icon.is-warm { background:var(--amber); color:var(--russet); }
#rehab-diary-preview .nav { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:3px; padding:7px 9px 10px; border-top:1px solid var(--line); background:var(--white); }
#rehab-diary-preview .nav button { display:grid; justify-items:center; align-content:center; gap:3px; color:var(--muted); border-radius:12px; min-height:47px; font-size:11px; }
#rehab-diary-preview .nav button[aria-current="page"] { background:var(--sage); color:var(--green); font-weight:750; }
#rehab-diary-preview .back { display:flex; align-items:center; gap:5px; color:var(--green); width:max-content; margin-bottom:-8px; }
#rehab-diary-preview .back + header h1 { font-size:24px; }
#rehab-diary-preview label.field { display:grid; gap:4px; color:var(--muted); font-size:12px; }
#rehab-diary-preview input,#rehab-diary-preview select,#rehab-diary-preview textarea {
  display:block; width:100%; min-width:0; min-height:44px; border:1px solid var(--line); border-radius:10px;
  background:var(--white); padding:8px 9px; color:var(--ink); font-size:16px;
}
#rehab-diary-preview textarea { resize:vertical; min-height:64px; }
#rehab-diary-preview .fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
#rehab-diary-preview .fields.three { grid-template-columns:repeat(3,minmax(0,1fr)); }
#rehab-diary-preview .pain { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:3px; margin-top:5px; }
#rehab-diary-preview .pain button,#rehab-diary-preview .chips button { background:var(--white); border:1px solid var(--line); border-radius:10px; }
#rehab-diary-preview .pain button[aria-pressed="true"],#rehab-diary-preview .chips button[aria-pressed="true"] { color:var(--green); background:var(--sage); border-color:var(--green); font-weight:720; }
#rehab-diary-preview .chips { display:flex; flex-wrap:wrap; gap:6px; margin-top:5px; }
#rehab-diary-preview .chips button { padding:0 9px; }
#rehab-diary-preview .body-picker { display:grid; gap:9px; }
#rehab-diary-preview .body-picker .chips { margin:0; }
#rehab-diary-preview .body-stage { border:1px solid var(--line); border-radius:16px; background:var(--white); padding:5px 7px 7px; }
#rehab-diary-preview .body-sides { display:flex; justify-content:space-between; padding:0 6px; color:var(--muted); font-size:11px; }
#rehab-diary-preview .body-map { position:relative; width:min(100%,240px); aspect-ratio:240/342; margin:-3px auto 0; }
#rehab-diary-preview .body-map svg { display:block; width:100%; height:100%; pointer-events:none; }
#rehab-diary-preview .body-outline { fill:var(--sage); stroke:var(--green); stroke-opacity:.65; stroke-width:1.25; stroke-linejoin:round; }
#rehab-diary-preview .body-detail { fill:none; stroke:var(--green); stroke-opacity:.38; stroke-width:1.1; stroke-linecap:round; }
#rehab-diary-preview .body-point {
  position:absolute; left:var(--x); top:var(--y); transform:translate(-50%,-50%);
  width:44px; height:44px; display:grid; place-items:center; border-radius:50%;
}
#rehab-diary-preview .body-point span {
  display:grid; place-items:center; width:12px; height:12px; border-radius:50%;
  background:var(--white); border:1px solid var(--green); color:var(--green); font-size:11px; font-weight:750;
}
#rehab-diary-preview .body-point.is-knee span { width:24px; height:24px; background:var(--amber); color:var(--amber-ink); border-color:var(--russet); }
#rehab-diary-preview .body-point.is-recorded span { width:24px; height:24px; background:var(--deep); border-color:var(--deep); color:#fffaf0; }
#rehab-diary-preview .body-point.has-pain span { background:#895131; border-color:#895131; color:#fffaf0; }
#rehab-diary-preview .body-point:hover span { outline:2px solid var(--green); outline-offset:2px; }
#rehab-diary-preview .body-stage > p { text-align:center; }
#rehab-diary-preview .region-list button { overflow-wrap:anywhere; }
#rehab-diary-preview .region-list .row-title { display:inline-block; }
#rehab-diary-preview .linked-workout { display:flex; gap:9px; align-items:center; padding:8px 10px; }
#rehab-diary-preview .linked-workout .item-icon { flex-basis:31px; height:31px; }
#rehab-diary-preview .text-button { font-weight:680; color:var(--russet); text-align:left; }
#rehab-diary-preview .form-error { color:var(--russet); font-size:13px; }
#rehab-diary-preview button:disabled { opacity:.55; }
#rehab-diary-preview .knee-comparison { margin-top:8px; padding-top:8px; border-top:1px solid var(--line); }
#rehab-diary-preview .notice { padding:12px; border-radius:13px; background:var(--amber); color:var(--amber-ink); }
#rehab-diary-preview .notice h2 { font-size:14px; margin-bottom:2px; }
#rehab-diary-preview .notice p { font-size:13px; }
#rehab-diary-preview .preview-box { display:grid; place-items:center; min-height:105px; border-radius:13px; background:var(--sage); color:var(--green); padding:10px; text-align:center; }
#rehab-diary-preview .preview-box img { display:block; max-width:100%; max-height:150px; }
#rehab-diary-preview .demo { margin:0; overflow:hidden; background:var(--white); border:1px solid var(--line); border-radius:15px; }
#rehab-diary-preview .demo .preview-box { padding:0; border-radius:0; min-height:0; }
#rehab-diary-preview .demo img { width:100%; max-height:none; aspect-ratio:320/184; object-fit:contain; }
#rehab-diary-preview .demo figcaption { padding:9px 11px; }
#rehab-diary-preview .reference { display:inline-flex; width:fit-content; align-items:center; gap:4px; min-height:44px; color:var(--green); }
#rehab-diary-preview .gif-mark { color:var(--russet); font-size:11px; font-weight:700; }
#rehab-diary-preview .list { display:grid; gap:7px; }
#rehab-diary-preview .catalog-filters { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
#rehab-diary-preview .catalog-add { display:inline-flex; align-items:center; gap:4px; white-space:nowrap; color:var(--green); }
#rehab-diary-preview [data-move-pagination]:empty { display:none; }
#rehab-diary-preview .pagination { display:grid; gap:6px; }
#rehab-diary-preview .page-numbers { display:flex; justify-content:center; align-items:center; gap:3px; flex-wrap:wrap; }
#rehab-diary-preview .page-numbers button {
  min-width:44px; padding-inline:3px; border:1px solid var(--line); border-radius:10px;
  background:var(--white); color:var(--green); font-variant-numeric:tabular-nums;
}
#rehab-diary-preview .page-numbers button[aria-current="page"] { background:var(--deep); color:#fffaf0; font-weight:750; }
#rehab-diary-preview .page-gap { color:var(--muted); font-size:11px; }
#rehab-diary-preview .page-arrows .outline { padding-inline:8px; }
#rehab-diary-preview .catalog-note { margin-block:6px; white-space:pre-line; }
#rehab-diary-preview .catalog-license { white-space:pre-wrap; overflow-wrap:anywhere; }
#rehab-diary-preview .number { font-size:27px; font-weight:750; line-height:1.25; letter-spacing:-.05em; font-variant-numeric:tabular-nums; }
#rehab-diary-preview .number small { font-size:13px; letter-spacing:0; color:var(--muted); }
#rehab-diary-preview .chart { display:grid; grid-template-columns:repeat(4,1fr); gap:7px; padding-top:8px; }
#rehab-diary-preview .chart button { display:grid; grid-template-rows:73px auto; justify-items:center; align-items:end; gap:5px; font-size:11px; color:var(--muted); }
#rehab-diary-preview .chart span { display:grid; align-content:end; justify-items:center; gap:3px; font-variant-numeric:tabular-nums; color:var(--ink); }
#rehab-diary-preview .chart i { display:block; width:17px; height:var(--size); border-radius:4px 4px 0 0; background:var(--green); }
#rehab-diary-preview .chart[data-metric-style="pain"] i { background:var(--russet); }
#rehab-diary-preview .status { color:var(--green); font-size:12px; font-weight:660; }
#rehab-diary-preview .status:empty { display:none; }
#rehab-diary-preview [hidden] { display:none!important; }
@media(max-width:365px) {
  #rehab-diary-preview .phone { border-radius:21px; }
  #rehab-diary-preview .main { padding-inline:13px; }
  #rehab-diary-preview .brandbar { padding-inline:13px; }
  #rehab-diary-preview .feature { grid-template-columns:minmax(0,1fr) minmax(62px,31%); padding:13px; }
  #rehab-diary-preview .feature h2 { font-size:19px; }
}

html { min-height:100%; color-scheme:light dark; background:light-dark(#eee8db,#151711); }
body { margin:0; }
#rehab-diary-preview { padding:0; min-height:100dvh; }
#rehab-diary-preview .phone {
  width:min(100%,480px); min-height:100dvh; border-top:0; border-bottom:0;
  border-radius:0; overflow:visible;
}
#rehab-diary-preview .brandbar { padding-top:max(9px,env(safe-area-inset-top)); }
#rehab-diary-preview .nav {
  position:sticky; bottom:0; z-index:3;
  padding-bottom:max(10px,env(safe-area-inset-bottom)); margin-top:auto;
}
#rehab-diary-preview button:not(:disabled),#rehab-diary-preview summary,#rehab-diary-preview a { cursor:pointer; }
#rehab-diary-preview .app-status {
  margin:4px 19px; border-radius:10px; padding:8px 10px;
  background:var(--amber); color:var(--amber-ink); font-size:13px;
}
#rehab-diary-preview .app-status button { min-height:35px; }
#rehab-diary-preview .restore-preview:not(:empty) { display:grid; gap:8px; }
#rehab-diary-preview .restore-preview:empty { display:none; }
#rehab-diary-preview .calendar-grid { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); text-align:center; gap:2px; }
#rehab-diary-preview .calendar-grid .day { min-height:44px; }
#rehab-diary-preview .calendar-grid .outside-month:not([aria-pressed="true"]) { opacity:.55; }
#rehab-diary-preview .chart { grid-template-columns:repeat(var(--point-count,4),minmax(0,1fr)); gap:3px; }
#rehab-diary-preview .chart button { min-width:0; }
#rehab-diary-preview .chart i { width:12px; }
#rehab-diary-preview details > summary { padding-block:8px; }
#rehab-diary-preview .tile,#rehab-diary-preview .catalog-note { overflow-wrap:anywhere; }
@media(max-width:480px) {
  #rehab-diary-preview .phone { border-inline:0; box-shadow:none; }
}
