.interactive-demo { --demo-accent:#315b48; margin:0 0 20px; color:#283a31; }
.demo-shell { border:1px solid #bbc6b6; border-radius:15px; overflow:hidden; background:#fcfdf8; box-shadow:0 18px 34px #27382712,0 3px 0 #c4ccbc66; }
.interactive-demo button { transition:background .16s,transform .16s,border-color .16s; }
.interactive-demo button:hover { border-color:var(--demo-accent); }
.interactive-demo button:active { transform:translateY(1px); }
.interactive-demo button:disabled { cursor:default; opacity:.5; }
.interactive-demo button:focus-visible,.interactive-demo input:focus-visible { outline:2px solid #ad5a31; outline-offset:2px; }
.demo-chips { display:flex; gap:6px; flex-wrap:wrap; margin:15px 0; }
.demo-chips button { border:1px solid #d4dacb; background:#fffef9; border-radius:20px; padding:7px 12px; min-height:34px; font-size:10px; }
.demo-chips button[aria-pressed=true] { background:var(--demo-accent); border-color:var(--demo-accent); color:#fff; }
.demo-task-list { list-style:none; padding:0; margin:12px 0 20px; }
.demo-task-list li { display:flex; align-items:center; gap:12px; padding:14px 0; border-bottom:1px solid #e1e5d8; font-size:12px; }
.demo-task-list label { display:flex; align-items:center; gap:10px; min-height:25px; min-width:0; flex:1; cursor:pointer; line-height:1.7; }
.demo-task-list input { width:18px; height:18px; flex-shrink:0; accent-color:var(--demo-accent); margin:0; cursor:pointer; }
.demo-task-list label > span { overflow-wrap:anywhere; }
.demo-task-list small { font-size:9px; color:#697460; white-space:nowrap; }
.demo-task-list .is-done label > span { color:#718068; text-decoration:line-through; text-decoration-color:#9ca48f; }
.demo-add-form { margin:20px 0 0; }
.demo-add-form > label { display:block; font-size:11px; margin-bottom:8px; font-weight:500; }
.demo-add-form > div { display:flex; gap:7px; }
.demo-add-form input { width:0; min-width:0; flex:1; background:#fffef9; color:#283a31; border:1px solid #bdc9b4; border-radius:7px; padding:10px 11px; font-size:11px; min-height:40px; }
.demo-add-form input::placeholder { color:#6f776a; }
.demo-add-form button,.demo-primary { min-height:40px; padding:10px 15px; border:1px solid var(--demo-accent); border-radius:7px; background:var(--demo-accent); color:#fff; font-size:12px; }
.demo-add-form > small { display:block; font-size:9px; color:#63705f; margin-top:8px; line-height:1.7; }
.demo-status { min-height:19px; font-size:10px; color:#5d6f50; margin-top:10px; line-height:1.6; }
.demo-quiet { display:block; border:0; background:none; font-size:11px; padding:10px; text-decoration:underline; text-underline-offset:3px; }
.interactive-demo--sameframe { --demo-accent:#a95c39; }
.album-shell { position:relative; background:#f8f2e7; border-color:#d9cdb8; box-shadow:0 9px 24px #67563c12; }
.album-stage { min-height:432px; padding:24px; }
.album-scene { max-width:900px; margin-inline:auto; }
.album-scene.is-entering { animation:album-scene-in .24s ease-out; }
@keyframes album-scene-in { from { opacity:.4; transform:translateY(4px); } }
.album-scene-heading { margin-bottom:15px; }
.album-scene-heading h4 { font-size:clamp(20px,2vw,26px); font-weight:600; line-height:1.3; }
.album-scene-heading p { margin-top:5px; color:#685b4b; font-size:13px; }
.album-scene-grid { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,1fr); align-items:start; gap:18px; }
.album-scene-panel { min-width:0; padding:15px; background:#fffcf5; border:1px solid #e2d5c0; border-radius:12px; }
.album-scene-panel .demo-chips { margin:0 0 12px; }
.album-reminders { max-width:620px; }
.album-reminder-progress { font-size:13px; color:#685b4b; }
.album-reminders .demo-task-list li { border-color:#e5d8c3; }
.demo-month { display:flex; justify-content:space-between; align-items:center; font-size:12px; }
.demo-month strong { font-weight:500; }
.demo-month button { display:grid; place-items:center; border:1px solid #decbb2; background:transparent; border-radius:50%; width:28px; height:28px; font-size:19px; }
.demo-calendar-week,.demo-calendar-grid { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:4px; }
.demo-calendar-week { margin:12px 0 8px; font-size:9px; color:#7c6852; text-align:center; }
.demo-calendar-grid button { position:relative; height:33px; background:#f2e9d8; border:1px solid transparent; border-radius:7px; padding:0; font-size:10px; overflow:hidden; }
.demo-calendar-grid img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.demo-calendar-grid button > span { position:relative; z-index:1; }
.demo-calendar-grid button:has(img) > span { display:grid; place-items:center; background:#fff9ebec; width:17px; height:17px; border-radius:50%; margin:0 auto; }
.demo-calendar-grid button[aria-pressed=true] { border:2px solid var(--demo-accent); box-shadow:0 0 0 1px #fff8ec inset; }
.demo-day-story { min-width:0; background:#fffdf7; border:1px solid #e2d3bb; border-radius:11px; overflow:hidden; }
.demo-day-story > img { width:100%; height:clamp(140px,18vw,210px); object-fit:cover; }
.demo-day-story > div { display:flex; flex-direction:column; gap:6px; padding:12px; }
.demo-day-story strong { font-size:14px; font-weight:500; }
.demo-day-story span { font-size:12px; color:#77664f; }
.demo-empty { font-size:11px; line-height:1.8; color:#68715d; min-height:100px; display:flex; align-items:center; justify-content:center; flex-direction:column; }
.demo-map { position:relative; height:216px; background:#e7eee0; border:1px solid #d1d9c6; border-radius:11px; overflow:hidden; }
.demo-map svg { width:100%; height:100%; }
.demo-map-land { fill:#d8e3c9; }
.demo-map-river { fill:none; stroke:#aecfd0; stroke-width:18; }
.demo-map-road { fill:none; stroke:#fffcf4; stroke-width:4; stroke-dasharray:5 4; }
.demo-map-label { position:absolute; left:9px; bottom:8px; font-size:8px; color:#4c6246; background:#fffaf1dc; padding:3px 5px; border-radius:4px; }
.demo-map button { position:absolute; transform:translate(-50%,-50%); width:29px; height:29px; padding:0; border:1px solid #fff; border-radius:50%; background:#fffaf1; color:#ab6241; font-size:14px; box-shadow:0 2px 6px #454b2938; }
.demo-map button[aria-pressed=true] { background:var(--demo-accent); color:#fff; border:3px solid #fff7e6; }
.demo-map button:active { transform:translate(-50%,-50%) scale(.95); }
@media (max-width:700px) {
  .demo-task-list li { flex-wrap:wrap; gap:3px; font-size:11px; }
  .demo-task-list small { margin-left:28px; }
  .demo-chips { gap:5px; }
  .demo-chips button { padding:6px 10px; }
  .album-stage { --album-day-height:clamp(24px,7vw,32px); min-height:calc(288px + 6 * var(--album-day-height)); padding:16px 12px; }
  .album-scene-heading { margin-bottom:12px; }
  .album-scene-heading p { font-size:12px; }
  .album-scene-grid { grid-template-columns:minmax(0,1fr); gap:10px; }
  .album-scene-panel { padding:10px; }
  .demo-calendar-grid { gap:3px; }
  .demo-calendar-grid button { height:var(--album-day-height); }
  .demo-day-story { display:grid; grid-template-columns:88px minmax(0,1fr); }
  .demo-day-story > img { height:78px; }
  .demo-day-story > div { justify-content:center; padding:8px 10px; }
  .demo-day-story > .demo-empty { grid-column:1/-1; min-height:78px; text-align:center; }
  .demo-day-story strong { font-size:12px; }
  .demo-day-story span { font-size:10px; }
  .demo-map { height:157px; }
}
@media (prefers-reduced-motion:reduce) {
  .interactive-demo *, .interactive-demo *::before { animation:none !important; transition:none !important; }
}
