.demo-controls{display:inline-flex;align-items:center;gap:6px;flex-wrap:wrap;vertical-align:middle}
.demo-badge{display:inline-block;font-size:11px;line-height:1.5;border:1px solid #e3d6ad;border-radius:999px;padding:3px 9px;background:#fcf5df;color:#6c5721;white-space:nowrap;font-weight:500}
.demo-teach-toggle{font:inherit;font-size:12px;line-height:1.5;border:1px solid #c3d7c6;border-radius:8px;background:#fff;color:#275c43;padding:6px 11px;cursor:pointer;white-space:nowrap;font-weight:500;transition:background .15s,border-color .15s,color .15s}
.demo-teach-toggle:hover{background:#eef5ef;border-color:#8cb394}
.demo-teach-toggle[aria-pressed=true]{background:#2f6b4f;color:#fff;border-color:#2f6b4f}
.demo-teach-toggle:focus-visible{outline:2px solid #2f6b4f;outline-offset:3px}
.demo-teaching-note{display:none;border-left:3px solid #59896b;background:#f4f8f2;padding:12px 15px;color:#3f5946;font-size:13px;line-height:1.8;border-radius:0 8px 8px 0}
.yy-teaching .demo-teaching-note{display:block}
.home .task-card.free .task-icon{color:#2f6b4f}
.home .task-grid .task-icon svg{width:24px;height:24px}
.home .footnote{max-width:900px;line-height:1.8}
.demo-help-note{font-size:13px;color:#5c6e5c;line-height:1.8}
.demo-help-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.demo-help-grid .recent-card{margin:0;display:flex;flex-direction:column;gap:10px}
.demo-help-grid .recent-card p{margin:0;color:#46564a;font-size:13.5px;line-height:1.75}
.demo-flow{display:flex;flex-wrap:wrap;gap:8px;list-style:none;padding:0;margin:12px 0 14px;counter-reset:flow-step}
.demo-flow li{display:inline-flex;align-items:center;gap:6px;background:#f0f6ef;border:1px solid #d5e2d2;border-radius:9px;padding:6px 12px;font-size:13px;font-weight:500;color:#2a523c}
.demo-flow li::before{counter-increment:flow-step;content:counter(flow-step);display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:50%;background:#2f6b4f;color:#fff;font-size:11px;font-weight:700}
.app-nav .demo-controls{margin-left:auto}
@media(max-width:900px){
  .demo-help-grid{grid-template-columns:1fr}
  .app-nav .demo-controls{margin-left:0}
}
@media(max-width:720px){
  .app-header{height:auto;min-height:66px;flex-wrap:wrap;gap:8px;padding-block:8px}
  .app-nav{flex-wrap:wrap;gap:6px}
  .demo-controls{gap:5px}
  .demo-teach-toggle{font-size:11.5px;padding:5px 8px}
  .demo-badge{font-size:10.5px;padding:2px 7px}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}}

/* YYMotion v2 */
.yy-motion-flow{box-sizing:border-box;width:100%;margin:10px 0 14px;border:1px solid #c9dbca;border-radius:12px;background:#f4f8f1;color:#264b38;padding:13px 15px;font-family:inherit;font-size:13px;line-height:1.75;overflow:hidden}
.yy-motion-flow>summary{cursor:pointer;line-height:1.7;font-weight:600;outline-offset:5px}
.yy-motion-badge{display:inline-block;vertical-align:middle;margin:0 8px 0 3px;padding:2px 8px;border:1px solid #e1d6aa;border-radius:999px;background:#fff7db;color:#6e5924;font-size:11px;font-weight:500;white-space:nowrap}
.yy-motion-flow[data-motion-kind=case] .yy-motion-badge{border-color:#b8d0b8;background:#eaf3e7;color:#27583e}
.yy-motion-title{vertical-align:middle}
.yy-motion-note{margin:9px 0 11px;font-size:12px;color:#556b58;line-height:1.8}
.yy-motion-steps{display:grid;grid-template-columns:repeat(auto-fit,minmax(125px,1fr));gap:8px;list-style:none;padding:0;margin:0}
.yy-motion-step{display:flex;gap:8px;align-items:center;box-sizing:border-box;padding:9px 10px;border:1px solid #dce5d7;border-radius:8px;background:#fff;transition:background-color 160ms cubic-bezier(.2,0,0,1),border-color 160ms cubic-bezier(.2,0,0,1);font-size:12px;color:#61725f}
.yy-motion-number{flex-shrink:0;display:inline-flex;width:21px;height:21px;align-items:center;justify-content:center;border-radius:50%;background:#edf2e9;font:600 11px/1.2 Arial,sans-serif;color:#526e53}
.yy-motion-step[data-state=active]{background:#e5f0df;border-color:#689573;color:#234a34}
.yy-motion-step[data-state=active] .yy-motion-number{background:#2f6b4f;color:#fff}
.yy-motion-step[data-state=done]{background:#f4f8ef;border-color:#c3d7bc;color:#2e5b3a}
.yy-motion-live{margin:9px 0 0;font-size:12px;line-height:1.7;color:#45664b}
.yy-motion-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.yy-motion-actions[hidden]{display:none!important}
.yy-motion-actions button{font-family:inherit;font-size:12px;line-height:1.6;border:1px solid #b4cbb3;background:#fff;border-radius:8px;padding:5px 11px;color:#295c41;cursor:pointer;min-height:32px;font-weight:500}
.yy-motion-actions button:hover{background:#eef5ee}
.yy-motion-actions button:focus-visible,.yy-motion-flow>summary:focus-visible{outline:2px solid #2f6b4f;outline-offset:3px}
.yy-motion-actions button:disabled{opacity:.6;cursor:default}
.yy-motion-flow[data-motion-state=error]{border-color:#c99882;background:#fcf5ef}
.yy-motion-flow[data-motion-state=cancelled]{background:#f7f7f2;border-color:#d5d8cc}
.yy-motion-flow:not([open]){padding-top:9px;padding-bottom:9px}
.yy-motion-flow[hidden]{display:none!important}

/* Home Showcase Cards */
.home-showcase{margin:0 0 28px}
.home-showcase-head{display:flex;align-items:flex-end;justify-content:space-between;flex-wrap:wrap;gap:8px 18px;margin-bottom:14px}
.home-showcase h2{font-size:21px;line-height:1.35;margin:0;color:#22382b}
.home-showcase-intro{margin:30px 0 12px}
.home-showcase-intro h2{font-size:20px;line-height:1.35;margin:0 0 6px;color:#22382b}
.home-showcase-lead{max-width:860px;color:#5a6b5b;font-size:14px;line-height:1.75;margin:0 0 10px}
.case-series-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.case-series-card{border:1px solid #d5e0d0;border-radius:16px;background:#fff;padding:20px;box-shadow:0 8px 22px rgba(40,68,48,.05);display:flex;flex-direction:column;min-width:0;transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}
.case-series-card:hover{transform:translateY(-2px);border-color:#8eb599;box-shadow:0 12px 28px rgba(40,68,48,.09)}
.case-series-type{display:inline-block;align-self:flex-start;font-size:12px;font-weight:600;color:#2d6146;background:#ebf4ed;border:1px solid #d2e4d6;border-radius:999px;padding:3px 10px}
.case-series-card h3{font-size:18px;line-height:1.45;margin:11px 0 8px;color:#1e2c23}
.case-series-hook{font-size:13px;line-height:1.65;color:#7a5228;background:#fcf6eb;border-left:3px solid #cfa061;padding:7px 10px;border-radius:0 8px 8px 0;margin:0 0 10px}
.case-series-card>p:not(.case-series-hook):not(.case-series-note){font-size:13.5px;line-height:1.75;color:#526356;margin:0 0 16px;flex:1}
.case-series-links{display:flex;flex-wrap:wrap;gap:8px;margin-top:auto}
.case-series-links a{flex:1 1 auto;display:inline-flex;align-items:center;justify-content:center;min-height:38px;border:1px solid #c3d6c6;border-radius:10px;background:#f4f8f3;color:#265b41;text-decoration:none;font-size:13px;font-weight:600;padding:7px 12px;transition:background .15s,border-color .15s,color .15s}
.case-series-links a:first-child{background:#2f6b4f;border-color:#2f6b4f;color:#fff}
.case-series-links a:first-child:hover{background:#24543d;border-color:#24543d}
.case-series-links a:last-child:hover{background:#e7f1e8;border-color:#7ba688}
.case-series-note{font-size:11.5px;color:#708072;line-height:1.65;margin:12px 0 0;padding-top:10px;border-top:1px dashed #e1e8de}
@media(max-width:960px){.case-series-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.case-series-grid{grid-template-columns:1fr}}
