.tools-page{font-family:Manrope,"PingFang SC","Microsoft YaHei",sans-serif;padding-bottom:90px}.tools-header{max-width:1120px;min-height:80px;margin:auto;padding:20px 28px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line)}.tool-home-link{font-size:13px;min-height:44px;display:flex;align-items:center}.tools-page main{max-width:1120px;padding:30px 28px 50px}.tool-heading{margin:0 0 25px;display:flex;justify-content:space-between;align-items:start;gap:16px}.tool-heading h1{font-size:32px;letter-spacing:-1px;line-height:1.25;margin:0 0 12px}.tool-heading p{color:var(--muted);font-size:14px;line-height:1.9;max-width:700px;margin:0}.tool-heading .button{flex-shrink:0}.tool-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.tool-card{display:block;background:white;border:1px solid var(--line);border-radius:16px;padding:23px;margin-bottom:18px;min-width:0}.tool-grid .tool-card{margin:0}.tool-card h2{font-size:20px;line-height:1.4;margin:0 0 12px;letter-spacing:-.4px}.tool-card h3{font-size:16px;margin:17px 0 9px}.tool-card p,.tool-card li{font-size:13px;line-height:1.9;overflow-wrap:anywhere}.tool-card p{color:var(--muted)}.tool-card a{overflow-wrap:anywhere}.tool-card img{max-width:100%;height:auto;object-fit:contain}.tool-card .tool-icon{display:flex;width:45px;height:45px;align-items:center;justify-content:center;background:#e7f0df;border-radius:12px;font-size:22px;margin-bottom:18px}.tool-card.tool-link{text-decoration:none;transition:border-color .15s}.tool-card.tool-link:hover{border-color:#7b9c77}.tool-link strong{display:block;font-size:18px;margin-bottom:10px}.tool-link>span:last-child{display:block;color:var(--muted);font-size:13px;line-height:1.7}.tool-actions{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0}.tool-actions>.button{min-height:44px}.tool-actions button,.tool-actions a{min-height:44px}.tool-status{font-size:13px;line-height:1.8;color:#35633e;padding:13px 16px;background:#edf6e8;border-radius:9px;margin:14px 0}.tool-status.error{color:#9c3d2e;background:#fff0e9}.tool-list{display:grid;gap:15px}.tool-list-item{padding:17px 0;border-bottom:1px solid var(--line);min-width:0}.tool-list-item:last-child{border:0}.tool-pills{display:flex;flex-wrap:wrap;gap:8px;margin:15px 0}.tool-pills button,.tool-pills a{min-height:44px;padding:10px 14px;background:#edf1ec;border-radius:9px;font-size:12px;text-decoration:none}.tool-pills .selected,.tool-pills [aria-pressed=true]{background:#d3e7c4;color:#254928}.tool-search{display:flex;gap:12px;align-items:center}.tool-search>label{flex:1}.tool-search input{margin-bottom:12px}.tool-muted{font-size:12px;line-height:1.9;color:var(--muted)}.tool-note{padding:15px 18px;border-left:3px solid #80a36b;background:#eef4e8;color:#52664d;font-size:12px;line-height:1.9;margin:20px 0}.tool-table{width:100%;border-collapse:collapse;font-size:12px}.tool-table th,.tool-table td{text-align:left;border-bottom:1px solid var(--line);padding:13px 10px;line-height:1.7;overflow-wrap:anywhere}.tool-scroll{max-width:100%;overflow:auto}.tool-metrics{display:flex;flex-wrap:wrap;gap:15px;margin:25px 0}.tool-metrics>div{background:white;border:1px solid var(--line);border-radius:12px;padding:20px;flex:1;min-width:120px}.tool-metrics strong{display:block;font-size:26px;margin-bottom:8px}.tool-metrics span{font-size:12px;color:var(--muted)}.tools-bottom{position:fixed;bottom:0;left:0;right:0;z-index:15;background:#fffffff5;backdrop-filter:blur(12px);border-top:1px solid var(--line);padding:10px max(14px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom));display:flex;justify-content:center;gap:20px}.tools-bottom a{min-width:90px;min-height:44px;display:flex;align-items:center;justify-content:center;text-decoration:none;font-size:13px;border-radius:9px;color:#65756a}.tools-bottom a[aria-current]{background:#e7f0df;color:#31542f;font-weight:750}.tool-avatar{width:76px;height:76px;border-radius:50%;object-fit:cover!important;background:#e8eee2;display:flex;align-items:center;justify-content:center;font-size:28px;font-weight:800}.letter-grid{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:25px}.letter-preview{position:sticky;top:20px;align-self:start;background:#e4e9e4;border-radius:14px;padding:20px}.letter-preview canvas{display:block;width:100%;height:auto;max-height:75vh;object-fit:contain}.letter-preview .button{flex:1}.tool-field-error{font-size:12px;color:#a44333;margin:0 0 12px}.tool-card details{border-top:1px solid var(--line);padding-top:6px}.tool-card summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-weight:750;font-size:13px}.tool-progress{height:5px;background:#e1e9dc;border-radius:5px;margin:20px 0}.tool-progress>span{display:block;background:#6a9154;height:100%;border-radius:5px}.quiz-choice{width:100%;text-align:left;min-height:54px;padding:16px;margin-bottom:10px;border:1px solid var(--line);background:white;border-radius:12px;font-size:14px;line-height:1.8}.quiz-choice[aria-pressed=true]{border-color:#6b945a;background:#eff6e9}.tool-empty{text-align:center;padding:40px 15px;color:var(--muted);font-size:14px;line-height:2}.tool-photo-credit{font-size:10px;color:var(--muted);line-height:1.7}.tool-two-col{display:grid;grid-template-columns:1fr 1fr;gap:18px}.tool-tabs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:20px}.tool-tabs button,.tool-tabs a{font:inherit;font-size:12px;min-height:44px;padding:10px 15px;border:1px solid var(--line);border-radius:8px;background:white;text-decoration:none}.tool-tabs [aria-current],.tool-tabs .active{background:#e4eedc;border-color:#a6c18c}
@media(max-width:760px){.tools-header{padding:18px 20px;min-height:75px}.tools-page main{padding:25px 18px 40px}.tool-heading{flex-wrap:wrap;margin-bottom:21px}.tool-heading h1{font-size:28px}.tool-heading p{font-size:13px}.tool-grid{grid-template-columns:1fr 1fr;gap:12px}.tool-card{padding:19px 16px;border-radius:13px}.tool-grid .tool-card{padding:18px 13px}.tool-card .tool-icon{width:37px;height:37px;font-size:19px;margin-bottom:13px}.tool-link strong{font-size:14px}.tool-link>span:last-child{font-size:11px}.tool-card h2{font-size:18px}.tool-actions{gap:8px}.tool-actions .button{font-size:12px;padding:11px 13px}.tools-bottom{gap:5px;justify-content:space-around}.tools-bottom a{min-width:65px;font-size:12px;flex:1}.letter-grid{display:flex;flex-direction:column}.letter-preview{position:static;order:-1;width:100%;padding:15px}.letter-preview canvas{max-height:60vh;object-fit:contain}.letter-preview .button{font-size:12px}.tool-table{font-size:11px}.tool-table th,.tool-table td{padding:12px 7px}.tool-metrics{gap:8px}.tool-metrics>div{padding:14px;min-width:90px}.tool-metrics strong{font-size:22px}.tool-two-col{grid-template-columns:1fr}.tool-note{font-size:11px;padding:13px 15px}.tool-status{font-size:12px}.tool-search{flex-wrap:wrap}.tool-scroll{margin-right:-3px}input,select,textarea{font-size:16px}}

.letter-mobile-switch{display:none}.letter-mobile-switch [aria-pressed=true]{background:#dcebcf;border-color:#779b64}.tool-status:empty{display:none}.tools-page .skip-link:not(:focus){clip-path:inset(50%);position:absolute;width:1px;height:1px;overflow:hidden}@media(max-width:760px){.letter-mobile-switch{display:flex;position:sticky;top:0;padding:10px 0;background:#f5f6f7;z-index:4}.letter-mobile-switch button{flex:1}.letter-grid[data-mode=edit] .letter-preview{display:none}.letter-grid[data-mode=preview] form{display:none}.letter-preview canvas{max-height:none;width:100%;height:auto}.letter-preview{padding:10px}.tool-heading .button{font-size:12px}}

.letter-preview-cta{display:none}.letter-extra{margin:20px 0 0}.letter-extra summary{justify-content:space-between;gap:12px;padding:10px 0;line-height:1.7}.letter-extra summary::after{content:'+';font-size:22px;flex-shrink:0}.letter-extra[open] summary::after{content:'−'}.letter-extra[open] summary{margin-bottom:16px}
@media(max-width:760px){.letter-preview-cta{display:block;margin:20px 0}.letter-preview-cta>.button{width:100%}.letter-export-actions[data-mode=edit]{display:none}.letter-extra summary{font-size:12px}.letter-mobile-switch{scroll-margin-top:10px}}

.tool-grid .letter-tool-link{padding:0;overflow:hidden}.letter-tool-link canvas{display:block;width:100%;height:210px;object-fit:cover;object-position:top}.letter-tool-link strong{margin:18px 18px 10px}.letter-tool-link>span:last-child{margin:0 18px 18px}@media(max-width:760px){.letter-tool-link canvas{height:145px}.letter-tool-link strong{margin:14px 13px 8px}.letter-tool-link>span:last-child{margin:0 13px 16px}}

.reference-player-grid,.reference-racket-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.reference-player-grid .tool-card,.reference-racket-grid .tool-card{margin:0}.reference-photo{margin:0 0 18px}.reference-photo>img{display:block;width:100%;max-height:420px;object-fit:cover;object-position:top;border-radius:10px}.reference-player-grid .reference-photo>img{height:230px}.reference-photo figcaption{margin-top:12px}.reference-gear-image{max-width:250px!important;max-height:220px;object-fit:contain}.reference-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.reference-filters label{min-width:0}.reference-filters select{max-width:100%}.reference-player-grid .tool-actions .button{padding:10px 12px}@media(max-width:760px){.reference-player-grid{gap:12px}.reference-player-grid .tool-card{padding:13px}.reference-player-grid .reference-photo>img{height:160px}.reference-player-grid h2{font-size:18px}.reference-player-grid p{font-size:11px}.reference-player-grid .tool-actions{gap:7px}.reference-player-grid .button{flex:1;font-size:11px;white-space:normal}.reference-racket-grid{grid-template-columns:1fr}.reference-filters{gap:10px}.reference-filters label{font-size:11px}}
/* Clear sections and compact secondary tools keep the phone page scannable. */
.tools-page .tool-heading{display:block}.tools-page .tool-heading h1{text-wrap:balance}.tool-section{margin-top:32px}.tool-section>h2{font-size:20px;letter-spacing:-.5px;margin:0 0 16px}.compact-tools .tool-card{padding:18px;position:relative}.compact-tools .tool-icon{font-size:19px;width:34px;height:34px;margin:0 0 12px}.compact-tools .tool-link strong{font-size:15px;margin-bottom:6px}.compact-tools .tool-link>span:last-child{font-size:12px}.tool-footnote{font-size:12px;line-height:1.8;color:var(--muted);margin-top:28px}.letter-collection{margin-top:24px}.letter-collection canvas{height:200px;object-position:center 15%}.letter-collection strong{font-size:17px}.letter-collection>span{font-size:12px}
@media(max-width:760px){.tools-header{min-height:72px}.tools-page main{padding-top:25px}.tool-heading h1{font-size:29px;letter-spacing:-1.2px}.tool-heading p{font-size:13px;line-height:1.75;max-width:330px}.letter-collection canvas{height:155px}.letter-collection strong{font-size:15px;line-height:1.5}.letter-tool-link>span:last-child{font-size:12px}.compact-tools{gap:10px}.compact-tools .tool-card{padding:15px 13px;min-height:138px}.compact-tools .tool-link strong{font-size:14px}.compact-tools .tool-link>span:last-child{font-size:12px;line-height:1.6}.tool-section>h2{font-size:19px}.tools-bottom{min-height:72px}.tools-bottom a{min-width:0;min-height:51px;font-size:11px;flex:1}.letter-grid{gap:16px}.letter-preview{padding:12px}.tool-card input,.tool-card select,.tool-card textarea{font-size:16px}}
@media(min-width:761px){.tool-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.letter-collection{grid-template-columns:repeat(2,minmax(0,1fr));max-width:760px}.letter-collection canvas{height:260px}.compact-tools .tool-card{min-height:150px}.tools-bottom{gap:16px}.tools-bottom a{min-width:110px}}
.share-link-fallback textarea { box-sizing:border-box; width:100%; max-width:100%; resize:vertical; overflow-wrap:anywhere; font:inherit; }

/* Match the poster workspace navigation and brand rhythm. */
.tools-bottom a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px}.tools-bottom svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.share-link-fallback{margin-top:16px}.share-link-fallback label{display:grid;gap:8px}.share-link-fallback textarea{padding:12px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink)}
