:root{
  color-scheme:light;
  --bg:#f4f6f8;
  --panel:#ffffff;
  --panel2:#f7f9fb;
  --line:#d8dde4;
  --line-strong:#b8c0cb;
  --text:#17202a;
  --muted:#65717f;
  --accent:#1769aa;
  --accent-soft:#eaf3fb;
  --danger:#b42318;
  --radius:10px;
  --shadow:0 3px 14px rgba(18,35,52,.07)
}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--text);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans JP",sans-serif}
button,input,select{font:inherit}
button{cursor:pointer}
.app-header,main,footer{width:min(1280px,calc(100% - 28px));margin:auto}
.app-header{padding:26px 0 16px;display:flex;align-items:flex-end;justify-content:space-between;gap:16px;border-bottom:1px solid var(--line-strong)}
.eyebrow{margin:0;color:var(--accent);font-size:10px;font-weight:800;letter-spacing:.16em}
.app-header h1{font-size:clamp(27px,4vw,40px);margin:4px 0;color:#111820}
.ghost-button,.primary-button{min-height:40px;padding:0 13px;border-radius:6px;font-weight:750}
.ghost-button{background:#fff;color:var(--text);border:1px solid var(--line-strong)}
.ghost-button:hover{background:var(--panel2)}
.ghost-button.active{color:var(--accent);border-color:var(--accent);background:var(--accent-soft)}
.primary-button{background:var(--accent);color:white;border:1px solid var(--accent)}
.primary-button:hover{filter:brightness(.94)}
.controls{display:grid;grid-template-columns:205px 205px 1fr;gap:10px;padding:12px 0;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:5;background:rgba(244,246,248,.96);backdrop-filter:blur(10px)}
label{display:grid;gap:5px;color:var(--muted);font-size:11px;font-weight:700}
.controls label{font-size:12px}
.controls input,.controls select{font-size:15px}
input,select{width:100%;height:42px;padding:0 12px;background:#fff;border:1px solid var(--line-strong);border-radius:6px;color:var(--text);outline:none}
input:focus,select:focus{border-color:var(--accent);box-shadow:0 0 0 3px rgba(23,105,170,.12)}
.workspace{display:grid;grid-template-columns:285px 1fr;gap:14px;margin-top:14px;align-items:start}
.speaker-list-panel,.detail-panel,.comparison-section{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow)}
.panel-heading{min-height:52px;padding:0 14px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);background:#fff}
.panel-heading h2{font-size:15px}
.count-badge{font-size:11px;color:var(--muted)}
.speaker-list{max-height:820px;overflow:auto}
.speaker-item{width:100%;min-height:76px;padding:10px 11px;display:grid;grid-template-columns:1fr auto;gap:9px;align-items:center;text-align:left;color:var(--text);background:#fff;border:0;border-bottom:1px solid var(--line)}
.speaker-item:hover,.speaker-item.active{background:var(--panel2)}
.speaker-item.active{box-shadow:inset 4px 0 var(--accent);background:var(--accent-soft)}
.list-copy{min-width:0}
.list-copy strong,.list-copy small,.list-metrics{display:block}
.list-copy strong{font-size:14px}
.list-copy small{font-size:10px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:3px 0}
.list-metrics{font-size:11px;color:#344252}
.favorite-mark{color:#d08a00;font-size:17px}
.detail-panel{padding:18px}
.sheet-head{display:flex;justify-content:space-between;gap:14px;padding-bottom:15px;border-bottom:2px solid #202a35}
.sheet-title p{margin:0;color:var(--accent);font-weight:800;font-size:13px}
.sheet-title h2{font-size:clamp(30px,5vw,46px);line-height:1;margin:4px 0 8px;color:#111820}
.sheet-title span{color:var(--muted);font-size:12px}
.action-row{display:flex;gap:8px;align-items:flex-start}
.headline-table,.spec-table,.compare-table{width:100%;border-collapse:collapse}
.headline-table{margin:18px 0}
.headline-table th,.headline-table td,.spec-table th,.spec-table td{border:1px solid var(--line);padding:10px 12px;text-align:left;vertical-align:top;font-size:14px}
.headline-table th,.spec-table th{width:37%;color:#536170;font-weight:650;background:#f3f6f9}
.headline-table td{font-size:16px;font-weight:750;background:#fff}
.sheet-columns{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.sheet-section{border:1px solid var(--line);background:#fff}
.sheet-section h3{margin:0;padding:10px 12px;font-size:15px;background:#eef2f6;border-bottom:1px solid var(--line);color:#24313f}
.spec-table th,.spec-table td{border-left:0;border-right:0;border-top:0}
.spec-table tr:last-child th,.spec-table tr:last-child td{border-bottom:0}
.spec-table td{line-height:1.55}
.source-link{display:grid;grid-template-columns:150px 1fr;gap:12px;margin-top:12px;padding:12px;border:1px solid var(--line);background:#fff;color:var(--text);text-decoration:none}
.source-link:hover{background:var(--accent-soft);border-color:#9ec6e6}
.source-link span{color:var(--muted);font-size:14px}
.source-link b{color:var(--accent);font-size:14px}
.comparison-section{margin:14px 0 30px}
.comparison-table-wrap{overflow:auto}
.empty-compare{padding:34px;text-align:center;color:var(--muted);font-size:14px}
.compare-table{min-width:720px}
.compare-table th,.compare-table td{border-top:1px solid var(--line);border-right:1px solid var(--line);padding:11px;text-align:left;vertical-align:top;font-size:14px;background:#fff}
.compare-table th{background:#eef2f6}
.compare-table th:first-child,.compare-table td:first-child{position:sticky;left:0;background:#f7f9fb;min-width:140px}
.compare-table thead th small{display:block;color:var(--muted);font-weight:400;margin:3px 0}
.compare-table thead button{border:0;background:transparent;color:var(--danger);padding:0;font-size:10px}
footer{font-size:11px;color:var(--muted);padding-bottom:25px}
.empty-state{min-height:300px;display:grid;place-items:center;color:var(--muted)}
.title-meta{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.headline-table.full{width:100%;margin:18px 0}
.image-editor,.product-image,.status-badge{display:none!important}
@media(max-width:900px){.workspace{grid-template-columns:1fr}.speaker-list{max-height:270px}.sheet-columns{grid-template-columns:1fr}}
@media(max-width:600px){
  .app-header,main,footer{width:calc(100% - 18px)}
  .app-header{align-items:flex-start;flex-direction:column}
  .controls{position:static;grid-template-columns:1fr 1fr}
  .search-field{grid-column:1/-1}
  .detail-panel{padding:12px}
  .sheet-head{flex-direction:column}
  .action-row{width:100%}
  .action-row button{flex:1}
  .headline-table th,.headline-table td,.spec-table th,.spec-table td{padding:8px;font-size:16px}
  .headline-table th{width:42%}
  .headline-table td{font-size:17px}
  .sheet-title h2{font-size:34px}
  .source-link{grid-template-columns:100px 1fr}
  .sheet-section h3{font-size:17px}
  .source-link span,.source-link b{font-size:16px}
  .compare-table th,.compare-table td{font-size:16px}
  .compare-table{min-width:940px}
}

/* Manufacturer accent colors */
.sheet-head{border-bottom-color:var(--manufacturer-accent,#202a35)}
.sheet-title p{color:var(--manufacturer-accent,var(--accent))}
.manufacturer-meyer{--manufacturer-accent:#1d64be}
.manufacturer-jbl{--manufacturer-accent:#ea4c24}
.manufacturer-db{--manufacturer-accent:#6d3e94}
.manufacturer-lacoustics{--manufacturer-accent:#b8860b}
.header-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.install-button{border-color:var(--accent);color:var(--accent);background:var(--accent-soft)}
@media(max-width:600px){.header-actions{width:100%;justify-content:stretch}.header-actions button{flex:1}}

.verified-badge{display:inline-flex;align-items:center;width:max-content;padding:4px 8px;border:1px solid #7aa7d8;border-radius:999px;background:#eef6ff;color:#155a9c!important;font-size:10px!important;font-weight:800;letter-spacing:.02em}
