body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: sans-serif;
    background-color: #1e1e1e;
    color: #fff;
}
#viewer-container {
    width: 100vw;
    height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
}
/* ドラッグ＆ドロップのオーバーレイ */
#drop-zone {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    border: 4px dashed #555;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(30, 30, 30, 0.85);
    transition: background 0.3s;
    z-index: 10;
    pointer-events: auto;
}
#drop-zone.active {
    background: rgba(40, 120, 200, 0.4);
    border-color: #3b82f6;
}
#drop-zone h2 {
    margin: 0 0 10px 0;
    font-size: 24px;
}
#drop-zone p {
    margin: 0;
    color: #aaa;
}
/* コントロールパネル共通 */
.panel {
    position: absolute;
    background: rgba(40, 40, 40, 0.85);
    border: 1px solid #555;
    border-radius: 6px;
    padding: 10px;
    z-index: 5;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}
/* 視点切り替えボタン */
#view-panel {
    top: 20px;
    right: 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}
.view-btn {
    background: #2a2a2a;
    color: #fff;
    border: 1px solid #666;
    padding: 8px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    text-align: center;
    transition: background 0.2s;
}
.view-btn:hover {
    background: #3b82f6;
    border-color: #60a5fa;
}
/* ツール・情報パネル */
#tool-panel {
    top: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.tool-btn {
    background: #2a2a2a;
    color: #fff;
    border: 1px solid #666;
    padding: 8px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    text-align: left;
    transition: background 0.2s;
}
.tool-btn:hover {
    background: #444;
}
.tool-btn.active {
    background: #2563eb;
    border-color: #60a5fa;
}
/* 情報表示（サイズ・測定結果） */
#info-panel {
    bottom: 20px;
    left: 20px;
    font-size: 13px;
    line-height: 1.5;
    max-width: 300px;
    pointer-events: none;
}
#measure-info {
    bottom: 20px;
    right: 20px;
    font-size: 14px;
    font-weight: bold;
    color: #38bdf8;
    display: none;
}