.htmlsong-app{max-width:980px;margin:24px auto;padding:0 12px;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Noto Sans JP",sans-serif}
.htmlsong-card{position:relative;background:#fff;border:0;border-radius:10px;padding:16px 18px;box-shadow:0 1px 2px rgba(0,0,0,.03)}
.htmlsong-card h2{margin:0 0 8px 0;font-size:22px}
.htmlsong-form label{display:block;margin:10px 0}
.htmlsong-form label span{display:block;font-size:12px;color:#555;margin-bottom:4px}
.htmlsong-form input[type=url],.htmlsong-form input[type=text],.htmlsong-form select{width:100%;max-width:100%;padding:10px;border:1px solid #bbb;border-radius:8px;font-size:14px}
.htmlsong-row{display:flex;gap:12px;flex-wrap:wrap;align-items:flex-end}
.htmlsong-row > label{flex:1;min-width:200px}
.htmlsong-actions{margin-top:12px}
.htmlsong-btn{appearance:none;border:1px solid #bbb;background:#f6f6f6;border-radius:10px;padding:10px 14px;font-size:14px;cursor:pointer}
.htmlsong-btn:hover{filter:brightness(.98)}
.htmlsong-btn:disabled{opacity:.55;cursor:not-allowed}
.htmlsong-btn-primary{border-color:#2c6bed;background:#2c6bed;color:#fff}
.htmlsong-small{font-size:12px;color:#666;margin-top:10px}
.htmlsong-status{padding:10px 12px;background:#f8f8f8;border:1px dashed #ccc;border-radius:10px;margin:10px 0;color:#444}
.htmlsong-missing-url{margin:10px 0}
.htmlsong-missing-url a{display:inline-block}
.htmlsong-sitecard{display:flex;gap:12px;align-items:stretch;border:1px solid #eee;border-radius:12px;overflow:hidden;background:#fafafa;margin:10px 0}
.htmlsong-sitecard a{display:flex;gap:12px;align-items:stretch;color:inherit;text-decoration:none;width:100%}
.htmlsong-sitecard .img{width:140px;min-height:84px;background:#eee;flex:0 0 140px;overflow:hidden}
.htmlsong-sitecard .img img{width:100%;height:100%;object-fit:cover;display:block}
.htmlsong-sitecard .body{padding:10px 12px;flex:1 1 auto}
.htmlsong-sitecard .title{font-weight:700;font-size:14px;line-height:1.3;margin:0 0 6px 0}
.htmlsong-sitecard .desc{font-size:12px;color:#555;line-height:1.4;margin:0 0 8px 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.htmlsong-sitecard .meta{display:flex;gap:8px;align-items:center;font-size:12px;color:#666}
.htmlsong-sitecard .favicon{width:16px;height:16px;border-radius:3px;background:#ddd;flex:0 0 16px}
.htmlsong-sitecard .favicon img{width:16px;height:16px;display:block}
.htmlsong-controls{margin-top:10px}
.htmlsong-loading{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.88);border-radius:10px;z-index:30}
.htmlsong-loading-inner{display:flex;gap:10px;align-items:center;padding:10px 12px;border:1px solid #eee;border-radius:12px;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.04)}
.htmlsong-loading-text{font-size:13px;color:#444}
.htmlsong-spinner{width:22px;height:22px;border-radius:999px;border:3px solid #d7d7d7;border-top-color:#2c6bed;animation:htmlsongspin 1s linear infinite}
@keyframes htmlsongspin{to{transform:rotate(360deg)}}
.htmlsong-viz{display:block;width:100%;max-width:100%;height:110px;margin-top:12px;border:1px solid #eee;border-radius:12px;background:#0b0b0b}
.htmlsong-inline{display:flex;gap:8px;align-items:center}
.htmlsong-inline span{font-size:12px;color:#555;min-width:48px}
.htmlsong-inline select,.htmlsong-inline input[type=range]{min-width:220px}
.htmlsong-explain{margin-top:14px;border-top:1px solid #eee;padding-top:14px}
.htmlsong-explain h3{margin:14px 0 6px;font-size:16px}
.htmlsong-explain .htmlsong-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px}
.htmlsong-explain .htmlsong-kv{border:1px solid #eee;border-radius:10px;padding:10px;background:#fafafa}
.htmlsong-explain .htmlsong-kv .k{font-size:12px;color:#666}
.htmlsong-explain .htmlsong-kv .v{font-size:16px;font-weight:600;margin-top:4px}
.htmlsong-explain ul{margin:6px 0 0 18px}
.htmlsong-explain table{width:100%;border-collapse:separate;border-spacing:0;border:1px solid #eee;border-radius:12px;overflow:hidden;background:#fff;margin:10px 0}
.htmlsong-explain th,.htmlsong-explain td{border-bottom:1px solid #eee;padding:10px 12px;text-align:left;font-size:13px;vertical-align:top}
.htmlsong-explain th{background:#fafafa;font-weight:700;font-size:12px;color:#444}
.htmlsong-explain tr:last-child td{border-bottom:none}
.htmlsong-explain .htmlsong-badge{display:inline-block;padding:2px 8px;border:1px solid #ddd;border-radius:999px;background:#fafafa;font-size:12px;color:#444}
.htmlsong-json{margin-top:14px;background:#111;color:#d9d9d9;padding:12px;border-radius:10px;overflow:auto;font-size:12px;line-height:1.45;max-height:480px}