       * {
           box-sizing: border-box;
       }

       * {
           scrollbar-width: none;
           -ms-overflow-style: none;
       }

       *::-webkit-scrollbar {
           display: none;
       }

       html,
       body {
           margin: 0;
           padding: 0;
           height: 100%;
           width: 100%;
           font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
           background: #f3f4f6;
       }

       body {
           display: flex;
           flex-direction: column;
       }

       .app-root {
           display: flex;
           flex-direction: column;
           height: 100%;
           width: 100%;
           position: relative;
           overflow: hidden;
       }

       .stop-lines-row {
           margin-top: 4px;
           display: flex;
           align-items: flex-start;
           gap: 4px;
       }

       .stop-lines-label {
           font-size: 11px;
           color: #4b5563;
           min-width: 70px;
       }

       .stop-lines {
           display: flex;
           flex-wrap: wrap;
           gap: 4px;
       }



       .line-to {
           background: #16a34a;
       }

       .line-from {
           background: #2563eb;
       }

       .line-off {
           background: #6b7280;
       }

       .app-header {
           flex: 0 0 auto;
           padding: 10px 14px;
           display: flex;
           align-items: center;
           justify-content: space-between;
           gap: 8px;
           background: #ffffff;
           border-bottom: 1px solid #e5e7eb;
           z-index: 20;
       }

       .stop-lines-block {
           margin-top: 4px;
       }

       .stop-lines-title {
           font-size: 11px;
           color: #4b5563;
           margin-bottom: 2px;
       }

       .app-header-title {
           display: flex;
           flex-direction: column;
       }

       .app-header-title span:first-child {
           font-size: 16px;
           font-weight: 600;
       }

       .app-header-title span:last-child {
           font-size: 11px;
           color: #6b7280;
       }

       .geo-status {
           font-size: 11px;
           color: #6b7280;
           text-align: right;
       }

       .map-wrapper {
           position: relative;
           flex: 1 1 auto;
           width: 100%;
           height: 100%;
       }

       #map {
           position: absolute;
           inset: 0;
       }

       .geo-button {
           right: 12px;
           top: 12px;
           z-index: 30;
           padding: 10px 10px;
           border-radius: 999px;
           border: none;
           background: #111827;
           color: #ffffff;
           font-size: 16px;
           display: flex;
           align-items: center;
           gap: 6px;
           cursor: pointer;
           box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
       }

       .geo-button span {
           display: inline-block;
       }

       .geo-button-icon {
           font-size: 14px;
       }

       .geo-button:active {
           transform: scale(0.97);
       }

       .bottom-panel {
           position: absolute;
           left: 0;
           right: 0;
           bottom: 0;
           z-index: 1000;
           padding: 8px 10px 12px;
           pointer-events: none;
       }

       .bottom-card {
           position: relative;
           z-index: 1001;
           max-width: 640px;
           margin: 0 auto;
           background: rgba(255, 255, 255, 0.98);
           border-radius: 14px;
           box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
           padding: 10px 12px;
           pointer-events: auto;
           display: flex;
           flex-direction: column;
           gap: 8px;
       }

       .bottom-card-header {
           display: flex;
           align-items: center;
           justify-content: space-between;
           gap: 10px;
       }

       .bottom-card-title {
           font-size: 14px;
           font-weight: 600;
       }

       .search-wrapper {
           display: flex;
           align-items: center;
           gap: 6px;
       }

       .search-input-wrapper {
           position: relative;
           flex: 1;
       }

