.decode-page{background:#f6f7f9;color:#242632}
.decode-page .page-layout,.decode-page .page-layout *{box-sizing:border-box;letter-spacing:0}
.decode-page .page-layout{margin-top:28px;grid-template-columns:180px minmax(0,1fr) 180px}
.decode-page .hero-card{padding:0;background:transparent;color:#242632;border-radius:0;box-shadow:none}
.decode-page .hero-card h1{color:#242632;font-size:28px;font-weight:700;line-height:1.2;margin:0 0 10px}
.decode-page .card-subtitle{font-size:14px;line-height:1.6;color:#677080;max-width:560px;margin:0 0 22px}
.decode-page .decode-work-box{background:transparent;padding:0;border:0;border-radius:0;box-shadow:none}
.decode-page .scanner-start{margin:0 0 12px}
.decode-page #cameraBtn{width:100%;background:#7926d4;min-height:52px;border-radius:8px;color:white;font-size:15px;font-weight:600;box-shadow:0 4px 12px #7926d41a}
.decode-page #cameraBtn:hover{background:#6620b5}
.decode-page .upload-zone{background:#fff;border:1px dashed #b9a4d4;border-radius:8px;padding:24px 20px}
.decode-page .upload-zone:hover,.decode-page .upload-zone.is-drag{background:#f8f4fd;border-color:#7926d4}
.decode-page .upload-zone:focus-within{outline:3px solid #cfb6ed;outline-offset:3px}
.decode-page .upload-icon{width:44px;height:44px;margin:0 auto 12px;background:transparent;border-radius:0}
.decode-page .upload-icon img{display:block;width:44px;height:44px}
.decode-page .upload-title{font-size:16px;line-height:1.4;font-weight:600;margin-bottom:7px}
.decode-page .upload-text{font-size:12px;color:#6a7180}
.decode-page .upload-small{font-size:11px;color:#7d8593;line-height:1.5;margin-top:12px}
.decode-page .page-layout :where(button,.button-link){border-radius:6px;font-weight:600;line-height:1.4;gap:8px;white-space:normal;overflow-wrap:anywhere}
.decode-page .page-layout :where(button,.button-link,.seo-links a):focus-visible{outline:3px solid #7926d4;outline-offset:3px}
.decode-page .page-layout :where(div,section,span,a,strong){min-width:0}
.decode-page .page-layout :where(p,h1,h2,h3,strong,span,a){overflow-wrap:anywhere}
.decode-page .preview-box{border-radius:8px;background:#fff;padding:12px}
.decode-page .preview-grid{grid-template-columns:100px minmax(0,1fr);gap:14px}
.decode-page .preview-image-wrap{width:100px;height:100px;border-radius:6px;background:#fafafa}
.decode-page .preview-info strong{font-size:14px}
.decode-page .preview-info .action-row{margin-top:10px;gap:8px}
.decode-page .preview-info button{min-height:40px;font-size:12px;padding:9px 12px}
.decode-page .status-box{border-radius:6px;font-weight:500;font-size:13px;padding:12px 14px}
.decode-page .restore-suggestion{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:12px;padding:14px;border:1px solid #d9c8ed;border-radius:7px;background:#faf7ff}.decode-page .restore-suggestion[hidden]{display:none}.decode-page .restore-suggestion div{min-width:0}.decode-page .restore-suggestion strong,.decode-page .restore-suggestion span{display:block}.decode-page .restore-suggestion strong{font-size:13px;color:#3b2456}.decode-page .restore-suggestion span{margin-top:4px;color:#667085;font-size:11px;line-height:1.45}.decode-page .restore-suggestion .button-link{flex:0 0 auto;display:inline-flex;min-height:40px;align-items:center;justify-content:center;padding:8px 13px;background:#7926d4;color:#fff;text-decoration:none;font-size:12px}
.decode-page .result-box{border-radius:8px;border-color:#dce4df;margin-top:20px}
.decode-page .result-head{background:#edf7f1;border-color:#d4e8dc;padding:16px 18px}
.decode-page .result-head strong{font-size:16px;font-weight:650;color:#256546}
.decode-page .result-head span{font-size:12px;color:#557464}
.decode-page .result-content{padding:18px}
.decode-page .result-type{background:#f0e9f9;color:#6c2bb3;border-radius:5px;font-size:12px;min-height:28px;padding:5px 9px;font-weight:600}
.decode-page .result-details{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 22px;margin-top:14px}
.decode-page .detail-card{padding:13px 0;border:0;border-bottom:1px solid #ebedf1;border-radius:0;background:transparent}
.decode-page .detail-card strong{font-size:11px;text-transform:none;letter-spacing:0;color:#77808d;font-weight:500;margin-bottom:6px}
.decode-page .detail-card span,.decode-page .detail-card a{font-size:13px;font-weight:400;line-height:1.6}
.decode-page .detail-card a{color:#7527c3;text-decoration:underline;text-underline-offset:3px}
.decode-page .result-raw{background:#f7f8fa;border:1px solid #e8ebef;border-radius:6px;font-size:13px;padding:14px;max-height:300px;overflow:auto}
.decode-page #resultActions{gap:8px}
.decode-page #resultActions>*{flex:1;min-height:46px;font-size:13px}
.decode-page #resultActions button.success{background:#7926d4}
.decode-page #resultActions .button-link.success{background:#edf6f1;color:#256546;border:1px solid #cce3d5}
.decode-page .security-note{border-radius:6px;font-size:12px;line-height:1.6;background:#fffbef;border-color:#ede2bc;color:#77652e}
.decode-page .decode-history{border:0;border-top:1px solid #e0e3ea;border-radius:0;background:transparent;padding:20px 0 0;margin-top:24px;overflow:visible}
.decode-page .decode-history-head{gap:8px;margin-bottom:10px}
.decode-page .decode-history-head strong{font-size:14px;font-weight:600;color:#313541}
.decode-page .decode-history-clear{width:auto;min-width:70px;min-height:44px;padding:8px;background:transparent;color:#7425c1;font-weight:500;font-size:12px}
.decode-page .decode-history-clear:hover{background:#f0eafa}
.decode-page .decode-history-list{gap:0;border:1px solid #e1e4ea;border-radius:8px;overflow:hidden}
.decode-page .decode-history-item{border:0;border-bottom:1px solid #edf0f3;border-radius:0;padding:13px 14px;min-height:64px;gap:3px}
.decode-page .decode-history-item:last-child{border-bottom:0}
.decode-page .decode-history-item:hover{background:#f8f4fc}
.decode-page .decode-history-item span{font-weight:500;font-size:13px}
.decode-page .decode-history-item small{font-size:11px;color:#667080}
.decode-page .tools-grid{margin-top:28px;padding:20px 0;border-top:1px solid #e3e6ec;border-bottom:1px solid #e3e6ec;gap:20px}
.decode-page .tool-card{padding:0;background:transparent;border:0;border-radius:0}
.decode-page .tool-card strong{font-size:13px;font-weight:600}
.decode-page .tool-card span{font-size:12px;line-height:1.6}
.decode-page .seo-info{border:0;border-radius:0;padding:24px 0;background:transparent;margin-top:0;font-size:14px;line-height:1.8}
.decode-page .seo-info h2{font-size:21px;font-weight:650;line-height:1.4;margin:32px 0 12px}
.decode-page .seo-info>h2:first-child{margin-top:0}
.decode-page :where(.seo-grid,.seo-steps,.seo-type-grid,.seo-security-grid){gap:8px 24px;margin:16px 0 0;align-items:stretch}
.decode-page .seo-info :where(.seo-card-item,.seo-type-card,.seo-step,.seo-security-card){background:transparent;border:0;border-top:1px solid #e0e3e9;border-radius:0;padding:14px 0}
.decode-page :where(.seo-card-item,.seo-type-card,.seo-step,.seo-security-card)>strong{line-height:1.4}
.decode-page .seo-step>b{background:#eee4fb;color:#7025bd;font-size:13px;font-weight:700}
.decode-page .seo-step>strong{margin:0}
.decode-page .seo-links{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.decode-page .seo-links a,.decode-page .seo-faq details{border-radius:6px;background:#fff;font-weight:500}
.decode-page .seo-links a{color:#313541;border-color:#e1e4ea}
.decode-page .seo-links a:is(:hover,:focus-visible){background:#f2eafa;color:#61219f;border-color:#a676d6}
.decode-page .seo-links a:active{background:#e7d8f6;color:#542087;border-color:#7926d4}
.decode-page .seo-highlight{border-radius:6px}
.decode-page .live-camera-box{border-radius:8px;border-color:#d9c8ed;overflow-y:auto;overscroll-behavior:contain}
.decode-page .live-camera-head{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px}
.decode-page .live-camera-head strong{font-weight:600}
.decode-page .live-camera-view{border-radius:6px}
.decode-page .live-camera-note{font-weight:500}
.decode-page .live-camera-result{border-radius:6px}
.decode-page .live-camera-tools{flex-shrink:0}
.decode-page .live-camera-tools button{width:auto;white-space:nowrap;flex-shrink:0}
.decode-page .camera-tool:is(:hover,:focus-visible,:active){background:#ece1f9;color:#5b21b6;border-color:#a676d6}
.decode-page .camera-close:is(:hover,:focus-visible,:active){background:#ece1f9;color:#542087}
.decode-page .camera-zoom-row>span{flex-shrink:0;white-space:nowrap}
.decode-page .camera-zoom-row input{flex:1;min-width:0;width:auto}
@media(max-width:1240px){.decode-page .page-layout{width:min(1000px,calc(100% - 24px));margin-top:24px}}
@media(max-width:640px){
 .decode-page .page-layout{width:100%;margin:16px auto 24px;padding:0 16px}
 .decode-page .hero-card h1{font-size:23px;margin-bottom:7px}
 .decode-page .card-subtitle{font-size:12px;line-height:1.5;margin-bottom:16px}
 .decode-page .scanner-start{margin-bottom:10px}
 .decode-page #cameraBtn{min-height:50px;font-size:14px}
 .decode-page .upload-zone{padding:18px 12px}
 .decode-page .upload-icon,.decode-page .upload-icon img{width:36px;height:36px}
 .decode-page .upload-icon{margin-bottom:10px}
 .decode-page .upload-title{font-size:14px}
 .decode-page .upload-small{font-size:11px;margin-top:10px}
 .decode-page .preview-grid{grid-template-columns:64px minmax(0,1fr);gap:10px}
 .decode-page .preview-image-wrap{width:64px;height:64px}
 .decode-page .preview-info .action-row{grid-template-columns:1fr}
 .decode-page .preview-info strong{font-size:12px}
 .decode-page .result-content{padding:12px}
 .decode-page .restore-suggestion{align-items:stretch;flex-direction:column;gap:10px}.decode-page .restore-suggestion .button-link{width:100%}
 .decode-page .result-head{padding:13px}
 .decode-page .result-details{grid-template-columns:minmax(0,1fr)}
 .decode-page .detail-card{padding:11px 0}
 .decode-page .result-raw{font-size:12px;padding:12px}
 .decode-page #resultActions{grid-template-columns:1fr}
 .decode-page .tools-grid{display:none}
 .decode-page .seo-info{margin-top:28px;border-top:1px solid #e3e6ec;font-size:13px}
 .decode-page .seo-info h2{font-size:18px}
 .decode-page :where(.seo-grid,.seo-steps,.seo-type-grid,.seo-security-grid){gap:0;grid-template-columns:minmax(0,1fr)}
 .decode-page .seo-links{grid-template-columns:minmax(0,1fr)}
 .decode-page .live-camera-box{border-radius:0;background:#18191e;overflow-y:auto}
 .decode-page .live-camera-box .live-camera-view{min-height:120px}
 .decode-page .live-camera-head strong{font-size:13px;line-height:1.35;white-space:normal;overflow:visible;overflow-wrap:normal}
 .decode-page .live-camera-tools{gap:4px}
 .decode-page .live-camera-tools button{font-size:11px;padding:7px}
 .decode-page .camera-tool:is(:hover,:focus-visible,:active){background:#3a3447;color:#fff;border-color:#bca1dc}
 .decode-page .camera-close{width:36px;flex-shrink:0}
 .decode-page .live-camera-result-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
 .decode-page .live-camera-result-actions button{font-size:12px;min-height:44px}
}
@media(prefers-reduced-motion:reduce){.decode-page .page-layout *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
