* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', sans-serif; display: flex; flex-direction: column; height: 100vh; background: #fff; color: #333; }
.header { background: #f8f9fa; padding: 4px 20px; display: flex; align-items: center; gap: 20px; flex-wrap: nowrap; border-bottom: 2px solid #ddd; box-shadow: 0 2px 8px rgba(0,0,0,0.1); overflow: hidden; height: 40px; flex-shrink: 0; }
.header h1 { font-size: 0.95rem; color: #333; margin: 0; white-space: nowrap; flex-shrink: 0; }
.header .tabs { display: flex; gap: 6px; flex-shrink: 0; margin-left: 20px; }
.header .tab-btn { padding: 4px 10px; font-size: 0.8rem; white-space: nowrap; }
.input-group { display: flex; align-items: center; gap: 10px; }
.input-group label { font-size: 0.95rem; }
.input-group input { padding: 8px 12px; border: 2px solid #ddd; border-radius: 6px; background: #fff; color: #333; font-size: 1rem; width: 100px; }
.input-group input:focus { outline: none; border-color: #4a90d9; }
.btn { padding: 8px 20px; background: #4a90d9; border: none; border-radius: 6px; color: #fff; font-size: 0.95rem; cursor: pointer; transition: background 0.2s; }
.btn:hover { background: #3a7bc8; }
.page-content { flex: 1; display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
#map { flex: 1; min-height: 0; height: 100%; }
.info-panel h3 { color: #4a90d9; margin-bottom: 10px; font-size: 1rem; }
.info-panel p { margin: 5px 0; font-size: 0.9rem; color: #333; }
.distance-panel { position: absolute; top: 250px; right: 10px; background: rgba(255, 255, 255, 0.95); padding: 15px; border-radius: 10px; z-index: 1000; min-width: 220px; border: 1px solid #ddd; box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
.distance-panel h3 { color: #4a90d9; margin-bottom: 10px; font-size: 1rem; }
.distance-panel .result { margin-top: 10px; padding-top: 10px; border-top: 1px solid #ddd; }
.measure-panel { position: absolute; top: 70px; right: 10px; background: rgba(255, 255, 255, 0.95); padding: 15px; border-radius: 10px; z-index: 1000; min-width: 250px; border: 1px solid #ddd; box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
.measure-panel h3 { color: #e94560; margin-bottom: 10px; font-size: 1rem; }
.hidden { display: none !important; }
.controls { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 8px 20px; background: #f0f0f0; border-bottom: 1px solid #ddd; flex-shrink: 0; }
.radius-control { display: flex; align-items: center; gap: 8px; margin-left: 20px; }
.radius-control input { width: 80px; }
.loading { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); background: rgba(255, 255, 255, 0.95); padding: 20px 40px; border-radius: 10px; z-index: 2000; display: none; box-shadow: 0 2px 8px rgba(0,0,0,0.15); color: #333; }
.tabs { display: flex; gap: 10px; }
.tab-btn { padding: 6px 12px; background: #e0e0e0; border: none; border-radius: 6px; color: #333; font-size: 0.85rem; cursor: pointer; transition: background 0.2s; }
.tab-btn:hover { background: #d0d0d0; }
.tab-btn.active { background: #4a90d9; color: #fff; }
.scroll-content { flex: 1; padding: 20px; overflow-y: auto; }
.ref-section { margin-bottom: 30px; }
.setting-section { max-width: 400px; }
.ref-title { color: #4a90d9; font-size: 1.2rem; margin-bottom: 5px; }
.ref-desc { color: #666; font-size: 0.85rem; margin-bottom: 15px; }
.ref-table { width: 100%; border-collapse: collapse; background: #f8f9fa; border-radius: 8px; overflow: hidden; }
.ref-table th, .ref-table td { padding: 10px 15px; text-align: left; border-bottom: 1px solid #ddd; }
.ref-table th { background: #e0e0e0; color: #333; }
.ref-table tr:hover { background: #e8e8e8; }
.ref-table td:first-child { color: #4a90d9; font-weight: bold; cursor: pointer; }
.ref-table td:first-child:hover { color: #3a7bc8; }
.pron-box { display: flex; flex-wrap: wrap; gap: 10px; }
.pron-item { background: #f0f0f0; padding: 15px 5px; border-radius: 8px; text-align: center; width: 70px; flex-shrink: 0; cursor: pointer; transition: all 0.2s; border: 2px solid transparent; }
.pron-item:hover { border-color: #4a90d9; background: #e8f0fa; }
.pron-item .num { font-size: 1.5rem; color: #4a90d9; font-weight: bold; }
.pron-item .py { font-size: 0.8rem; color: #666; }
.pron-item .chi { font-size: 0.9rem; color: #333; }
.measure-label { background: transparent; border: none; color: #e94560; font-weight: bold; font-size: 14px; text-shadow: 1px 1px 2px white, -1px -1px 2px white, 1px -1px 2px white, -1px 1px 2px white; }
.point-label { background: transparent; border: none; color: #333; font-size: 12px; text-shadow: 1px 1px 2px white, -1px -1px 2px white; white-space: nowrap; }