        /* 折りたたみマーカーのスタイル（一般的な▶/▼表示） */
        details summary {
            list-style: none;
            /* デフォルトの三角マーカーを非表示 */
            position: relative;
            padding-left: 20px;
            /* アイコン用のスペース */
        }

        details summary::-webkit-details-marker {
            display: none;
            /* Webkit系ブラウザのデフォルトマーカーを非表示 */
        }

        /* 閉じている時のマーカー（▶） */
        details summary::before {
            content: '▶';
            position: absolute;
            left: 0;
            top: 0;
            font-size: 0.8em;
            transition: transform 0.2s ease;
        }

        /* 開いている時のマーカー（▼） */
        details[open] summary::before {
            content: '▼';
        }

        html,
        body {
            height: 100%;
            margin: 0;
            padding: 0;
        }

        #map {
            height: 100vh;
            width: 100%;
        }

        .map-overlay {
            font: bold 12px/20px 'Helvetica Neue', Arial, Helvetica, sans-serif;
            position: absolute;
            width: 200px;
            bottom: 20px;
            left: 0px;
            padding: 10px;
        }

        .map-overlay .map-overlay-inner {
            background-color: rgba(255, 255, 255, 0.8);
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
            border-radius: 3px;
            padding: 10px;
            margin-bottom: 10px;
        }

        .map-overlay label {
            display: block;
            margin: 0 0 0px;
            font-size: 12px;
            top: 100px;
            left: 10px;
            display: block;
            margin-bottom: 5px;
        }

        .map-overlay input {
            background-color: transparent;
            display: inline-block;
            width: 100%;
            position: relative;
            margin: 0;
            cursor: ew-resize;
        }

        .maplibregl-popup .maplibregl-popup-content {
            padding: 8px 10px;
            font: 12px/14px Arial, Helvetica, sans-serif;
            color: black;
            background: white;
            background: rgba(255, 255, 255, 0.9);
            box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
            border-radius: 5px;
            width: 200px;
            /*height: 300px;*/
            height: auto;
            /*overflow: scroll;*/
        }

        .custom-100m-mesh-pop2020-popup .maplibregl-popup-content {
            padding: 8px 10px;
            font: 12px/14px Arial, Helvetica, sans-serif;
            color: black;
            background: rgba(255, 255, 255, 0.9);
            box-shadow: 0 0 15px rgba(0, 0, 0, 0.9);
            border-radius: 5px;
            width: 280px;
            height: 220px;
            /*overflow: scroll;*/
        }

        .custom-100m-mesh-pop2020-popup .maplibregl-popup-content .shinouchimei-title {
            color: red;
            font-size: larger;
        }

        .custom-100m-mesh-pop2020-popup .maplibregl-popup-content .pop-info th {
            width: 100px;
        }

        .custom-100m-mesh-pop2020-popup .maplibregl-popup-content .pop-info td:nth-child(1) {
            text-align: right;
            width: 100px;
            white-space: nowrap;
        }

        .custom-100m-mesh-pop2020-popup .maplibregl-popup-content .pop-info td:nth-child(2) {
            text-align: left;
            width: 150px;
            white-space: nowrap;
        }

        .custom-100m-mesh-pop2020-popup .maplibregl-popup-content .pop-info b {
            text-align: right;
        }

        .custom-100m-mesh-pop2020-popup .maplibregl-popup-content .pop-info,
        .custom-100m-mesh-pop2020-popup .maplibregl-popup-content .pop-info th,
        .custom-100m-mesh-pop2020-popup .maplibregl-popup-content .pop-info td {
            font: 12px/14px Arial, Helvetica, sans-serif;
        }

        /* Auth modal styles */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.55);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 12000;
            padding: 12px;
        }

        .modal-overlay[style*="display: flex"],
        .modal-overlay.modal-active {
            display: flex !important;
        }

        .modal-box {
            background: #fff;
            border-radius: 10px;
            padding: 20px;
            width: 100%;
            max-width: 420px;
            box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
        }

        .modal-box h2 {
            margin: 0 0 6px;
            font-size: 18px;
        }

        .modal-subtext {
            margin: 0 0 12px;
            color: #555;
            font-size: 14px;
        }

        .modal-box label {
            display: block;
            margin: 10px 0 4px;
            font-weight: 600;
        }

        .modal-box input[type="email"],
        .modal-box input[type="text"],
        .modal-box input[type="password"] {
            width: 100%;
            padding: 10px;
            border: 1px solid #d0d5dd;
            border-radius: 6px;
            font-size: 14px;
            box-sizing: border-box;
        }

        .modal-error {
            margin-top: 10px;
            padding: 8px 10px;
            background: #ffe8e6;
            color: #c0392b;
            border: 1px solid #f5b7b1;
            border-radius: 6px;
            font-size: 13px;
        }

        .modal-close-btn {
            margin-top: 12px;
            width: 100%;
            padding: 10px 12px;
            border: none;
            border-radius: 6px;
            background: #f2f4f7;
            cursor: pointer;
            font-weight: 600;
        }

        .hidden-admin-link {
            position: absolute;
            right: 0;
            top: 0;
            width: 40px;
            height: 40px;
            background: #667eea;
            border: 2px solid #5568d3;
            border-radius: 6px;
            cursor: pointer;
            opacity: 1;
            transition: all 0.3s ease;
            font-size: 18px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
        }

        .hidden-admin-link:hover {
            opacity: 0.9;
            background: #5568d3;
            transform: scale(1.1);
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
        }

        .allowlist-list {
            list-style: none;
            padding: 0;
            margin: 8px 0 0;
            max-height: 200px;
            overflow-y: auto;
            border: 1px solid #ececec;
            border-radius: 6px;
        }

        .allowlist-list li {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 8px 10px;
            border-bottom: 1px solid #f2f2f2;
            font-size: 14px;
        }

        .allowlist-list li:last-child {
            border-bottom: none;
        }

        .allowlist-remove-btn {
            background: #f44336;
            color: #fff;
            border: none;
            padding: 6px 10px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 12px;
        }

        .maplibregl-ctrl-geocoder {
            font-size: 12px;
            line-height: 12px;
            font-family: "Open Sans", "Helvetica Neue", Arial, Helvetica, sans-serif;
            position: relative;
            background-color: #fff;
            width: 80%;
            min-width: 100px;
            z-index: 1;
            border-radius: 5px;
            transition: width 0.25s, min-width 0.25s;
            box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
        }

        .maplibregl-ctrl-geocoder .suggestions {
            font-size: 12px;
        }

        #info {
            padding: 6px 8px;
            font: 12px/14px Arial, Helvetica, sans-serif;
            color: navy;
            background: rgba(255, 255, 255, 0.8);
            box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
            border-radius: 5px;
            width: fit-content;
            position: absolute;
            top: 10px;
            left: 10px;
            z-index: 2;
            transform: scale(0.6);
            transform-origin: top left;
            transition: transform 0.3s ease;
        }

        .panel-zoom-controls {
            position: absolute;
            top: 5px;
            right: 5px;
            display: flex;
            gap: 4px;
            z-index: 10;
        }

        .panel-zoom-btn {
            width: 24px;
            height: 24px;
            border: 2px solid #4CAF50;
            background: white;
            border-radius: 4px;
            cursor: pointer;
            font-size: 14px;
            line-height: 1;
            padding: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        }

        .panel-zoom-btn:hover {
            background: #4CAF50;
            transform: scale(1.1);
            box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
        }

        .panel-zoom-btn:active {
            transform: scale(0.95);
        }

        .yubi {
            cursor: pointer;
            z-index: 2;
        }

        .radio-button-container {
            display: flex;
            justify-content: start;
        }

        .column {
            display: flex;
            flex-direction: column;
            margin-right: 20px;
        }

        .legend {
            background-color: rgba(255, 255, 255, 0.8);
            border-radius: 3px;
            bottom: 40px;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.10);
            font: 12px/14px 'Helvetica Neue', Arial, Helvetica, sans-serif;
            padding: 10px;
            position: absolute;
            right: 10px;
            z-index: 1;
            line-height: 20px;
            height: auto;
        }

        .legend h4 {
            margin: 0 0 10px;
        }

        .legend div span {
            border-radius: 50%;
            display: inline-block;
            height: 15px;
            margin-right: 10px;
            width: 15px;
            color: orangered
        }

        .square {
            width: 15px;
            height: 15px;
        }

        /* 位置指定パネルの省スペース用スタイル */
        .location-controls {
            font-size: 11px;
            line-height: 1.3;
        }

        .location-controls input,
        .location-controls button,
        .location-controls label {
            font-size: 11px;
        }

        /* 取得情報パネルのスタイル調整 */
        #location-info-panel {
            font-size: 11px;
            line-height: 1.4;
            width: 70%;
            transform-origin: top right;
            transition: transform 0.3s ease;
        }

        #location-info-panel h3 {
            font-size: 14px;
            margin: 0;
        }

        /* 右側パネル拡大縮小ボタン */
        .info-panel-zoom-controls {
            display: flex;
            gap: 4px;
        }

        .info-panel-zoom-btn {
            width: 24px;
            height: 24px;
            border: 2px solid #4CAF50;
            background: white;
            border-radius: 4px;
            cursor: pointer;
            font-size: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
        }

        .info-panel-zoom-btn:hover {
            background: #4CAF50;
            color: white;
            transform: scale(1.1);
        }

        .info-panel-zoom-btn:active {
            transform: scale(0.95);
        }

        #location-info-panel p {
            margin: 4px 0;
            font-size: 11px;
        }

        #location-info-panel strong {
            font-size: 11px;
        }

        #location-info-panel #location-info-content>div {
            margin-top: 8px;
            padding-top: 8px;
        }

        #location-info-panel a {
            font-size: 11px;
            margin-bottom: 5px !important;
        }

        #location-info-panel .info-panel-action {
            width: 100%;
            margin-top: 6px;
            padding: 6px;
            border: none;
            border-radius: 3px;
            cursor: pointer;
            font-size: 11px;
        }

        #location-info-panel .info-panel-action:disabled {
            opacity: 0.65;
            cursor: not-allowed;
        }

        #add-record-btn {
            background: #28a745;
            color: #fff;
        }

        #add-favorite-btn {
            background: #FFC107;
            color: #333;
        }

        #download-csv-btn {
            background: #00695c;
            color: #fff;
        }

        #capture-screenshot-btn {
            background: #007bff;
            color: #fff;
        }

        /* Autocomplete dropdown styles */
        #autocomplete-dropdown {
            font-size: 14px;
        }

        .autocomplete-item {
            padding: 8px 10px;
            cursor: pointer;
            border-bottom: 1px solid #eee;
        }

        .autocomplete-item:hover {
            background-color: #f0f0f0;
        }

        .autocomplete-item:last-child {
            border-bottom: none;
        }

        /* Favorites panel styles */
        #favorites-panel {
            font-size: 14px;
        }

        .favorite-item {
            padding: 8px;
            margin-bottom: 8px;
            background: #f5f5f5;
            border-radius: 3px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .favorite-item:hover {
            background: #e8e8e8;
        }

        .favorite-item-name {
            flex: 1;
            cursor: pointer;
            font-weight: 500;
        }

        .favorite-item-actions {
            display: flex;
            gap: 5px;
        }

        .favorite-item-actions button {
            padding: 3px 8px;
            border: none;
            border-radius: 2px;
            cursor: pointer;
            font-size: 11px;
        }

        .favorite-jump-btn {
            background: #2196F3;
            color: white;
        }

        .favorite-remove-btn {
            background: #f44336;
            color: white;
        }

        /* Progress bar styles */
        .progress-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 5px;
            font-size: 12px;
        }

        .progress-item-label {
            flex: 1;
        }

        .progress-item-status {
            font-weight: bold;
            margin-left: 10px;
        }

        .progress-status-loading {
            color: #FF9800;
        }

        .progress-status-success {
            color: #4caf50;
        }

        .progress-status-error {
            color: #f44336;
        }

        .progress-status-pending {
            color: #999;
        }

        /* Cluster styles */
        .cluster-marker {
            background: #2196F3;
            border: 3px solid white;
            border-radius: 50%;
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            font-size: 14px;
            cursor: pointer;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
        }

        .cluster-marker:hover {
            background: #1976D2;
            transform: scale(1.1);
        }

        /* Responsive adjustments */
        @media (max-width: 768px) {
            #favorites-panel {
                max-width: 250px;
            }

            #progress-bar-container {
                min-width: 250px;
            }

            #toggle-favorites-btn,
            #toggle-comparison-btn {
                padding: 6px 10px;
                font-size: 12px;
            }
        }

        /* ===== オープニング画面スタイル ===== */

        .opening-screen-container {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 99999;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            animation: fadeIn 0.6s ease-in;
            pointer-events: auto;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
            }

            to {
                opacity: 1;
            }
        }

        @keyframes fadeOut {
            from {
                opacity: 1;
            }

            to {
                opacity: 0;
            }
        }

        .opening-content {
            background: white;
            border-radius: 20px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            padding: 50px 40px;
            max-width: 500px;
            width: 90%;
            animation: slideUp 0.6s ease-out;
        }

        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .opening-header {
            text-align: center;
            margin-bottom: 40px;
        }

        .opening-icon {
            font-size: 60px;
            margin-bottom: 15px;
            display: block;
            animation: bounce 0.8s ease-out;
        }

        @keyframes bounce {
            0% {
                transform: scale(0.8) translateY(-20px);
                opacity: 0;
            }

            50% {
                transform: scale(1.05);
            }

            100% {
                transform: scale(1) translateY(0);
                opacity: 1;
            }
        }

        .opening-title {
            margin: 0;
            font-size: 28px;
            color: #333;
            font-weight: 700;
            letter-spacing: -0.5px;
            line-height: 1.3;
        }

        .opening-subtitle {
            margin: 10px 0 0 0;
            font-size: 16px;
            color: #666;
            font-weight: 300;
        }

        .opening-description {
            margin-bottom: 35px;
        }

        .opening-description h2 {
            font-size: 18px;
            color: #333;
            margin: 0 0 20px 0;
            font-weight: 600;
        }

        .feature-list {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .feature-item {
            display: flex;
            gap: 12px;
            align-items: flex-start;
        }

        .feature-icon {
            font-size: 28px;
            min-width: 40px;
            text-align: center;
        }

        .feature-text h3 {
            margin: 0 0 5px 0;
            font-size: 14px;
            color: #333;
            font-weight: 600;
        }

        .feature-text p {
            margin: 0;
            font-size: 13px;
            color: #666;
            line-height: 1.4;
        }

        .opening-buttons {
            display: flex;
            flex-direction: column;
            gap: 12px;
            margin-bottom: 20px;
        }

        .button-group {
            display: flex;
            gap: 10px;
        }

        .btn {
            padding: 12px 20px;
            border: none;
            border-radius: 10px;
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .btn-primary {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            width: 100%;
            padding: 15px 20px;
            font-size: 16px;
            box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
        }

        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
        }

        .btn-primary:active {
            transform: translateY(0);
        }

        .btn-secondary {
            background: #f5f5f5;
            color: #333;
            flex: 1;
            border: 2px solid #e0e0e0;
        }

        .btn-secondary:hover {
            background: #efefef;
            border-color: #667eea;
            color: #667eea;
            transform: translateY(-1px);
        }

        .btn-secondary:active {
            transform: translateY(0);
        }

        .btn-arrow {
            font-size: 18px;
            transition: transform 0.3s ease;
        }

        .btn-primary:hover .btn-arrow {
            transform: translateX(4px);
        }

        .opening-footer {
            text-align: center;
            padding-top: 15px;
            border-top: 1px solid #e0e0e0;
        }

        .version-info {
            margin: 0 0 5px 0;
            font-size: 12px;
            color: #999;
        }

        .copyright-info {
            margin: 0;
            font-size: 11px;
            color: #aaa;
            font-weight: 500;
        }

        /* ===== モーダルスタイル ===== */

        .modal {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.6);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10001;
            animation: fadeIn 0.3s ease-in;
        }

        .modal-content {
            background: white;
            border-radius: 15px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            width: 90%;
            max-width: 600px;
            max-height: 80vh;
            display: flex;
            flex-direction: column;
            animation: slideUp 0.3s ease-out;
        }

        .modal-header {
            padding: 25px;
            border-bottom: 1px solid #e0e0e0;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .modal-header h2 {
            margin: 0;
            font-size: 22px;
            color: #333;
        }

        .modal-close {
            background: none;
            border: none;
            font-size: 28px;
            color: #999;
            cursor: pointer;
            padding: 0;
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: color 0.3s ease;
        }

        .modal-close:hover {
            color: #333;
        }

        .modal-body {
            flex: 1;
            overflow-y: auto;
            padding: 25px;
            font-size: 14px;
            line-height: 1.6;
            color: #666;
        }

        .modal-body h3 {
            margin: 20px 0 10px 0;
            font-size: 15px;
            color: #333;
            font-weight: 600;
        }

        .modal-body p {
            margin: 0 0 15px 0;
            line-height: 1.6;
        }

        .modal-footer {
            padding: 20px 25px;
            border-top: 1px solid #e0e0e0;
            display: flex;
            justify-content: flex-end;
        }

        .modal-footer .btn {
            min-width: 120px;
        }

        /* モーダルのスクロールバースタイル */
        .modal-body::-webkit-scrollbar {
            width: 8px;
        }

        .modal-body::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 10px;
        }

        .modal-body::-webkit-scrollbar-thumb {
            background: #667eea;
            border-radius: 10px;
        }

        .modal-body::-webkit-scrollbar-thumb:hover {
            background: #764ba2;
        }

        /* レスポンシブ対応 */
        @media (max-width: 600px) {
            .opening-content {
                padding: 35px 25px;
            }

            .opening-title {
                font-size: 26px;
            }

            .opening-subtitle {
                font-size: 14px;
            }

            .feature-item {
                gap: 10px;
            }

            .feature-icon {
                font-size: 24px;
            }

            .feature-text h3 {
                font-size: 13px;
            }

            .feature-text p {
                font-size: 12px;
            }

            .btn-secondary {
                font-size: 13px;
                padding: 10px 15px;
            }

            .modal-content {
                margin: 20px;
            }
        }

        @keyframes fadeOut {
            from {
                opacity: 1;
            }

            to {
                opacity: 0;
            }
        }

        /* History & Bookmarks Styles */
        .history-tab {
            transition: all 0.3s ease;
        }

        .history-tab:hover {
            background-color: #f5f5f5;
        }

        .history-tab.active {
            border-bottom-color: #2196F3 !important;
            color: #2196F3;
        }

        .history-content-active {
            display: block;
        }

        .history-content {
            display: none;
        }

        .history-item {
            padding: 10px;
            margin-bottom: 8px;
            background: #f5f5f5;
            border-radius: 3px;
            cursor: pointer;
            transition: all 0.2s ease;
            border-left: 3px solid transparent;
        }

        .history-item:hover {
            background: #e8f5e9;
            border-left-color: #4caf50;
        }

        .history-item-title {
            font-weight: bold;
            font-size: 13px;
            color: #333;
            margin-bottom: 3px;
        }

        .history-item-coords {
            font-size: 11px;
            color: #666;
            margin-bottom: 5px;
        }

        .history-item-time {
            font-size: 10px;
            color: #999;
        }

        .history-item-actions {
            display: flex;
            gap: 5px;
            margin-top: 5px;
        }

        .history-item-btn {
            flex: 1;
            padding: 4px 6px;
            background: #2196F3;
            color: white;
            border: none;
            border-radius: 2px;
            cursor: pointer;
            font-size: 11px;
            transition: background 0.2s ease;
        }

        .history-item-btn:hover {
            background: #1976D2;
        }

        .history-item-delete {
            flex: 0.5;
            background: #f44336;
        }

        .history-item-delete:hover {
            background: #d32f2f;
        }

        .history-empty {
            text-align: center;
            color: #999;
            padding: 20px 10px;
            font-size: 12px;
        }

        /* Comparison Styles */
        .comparison-item {
            padding: 10px;
            margin-bottom: 10px;
            background: #f9f9f9;
            border-left: 4px solid #FF9800;
            border-radius: 3px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .comparison-item-info {
            flex: 1;
        }

        .comparison-item-title {
            font-weight: bold;
            font-size: 13px;
            color: #333;
            margin-bottom: 3px;
        }

        .comparison-item-coords {
            font-size: 11px;
            color: #666;
        }

        .comparison-item-remove {
            padding: 4px 8px;
            background: #f44336;
            color: white;
            border: none;
            border-radius: 2px;
            cursor: pointer;
            font-size: 11px;
            margin-left: 10px;
        }

        .comparison-item-remove:hover {
            background: #d32f2f;
        }

        /* Comparison Table Styles */
        .comparison-table {
            width: 100%;
            border-collapse: collapse;
            margin: 20px 0;
            font-size: 12px;
        }

        .comparison-table th,
        .comparison-table td {
            padding: 10px;
            border: 1px solid #ddd;
            text-align: left;
        }

        .comparison-table th {
            background: #f5f5f5;
            font-weight: bold;
            color: #333;
        }

        .comparison-table tr:nth-child(even) {
            background: #f9f9f9;
        }

        .comparison-table tr:hover {
            background: #f0f0f0;
        }

        .hazard-status-yes {
            color: #d32f2f;
            font-weight: bold;
        }

        .hazard-status-no {
            color: #666;
        }

        .risk-score {
            font-size: 14px;
            font-weight: bold;
            text-align: center;
            padding: 8px;
            border-radius: 3px;
        }

        .risk-score-high {
            background: #ffebee;
            color: #d32f2f;
        }

        .risk-score-medium {
            background: #fff3e0;
            color: #f57c00;
        }

        .risk-score-low {
            background: #e8f5e9;
            color: #388e3c;
        }

        /* Measurement tools styles moved to inline HTML for better control */
        /* Button positions are controlled by inline styles in HTML */

        #measurement-tools button {
            width: 100%;
            margin: 5px 0;
            padding: 6px;
            border: none;
            border-radius: 3px;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        #measurement-tools button:hover {
            opacity: 0.9;
            transform: translateY(-1px);
        }

        #measurement-tools button.active {
            box-shadow: 0 0 0 2px #fff, 0 0 0 4px currentColor;
        }

        #measure-distance-btn {
            background: #4CAF50;
            color: white;
        }

        #measure-area-btn {
            background: #2196F3;
            color: white;
        }

        #measure-circle-btn {
            background: #9C27B0;
            color: white;
        }

        #clear-measurements-btn {
            background: #f44336;
            color: white;
        }

        #measurement-result {
            margin-top: 10px;
            padding: 8px;
            background: #f5f5f5;
            border-radius: 3px;
            font-size: 12px;
            text-align: center;
            display: none;
        }

        /* ========================================
   Planning Score Styling (Appended)
   ======================================== */
        .planning-score-value {
            display: inline-block;
            padding: 2px 8px;
            border-radius: 4px;
            font-weight: bold;
            font-size: 18px;
        }

        .planning-score-excellent {
            background-color: #4caf50;
            color: #fff;
        }

        .planning-score-good {
            background-color: #8bc34a;
            color: #fff;
        }

        .planning-score-fair {
            background-color: #ffeb3b;
            color: #333;
        }

        .planning-score-poor {
            background-color: #ff9800;
            color: #fff;
        }

        .planning-score-bad {
            background-color: #f44336;
            color: #fff;
        }

        .planning-score-loading {
            background-color: #e0e0e0;
            color: #666;
        }

        .planning-score-error {
            background-color: #ffcdd2;
            color: #c62828;
        }

        /* ========================================
           Responsive layout for mobile/touch (C1)
           ======================================== */
        @media (max-width: 768px) {
            #info {
                top: 8px;
                left: 8px;
                right: 8px;
                width: auto;
                box-sizing: border-box;
            }

            #location-info-panel {
                right: 8px;
                left: 8px;
                top: 80px;
                max-width: none;
                width: auto;
            }

            #favorites-panel {
                left: 8px;
                top: 80px;
                max-width: none;
                width: calc(100% - 16px);
            }

            #progress-bar-container {
                min-width: 240px;
                max-width: calc(100% - 32px);
            }

            #top-center-buttons {
                flex-wrap: wrap;
                gap: 8px;
                padding: 0 8px;
                justify-content: center;
            }

            #top-center-buttons button {
                flex: 1 1 calc(50% - 10px);
                font-size: 12px;
                padding: 8px 10px;
            }

            .legend {
                right: 8px;
                bottom: 20px;
            }
        }

        @media (max-width: 480px) {
            #location-info-panel {
                top: 70px;
                right: 8px;
                left: 8px;
                max-height: 65vh;
                width: auto;
            }

            #favorites-panel {
                top: 70px;
                right: 8px;
                left: 8px;
                max-height: 60vh;
                width: auto;
            }

            #top-center-buttons button {
                flex: 1 1 100%;
            }

            #progress-bar-container {
                left: 50%;
                transform: translateX(-50%);
            }
        }