/* TOEFL iBT centre (toefl.js) */
.tf-wrap{max-width:1080px;margin:0 auto;padding:6px 4px 60px;color:#1f2a44}
.tf-hero{background:linear-gradient(135deg,#123a6b,#1f6aa5);color:#fff;border-radius:22px;padding:26px 28px;margin-bottom:18px}
.tf-hero h1{margin:8px 0 6px;font-size:32px;color:#fff !important}.tf-hero p{margin:0 0 14px;opacity:.95;line-height:1.6;color:#fff !important}.tf-hero b{color:#ffe08a}
.tf-tag{display:inline-block;background:rgba(255,255,255,.18);border-radius:999px;padding:4px 12px;font-size:13px;font-weight:700;letter-spacing:.04em}
.tf-filters{display:flex;flex-wrap:wrap;gap:8px}.tf-filters button{border:1px solid rgba(255,255,255,.5);background:transparent;color:#fff;border-radius:999px;padding:6px 14px;cursor:pointer}
.tf-filters button.active{background:#fff;color:#123a6b;font-weight:700}
.tf-card{background:#fff;border:1px solid #e3e8f1;border-radius:20px;padding:20px 22px;margin:0 0 16px;box-shadow:0 6px 20px rgba(20,40,80,.05)}
.tf-card h2{margin:0 0 10px;font-size:22px}.tf-card h3{margin:18px 0 8px;font-size:17px}.tf-card p{line-height:1.65}
.tf-card-head{display:flex;justify-content:space-between;align-items:center;gap:10px}
.tf-link{background:none;border:0;color:#8a93a6;cursor:pointer;font-size:13px;text-decoration:underline}
.tf-note{color:#6b7488;font-size:13.5px}
.tf-table{width:100%;border-collapse:collapse;font-size:14px;margin:6px 0}.tf-table th,.tf-table td{border:1px solid #e3e8f1;padding:7px 9px;text-align:left;vertical-align:top}
.tf-table th{background:#f3f6fb}.tf-center td,.tf-center th{text-align:center}.tf-sc{width:42px;text-align:center;font-weight:800;color:#1f6aa5}
.tf-rubric{margin:8px 0;border:1px solid #e3e8f1;border-radius:12px;padding:8px 12px}.tf-rubric summary{cursor:pointer;font-weight:700}
.tf-list{padding-left:20px;line-height:1.7}.tf-list li{margin:4px 0}
.tf-calc{border:1px solid #e3e8f1;border-radius:14px;padding:12px 14px;margin:10px 0}.tf-calc h3{margin:0 0 8px}
.tf-calc-row{display:flex;flex-wrap:wrap;gap:12px}.tf-calc-row label{display:flex;flex-direction:column;font-size:13px;color:#6b7488;gap:4px}
.tf-calc-row select,.tf-calc-row input{font-size:16px;padding:6px 8px;border:1px solid #cdd5e3;border-radius:8px;width:92px}
.tf-out{margin:10px 0 0;font-size:15px}.tf-out b{color:#1f6aa5;font-size:18px}
.tf-tasks{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px}
.tf-task{border:1px solid #e3e8f1;border-radius:16px;padding:14px;background:#fbfcfe}.tf-task h3{margin:0 0 6px}.tf-task h3 small{display:block;color:#6b7488;font-weight:600;font-size:12.5px}
.tf-task p{font-size:13.5px;color:#4b556b;margin:0 0 10px}
.tf-task button{display:flex;justify-content:space-between;gap:8px;width:100%;text-align:left;margin:6px 0;padding:9px 11px;border-radius:10px;border:1px solid #d5ddeb;background:#fff;cursor:pointer;font-size:14px}
.tf-task button:hover{border-color:#1f6aa5;background:#eef5fc}.tf-task button em{font-style:normal;font-weight:700;color:#1f6aa5;white-space:nowrap}
.tf-soon{margin-top:12px;padding:10px 12px;border-radius:12px;background:#fff7e6;color:#7a5410;font-size:14px}
.tf-est{display:flex;gap:16px;align-items:center;flex-wrap:wrap;margin:6px 0 12px}
.tf-est>div{min-width:140px;padding:12px 16px;border-radius:14px;background:#eef5fc;text-align:center}.tf-est>div b{display:block;font-size:28px;color:#1f6aa5}
.tf-est>div small{display:block;color:#6b7488;font-size:12.5px}.tf-est p{flex:1;margin:0;font-size:14px}
.tf-bar{display:grid;grid-template-columns:90px 1fr 110px;gap:10px;align-items:center;margin:7px 0;font-size:14px}
.tf-bar i{height:10px;border-radius:99px;background:#edf0f6;overflow:hidden}.tf-bar b{display:block;height:100%;background:linear-gradient(90deg,#1f6aa5,#38a3d1)}.tf-bar em{font-style:normal;color:#6b7488;font-size:13px}
.tf-weak{background:#fdf1f1;border-radius:12px;padding:9px 12px;font-size:14px}
.tf-bar-top{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:2px 0 6px;color:#6b7488;font-size:14px}
.tf-bar-top button{border:1px solid #d5ddeb;background:#fff;border-radius:999px;padding:6px 14px;cursor:pointer}
.tf-h1{font-size:26px;margin:4px 0 10px}.tf-dir{background:#f3f6fb;border-radius:12px;padding:10px 12px;font-size:14.5px}
.tf-para{font-size:19px;line-height:2.25;background:#fff;border:1px solid #e3e8f1;border-radius:16px;padding:18px 20px}
.tf-cw{position:relative;display:inline-block;white-space:nowrap}
.tf-cw input::placeholder{color:#9db4cf;letter-spacing:.12em}
.tf-cw input{font:inherit;font-size:19px;border:0;border-bottom:2px solid #1f6aa5;background:#eef5fc;padding:0 2px;letter-spacing:.12em;outline:none;border-radius:4px 4px 0 0}
.tf-cw i{display:none}.tf-cw.ok input{background:#e3f6ec;border-color:#1f9d67;color:#16784c}.tf-cw.bad input{background:#fde6e6;border-color:#d85c5c;color:#b33838;text-decoration:line-through}
.tf-cw sup{position:absolute;left:0;top:-1.05em;font-size:12px;color:#16784c;white-space:nowrap;line-height:1}.tf-cw sup u{text-decoration:none;font-weight:800}
.tf-pair{display:grid;grid-template-columns:1fr 1fr;gap:16px;align-items:start;margin:14px 0;padding-bottom:14px;border-bottom:1px dashed #dfe5ef}
.tf-acad{grid-template-columns:1.1fr 1fr}
@media(max-width:780px){.tf-pair,.tf-acad{grid-template-columns:1fr}.tf-bar{grid-template-columns:80px 1fr 90px}}
.tf-doc{background:#fff;border:1px solid #dfe5ef;border-radius:14px;padding:14px 16px;font-size:15px;line-height:1.6;position:sticky;top:8px}
.tf-doc h4{margin:0 0 6px}.tf-pre{white-space:pre-wrap}.tf-mono{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:13.5px}
.tf-mailhead{border-bottom:1px solid #e3e8f1;padding-bottom:8px;margin-bottom:8px}
.tf-notice{border:2px solid #1f2a44;background:#fffdf5}.tf-menu{background:#fffaf2}.tf-post{background:#f7f9ff}
.tf-chat{background:#f5f7fb}.tf-msg{background:#fff;border-radius:12px;padding:6px 10px;margin:6px 0;box-shadow:0 1px 2px rgba(0,0,0,.05)}.tf-msg p{margin:2px 0 0}.tf-msg small{color:#8a93a6}
.tf-passage p{margin:0 0 10px}
.tf-q{margin:0 0 12px;padding:10px 12px;border:1px solid #e3e8f1;border-radius:12px;background:#fff}.tf-q p{margin:0 0 6px}
.tf-opt{display:block;padding:6px 8px;border-radius:8px;cursor:pointer;font-size:14.5px}.tf-opt:hover{background:#f3f6fb}
.tf-opt.ok{background:#e3f6ec}.tf-opt.bad{background:#fde6e6}
.tf-why{margin-top:6px;padding:8px 10px;border-radius:8px;background:#f7f9fc;font-size:13.5px;line-height:1.55}
.tf-bas{border:1px solid #e3e8f1;border-radius:14px;padding:12px 14px;margin:10px 0;background:#fff}.tf-bas.ok{border-color:#9bd6b8}.tf-bas.bad{border-color:#eab0b0}
.tf-a{margin:0 0 8px}.tf-a span,.tf-ans>span{font-weight:800;color:#1f6aa5}
.tf-ans{min-height:44px;display:flex;flex-wrap:wrap;gap:6px;align-items:center;padding:6px 8px;border-radius:10px;background:#f3f6fb;margin-bottom:8px}.tf-ans i{color:#9aa3b5;font-size:13px}
.tf-pool{display:flex;flex-wrap:wrap;gap:6px}
.tf-tile{border:1px solid #c9d3e4;background:#fff;border-radius:9px;padding:6px 11px;font-size:15px;cursor:pointer}.tf-tile.on{background:#1f6aa5;color:#fff;border-color:#1f6aa5}
.tf-end{font-weight:800}
.tf-actions{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0}.tf-actions button{border:1px solid #c9d3e4;background:#fff;border-radius:12px;padding:10px 18px;cursor:pointer;font-size:15px}
.tf-actions .tf-primary{background:#1f6aa5;color:#fff;border-color:#1f6aa5;font-weight:700}
.tf-score{border-color:#b9d4ee;background:#f6fafe}
html[data-theme="dark"] .tf-card,html[data-theme="dark"] .tf-q,html[data-theme="dark"] .tf-doc,html[data-theme="dark"] .tf-bas,html[data-theme="dark"] .tf-para,html[data-theme="dark"] .tf-task,html[data-theme="dark"] .tf-task button{background:#1c2333;color:#e6ebf5;border-color:#2c3650}
/* mock test (toefl-mock.js) */
.tfm-entry{border-color:#b9d4ee;background:linear-gradient(135deg,#f3f8fe,#fff)}.tfm-entry h2 small{font-size:14px;color:#6b7488;font-weight:600}
.tfm-bar{position:sticky;top:0;z-index:5;display:flex;align-items:center;gap:12px;flex-wrap:wrap;background:#123a6b;color:#fff;border-radius:14px;padding:10px 14px;margin-bottom:10px}
.tfm-bar span{opacity:.9}.tfm-bar button{margin-left:auto;border:1px solid rgba(255,255,255,.5);background:transparent;color:#fff;border-radius:999px;padding:5px 12px;cursor:pointer}
.tfm-clock{font-variant-numeric:tabular-nums;font-weight:800;background:rgba(255,255,255,.15);border-radius:8px;padding:2px 8px}.tfm-clock:empty{display:none}.tfm-clock.low{background:#d85c5c}
.tfm-status{min-height:22px;margin:4px 2px 10px;color:#1f6aa5;font-weight:700}.tfm-status b{color:#d85c5c}
.tfm-h{margin:22px 0 8px;color:#123a6b}
.tfm-listen{text-align:center}.tfm-listen .tf-q{text-align:left}.tfm-count{color:#6b7488;font-size:14px}
.tfm-speaker{font-size:30px;margin:26px 0 14px}.tfm-speaker.rec{color:#d85c5c;animation:tfmPulse 1.2s infinite}
@keyframes tfmPulse{50%{opacity:.45}}
.tfm-text{width:100%;min-height:260px;font:16px/1.6 inherit;padding:12px;border:1px solid #c9d3e4;border-radius:12px;box-sizing:border-box}
.tfm-wc{text-align:right;color:#6b7488;font-size:13px}
.tfm-post{border:1px solid #e3e8f1;border-radius:12px;padding:10px 12px;margin:8px 0;background:#f7f9fc}.tfm-post.st{margin-left:24px;background:#fff}.tfm-post p{margin:4px 0 0}
.tfm-overall{text-align:center;padding:16px;border-radius:16px;background:#eef5fc;margin:10px 0}.tfm-overall b{display:block;font-size:44px;color:#1f6aa5}.tfm-overall small{color:#6b7488}
.tfm-bands{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:10px}
.tfm-band{border:1px solid #e3e8f1;border-radius:14px;padding:12px;text-align:center}.tfm-band b{display:block;font-size:30px;color:#123a6b}.tfm-band small{display:block;color:#6b7488}.tfm-band p{margin:6px 0 0;font-size:13px;color:#4b556b}
.tfm-chip{display:inline-block;margin:3px;padding:4px 10px;border-radius:999px;background:#e3f6ec;color:#16784c;font-size:13px}.tfm-chip.mid{background:#fff3dc;color:#9a5c00}.tfm-chip.bad{background:#fde6e6;color:#b33838}
.tfm-rev{border-left:4px solid #dfe5ef;padding:6px 10px;margin:8px 0}.tfm-rev.ok{border-color:#9bd6b8}.tfm-rev.bad{border-color:#eab0b0}.tfm-rev p{margin:2px 0}.tfm-rev audio{height:34px;margin:4px 0}
.tfm-okw{color:#16784c}.tfm-badw{color:#b33838}
.tfm-mine{background:#f7f9fc;border-radius:10px;padding:10px 12px;line-height:1.6}.tfm-ai{background:#f6fafe;border:1px solid #d6e6f6;border-radius:12px;padding:10px 12px;margin:8px 0}
.tfm-score{color:#1f6aa5;font-weight:800}.tfm-script{border:1px dashed #dfe5ef;border-radius:10px;padding:8px 10px;margin:8px 0;font-size:14px}.tfm-script p{margin:2px 0}
.tfm-sets{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:10px 0}.tfm-sets span{font-weight:700;color:#344}
.tfm-set{border:1px solid #b9d4ee;background:#fff;border-radius:999px;padding:6px 16px;font-weight:700;cursor:pointer;color:#1f4f82}
.tfm-set.on{background:#1f6fc2;border-color:#1f6fc2;color:#fff}
