*{box-sizing:border-box}
body{margin:0;background:#f7f8fa;color:#182333;font:15px/1.6 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
p,h1,h2,h3{margin:0}
header{background:#fff;border-bottom:1px solid #e2e5ee}
.header-inner{max-width:1040px;height:76px;margin:0 auto;padding:0 24px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.brand{display:inline-flex;align-items:center;text-decoration:none;color:#182333;font-size:25px;line-height:1.2;font-weight:850;letter-spacing:-.8px;white-space:nowrap}
.brand span{color:#6552d7}
.language-control{display:flex;align-items:center;flex:none}
select{font:inherit;line-height:1.25;background:#fff;border:1px solid #d8d3ea;border-radius:8px;height:44px;padding:8px;color:#51466e}
main{max-width:1040px;margin:0 auto;padding:32px 24px 48px;display:flex;flex-direction:column;gap:28px}
nav{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
nav a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;text-decoration:none;color:#655c7f;background:#fff;border:1px solid #dedbe9;padding:10px 16px;border-radius:10px;font-size:14px;line-height:1.35;text-align:center}
nav a[aria-current=page]{background:#ebe7ff;border-color:#b4a8ee;color:#4d35ac;font-weight:700}
.page-heading{display:flex;flex-direction:column;gap:12px}
.eyebrow{color:#7261b2;letter-spacing:2px;font-size:11px;line-height:1.5;font-weight:750}
h1{font-size:40px;line-height:1.3;letter-spacing:-1.5px;text-wrap:balance}
.intro{color:#6c7585;line-height:1.7;word-break:keep-all;overflow-wrap:anywhere}
form{margin:0;background:#f3f0ff;border:1px solid #cfc7f0;padding:24px;border-radius:16px}
form>label{display:block;font-weight:750;line-height:1.5;color:#443666;margin-bottom:12px}
.input-row{display:flex;align-items:stretch;gap:12px}
.url-box{display:flex;align-items:center;flex:1;min-width:0;height:60px;background:#fff;border:2px solid #9a8ddd;border-radius:10px;padding:4px 6px 4px 12px}
.url-box:focus-within{outline:3px solid #cfc7f0;border-color:#6552d7}
input{min-width:0;flex:1;width:100%;height:48px;font:inherit;font-size:16px;line-height:1.5;padding:12px 0;border:0;border-radius:6px;background:#fff;outline:none;color:#25213c}
button{display:inline-flex;align-items:center;justify-content:center;font:inherit;font-size:15px;line-height:1.35;text-align:center;cursor:pointer;border:0;border-radius:10px;background:#6047d1;color:#fff;padding:12px 18px;font-weight:650;min-height:48px}
button:focus-visible,a:focus-visible{outline:3px solid #b8a9f4;outline-offset:3px}
button:disabled{opacity:.45;cursor:default}
.clear{height:44px;min-height:44px;flex:none;background:#f1eff8;color:#62587d;padding:8px 12px;white-space:nowrap;font-size:12px}
#thumb-submit{min-height:60px;white-space:nowrap}
#thumb-help{display:block;color:#77708d;font-size:12px;line-height:1.65;margin-top:12px;word-break:keep-all;overflow-wrap:anywhere}
.input-section .url-history{margin:16px 0 0}
.notice{padding:16px 18px;border:1px solid #e1def0;border-radius:12px;margin:16px 0 0;color:#746b88;background:#fff;font-size:14px;line-height:1.7;word-break:keep-all;overflow-wrap:anywhere}
.results-head{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.results-head h2{font-size:20px;line-height:1.4}
#thumb-count{color:#8b92a0;font-size:13px;line-height:1.5;white-space:nowrap;flex:none}
#thumb-status{min-height:24px;color:#69627d;font-size:14px;line-height:1.7;margin:12px 0 16px;word-break:keep-all;overflow-wrap:anywhere}
#thumb-status.error{color:#b53c48}
.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:20px}
.card{display:flex;flex-direction:column;border:1px solid #e1e3ed;background:#fff;border-radius:14px;overflow:hidden;min-width:0}
.preview{display:block;width:100%;aspect-ratio:16/9;height:auto;object-fit:contain;background:#e9ecf1}
.card-body{padding:18px;display:flex;flex-direction:column;gap:12px;flex:1}
.card-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-height:24px}
.card h3{font-size:16px;line-height:1.5}
.badge{display:inline-flex;align-items:center;font-size:10px;line-height:1.4;min-height:22px;padding:4px 7px;background:#ebe7ff;color:#5b43ba;border-radius:5px}
.dimensions{color:#858d9b;font-size:13px;line-height:1.5}
.actions{display:flex;align-items:stretch;gap:10px;margin-top:auto}
.actions button{flex:1;min-width:0;min-height:48px;font-size:14px}
.actions a{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:10px 12px;color:#62587d;font-size:13px;line-height:1.35;white-space:nowrap}
.empty{grid-column:1/-1;padding:40px 16px;text-align:center;border:1px dashed #d8dce6;border-radius:12px;color:#8c94a3;line-height:1.7}
.note,footer{font-size:12px;line-height:1.7;color:#8a92a0;margin:0}
footer a{display:inline-block;padding:4px 0;color:#8a83a1}
.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:700px){
 .header-inner{height:68px;padding:0 16px;gap:10px}.brand{font-size:21px;letter-spacing:-.6px}
 main{padding:24px 16px 36px;gap:24px}nav{gap:8px}nav a{padding:10px 12px;font-size:13px}
 h1{font-size:30px;line-height:1.35;letter-spacing:-1px}.page-heading{gap:10px}.intro{font-size:14px}
 form{padding:18px 14px}.input-row{flex-direction:column;gap:12px}.url-box{flex:auto;width:100%;height:60px;padding-left:10px}
 #thumb-submit{width:100%;min-height:52px}.clear{min-width:60px}#thumb-help{font-size:12px}
 .notice{padding:14px;line-height:1.7}.results-head h2{font-size:19px}#thumb-status{margin:10px 0 14px}
 .grid{grid-template-columns:1fr;gap:16px}.card-body{padding:16px}.actions button{font-size:14px}
}
