/* Topic 17 only. Existing topic and navigation styles are preserved. */
.sm-lesson .sm-intro{padding:24px;background:#f2f8fd;border:1px solid #d7e8f3;border-radius:16px;margin:0 0 24px}.sm-lesson .sm-intro h3{margin-top:0;color:#194970}.sm-lesson .sm-intro p{line-height:1.7;color:#466075}
.sm-lesson .sm-checklist{list-style:none;padding:0;display:grid;gap:10px;margin:22px 0}.sm-lesson .sm-checklist li{display:flex;gap:15px;align-items:flex-start;border:1px solid #dbe7ee;background:#fff;border-radius:12px;padding:14px;line-height:1.6;min-width:0}.sm-lesson .sm-checklist b{min-width:90px;color:#576f82}.sm-lesson .sm-checklist .is-done{background:#eff9f3;border-color:#bcdfcb}.sm-lesson .sm-checklist .is-done b{color:#226b4e}
.sm-lesson .gg-btn:disabled{cursor:not-allowed}.sm-lesson .gg-btn.gg-primary{background:#176ac0;border-color:#176ac0;color:#fff}.sm-lesson summary{cursor:pointer;min-height:44px;line-height:1.6;padding:8px 0}.sm-lesson .sm-phrase-exercise{background:#f3f8fc;border:1px solid #d5e7f1;padding:14px;border-radius:12px;margin-top:18px}.sm-lesson .sm-substitutions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:16px 0}.sm-lesson .sm-substitutions>div{border:1px solid #dce7ee;border-radius:10px;padding:14px;min-width:0}.sm-lesson .sm-substitutions strong{font-size:22px}.sm-lesson .sm-inline-terms .gg-btn{display:inline-block;vertical-align:baseline;min-height:44px;padding:3px 0;border:0;border-radius:3px;text-decoration:underline;text-decoration-style:dotted;text-underline-offset:6px;font:inherit;color:inherit;background:transparent}.sm-lesson .sm-inline-terms .gg-btn:hover{background:#e6f2fb;color:#145d9b}
.sm-lesson .sm-review{border:1px solid #d4e6ee;border-radius:12px;background:#f6fbfe;padding:18px;margin:24px 0;text-align:left}.sm-lesson .sm-review ul{padding:0;list-style:none;display:grid;gap:12px}.sm-lesson .sm-review li{display:grid;gap:5px}.sm-lesson .sm-review button{white-space:normal;text-align:left;line-height:1.6}.sm-lesson .sm-review small{color:#5a7284}
.sm-lesson .sm-simulator{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,.7fr);gap:28px;align-items:start;margin-top:24px}.sm-lesson .sm-handset{min-width:0;background:#fff;border:6px solid #173c5b;border-radius:30px;overflow:hidden;box-shadow:0 16px 35px #173c5b12}.sm-lesson .sm-device-bar{display:flex;justify-content:space-between;gap:10px;background:#173c5b;color:white;padding:13px 18px;font-size:12px}.sm-lesson .sm-app-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:12px;background:#eef6fc;border-bottom:1px solid #d9e7ef}.sm-lesson .sm-app-tabs .gg-btn{min-width:0;min-height:44px;padding:8px;white-space:normal}.sm-lesson .sm-device-body{padding:22px;min-width:0;overflow-wrap:anywhere}.sm-lesson .sm-device-body .gg-choices{grid-template-columns:minmax(0,1fr)}.sm-lesson .sm-device-body .gg-triple strong{font-size:23px;line-height:1.65}.sm-lesson .sm-device-body .gg-btn{white-space:normal;min-height:44px}.sm-lesson .sm-contacts{display:grid;gap:8px;margin-bottom:20px}.sm-lesson .sm-contacts .gg-btn{display:flex;flex-direction:column;gap:4px;text-align:left;align-items:flex-start;padding:13px}.sm-lesson .sm-contacts b{font-size:20px}.sm-lesson .sm-contacts span{font-size:12px;font-weight:400}.sm-lesson .sm-contact-detail{border-top:1px solid #deebf2;padding-top:18px}.sm-lesson .sm-digits{display:block;letter-spacing:.1em;font-variant-numeric:tabular-nums;font-size:22px;margin:12px 0;overflow-wrap:anywhere}.sm-lesson .sm-keypad{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:18px 0}.sm-lesson .sm-keypad button{min-height:52px;font-size:20px}.sm-lesson .sm-dialpad{margin-top:20px;padding-top:12px;border-top:1px solid #deebf2}.sm-lesson .sm-call-head{text-align:center;margin-bottom:24px}.sm-lesson .sm-avatar{display:grid;place-items:center;width:74px;height:74px;background:#e1f2ed;border:1px solid #c3e0d6;border-radius:50%;font-size:32px;color:#246953;margin:10px auto 16px}.sm-lesson .sm-call-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.sm-lesson .sm-call-controls button:last-child{grid-column:1/-1;background:#fff2f1;color:#9d3934;border-color:#edceca}.sm-lesson .sm-remote,.sm-lesson .sm-message-in{background:#edf6fd;border:1px solid #d3e6f2;border-radius:4px 15px 15px 15px;padding:16px;margin:22px 0 16px;min-width:0}.sm-lesson .sm-remote>span{font-size:12px;color:#56738b}.sm-lesson .sm-message-history{display:grid;gap:16px}.sm-lesson .sm-message-out{background:#edf8f1;border:1px solid #c9e3d4;border-radius:15px 4px 15px 15px;padding:16px;min-width:0}.sm-lesson .sm-message-out small{color:#4f745e}.sm-lesson .sm-issue{border:1px solid #d8e6ef;border-radius:12px;padding:12px;margin:12px 0}.sm-lesson .sm-issue>img{width:100%;height:180px;object-fit:cover;border-radius:8px}.sm-lesson .sm-practice-guide{min-width:0;background:#f3f9fc;border:1px solid #d6e8ef;border-radius:16px;padding:22px}.sm-lesson .sm-practice-guide h3{margin-top:0}.sm-lesson .sm-practice-guide p{line-height:1.7;color:#4f687c}.sm-lesson .sm-practice-guide .sm-checklist li{flex-direction:column;gap:4px}.sm-lesson .sm-practice-guide .gg-btn{white-space:normal;min-height:44px}.sm-lesson [draggable="true"]{cursor:grab}.sm-lesson #sm-drop-answer{min-height:70px;border:2px dashed #83b2d7}
@media(max-width:1000px){.sm-lesson .sm-simulator{grid-template-columns:minmax(0,1fr)}.sm-lesson .sm-handset{width:100%;max-width:600px;margin:auto}.sm-lesson .sm-practice-guide .sm-checklist{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.sm-lesson .sm-intro,.sm-lesson .sm-practice-guide{padding:16px}.sm-lesson .sm-checklist li{flex-direction:column;gap:5px}.sm-lesson .sm-substitutions{grid-template-columns:minmax(0,1fr)}.sm-lesson .sm-device-body{padding:14px}.sm-lesson .sm-handset{border-width:4px;border-radius:24px}.sm-lesson .sm-practice-guide .sm-checklist{grid-template-columns:minmax(0,1fr)}.sm-lesson .sm-simulator{gap:18px}.sm-lesson .sm-device-bar{padding:12px;font-size:11px}}
@media(prefers-reduced-motion:reduce){.sm-lesson .fd-celebrate{animation:none}.sm-lesson *{scroll-behavior:auto}}
/* Social simulator: all rules remain scoped to this topic. */
.sm-lesson .sm-device-body label,.sm-lesson .gg-question>label{display:grid;gap:7px;margin:15px 0;color:#365a70;font-size:14px}
.sm-lesson .sm-device-body input,.sm-lesson .sm-device-body textarea,.sm-lesson .sm-device-body select,.sm-lesson .gg-question input,.sm-lesson .gg-question textarea{width:100%;min-width:0;max-width:100%;min-height:44px;border:1px solid #b8ccd9;border-radius:9px;background:#fff;color:#17354a;padding:11px;font:inherit;box-sizing:border-box}
.sm-lesson .sm-device-body textarea{resize:vertical}.sm-lesson .sm-profile-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:20px 0}.sm-lesson .sm-profile-list button{display:flex;align-items:center;text-align:left;gap:9px;padding:9px}.sm-lesson .sm-profile-list span{display:grid;gap:5px}.sm-lesson .sm-profile-list small{font-weight:400}.sm-lesson .sm-profile-avatar{width:52px;height:52px;flex-shrink:0;border-radius:50%;object-fit:cover;background:#e9f5f2}.sm-lesson .sm-profile-card{border-top:1px solid #deebf2;padding-top:20px}.sm-lesson .sm-profile-card>.sm-profile-avatar{width:80px;height:80px}
.sm-lesson .sm-photo{display:block;max-width:100%;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;border-radius:12px}.sm-lesson .sm-photo-picker{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:16px 0}.sm-lesson .sm-photo-picker button{padding:7px;display:grid;gap:7px;white-space:normal;min-width:0;line-height:1.5}.sm-lesson .sm-photo-picker button[aria-pressed="true"]{outline:3px solid #37977c;outline-offset:1px}.sm-lesson .sm-photo-picker img{border-radius:8px}.sm-lesson .sm-photo-picker span{font-size:12px}
.sm-lesson .sm-post{border:1px solid #d6e5ed;border-radius:14px;padding:16px;margin:18px 0;background:#fff;min-width:0}.sm-lesson .sm-post header{display:flex;align-items:center;gap:10px;margin-bottom:14px}.sm-lesson .sm-post header>div{display:grid;gap:4px}.sm-lesson .sm-post header small{font-size:12px;color:#5a7181}.sm-lesson .sm-post .gg-triple{margin-top:12px}.sm-lesson .sm-post-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.sm-lesson .sm-post-actions .gg-btn{padding:7px;min-width:0}.sm-lesson .sm-action-hint{font-size:12px;color:#526f82;line-height:1.7}.sm-lesson .sm-good{color:#24694e}.sm-lesson .sm-error{color:#a44239}.sm-lesson .sm-notifications{background:#f1f8fc;border-radius:10px;padding:12px;margin:12px 0}.sm-lesson .sm-notifications li{font-size:13px;line-height:1.7}.sm-lesson .sm-message-history{max-height:650px;overflow:auto;padding:0 6px 12px 0}.sm-lesson .sm-emoji{font-size:38px}.sm-lesson .sm-message-out .sm-photo{max-height:200px;object-fit:cover}.sm-lesson .sm-video-frame{position:relative}.sm-lesson .sm-video-frame>span{position:absolute;bottom:12px;right:12px;border-radius:20px;padding:6px 12px;color:#fff;background:#153c58}.sm-lesson .sm-live{margin-top:25px;padding:18px;background:#f1f8f4;border:1px solid #c9e2d3;border-radius:12px}.sm-lesson .sm-device-body #sm-sim-notice:empty{display:none}.sm-lesson .sm-device-body #sm-sim-notice:not(:empty){padding:12px;background:#eaf5fb;border-radius:8px;line-height:1.6}.sm-lesson .sm-device-body .gg-choices{gap:8px}
@media(max-width:700px){.sm-lesson .sm-profile-list{grid-template-columns:minmax(0,1fr)}.sm-lesson .sm-post{padding:12px}.sm-lesson .sm-post-actions{grid-template-columns:minmax(0,1fr)}.sm-lesson .sm-photo-picker{gap:5px}.sm-lesson .sm-photo-picker button{padding:4px}.sm-lesson .sm-photo-picker span{font-size:11px}.sm-lesson .sm-live{padding:12px}}
.sm-lesson .sm-speaking article{outline:3px solid #359d81;outline-offset:3px;background:#e7f7f0}.sm-lesson .sm-speaking .gg-avatar{background:#208060;color:white}