.search-input {
    width: 100%;
    padding: 6px 26px 6px 8px;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    font-size: 16px; /* было 12px */
    outline: none;
}
       .search-input:focus {
           border-color: #2563eb;
       }

       .search-clear {
           position: absolute;
           right: 4px;
           top: 50%;
           transform: translateY(-50%);
           border: none;
           border-radius: 999px;
           background: transparent;
           width: 18px;
           height: 18px;
           font-size: 13px;
           cursor: pointer;
           color: #9ca3af;
       }

       .search-clear:active {
           transform: translateY(-50%) scale(0.95);
       }

       .stop-details {
           font-size: 14px;
           line-height: 1.4;
           color: #111827;
       }

       .stop-details strong {
           font-size: 13px;
       }

       .stop-lines {
           margin-top: 4px;
           display: flex;
           flex-wrap: wrap;
           gap: 4px;
       }



       .coords {
           margin-top: 4px;
           font-size: 16px;
           color: #6b7280;
       }

       .hint-text {
           font-size: 16px;
           color: #6b7280;
           margin-top: 4px;
       }

       .tag {
           display: inline-block;
           margin-top: 6px;
           padding: 2px 6px;
           border-radius: 999px;
           background: #e5e7eb;
           font-size: 16px;
           color: #374151;
       }

       .search-results {
           margin-top: 4px;
           font-size: 16px;
           color: #374151;
       }

       .search-results-group-title {
           font-weight: 600;
           margin-top: 2px;
           margin-bottom: 2px;
       }

       .search-results-lines,
       .search-results-stops {
           display: flex;
           flex-wrap: wrap;
           gap: 4px;
           margin-bottom: 2px;
       }

       .search-result-btn {
           padding: 2px 6px;
           border-radius: 999px;
           border: 1px solid #d1d5db;
           background: #ffffff;
           font-size: 16px;
           cursor: pointer;
       }

       .search-result-btn:hover {
           background: #f3f4f6;
       }



       @media (min-width: 768px) {
           .app-root {
               flex-direction: column;
           }

           .bottom-card {
               border-radius: 16px;
           }

           .app-header-title span:first-child {
               font-size: 17px;
           }
       }

       @media (max-width: 480px) {
           .app-header {
               padding: 8px 10px;
           }

           .bottom-card {
               padding: 9px 10px;
           }

           .geo-button {
               top: 64px;
               right: 10px;
           }
       }


       .stop-lines-block {
           margin-top: 6px;
       }

       .stop-lines-title {
           font-size: 11px;
           color: #4b5563;
           margin-bottom: 4px;
       }

       .stop-lines-list {
           display: flex;
           flex-direction: column;
           gap: 4px;
       }

       .line-pill {
           display: inline-block;
           width: 100%;
           text-align: left;
           padding: 4px 8px;
           border-radius: 11px;
           background: #111827;
           color: #f9fafb;
           font-size: 16px;
           font-weight: 500;
           border: none;
           cursor: pointer;
       }

       .line-disabled {
           background: #1f2937;
           color: #f9fafb;
           cursor: default;
           user-select: none;
           pointer-events: none;
           display: flex;
           justify-content: space-between;
       }

       .line-item {
           display: flex;
           align-items: center;
           gap: 6px;
       }

       .add-line-btn {
           background: #111827;
           color: #fff;
           border: none;
           border-radius: 11px;
           width: 80px;
           height: 30px;
           line-height: 16px;
           font-size: 16px;
           cursor: pointer;
           transition: 0.2s;
           display: flex;
           justify-content: center;
           align-items: center;
       }

       .add-line-btn:hover {
           background: #111827d9;
           transform: scale(1.1);
       }

       .map-popup-overlay {
           position: fixed;
           inset: 0;
           background: rgba(0, 0, 0, 0.45);
           z-index: 2000;
           display: none;
       }

       .map-popup-overlay.active {
           display: block;
       }

       .map-popup {
           position: fixed;
           left: 50%;
           top: 50%;
           transform: translate(-50%, -50%);
           background: #ffffff;
           border-radius: 16px;
           padding: 16px 18px 14px;
           box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
           width: min(360px, calc(100% - 32px));
           z-index: 2001;
           display: none;
       }

       .map-popup.active {
           display: block;
       }

       .map-popup-title {
           margin: 0 0 10px;
           font-size: 15px;
           font-weight: 600;
       }

       .map-popup-row {
           margin-bottom: 8px;
       }

       .map-popup-row label {
           display: block;
           font-size: 16px;
           color: #4b5563;
           margin-bottom: 2px;
       }

       .map-popup-row input {
           width: 100%;
           padding: 6px 8px;
           border-radius: 10px;
           border: 1px solid #d1d5db;
           font-size: 16px;
           box-sizing: border-box;
       }

       .map-popup-row input[readonly] {
           background: #f3f4f6;
           color: #4b5563;
       }

       .map-popup-save {
           width: 100%;
           margin-top: 8px;
           padding: 8px 10px;
           border-radius: 999px;
           border: none;
           background: #111827;
           color: #ffffff;
           font-size: 16px;
           cursor: pointer;
       }

       .map-popup-save:disabled {
           opacity: 0.7;
           cursor: default;
       }

       .map-popup {
           padding-top: 52px;
       }

       .map-popup-close {
           position: absolute;
           right: 8px;
           top: 8px;
           z-index: 2;
       }

       .map-popup-status {
           margin-top: 4px;
           font-size: 16px;
           min-height: 16px;
       }

       .map-popup-status.success {
           color: #16a34a;
       }

       .map-popup-status.error {
           color: #b91c1c;
       }

       .map-add-success-icon {

           width: 100%;
           justify-content: center;
           font-size: 48px;
           color: #111827;
           display: none;
           ;
       }

       .map-add-success-icon.active {
           display: flex;
       }


       .stop-lines-list {
           max-height: 200px;
           overflow-y: auto;
           padding-right: 6px;
           scrollbar-width: thin;
       }


       .stop-lines-list::-webkit-scrollbar {
           width: 6px;
       }

       .stop-lines-list::-webkit-scrollbar-thumb {
           background: rgba(0, 0, 0, 0.25);
           border-radius: 3px;
       }

       .stop-lines-list::-webkit-scrollbar-track {
           background: transparent;
       }


       .stop-lines-list {
           max-height: 200px;
           overflow-y: auto;
           padding-right: 12px;
       }

       .stop-lines-list::-webkit-scrollbar {
           width: 0;
           height: 0;
       }

       .stop-lines-list {
           scrollbar-width: none;
           -ms-overflow-style: none;
       }