body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
    monospace;
}

.sidebar-title {
  font-family: "Capture Smallz", sans-serif; /* Corrected Name */
  /* Add any additional styling if needed */
}

.welcome-message {
  font-family: "Capture Smallz", sans-serif; /* Corrected Name */
  /* Add any additional styling if needed */
}

/* Font definitions for the MyRacing App */
@font-face {
  font-family: 'CaptureSmallz';
  src: url(/e29ae9794c8a1fcbca56.ttf) format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap; /* Show fallback font immediately while loading */
}

/* Racing-style text styling */
.racing-font {
  font-family: 'CaptureSmallz', 'Impact', 'Haettenschweiler', sans-serif;
  letter-spacing: 1px;
  font-weight: bold;
}

.racing-text {
  color: white;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
  position: relative;
  display: inline-block;
  padding: 0 5px;
}

.racing-text::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 3px;
  background: red;
  transform: skew(-15deg);
}
/* required styles */

.leaflet-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-pane > svg,
.leaflet-pane > canvas,
.leaflet-zoom-box,
.leaflet-image-layer,
.leaflet-layer {
	position: absolute;
	left: 0;
	top: 0;
	}
.leaflet-container {
	overflow: hidden;
	}
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow {
	-webkit-user-select: none;
	   -moz-user-select: none;
	        user-select: none;
	  -webkit-user-drag: none;
	}
/* Prevents IE11 from highlighting tiles in blue */
.leaflet-tile::selection {
	background: transparent;
}
/* Safari renders non-retina tile on retina better with this, but Chrome is worse */
.leaflet-safari .leaflet-tile {
	image-rendering: -webkit-optimize-contrast;
	}
/* hack that prevents hw layers "stretching" when loading new tiles */
.leaflet-safari .leaflet-tile-container {
	width: 1600px;
	height: 1600px;
	-webkit-transform-origin: 0 0;
	}
.leaflet-marker-icon,
.leaflet-marker-shadow {
	display: block;
	}
/* .leaflet-container svg: reset svg max-width decleration shipped in Joomla! (joomla.org) 3.x */
/* .leaflet-container img: map is broken in FF if you have max-width: 100% on tiles */
.leaflet-container .leaflet-overlay-pane svg {
	max-width: none !important;
	max-height: none !important;
	}
.leaflet-container .leaflet-marker-pane img,
.leaflet-container .leaflet-shadow-pane img,
.leaflet-container .leaflet-tile-pane img,
.leaflet-container img.leaflet-image-layer,
.leaflet-container .leaflet-tile {
	max-width: none !important;
	max-height: none !important;
	width: auto;
	padding: 0;
	}

.leaflet-container img.leaflet-tile {
	/* See: https://bugs.chromium.org/p/chromium/issues/detail?id=600120 */
	mix-blend-mode: plus-lighter;
}

.leaflet-container.leaflet-touch-zoom {
	-ms-touch-action: pan-x pan-y;
	touch-action: pan-x pan-y;
	}
.leaflet-container.leaflet-touch-drag {
	-ms-touch-action: pinch-zoom;
	/* Fallback for FF which doesn't support pinch-zoom */
	touch-action: none;
	touch-action: pinch-zoom;
}
.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom {
	-ms-touch-action: none;
	touch-action: none;
}
.leaflet-container {
	-webkit-tap-highlight-color: transparent;
}
.leaflet-container a {
	-webkit-tap-highlight-color: rgba(51, 181, 229, 0.4);
}
.leaflet-tile {
	filter: inherit;
	visibility: hidden;
	}
.leaflet-tile-loaded {
	visibility: inherit;
	}
.leaflet-zoom-box {
	width: 0;
	height: 0;
	-moz-box-sizing: border-box;
	     box-sizing: border-box;
	z-index: 800;
	}
/* workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=888319 */
.leaflet-overlay-pane svg {
	-moz-user-select: none;
	}

.leaflet-pane         { z-index: 400; }

.leaflet-tile-pane    { z-index: 200; }
.leaflet-overlay-pane { z-index: 400; }
.leaflet-shadow-pane  { z-index: 500; }
.leaflet-marker-pane  { z-index: 600; }
.leaflet-tooltip-pane   { z-index: 650; }
.leaflet-popup-pane   { z-index: 700; }

.leaflet-map-pane canvas { z-index: 100; }
.leaflet-map-pane svg    { z-index: 200; }

.leaflet-vml-shape {
	width: 1px;
	height: 1px;
	}
.lvml {
	behavior: url(#default#VML);
	display: inline-block;
	position: absolute;
	}


/* control positioning */

.leaflet-control {
	position: relative;
	z-index: 800;
	pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
	pointer-events: auto;
	}
.leaflet-top,
.leaflet-bottom {
	position: absolute;
	z-index: 1000;
	pointer-events: none;
	}
.leaflet-top {
	top: 0;
	}
.leaflet-right {
	right: 0;
	}
.leaflet-bottom {
	bottom: 0;
	}
.leaflet-left {
	left: 0;
	}
.leaflet-control {
	float: left;
	clear: both;
	}
.leaflet-right .leaflet-control {
	float: right;
	}
.leaflet-top .leaflet-control {
	margin-top: 10px;
	}
.leaflet-bottom .leaflet-control {
	margin-bottom: 10px;
	}
.leaflet-left .leaflet-control {
	margin-left: 10px;
	}
.leaflet-right .leaflet-control {
	margin-right: 10px;
	}


/* zoom and fade animations */

.leaflet-fade-anim .leaflet-popup {
	opacity: 0;
	-webkit-transition: opacity 0.2s linear;
	   -moz-transition: opacity 0.2s linear;
	        transition: opacity 0.2s linear;
	}
.leaflet-fade-anim .leaflet-map-pane .leaflet-popup {
	opacity: 1;
	}
.leaflet-zoom-animated {
	-webkit-transform-origin: 0 0;
	    -ms-transform-origin: 0 0;
	        transform-origin: 0 0;
	}
svg.leaflet-zoom-animated {
	will-change: transform;
}

.leaflet-zoom-anim .leaflet-zoom-animated {
	-webkit-transition: -webkit-transform 0.25s cubic-bezier(0,0,0.25,1);
	   -moz-transition:    -moz-transform 0.25s cubic-bezier(0,0,0.25,1);
	        transition:         transform 0.25s cubic-bezier(0,0,0.25,1);
	}
.leaflet-zoom-anim .leaflet-tile,
.leaflet-pan-anim .leaflet-tile {
	-webkit-transition: none;
	   -moz-transition: none;
	        transition: none;
	}

.leaflet-zoom-anim .leaflet-zoom-hide {
	visibility: hidden;
	}


/* cursors */

.leaflet-interactive {
	cursor: pointer;
	}
.leaflet-grab {
	cursor: -webkit-grab;
	cursor:    -moz-grab;
	cursor:         grab;
	}
.leaflet-crosshair,
.leaflet-crosshair .leaflet-interactive {
	cursor: crosshair;
	}
.leaflet-popup-pane,
.leaflet-control {
	cursor: auto;
	}
.leaflet-dragging .leaflet-grab,
.leaflet-dragging .leaflet-grab .leaflet-interactive,
.leaflet-dragging .leaflet-marker-draggable {
	cursor: move;
	cursor: -webkit-grabbing;
	cursor:    -moz-grabbing;
	cursor:         grabbing;
	}

/* marker & overlays interactivity */
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-image-layer,
.leaflet-pane > svg path,
.leaflet-tile-container {
	pointer-events: none;
	}

.leaflet-marker-icon.leaflet-interactive,
.leaflet-image-layer.leaflet-interactive,
.leaflet-pane > svg path.leaflet-interactive,
svg.leaflet-image-layer.leaflet-interactive path {
	pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
	pointer-events: auto;
	}

/* visual tweaks */

.leaflet-container {
	background: #ddd;
	outline-offset: 1px;
	}
.leaflet-container a {
	color: #0078A8;
	}
.leaflet-zoom-box {
	border: 2px dotted #38f;
	background: rgba(255,255,255,0.5);
	}


/* general typography */
.leaflet-container {
	font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-size: 0.75rem;
	line-height: 1.5;
	}


/* general toolbar styles */

.leaflet-bar {
	box-shadow: 0 1px 5px rgba(0,0,0,0.65);
	border-radius: 4px;
	}
.leaflet-bar a {
	background-color: #fff;
	border-bottom: 1px solid #ccc;
	width: 26px;
	height: 26px;
	line-height: 26px;
	display: block;
	text-align: center;
	text-decoration: none;
	color: black;
	}
.leaflet-bar a,
.leaflet-control-layers-toggle {
	background-position: 50% 50%;
	background-repeat: no-repeat;
	display: block;
	}
.leaflet-bar a:hover,
.leaflet-bar a:focus {
	background-color: #f4f4f4;
	}
.leaflet-bar a:first-child {
	border-top-left-radius: 4px;
	border-top-right-radius: 4px;
	}
.leaflet-bar a:last-child {
	border-bottom-left-radius: 4px;
	border-bottom-right-radius: 4px;
	border-bottom: none;
	}
.leaflet-bar a.leaflet-disabled {
	cursor: default;
	background-color: #f4f4f4;
	color: #bbb;
	}

.leaflet-touch .leaflet-bar a {
	width: 30px;
	height: 30px;
	line-height: 30px;
	}
.leaflet-touch .leaflet-bar a:first-child {
	border-top-left-radius: 2px;
	border-top-right-radius: 2px;
	}
.leaflet-touch .leaflet-bar a:last-child {
	border-bottom-left-radius: 2px;
	border-bottom-right-radius: 2px;
	}

/* zoom control */

.leaflet-control-zoom-in,
.leaflet-control-zoom-out {
	font: bold 18px 'Lucida Console', Monaco, monospace;
	text-indent: 1px;
	}

.leaflet-touch .leaflet-control-zoom-in, .leaflet-touch .leaflet-control-zoom-out  {
	font-size: 22px;
	}


/* layers control */

.leaflet-control-layers {
	box-shadow: 0 1px 5px rgba(0,0,0,0.4);
	background: #fff;
	border-radius: 5px;
	}
.leaflet-control-layers-toggle {
	background-image: url(/416d91365b44e4b4f477.png);
	width: 36px;
	height: 36px;
	}
.leaflet-retina .leaflet-control-layers-toggle {
	background-image: url(/8f2c4d11474275fbc161.png);
	background-size: 26px 26px;
	}
.leaflet-touch .leaflet-control-layers-toggle {
	width: 44px;
	height: 44px;
	}
.leaflet-control-layers .leaflet-control-layers-list,
.leaflet-control-layers-expanded .leaflet-control-layers-toggle {
	display: none;
	}
.leaflet-control-layers-expanded .leaflet-control-layers-list {
	display: block;
	position: relative;
	}
.leaflet-control-layers-expanded {
	padding: 6px 10px 6px 6px;
	color: #333;
	background: #fff;
	}
.leaflet-control-layers-scrollbar {
	overflow-y: scroll;
	overflow-x: hidden;
	padding-right: 5px;
	}
.leaflet-control-layers-selector {
	margin-top: 2px;
	position: relative;
	top: 1px;
	}
.leaflet-control-layers label {
	display: block;
	font-size: 13px;
	font-size: 1.08333em;
	}
.leaflet-control-layers-separator {
	height: 0;
	border-top: 1px solid #ddd;
	margin: 5px -10px 5px -6px;
	}

/* Default icon URLs */
.leaflet-default-icon-path { /* used only in path-guessing heuristic, see L.Icon.Default */
	background-image: url(/2b3e1faf89f94a483539.png);
	}


/* attribution and scale controls */

.leaflet-container .leaflet-control-attribution {
	background: #fff;
	background: rgba(255, 255, 255, 0.8);
	margin: 0;
	}
.leaflet-control-attribution,
.leaflet-control-scale-line {
	padding: 0 5px;
	color: #333;
	line-height: 1.4;
	}
.leaflet-control-attribution a {
	text-decoration: none;
	}
.leaflet-control-attribution a:hover,
.leaflet-control-attribution a:focus {
	text-decoration: underline;
	}
.leaflet-attribution-flag {
	display: inline !important;
	vertical-align: baseline !important;
	width: 1em;
	height: 0.6669em;
	}
.leaflet-left .leaflet-control-scale {
	margin-left: 5px;
	}
.leaflet-bottom .leaflet-control-scale {
	margin-bottom: 5px;
	}
.leaflet-control-scale-line {
	border: 2px solid #777;
	border-top: none;
	line-height: 1.1;
	padding: 2px 5px 1px;
	white-space: nowrap;
	-moz-box-sizing: border-box;
	     box-sizing: border-box;
	background: rgba(255, 255, 255, 0.8);
	text-shadow: 1px 1px #fff;
	}
.leaflet-control-scale-line:not(:first-child) {
	border-top: 2px solid #777;
	border-bottom: none;
	margin-top: -2px;
	}
.leaflet-control-scale-line:not(:first-child):not(:last-child) {
	border-bottom: 2px solid #777;
	}

.leaflet-touch .leaflet-control-attribution,
.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
	box-shadow: none;
	}
.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
	border: 2px solid rgba(0,0,0,0.2);
	background-clip: padding-box;
	}


/* popup */

.leaflet-popup {
	position: absolute;
	text-align: center;
	margin-bottom: 20px;
	}
.leaflet-popup-content-wrapper {
	padding: 1px;
	text-align: left;
	border-radius: 12px;
	}
.leaflet-popup-content {
	margin: 13px 24px 13px 20px;
	line-height: 1.3;
	font-size: 13px;
	font-size: 1.08333em;
	min-height: 1px;
	}
.leaflet-popup-content p {
	margin: 17px 0;
	margin: 1.3em 0;
	}
.leaflet-popup-tip-container {
	width: 40px;
	height: 20px;
	position: absolute;
	left: 50%;
	margin-top: -1px;
	margin-left: -20px;
	overflow: hidden;
	pointer-events: none;
	}
.leaflet-popup-tip {
	width: 17px;
	height: 17px;
	padding: 1px;

	margin: -10px auto 0;
	pointer-events: auto;

	-webkit-transform: rotate(45deg);
	   -moz-transform: rotate(45deg);
	    -ms-transform: rotate(45deg);
	        transform: rotate(45deg);
	}
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
	background: white;
	color: #333;
	box-shadow: 0 3px 14px rgba(0,0,0,0.4);
	}
.leaflet-container a.leaflet-popup-close-button {
	position: absolute;
	top: 0;
	right: 0;
	border: none;
	text-align: center;
	width: 24px;
	height: 24px;
	font: 16px/24px Tahoma, Verdana, sans-serif;
	color: #757575;
	text-decoration: none;
	background: transparent;
	}
.leaflet-container a.leaflet-popup-close-button:hover,
.leaflet-container a.leaflet-popup-close-button:focus {
	color: #585858;
	}
.leaflet-popup-scrolled {
	overflow: auto;
	}

.leaflet-oldie .leaflet-popup-content-wrapper {
	-ms-zoom: 1;
	}
.leaflet-oldie .leaflet-popup-tip {
	width: 24px;
	margin: 0 auto;

	-ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";
	filter: progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678);
	}

.leaflet-oldie .leaflet-control-zoom,
.leaflet-oldie .leaflet-control-layers,
.leaflet-oldie .leaflet-popup-content-wrapper,
.leaflet-oldie .leaflet-popup-tip {
	border: 1px solid #999;
	}


/* div icon */

.leaflet-div-icon {
	background: #fff;
	border: 1px solid #666;
	}


/* Tooltip */
/* Base styles for the element that has a tooltip */
.leaflet-tooltip {
	position: absolute;
	padding: 6px;
	background-color: #fff;
	border: 1px solid #fff;
	border-radius: 3px;
	color: #222;
	white-space: nowrap;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	pointer-events: none;
	box-shadow: 0 1px 3px rgba(0,0,0,0.4);
	}
.leaflet-tooltip.leaflet-interactive {
	cursor: pointer;
	pointer-events: auto;
	}
.leaflet-tooltip-top:before,
.leaflet-tooltip-bottom:before,
.leaflet-tooltip-left:before,
.leaflet-tooltip-right:before {
	position: absolute;
	pointer-events: none;
	border: 6px solid transparent;
	background: transparent;
	content: "";
	}

/* Directions */

.leaflet-tooltip-bottom {
	margin-top: 6px;
}
.leaflet-tooltip-top {
	margin-top: -6px;
}
.leaflet-tooltip-bottom:before,
.leaflet-tooltip-top:before {
	left: 50%;
	margin-left: -6px;
	}
.leaflet-tooltip-top:before {
	bottom: 0;
	margin-bottom: -12px;
	border-top-color: #fff;
	}
.leaflet-tooltip-bottom:before {
	top: 0;
	margin-top: -12px;
	margin-left: -6px;
	border-bottom-color: #fff;
	}
.leaflet-tooltip-left {
	margin-left: -6px;
}
.leaflet-tooltip-right {
	margin-left: 6px;
}
.leaflet-tooltip-left:before,
.leaflet-tooltip-right:before {
	top: 50%;
	margin-top: -6px;
	}
.leaflet-tooltip-left:before {
	right: 0;
	margin-right: -12px;
	border-left-color: #fff;
	}
.leaflet-tooltip-right:before {
	left: 0;
	margin-left: -12px;
	border-right-color: #fff;
	}

/* Printing */

@media print {
	/* Prevent printers from removing background-images of controls. */
	.leaflet-control {
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
		}
	}

/* TrackMapComponent styles */
.track-map-container {
  width: 100%;
  height: 100%;
  min-height: 400px;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

.track-map-container .leaflet-container {
  width: 100%;
  height: 100%;
  min-height: 400px;
  background: #1a1a2e;
}

.track-map-container--fullscreen,
.track-map-container--fullscreen .leaflet-container {
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 0;
}

.track-map-container--fullscreen {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.track-map-container--fullscreen .leaflet-control-attribution {
  max-width: min(70vw, 520px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0.68;
}

@media (pointer: coarse) {
  .track-map-container--fullscreen .leaflet-control-zoom {
    display: none;
  }
}

/* Custom controls */
.track-map-controls {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.track-map-controls button {
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 4px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: background 0.2s;
}

.track-map-controls button:hover {
  background: rgba(255, 255, 255, 1);
}

.track-map-controls button.active {
  background: #1976d2;
  color: white;
}

/* Legend */
.track-map-legend {
  position: absolute;
  bottom: 10px;
  left: 10px;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.75);
  color: white;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 11px;
}

.track-map-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0;
}

.track-map-legend-line {
  width: 20px;
  height: 3px;
  border-radius: 2px;
}

.track-map-legend-line.sf-line {
  background: #00ff00;
}

.track-map-legend-line.sector-line {
  background: #ffff00;
}

.track-map-legend-line.outline {
  background: #00bfff;
}

/* Drawing mode indicator */
.track-map-drawing-mode {
  position: absolute;
  /* 2026-07-14: moved to the BOTTOM edge so the long start/finish hint never
     covers the centre crosshair the rider aims with; capped width + closable. */
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  max-width: calc(100% - 24px);
  background: rgba(255, 152, 0, 0.95);
  color: white;
  padding: 6px 10px 6px 14px;
  border-radius: 16px;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.track-map-drawing-mode-text { flex: 1; }
.track-map-drawing-mode-close {
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.25);
  border: none;
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.track-map-drawing-mode-close:hover { background: rgba(255, 255, 255, 0.4); }

/* #1 Center crosshair (pan-safe placement target) */
.track-map-crosshair {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1100;
}

.track-map-crosshair-ring {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(0, 0, 0, 0.35);
}

.track-map-crosshair-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  background: #ff3b30;
  border: 1px solid white;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

/* #1 "Add here" button — places at the crosshair (map centre) */
.track-map-place-btn {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1100;
  background: #1976d2;
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  transition: background 0.2s;
}

.track-map-place-btn:hover {
  background: #1565c0;
}

.track-map-container--fullscreen .track-map-place-btn {
  bottom: calc(74px + env(safe-area-inset-bottom));
  min-height: 46px;
  padding: 11px 20px;
  border-radius: 24px;
  background: #1a2b63;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.42);
}

.track-map-container--fullscreen .track-map-crosshair {
  width: 34px;
  height: 34px;
}

/* Popup styles */
.leaflet-popup-content {
  margin: 8px 12px;
}

.leaflet-popup-content p {
  margin: 4px 0;
  font-size: 12px;
}

/* Custom marker styles */
.sf-marker {
  background: #00ff00;
  border: 2px solid white;
  border-radius: 50%;
  width: 12px;
  height: 12px;
}

.sector-marker {
  background: #ffff00;
  border: 2px solid white;
  border-radius: 50%;
  width: 10px;
  height: 10px;
}

.track-line-label-wrapper {
  background: transparent;
  border: 0;
}

.track-line-label {
  display: flex;
  width: 28px;
  height: 22px;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 12px;
  background: rgba(10, 22, 38, 0.84);
  color: #7cecff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.48);
}

.track-line-label.is-active {
  background: #fff;
  color: #1a2b63;
}

@media (orientation: landscape) {
  .track-map-container--fullscreen .track-map-place-btn {
    right: calc(78px + env(safe-area-inset-right));
    bottom: calc(74px + env(safe-area-inset-bottom));
    left: auto;
    transform: none;
  }
}

.track-geometry-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 1600;
  width: 100dvw;
  height: 100dvh;
  overflow: hidden;
  background: #09101b;
  color: #fff;
}

.track-geometry-fullscreen__map {
  position: absolute;
  inset: 0;
}

.track-geometry-fullscreen__track-name {
  position: absolute;
  top: calc(14px + env(safe-area-inset-top));
  left: calc(18px + env(safe-area-inset-left));
  z-index: 1620;
  max-width: calc(100vw - 340px);
  overflow: hidden;
  color: #fff;
  font-size: 18px !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
  text-overflow: ellipsis;
  text-shadow: 0 2px 7px rgba(0, 0, 0, 0.95);
  white-space: nowrap;
  pointer-events: none;
}

.track-geometry-fullscreen__actions {
  position: absolute;
  top: calc(10px + env(safe-area-inset-top));
  right: calc(10px + env(safe-area-inset-right));
  z-index: 1630;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
}

.track-geometry-fullscreen__direction {
  position: absolute;
  top: calc(46px + env(safe-area-inset-top));
  left: calc(14px + env(safe-area-inset-left));
  z-index: 1620;
  display: flex;
  gap: 3px;
  padding: 3px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(10px);
}

.track-geometry-fullscreen__direction .MuiButton-root {
  min-width: 54px;
  min-height: 34px;
  padding: 4px 10px;
  border-radius: 17px;
  color: #1a2b63;
  text-transform: none;
  font-size: 12px;
  font-weight: 800;
}

.track-geometry-fullscreen__direction .MuiButton-root.is-active {
  background: #1a2b63;
  color: #fff;
}

.track-geometry-fullscreen__actions .MuiIconButton-root {
  width: 38px;
  height: 38px;
  color: #1a2b63;
}

.track-geometry-fullscreen__actions .Mui-disabled {
  color: rgba(26, 43, 99, 0.28) !important;
}

.track-geometry-fullscreen__apply {
  min-width: 96px !important;
  min-height: 40px !important;
  border-radius: 21px !important;
  background: #1a2b63 !important;
  text-transform: none !important;
  font-weight: 800 !important;
}

.track-geometry-fullscreen__bottom {
  position: absolute;
  right: calc(10px + env(safe-area-inset-right));
  bottom: calc(10px + env(safe-area-inset-bottom));
  left: calc(10px + env(safe-area-inset-left));
  z-index: 1620;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  pointer-events: none;
}

.track-geometry-fullscreen__mode-strip {
  display: flex;
  width: min(1120px, 100%);
  min-height: 52px;
  align-items: center;
  gap: 4px;
  padding: 5px 7px;
  overflow: hidden;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(10px);
  pointer-events: auto;
}

.track-geometry-fullscreen__mode-tabs,
.track-geometry-fullscreen__context-tools {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 3px;
}

.track-geometry-fullscreen__mode-tabs {
  flex: 0 0 auto;
  padding-right: 5px;
  border-right: 1px solid rgba(26, 43, 99, 0.17);
}

.track-geometry-fullscreen__context-tools {
  flex: 1 1 auto;
  overflow: hidden;
}

.track-geometry-fullscreen__mode-strip .MuiButton-root,
.track-geometry-fullscreen__mode-strip .MuiIconButton-root {
  min-width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 21px;
  color: #1a2b63;
  text-transform: none;
  font-weight: 800;
}

.track-geometry-fullscreen__mode-strip .MuiButton-root.is-active,
.track-geometry-fullscreen__mode-strip .MuiIconButton-root.is-active {
  background: #1a2b63;
  color: #fff;
}

.track-geometry-fullscreen__divider {
  width: 1px;
  height: 28px;
  flex: 0 0 1px;
  margin: 0 2px;
  background: rgba(26, 43, 99, 0.17);
}

.track-geometry-fullscreen__item-list {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  gap: 3px;
  overflow-x: auto;
  scrollbar-width: none;
}

.track-geometry-fullscreen__corner-scope {
  display: flex;
  min-width: 0;
  flex: 0 0 auto;
  align-items: center;
  gap: 3px;
  padding-right: 5px;
  border-right: 1px solid rgba(26, 43, 99, 0.17);
}

.track-geometry-fullscreen__corner-scope .MuiButton-root {
  max-width: 154px;
  padding: 0 9px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track-geometry-fullscreen__item-list::-webkit-scrollbar {
  display: none;
}

.track-geometry-fullscreen__item-list .MuiButton-root {
  min-width: 42px;
  padding: 0 8px;
}

.track-geometry-fullscreen__count {
  flex: 0 0 auto;
  padding: 0 8px;
  color: #52607c;
  font-size: 12px !important;
  font-weight: 800 !important;
  white-space: nowrap;
}

.track-geometry-fullscreen__scope {
  max-width: calc(100vw - 24px);
  padding: 3px 9px;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.62);
  color: rgba(255, 255, 255, 0.88);
  font-size: 11px !important;
  line-height: 1.2 !important;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
}

.track-geometry-fullscreen__notice {
  position: absolute;
  top: calc(72px + env(safe-area-inset-top));
  left: 50%;
  z-index: 1650;
  display: flex;
  max-width: calc(100vw - 24px);
  align-items: center;
  gap: 8px;
  padding: 8px 10px 8px 14px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  color: #1a2b63;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.35);
  transform: translateX(-50%);
  backdrop-filter: blur(10px);
}

.track-geometry-fullscreen__notice .MuiTypography-root {
  font-size: 13px;
  font-weight: 700;
}

.track-geometry-fullscreen__notice .MuiButton-root {
  flex-shrink: 0;
  border-radius: 18px;
  text-transform: none;
  font-weight: 800;
}

.track-geometry-fullscreen__notice--error {
  color: #a31515;
}

@media (orientation: portrait), (max-width: 700px) {
  .track-geometry-fullscreen__track-name {
    top: calc(66px + env(safe-area-inset-top));
    max-width: calc(100vw - 36px);
    font-size: 16px !important;
  }

  .track-geometry-fullscreen__actions {
    right: calc(6px + env(safe-area-inset-right));
    left: calc(6px + env(safe-area-inset-left));
    justify-content: flex-end;
    border-radius: 0 0 18px 18px;
  }

  .track-geometry-fullscreen__direction {
    top: calc(104px + env(safe-area-inset-top));
    left: calc(6px + env(safe-area-inset-left));
  }

  .track-geometry-fullscreen__actions > :first-child {
    margin-right: auto;
  }

  .track-geometry-fullscreen__actions .MuiIconButton-root {
    width: 36px;
    height: 36px;
  }

  .track-geometry-fullscreen__apply {
    min-width: 88px !important;
  }

  .track-geometry-fullscreen__bottom {
    right: 0;
    bottom: env(safe-area-inset-bottom);
    left: 0;
    gap: 0;
  }

  .track-geometry-fullscreen__mode-strip {
    width: 100%;
    flex-wrap: wrap;
    padding: 5px 5px 7px;
    border-radius: 18px 18px 0 0;
  }

  .track-geometry-fullscreen__mode-strip .MuiButton-root {
    font-size: 12px;
  }

  .track-geometry-fullscreen__mode-tabs {
    width: 100%;
    border-right: 0;
    border-bottom: 1px solid rgba(26, 43, 99, 0.13);
    padding: 0 0 4px;
  }

  .track-geometry-fullscreen__mode-tabs .MuiButton-root {
    min-width: 0;
    flex: 1 1 25%;
    padding: 0 5px;
  }

  .track-geometry-fullscreen__mode-tabs .MuiButton-startIcon {
    margin-right: 3px;
  }

  .track-geometry-fullscreen__context-tools {
    width: 100%;
    min-height: 42px;
  }

  .track-geometry-fullscreen__corner-scope {
    max-width: 52%;
    padding-right: 3px;
  }

  .track-geometry-fullscreen__corner-scope .MuiButton-root {
    min-width: 0;
    max-width: none;
    flex: 1 1 50%;
    padding: 0 6px;
  }

  .track-geometry-fullscreen__divider {
    display: none;
  }

  .track-geometry-fullscreen__scope {
    order: -1;
    margin-bottom: 4px;
  }

  .track-geometry-fullscreen__notice {
    top: calc(62px + env(safe-area-inset-top));
    width: calc(100vw - 20px);
    justify-content: flex-end;
    border-radius: 18px;
  }

  .track-geometry-fullscreen__notice .MuiTypography-root {
    margin-right: auto;
  }
}

@media (orientation: landscape) and (max-height: 620px) {
  .track-geometry-fullscreen__actions {
    top: env(safe-area-inset-top);
    right: env(safe-area-inset-right);
    bottom: env(safe-area-inset-bottom);
    width: 58px;
    flex-direction: column;
    border-radius: 18px 0 0 18px;
  }

  .track-geometry-fullscreen__apply {
    width: 42px;
    min-width: 42px !important;
    margin-top: auto !important;
    padding: 0 !important;
    font-size: 0 !important;
  }

  .track-geometry-fullscreen__apply .MuiButton-startIcon {
    margin: 0;
  }

  .track-geometry-fullscreen__bottom {
    right: calc(72px + env(safe-area-inset-right));
  }

  .track-geometry-fullscreen__direction {
    top: calc(44px + env(safe-area-inset-top));
  }

  .track-geometry-fullscreen__mode-tabs .MuiButton-root {
    min-width: 42px;
    padding: 0 8px;
  }

  .track-geometry-fullscreen__track-name {
    max-width: calc(100vw - 160px);
  }
}

.rider-journal-page { min-width:0; max-width:1400px; margin:auto; }
.rj-stepper { margin:20px 0; }
.rj-stepper .MuiStepLabel-label { font-size:12px; cursor:pointer; }
.rj-candidate,.rj-preview-row { padding:14px 0; border-bottom:1px solid var(--mr-border,#e1e6ee); min-width:0; }
.rj-task { margin-top:20px; padding:14px 0; border-top:1px solid var(--mr-border,#e1e6ee); }
.rj-fields > * { min-width:0; }
@media(max-width:600px) { .rj-stepper .MuiStepLabel-label { font-size:10px; } .rider-journal-page .MuiStepper-root { padding:0; } .rider-journal-page .MuiStep-root { padding:0 3px; } }

.rj-archive-filters { flex-wrap:wrap; }
.rj-archive-filters > .MuiFormControl-root { flex:1 1 180px; min-width:180px; }
.rj-archive-filters > .MuiButton-root { flex-shrink:0; }
@media(max-width:600px) { .rj-archive-filters > .MuiFormControl-root { min-width:0; width:100%; flex:auto; } .rider-journal-page .MuiAccordionSummary-content { min-width:0; overflow-wrap:anywhere; } }

@media(max-width:600px) { .rider-journal-page { padding:12px 16px 24px; } }

/* MUI StepButton defaults to negative horizontal margins beyond the step. */
.rider-journal-page .rj-stepper .MuiStepButton-root { margin:0; width:100%; padding:12px 0; min-width:0; }

.rider-journal-page .MuiAlert-message { min-width:0; overflow-wrap:anywhere; }
.rider-journal-page .MuiButton-root { white-space:normal; overflow-wrap:anywhere; }
@media(max-width:600px) { .rider-journal-page .mr-page-actions { max-width:100%; } .rider-journal-page .mr-page-actions .MuiButton-root { max-width:100%; white-space:normal; } }

.App {
  text-align: center;
}

.App-logo {
  height: 40vmin;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .App-logo {
    animation: App-logo-spin infinite 20s linear;
  }
}

.App-header {
  background-color: #282c34;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: calc(10px + 2vmin);
  color: white;
}

.App-link {
  color: #61dafb;
}

@keyframes App-logo-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* ============================================= */
/* FIX FOR BLURRY INPUT FIELDS - TARGETED APPROACH */
/* ============================================= */

/* ONLY remove blur from MUI input field borders (fieldsets) */
.MuiOutlinedInput-notchedOutline,
fieldset.MuiOutlinedInput-notchedOutline {
  /* Remove the problematic blur that was making text unreadable */
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  filter: none !important;
  -webkit-filter: none !important;
}

/* Ensure input text itself is crisp */
.MuiInputBase-input,
.MuiOutlinedInput-input,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea,
select {
  /* No blur on the actual input elements */
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  filter: none !important;
  -webkit-filter: none !important;
  
  /* Ensure text is readable */
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  text-rendering: optimizeLegibility !important;
}

/* Remove blur from buttons ONLY if they're causing issues */
.MuiButton-root.MuiButton-contained,
.MuiButton-root.MuiButton-outlined {
  /* Buttons can keep their glassmorphic effect if using opacity */
  /* Only remove if text is blurry */
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Disabled contained buttons must stay READABLE (previously a dark gradient kept
   showing with faint text → unreadable until enabled). Flat grey + visible label. */
.MuiButton-root.MuiButton-contained.Mui-disabled {
  background: #cbd5e1 !important;
  background-image: none !important;
  color: #475569 !important;
  -webkit-text-fill-color: #475569 !important;
  opacity: 1 !important;
  box-shadow: none !important;
}

/* ============================================= */
/* PRESERVE GLASSMORPHIC DESIGN */
/* ============================================= */

/* Glass panels should use opacity-based glass effect, not blur */
.glass-panel,
.login-panel,
.form-container {
  /* Keep the glassmorphic look without blur */
  background: rgba(255, 255, 255, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  box-shadow: 
    0 8px 32px rgba(31, 38, 135, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5) !important;
}

/* Input containers should have subtle background */
.MuiTextField-root .MuiOutlinedInput-root {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(26, 43, 99, 0.2);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.MuiTextField-root .MuiOutlinedInput-root:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(26, 43, 99, 0.3);
}

.MuiTextField-root .MuiOutlinedInput-root.Mui-focused {
  background: rgba(255, 255, 255, 0.95);
  border-color: #1976d2;
  box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.1);
}

/* Labels should be visible */
.MuiInputLabel-root {
  background-color: white;
  padding: 0 4px;
  color: rgba(0, 0, 0, 0.6);
}

/* FIX FOR LOGIN/REGISTER PAGE LABEL POSITIONING */

/* Fix non-shrunk label position (when input is empty) */
.MuiInputLabel-root.MuiInputLabel-outlined:not(.MuiInputLabel-shrink) {
  /* Center the label properly in the input field */
  transform: translate(14px, 20px) scale(1) !important;
  background-color: transparent !important;
  z-index: 1;
}

/* Fix shrunk label position (when input has value or is focused) */
.MuiInputLabel-root.MuiInputLabel-outlined.MuiInputLabel-shrink {
  /* Position label on the top border */
  transform: translate(14px, -9px) scale(0.75) !important;
  background-color: white !important;
  padding: 0 8px !important;
  z-index: 10 !important;
}

/* Ensure proper background for shrunk labels */
.MuiInputLabel-shrink,
.MuiInputLabel-formControl.MuiInputLabel-shrink,
.MuiFormLabel-filled {
  background-color: white !important;
  padding: 0 8px !important;
  z-index: 10 !important;
}

/* Fix the notched outline legend that creates space for the label */
.MuiOutlinedInput-root .MuiOutlinedInput-notchedOutline legend {
  padding: 0 8px !important;
  max-width: 1000px !important;
  font-size: 0.75em !important;
}

/* When input is focused, ensure label stays visible */
.MuiOutlinedInput-root.Mui-focused .MuiInputLabel-shrink,
.MuiOutlinedInput-root.Mui-focused .MuiInputLabel-formControl {
  background-color: white !important;
  color: #1976d2 !important;
}

/* Specific fix for login and register forms */
.form-section .MuiInputLabel-root,
.login-panel .MuiInputLabel-root,
.register-panel .MuiInputLabel-root {
  z-index: 10 !important;
}

/* Override any conflicting background when not shrunk */
.form-section .MuiInputLabel-root:not(.MuiInputLabel-shrink) {
  background-color: transparent !important;
}
/* Login Page Glassmorphic Styles */

.login-glass-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #F0F4F8 0%, #E2E8F0 100%);
}

/* Background Effects - Simple demo style */
.login-background {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  pointer-events: none;
}

.logo-watermark {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 60%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.03;
  transform: rotate(-15deg);
}

/* Language Switcher Container */
.language-switcher-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1000;
}

/* Login Content */
.login-content {
  position: relative;
  z-index: 1;
  padding: 2rem 1rem;
}

/* Glass Panel - Cross-browser solution without backdrop-filter issues */
.login-panel {
  position: relative;
  background: rgba(255, 255, 255, 0.95) !important;
  border: 1px solid rgba(26, 43, 99, 0.15);
  border-radius: 24px !important;
  box-shadow: 
    0 20px 40px -12px rgba(50, 50, 93, 0.25),
    0 10px 20px -8px rgba(0, 0, 0, 0.15),
    inset 0 0 0 1px rgba(255, 255, 255, 0.8);
  padding: 3rem 2.5rem;
  transition: all 0.3s ease;
  overflow: hidden;
}

/* REMOVED backdrop-filter from login-panel to prevent input blur
   The blur effect was causing all child elements (including inputs) to appear blurry
   Now using only background opacity for the glass effect */

.login-panel:hover {
  box-shadow: 
    0 24px 48px -12px rgba(50, 50, 93, 0.3),
    0 12px 24px -8px rgba(0, 0, 0, 0.2),
    inset 0 0 0 1px rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}

/* Login Header */
.login-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.login-logo {
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 4px 20px rgba(26, 43, 99, 0.15));
  transition: transform 0.3s ease;
}

.login-logo:hover {
  transform: scale(1.05);
}

.login-title {
  font-family: 'CaptureSmallz', sans-serif !important;
  font-weight: 900 !important;
  margin-bottom: 0.5rem !important;
}

.gradient-text {
  background: linear-gradient(135deg, #1A2B63, #457B9D);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.login-subtitle {
  color: #64748B;
  font-size: 0.95rem;
}

/* Form Section - Completely isolated from any blur effects */
.form-section {
  margin-bottom: 2rem;
  position: relative;
  z-index: 100;
  /* Create new stacking context */
  isolation: isolate;
  /* Ensure no filters affect this section */
  filter: none !important;
  -webkit-filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* CRITICAL FIX: Label positioning for login form */
.form-section .MuiInputLabel-root.MuiInputLabel-outlined:not(.MuiInputLabel-shrink) {
  /* Label position when input is empty - centered in field */
  transform: translate(14px, 20px) scale(1) !important;
  background-color: transparent !important;
  padding: 0 !important;
  z-index: 11;
}

.form-section .MuiInputLabel-root.MuiInputLabel-outlined.MuiInputLabel-shrink {
  /* Label position when input is focused or has value - on border */
  transform: translate(14px, -9px) scale(0.75) !important;
  background-color: white !important;
  padding: 0 8px !important;
  z-index: 12 !important;
}

/* OAuth Section */
.oauth-section {
  margin: 2rem 0;
}

.divider-glass {
  margin: 2rem 0 !important;
  &::before,
  &::after {
    border-color: rgba(26, 43, 99, 0.1) !important;
  }
}

.divider-text {
  color: #64748B;
  padding: 0 1rem;
}

.google-button {
  padding: 0.75rem 1rem !important;
  font-weight: 500 !important;
  text-transform: none !important;
  background: white !important;
  border: 1px solid rgba(26, 43, 99, 0.2);
  transition: all 0.3s ease !important;
  /* Chrome blur fix */
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.google-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26, 43, 99, 0.15);
}

/* Sign Up Link Section */
.signup-link-section {
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Footer */
.login-footer {
  text-align: center;
  margin-top: 2rem;
  padding: 1rem;
}

/* Form Input Styling Override */
.form-section .MuiTextField-root {
  margin-bottom: 1rem;
}

/* Input fields - Guaranteed clarity across all browsers */
.form-section .MuiOutlinedInput-root {
  background: #FFFFFF !important;
  border: 2px solid rgba(26, 43, 99, 0.2) !important;
  border-radius: 8px !important;
  transition: all 0.3s ease;
  position: relative;
  z-index: 10;
  /* Force rendering context */
  will-change: border-color, box-shadow;
  /* Disable any inherited filters */
  filter: none !important;
  -webkit-filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.form-section .MuiOutlinedInput-root fieldset {
  border: none !important;
}

.form-section .MuiOutlinedInput-root:hover {
  background: #FFFFFF !important;
  border-color: rgba(26, 43, 99, 0.4) !important;
  box-shadow: 0 4px 12px rgba(26, 43, 99, 0.08);
}

.form-section .MuiOutlinedInput-root.Mui-focused {
  background: #FFFFFF !important;
  border-color: #1A2B63 !important;
  box-shadow: 0 6px 20px rgba(26, 43, 99, 0.15);
  outline: none;
}

.form-section .MuiButton-contained {
  background: linear-gradient(135deg, #1A2B63, #457B9D) !important;
  box-shadow: 0 4px 20px rgba(26, 43, 99, 0.25) !important;
  font-weight: 600 !important;
  padding: 0.75rem !important;
  transition: all 0.3s ease !important;
}

.form-section .MuiButton-contained:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(26, 43, 99, 0.35) !important;
}

/* Responsive Design */
@media (max-width: 600px) {
  .login-panel {
    padding: 2rem 1.5rem;
    border-radius: 20px !important;
  }

  .login-logo {
    width: 80px !important;
    height: 80px !important;
  }

  .login-title {
    font-size: 1.75rem !important;
  }

  .login-subtitle {
    font-size: 0.875rem;
  }

  .language-switcher-container {
    top: 0.5rem;
    right: 0.5rem;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .login-panel {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 2px solid #1A2B63;
  }

  .google-button,
  .form-section .MuiOutlinedInput-root {
    border-width: 2px !important;
    border-color: #1A2B63 !important;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .login-logo:hover,
  .google-button:hover,
  .form-section .MuiButton-contained:hover {
    transform: none;
  }

  * {
    transition-duration: 0.01ms !important;
  }
}

/* Loading State */
.login-panel.loading {
  pointer-events: none;
  opacity: 0.7;
}

/* Input Text - Maximum clarity */
.form-section .MuiOutlinedInput-input {
  color: #000000 !important;
  font-weight: 600 !important;
  font-size: 16px !important;
  opacity: 1 !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  /* Ensure text is not affected by any filters */
  filter: none !important;
  -webkit-filter: none !important;
}

.form-section .MuiInputLabel-root {
  color: rgba(26, 43, 99, 0.8) !important;
  font-weight: 600 !important;
  /* Remove fixed background and padding - let shrink state control it */
}

.form-section .MuiInputLabel-root.Mui-focused {
  color: #1A2B63 !important;
  font-weight: 700 !important;
}

/* Error State */
.error-message {
  background: rgba(230, 57, 70, 0.1);
  border: 1px solid rgba(230, 57, 70, 0.3);
  border-radius: 8px;
  padding: 1rem;
  margin: 1rem 0;
  color: #E63946;
  text-align: center;
}
/* RegisterPageGlass CSS - Glassmorphic Design */

.register-container {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Background Effects - Simple demo style */
.register-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(135deg, #F0F4F8 0%, #E2E8F0 100%);
}

.register-background .logo-watermark {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 60%;
  opacity: 0.03;
  pointer-events: none;
  transform: rotate(-15deg);
}

/* Language Switcher */
.language-switcher-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
}

/* Main Content */
.register-content {
  position: relative;
  z-index: 1;
  padding: 2rem 1rem;
}

/* Glass Panel */
.register-panel {
  background: rgba(255, 255, 255, 0.8) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px !important;
  border: 1px solid rgba(26, 43, 99, 0.1);
  box-shadow: 
    0 8px 32px 0 rgba(31, 38, 135, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5) !important;
  padding: 3rem 2.5rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.register-panel:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 12px 40px 0 rgba(31, 38, 135, 0.15),
    inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

/* Header Section */
.register-header {
  text-align: center;
  margin-bottom: 2rem;
}

.register-logo {
  margin: 0 auto 1rem;
  transition: transform 0.3s ease;
}

.register-logo:hover {
  transform: scale(1.05);
}

.register-title {
  font-family: 'CaptureSmallz', 'Bebas Neue', sans-serif !important;
  font-size: 2.5rem !important;
  font-weight: 400 !important;
  margin-bottom: 0.5rem !important;
  letter-spacing: 0.1em;
}

.gradient-text {
  background: linear-gradient(135deg, #1A2B63 0%, #457B9D 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.register-subtitle {
  color: #64748B;
  font-size: 1rem;
  margin-top: 0.5rem;
}

/* Form Section */
.form-section {
  margin-bottom: 1.5rem;
}

/* CRITICAL FIX: Label positioning for register form */
.form-section .MuiInputLabel-root.MuiInputLabel-outlined:not(.MuiInputLabel-shrink) {
  /* Label position when input is empty - centered in field */
  transform: translate(14px, 20px) scale(1) !important;
  background-color: transparent !important;
  padding: 0 !important;
  z-index: 11;
}

.form-section .MuiInputLabel-root.MuiInputLabel-outlined.MuiInputLabel-shrink {
  /* Label position when input is focused or has value - on border */
  transform: translate(14px, -9px) scale(0.75) !important;
  background-color: white !important;
  padding: 0 8px !important;
  z-index: 12 !important;
}

.form-section .MuiTextField-root {
  margin-bottom: 1rem;
}

.form-section .MuiOutlinedInput-root {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(26, 43, 99, 0.2);
  transition: all 0.3s ease;
}

.form-section .MuiOutlinedInput-root:hover {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(26, 43, 99, 0.3);
}

.form-section .MuiOutlinedInput-root.Mui-focused {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(26, 43, 99, 0.4);
}

/* OAuth Section */
.oauth-section {
  margin: 1.5rem 0;
}

.auth-divider {
  margin: 1.5rem 0;
}

.auth-divider .divider-text {
  color: #94A3B8;
  padding: 0 1rem;
  background: rgba(255, 255, 255, 0.8);
}

.oauth-button {
  padding: 0.75rem !important;
  border-color: rgba(26, 43, 99, 0.2) !important;
  background: rgba(255, 255, 255, 0.5) !important;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease !important;
}

.oauth-button:hover {
  background: rgba(255, 255, 255, 0.8) !important;
  border-color: rgba(26, 43, 99, 0.3) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.google-button {
  color: #1A2B63 !important;
}

/* Login Link Section */
.login-link-section {
  text-align: center;
  margin-top: 1.5rem;
}

.auth-prompt {
  color: #64748B;
}

.auth-link {
  color: #457B9D !important;
  text-decoration: none !important;
  font-weight: 500;
  transition: color 0.3s ease;
}

.auth-link:hover {
  color: #1A2B63 !important;
  text-decoration: underline !important;
}

/* Footer */
.auth-footer {
  text-align: center;
  margin-top: 2rem;
  padding: 1rem;
}

.footer-text {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
}

/* Loading State */
.register-panel.loading {
  opacity: 0.7;
  pointer-events: none;
}

/* Responsive Design */
@media (max-width: 600px) {
  .register-panel {
    padding: 2rem 1.5rem;
    border-radius: 20px !important;
  }

  .register-logo {
    width: 80px !important;
    height: 80px !important;
  }

  .register-title {
    font-size: 2rem !important;
  }

  .language-switcher-container {
    top: 10px;
    right: 10px;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-contrast: high) {
  .register-panel {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 2px solid #1A2B63;
  }
  
  .gradient-text {
    background: #1A2B63;
    -webkit-text-fill-color: #1A2B63;
  }
}

/* Focus States */
.oauth-button:focus-visible,
.auth-link:focus-visible {
  outline: 2px solid #457B9D;
  outline-offset: 2px;
}

/* Password Requirements */
.password-requirements {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 1rem;
  margin-top: 0.5rem;
  border: 1px solid rgba(26, 43, 99, 0.1);
}

/* Country Select */
.country-select {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
}

.country-select:hover {
  background: rgba(255, 255, 255, 0.7);
}

/* Role Select */
.role-buttons {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.role-button {
  flex: 1;
  background: rgba(255, 255, 255, 0.5) !important;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(26, 43, 99, 0.2) !important;
  transition: all 0.3s ease !important;
}

.role-button:hover {
  background: rgba(255, 255, 255, 0.7) !important;
  border-color: rgba(26, 43, 99, 0.3) !important;
}

.role-button.selected {
  background: rgba(26, 43, 99, 0.1) !important;
  border-color: #457B9D !important;
  color: #1A2B63 !important;
}
/* GlassmorphicLayout — MotoGP-inspired sidebar navigation */

/* ========================================================================== */
/* Layout Structure                                                            */
/* ========================================================================== */

.glassmorphic-layout {
  min-height: 100vh;
  width: 100%;
  position: relative;
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

/* ========================================================================== */
/* Centralized Background                                                      */
/* ========================================================================== */

.glassmorphic-background-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #f5f6f8;
  z-index: -1;
  pointer-events: none;
}


/* Transparent page containers */
[class*="-glass-container"],
[class*="-container"][class*="glass"],
[class*="-page"][class*="glass"] {
  background: transparent !important;
  position: relative;
}

/* ========================================================================== */
/* Sidebar                                                                     */
/* ========================================================================== */

.sidebar-motogp {
  width: 240px;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  background: #ffffff;
  border-right: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow: hidden;
}

.sidebar-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 6px 8px;
}

/* Hide scrollbar but keep scrollable */
.sidebar-scroll::-webkit-scrollbar {
  width: 3px;
}
.sidebar-scroll::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.08);
  border-radius: 3px;
}

/* Main content shifts right on desktop */
.glassmorphic-content {
  margin-left: 240px;
  min-height: 100vh;
  position: relative;
}

.glassmorphic-content > * {
  padding: 2rem;
  max-width: 1600px;
  margin: 0 auto;
}

/* ========================================================================== */
/* Brand Header                                                                */
/* ========================================================================== */

.sidebar-brand {
  padding: 14px 14px 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.sidebar-brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.sidebar-brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}


.sidebar-brand-name {
  font-family: 'CaptureSmallz', 'Bebas Neue', sans-serif;
  font-size: 1.625rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: #18181b;
  line-height: 1;
}

/* ========================================================================== */
/* Section Group Headers (collapsible)                                         */
/* ========================================================================== */

.sidebar-group-header {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 8px 3px;
  cursor: pointer;
  font-size: 0.96875rem;
  letter-spacing: 0.04em;
  color: #52525b;
  text-transform: none;
  font-weight: 600;
  user-select: none;
  transition: color 0.1s;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
}

.sidebar-group-header:hover {
  color: #71717a;
}

.sidebar-group-header::before {
  content: '';
  width: 2px;
  height: 9px;
  background: #dc2626;
  border-radius: 1px;
  flex-shrink: 0;
}

.sidebar-group-chevron {
  margin-left: auto;
  width: 10px;
  height: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.sidebar-group-chevron svg {
  width: 10px;
  height: 10px;
  font-size: 10px;
  opacity: 0.35;
}

.sidebar-group-chevron.collapsed svg {
  transform: rotate(-90deg);
}

.sidebar-group-body {
  overflow: hidden;
  max-height: 600px;
  transition: max-height 0.25s ease;
}

.sidebar-group-body.collapsed {
  max-height: 0;
}

/* ========================================================================== */
/* Navigation Items                                                            */
/* ========================================================================== */

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  margin: 1px 0;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.1s;
  text-decoration: none;
  color: #52525b;
  font-size: 0.96875rem;
  font-weight: 500;
  position: relative;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
}

.sidebar-item:hover {
  background: rgba(0, 0, 0, 0.035);
  color: #18181b;
}

.sidebar-item.active {
  background: rgba(220, 38, 38, 0.06);
  color: #dc2626;
}

.sidebar-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 3px;
  background: #dc2626;
  border-radius: 0 2px 2px 0;
}

.sidebar-item-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sidebar-item-icon svg,
.sidebar-item-icon .MuiSvgIcon-root {
  width: 17px;
  height: 17px;
  font-size: 17px;
}

.sidebar-item-label {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-item-chevron {
  width: 12px;
  height: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.sidebar-item-chevron svg {
  width: 11px;
  height: 11px;
  font-size: 11px;
  opacity: 0.3;
}

.sidebar-item-chevron.expanded svg {
  transform: rotate(180deg);
}

/* Sub-items */
.sidebar-sub-items {
  padding-left: 14px;
  overflow: hidden;
  max-height: 300px;
  transition: max-height 0.2s ease;
}

.sidebar-sub-items.collapsed {
  max-height: 0;
}

.sidebar-sub-items .sidebar-item {
  font-size: 0.84375rem;
  padding: 5px 10px;
  color: #71717a;
}

.sidebar-sub-items .sidebar-item:hover {
  color: #18181b;
}

.sidebar-sub-items .sidebar-item.active {
  color: #dc2626;
}

/* ========================================================================== */
/* Badges                                                                      */
/* ========================================================================== */

.sidebar-badge {
  font-size: 0.53125rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.sidebar-badge-pro {
  background: rgba(220, 38, 38, 0.08);
  color: #dc2626;
}

.sidebar-badge-count {
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
  min-width: 14px;
  text-align: center;
}

.sidebar-badge-beta {
  background: rgba(99, 102, 241, 0.08);
  color: #6366f1;
}

/* ========================================================================== */
/* Divider                                                                     */
/* ========================================================================== */

.sidebar-divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.04);
  margin: 4px 8px;
}

/* ========================================================================== */
/* Footer                                                                      */
/* ========================================================================== */

.sidebar-footer {
  padding: 8px 10px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
}

.sidebar-user-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #dc2626, #ea580c);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
  cursor: pointer;
  border: none;
}


.sidebar-user-name {
  font-size: 0.90625rem;
  font-weight: 600;
  color: #18181b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.sidebar-user-plan {
  font-size: 0.84375rem;
  color: #a1a1aa;
}

.sidebar-footer-buttons {
  display: flex;
  gap: 2px;
}

.sidebar-footer-btn {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: transparent;
  border: none;
  color: #a1a1aa;
  transition: all 0.1s;
}

.sidebar-footer-btn:hover {
  background: rgba(0, 0, 0, 0.04);
  color: #18181b;
}

.sidebar-footer-btn svg,
.sidebar-footer-btn .MuiSvgIcon-root {
  width: 14px;
  height: 14px;
  font-size: 14px;
}

.sidebar-subscription-link {
  font-size: 0.875rem;
  color: #71717a;
  cursor: pointer;
  margin-top: 6px;
  margin-left: 36px;
  display: flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  transition: color 0.1s;
  background: none;
  border: none;
  padding: 0;
}

.sidebar-subscription-link:hover {
  color: #dc2626;
}

.sidebar-subscription-link svg,
.sidebar-subscription-link .MuiSvgIcon-root {
  width: 12px;
  height: 12px;
  font-size: 12px;
}

.sidebar-version {
  font-size: 0.53125rem;
  color: #d4d4d8;
  text-align: center;
  margin-top: 4px;
}

/* ========================================================================== */
/* Mobile Top Bar                                                              */
/* ========================================================================== */

.mobile-topbar {
  display: none;
}

@media (max-width: 1024px) {
  .sidebar-motogp {
    position: fixed;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    width: 75%;
    max-width: 300px;
    box-shadow: none;
    z-index: 200;
  }

  .sidebar-motogp.open {
    transform: translateX(0);
    box-shadow: 8px 0 30px rgba(0, 0, 0, 0.15);
  }

  .sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 199;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }

  .sidebar-overlay.visible {
    opacity: 1;
    pointer-events: auto;
  }

  .glassmorphic-content {
    margin-left: 0;
    /* No margin-top: .mobile-topbar is position:sticky (in flow) and already
       reserves its 48px. A margin here double-counts it and creates a big gap. */
    min-height: calc(100vh - 48px);
  }

  .glassmorphic-content > * {
    padding: 1rem;
  }

  .mobile-topbar {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 98;
    height: 48px;
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    align-items: center;
    padding: 0 12px;
    gap: 8px;
  }

  .mobile-topbar-hamburger {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: transparent;
    border: none;
    color: #18181b;
  }

  .mobile-topbar-hamburger svg,
  .mobile-topbar-hamburger .MuiSvgIcon-root {
    width: 20px;
    height: 20px;
    font-size: 20px;
  }

  .mobile-topbar-logo {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
  }

  .mobile-topbar-logo-icon {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    overflow: hidden;
  }

  .mobile-topbar-logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .mobile-topbar-logo-name {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #18181b;
  }

  .mobile-topbar-avatar {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: linear-gradient(135deg, #dc2626 0%, #ea580c 100%);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.35);
  }
}

/* Prevent body scroll when mobile drawer is open */
body.sidebar-open {
  overflow: hidden;
}

/* ========================================================================== */
/* Accessibility                                                               */
/* ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================= */
/* Redesign T4: mobile bottom tab bar ("next", riders)          */
/* ============================================================= */
.bottom-tab-bar { display: none; }

@media (max-width: 1024px) {
  .bottom-tab-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 150;
    min-height: 58px;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgba(26, 43, 99, 0.97);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.18);
  }
  .bottom-tab {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border: none;
    background: none;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.62);
    padding: 8px 2px;
    transition: color 0.15s ease;
    min-width: 0;
  }
  .bottom-tab .MuiSvgIcon-root { font-size: 23px; }
  .bottom-tab-label {
    font-size: 10.5px;
    font-weight: 600;
    line-height: 1;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .bottom-tab--active { color: #fff; }
  .bottom-tab--active .MuiSvgIcon-root { color: #E63946; }

  /* keep page content clear of the fixed bar */
  .has-bottom-tabs .glassmorphic-content {
    padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px) + 12px);
  }
}

/* ==========================================================================
   MOBILE FULL-BLEED SECTIONS (<= 640px)                       2026-07-28
   ==========================================================================

   WHY. At 402px the desktop card chain eats up to a third of the screen.
   Measured on the deployed bundle, before this block:

     analytics          150px of 402  (37.3%)   24 page + 16 grid + 18 panel
                                                + 16 stat-card + 2 borders
     friends             98px of 402  (24.4%)   24 page + 24 panel + 2 borders
     track detail        64px of 402  (15.9%)   16 container + 16 content
     telemetry detail    64px of 402  (15.9%)   16 container + 16 content
     racing-line map    238px wide of 402       (41% of the width unused)

   WHAT. Page-level wrappers lose their side padding and the top-level panels
   become edge-to-edge sections with a flat edge, separated by an 8px band of
   page background painted as a border-bottom rather than a margin: margins
   between siblings collapse, and a trailing margin on the last section would
   add dead space above the tab bar. A border can do neither.

   SCOPING, because "no visual change above 640px" is the hard requirement:
     - everything lives inside this one media query;
     - panels are only ever matched THROUGH a page-container class, never as a
       bare .MuiPaper-root;
     - overlay surfaces are excluded by :not() as well as structurally - MUI
       portals dialogs, menus, popovers and snackbars to document.body, so they
       are not descendants of any page container to begin with. The :not() list
       documents the intent and survives someone passing disablePortal.
   ========================================================================== */
/* == FULLBLEED-640 START == */
@media (max-width: 640px) {
  /* ---- 1. wrapper padding chain -> 0 --------------------------------------- */
  .glassmorphic-content > * {
    padding-left: 0;
    padding-right: 0;
  }

  .dashboard-motogp,
  .track-detail-content,
  .session-detail-content {
    padding-left: 0;
    padding-right: 0;
  }

  /* Layout-only wrappers between the page container and the panels (analytics
     nests its panels in a Container + GridLegacy). They contribute nothing but
     inset, so they go to zero too. Scoped through the page containers. */
  .dashboard-motogp > .MuiContainer-root,
  .dashboard-motogp .MuiGridLegacy-item,
  .track-detail-content > .MuiContainer-root,
  .session-detail-content > .MuiContainer-root {
    padding-left: 0;
    padding-right: 0;
    max-width: none;
  }

  /* ---- 2. top-level panels -> full-bleed sections -------------------------- */
  /* .detail-card (track detail) and .race-panel / .glass-panel (the dashboard
     family) ARE the sections. On session + telemetry detail the section layer is
     one level deeper - the Papers inside .detail-container - and is handled in
     SessionDetailPageGlass.css, which also owns the !important needed to beat
     the pre-existing .detail-container .MuiPaper-root rule there. */
  .dashboard-motogp .race-panel,
  .dashboard-motogp .glass-panel,
  .track-detail-content .detail-card {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    border-top: 0;
    box-shadow: none;
    padding-left: 13px;
    padding-right: 13px;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 0;
    /* the 8px separator band, in page background */
    border-bottom: 8px solid #E8EDF3;
  }

  /* The light dashboard family sits on #f4f4f5, not the blue-grey gradient. */
  .dashboard-motogp .race-panel,
  .dashboard-motogp .glass-panel {
    border-bottom-color: #f4f4f5;
  }

  /* ---- 3. nesting guard ---------------------------------------------------- */
  /* The selectors above are descendant-based so they can reach through the
     Container/Grid wrappers. A panel INSIDE a panel must keep looking like a
     card, or the section dissolves into flat bands. CSS cannot express "not
     nested", so the card look is restored explicitly for the nested case. */
  .race-panel .race-panel,
  .race-panel .glass-panel,
  .glass-panel .glass-panel,
  .glass-panel .race-panel {
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding-left: 12px;
    padding-right: 12px;
    margin-bottom: 12px;
    border-bottom-width: 1px;
  }
}
/* == FULLBLEED-640 END == */

/* Shared application chrome and page primitives. Feature-specific layouts stay local. */
.glassmorphic-layout{--mr-navy:#1a2b63;--mr-red:#e63946;--mr-muted:#6b7490;--mr-border:#dce3f0;color:var(--mr-navy)}
.glassmorphic-layout .glassmorphic-background-container{background:#f3f5fa}
.glassmorphic-layout .sidebar-motogp{border-color:var(--mr-border)}
.glassmorphic-layout .sidebar-brand-name{font-family:CaptureSmallz,Impact,sans-serif;color:var(--mr-navy)}
.glassmorphic-layout .sidebar-brand-logo{width:42px;height:46px;border-radius:0}
.glassmorphic-layout .sidebar-item{border-radius:10px;min-height:44px;font-size:13px}
.glassmorphic-layout .sidebar-item.active{background:#eef2fa;color:var(--mr-navy)}
.glassmorphic-layout .sidebar-group-header{color:var(--mr-navy);font-size:13px}
.glassmorphic-layout .mobile-topbar{height:54px;background:#f3f5fa;border-bottom:1px solid var(--mr-border);box-shadow:none}
.glassmorphic-layout .mobile-topbar-logo-name{font-family:CaptureSmallz,Impact,sans-serif;font-size:21px;color:var(--mr-navy)}
.glassmorphic-layout .bottom-tab-bar{background:#fff;border-top:1px solid var(--mr-border);box-shadow:0 -4px 20px #1a2b6308}
.glassmorphic-layout .bottom-tab{color:var(--mr-muted)}
.glassmorphic-layout .bottom-tab--active{color:var(--mr-red)}
.glassmorphic-layout .bottom-tab-label{font-size:11px;font-weight:600}
.glassmorphic-layout .MuiButton-root{min-height:44px;border-radius:10px;box-shadow:none;letter-spacing:0;font-size:13px;line-height:1.25;text-transform:none}
.glassmorphic-layout .MuiOutlinedInput-root{border-radius:10px}
.glassmorphic-layout .MuiButton-startIcon,.glassmorphic-layout .MuiButton-endIcon{flex-shrink:0}
.glassmorphic-layout .mr-page-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px;position:relative;isolation:isolate}
.glassmorphic-layout .mr-page-title{display:flex;gap:8px;align-items:center;min-width:0}
.glassmorphic-layout .mr-page-title h1{font-family:CaptureSmallz,Impact,sans-serif!important;font-size:clamp(25px,3vw,34px)!important;font-weight:400!important;line-height:1.15!important;letter-spacing:.5px;color:var(--mr-navy);overflow-wrap:anywhere}
.glassmorphic-layout .mr-page-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}
.glassmorphic-layout .mr-page-actions .MuiButton-root{white-space:nowrap}
.glassmorphic-layout .mr-dashboard-header .MuiButton-contained{background:var(--mr-red);color:#fff}
.glassmorphic-layout .mr-dashboard-header .MuiButton-outlined{background:#fff;border-color:#d7deed;color:var(--mr-navy)}
.glassmorphic-layout .mr-profile-button{width:44px;height:44px;flex-shrink:0;border-radius:50%;border:1px solid #d7deed;background:#fff;color:var(--mr-navy);font:700 17px Roboto,Arial,sans-serif;cursor:pointer}
.glassmorphic-layout .dashboard-motogp{background:transparent;max-width:1480px;padding:22px}
.glassmorphic-layout .dashboard-page-header{margin-bottom:0}
@media(max-width:1024px){
 .glassmorphic-layout .glassmorphic-content{padding-top:0}
 .glassmorphic-layout.mr-dashboard-route .mobile-topbar{display:none}
 .glassmorphic-layout.mr-dashboard-route .glassmorphic-content{padding-top:0}
 .glassmorphic-layout .dashboard-motogp{padding:18px}
 .glassmorphic-layout .mr-dashboard-header:before{content:'';position:absolute;right:0;top:-14px;width:160px;height:130px;background:url(/8e7d1c1d1dae0b9cdcda.png) center/contain no-repeat;opacity:.07;z-index:-1;pointer-events:none}
}
@media(max-width:640px){
 .glassmorphic-layout .mr-page-header{flex-wrap:wrap;gap:10px;margin-bottom:14px}
 .glassmorphic-layout .mr-page-actions{width:100%;flex-wrap:wrap}
 .glassmorphic-layout .mr-page-actions .MuiButton-root{flex:1;min-width:0;padding:10px 12px}
 .glassmorphic-layout .mr-dashboard-header .mr-page-actions{flex-wrap:nowrap}
 .glassmorphic-layout .mr-dashboard-header .MuiButton-root{font-size:12px;padding:10px 8px}
 .glassmorphic-layout .dashboard-motogp{padding:14px 12px}
 .glassmorphic-layout .mr-dashboard-header:before{width:130px;height:112px}
}

/* Accepted MyRacing system on the remaining authenticated feature routes.
   Scoped by the layout; public/admin/team, completed feature designs, video
   canvases and print output keep their own layouts. No data or actions hidden. */
.glassmorphic-layout.mr-feature-route { color:var(--mr-navy); }
.mr-feature-route .glassmorphic-content { min-width:0; }
.mr-feature-route .dashboard-motogp { min-height:0; width:100%; margin:0 auto; box-sizing:border-box; }
.mr-feature-route :is(.new-tire-glass-container,.edit-tire-glass-container,.tire-detail-glass-container,.session-detail-glass-container,.new-session-glass-container,.edit-session-glass-container,.session-wizard-container,.track-detail-glass-container,.new-track-glass-container,.edit-track-glass-container,.analysis-glass-container,.data-sharing-glass-container,.spare-part-form-page,.settings-glass-container,.maintenance-glass-container,.tire-comparison-glass-container,.tire-temp-glass-container) {
 background:transparent; min-height:0; overflow:visible; padding-top:0; color:var(--mr-navy);
}
.mr-feature-route :is(.new-tire-content,.edit-tire-content,.tire-detail-content,.session-detail-content,.new-session-content,.edit-session-content,.track-detail-content,.new-track-content,.edit-track-content,.analysis-content,.data-sharing-content,.spare-part-form-content,.wizard-content) {
 width:100%; max-width:1480px; margin:0 auto; padding:22px; box-sizing:border-box; min-width:0;
}
/* Quiet compact page titles; retain the existing subtitle and authentic logo. */
.mr-feature-route .race-panel.hero-panel,.mr-feature-route .compact-page-header {
 border:0!important; background:transparent!important; box-shadow:none!important; padding:0!important; border-radius:0!important; min-height:0; margin-bottom:18px; overflow:visible;
}
.mr-feature-route .hero-logo-watermark { width:100px; height:90px; right:0; top:-15px; opacity:.045; transform:none; }
.mr-feature-route :is(h1.hero-label-capture,h1.hero-title,.compact-page-header__title) {
 font:400 clamp(25px,3vw,34px)/1.15 CaptureSmallz,Impact,sans-serif!important; color:var(--mr-navy)!important; letter-spacing:.5px; margin:0; overflow-wrap:anywhere;
}
.mr-feature-route .hero-label-capture:not(h1) { font:700 11px/1.4 Roboto,Arial,sans-serif; color:var(--mr-muted); letter-spacing:1px; }
.mr-feature-route :is(.hero-subtitle,.compact-page-header__subtitle,.page-subtitle) { font-size:13px; line-height:1.5; color:var(--mr-muted); margin:6px 0 0; max-width:760px; }
.mr-feature-route .compact-page-header { gap:16px; }
.mr-feature-route .compact-page-header__watermark { opacity:.045; width:90px; height:90px; }
.mr-feature-route .compact-page-header__title { padding-right:0; }
.mr-feature-route :is(.race-panel,.glass-panel,.detail-card,.form-container,.detail-container,.wizard-panel,.analysis-panel,.compact-toolbar) {
 background:#fff!important; border:1px solid var(--mr-border)!important; border-radius:18px!important; box-shadow:none!important; backdrop-filter:none!important; padding:20px; min-width:0; animation:none; color:var(--mr-navy);
}
.mr-feature-route .race-panel { padding:20px; }
.mr-feature-route .detail-card { margin-bottom:16px; }
.mr-feature-route .compact-toolbar { padding:12px 14px; margin-bottom:16px; }
.mr-feature-route :is(.MuiCard-root,.MuiAccordion-root) { border:1px solid var(--mr-border); border-radius:14px!important; box-shadow:none!important; background:#fff; min-width:0; }
.mr-feature-route .MuiAccordion-root:before { display:none; }
.mr-feature-route .MuiAccordionSummary-root { min-height:48px; padding:0 14px; }
.mr-feature-route .MuiAccordionSummary-content { margin:12px 0; min-width:0; }
.mr-feature-route .MuiAccordionDetails-root { padding:0 14px 14px; }
.mr-feature-route .MuiCardContent-root { padding:16px; }
.mr-feature-route :is(.MuiTypography-h6,.section-title) { font-size:16px; font-weight:700; line-height:1.4; color:var(--mr-navy); }
.mr-feature-route .MuiTypography-h5 { font-size:20px; font-weight:700; line-height:1.3; }
.mr-feature-route .section-label { font:700 13px/1.4 Roboto,Arial,sans-serif; letter-spacing:0; text-transform:none; color:var(--mr-navy); margin:18px 0 10px; }
.mr-feature-route .MuiTypography-body1 { font-size:14px; line-height:1.5; }
.mr-feature-route .MuiTypography-body2 { font-size:13px; line-height:1.5; }
.mr-feature-route :is(.MuiTypography-root,.MuiCardContent-root) { overflow-wrap:anywhere; }
/* Preserve status colors and semantic error/warning controls. */
.mr-feature-route .MuiButton-containedPrimary { background:var(--mr-red)!important; color:#fff; }
.mr-feature-route .MuiButton-containedPrimary:hover { background:#cd2f3d!important; }
.mr-feature-route .MuiButton-outlinedPrimary { background:#fff; border-color:var(--mr-border); color:var(--mr-navy); }
.mr-feature-route .MuiButton-root { transform:none!important; font-weight:600; }
.mr-feature-route .MuiButton-root.Mui-disabled { opacity:.5; }
.mr-feature-route :is(.action-buttons,.compact-page-header__actions) { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:16px; }
.mr-feature-route .compact-page-header__actions { margin-bottom:0; }
.mr-feature-route :is(.action-btn-primary,.action-btn-secondary,.action-btn-delete,.compact-page-action,.glass-button-primary,.glass-button-secondary,.glass-button-outlined) {
 display:inline-flex; align-items:center; justify-content:center; gap:6px; min-height:44px; padding:10px 14px; border:1px solid var(--mr-border); border-radius:10px; background:#fff; color:var(--mr-navy); box-shadow:none!important; font:600 13px/1.3 Roboto,Arial,sans-serif; letter-spacing:0; text-transform:none; transform:none!important; cursor:pointer; box-sizing:border-box;
}
.mr-feature-route :is(.action-btn-primary,.compact-page-action--primary,.glass-button-primary) { background:var(--mr-red)!important; border-color:var(--mr-red); color:#fff; }
.mr-feature-route .action-btn-delete { color:#cf2f3e; border-color:#f0cbd0; background:#fff; }
.mr-feature-route :is(.action-btn-primary,.action-btn-secondary,.action-btn-delete,.compact-page-action):disabled { opacity:.5; cursor:default; }
.mr-feature-route :is(.glass-icon-button,.MuiIconButton-root) { box-shadow:none!important; transform:none!important; }
.mr-feature-route :is(.MuiOutlinedInput-root,.glass-input .MuiOutlinedInput-root,.glass-select .MuiOutlinedInput-root) { border-radius:10px; background:#fff; box-shadow:none!important; }
.mr-feature-route .MuiInputBase-input { font-size:14px; }
.mr-feature-route .MuiOutlinedInput-notchedOutline { border-color:var(--mr-border); }
.mr-feature-route .MuiInputLabel-root { font-size:13px; }
.mr-feature-route .MuiTabs-root { min-height:44px; background:#e9eef8; border:0; border-radius:12px; }
.mr-feature-route .MuiTabs-scroller { overflow-x:auto!important; scrollbar-width:thin; }
.mr-feature-route .MuiTab-root { min-width:0; min-height:44px; padding:12px 16px; font-size:13px; font-weight:600; text-transform:none; letter-spacing:0; color:var(--mr-muted); }
.mr-feature-route .MuiTab-root.Mui-selected { color:var(--mr-navy); }
.mr-feature-route .MuiTabs-indicator { background:var(--mr-red); }
.mr-feature-route .MuiTableContainer-root { max-width:100%; overflow-x:auto; box-shadow:none; border-radius:12px; }
.mr-feature-route .MuiTableCell-root { padding:12px; font-size:13px; line-height:1.4; border-color:#edf0f6; }
.mr-feature-route .MuiTableHead-root .MuiTableCell-root { background:#f3f5fa; color:var(--mr-muted); font-size:11px; font-weight:700; letter-spacing:.2px; }
.mr-feature-route .MuiTableRow-root:hover { background:#f7f9fd; }
.mr-feature-route .MuiTablePagination-root { background:transparent; }
.mr-feature-route .stats-grid { gap:12px; margin-bottom:18px!important; }
.mr-feature-route :is(.stat-card,.summary-stat-tile) { border:1px solid var(--mr-border); border-radius:14px; background:#fff; padding:14px!important; box-shadow:none!important; min-height:0; }
.mr-feature-route .stat-value { color:var(--mr-navy); font-size:26px; line-height:1.2; }
.mr-feature-route .stat-label { color:var(--mr-muted); font-size:12px; line-height:1.4; text-transform:none; letter-spacing:0; }
.mr-feature-route .stat-icon-wrapper { width:32px; height:32px; margin-bottom:6px; }
.mr-feature-route .stat-icon-wrapper svg { font-size:20px; }
.mr-feature-route :is(.loading-state,.calendar-loading) { min-height:180px; background:transparent; border:0; box-shadow:none; padding:24px; }
.mr-feature-route .empty-state { padding:28px 16px; color:var(--mr-muted); font-size:14px; }
/* Feature-specific density and structural fixes: controls keep their behavior. */
.mr-feature-route .sprocket-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.mr-feature-route .speeds-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.mr-feature-route .info-grid { grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:16px; }
.mr-feature-route .section-icon { color:var(--mr-navy); }
.mr-feature-route .profile-section { padding:20px!important; margin-bottom:16px; }
.mr-feature-route .calendar-container { padding:14px; background:#fff!important; border:1px solid var(--mr-border)!important; box-shadow:none!important; border-radius:14px!important; }
.mr-feature-route .rbc-toolbar { gap:8px; font-size:14px; }
.mr-feature-route .rbc-toolbar button { min-height:44px; color:var(--mr-navy); border-color:var(--mr-border); }
.mr-feature-route .rbc-toolbar .rbc-active { background:#e9eef8; box-shadow:none; }
.mr-feature-route .rbc-today { background:#eef2fa; }
.mr-feature-route .rbc-event { background:var(--mr-navy); }
.mr-feature-route .rbc-header { padding:8px 2px; font-size:12px; }
.mr-feature-route .rbc-month-view { border-color:var(--mr-border); border-radius:10px; overflow:hidden; }
.mr-feature-route .checklist-item { border:1px solid var(--mr-border); border-radius:10px; padding:6px 12px; margin-bottom:8px; }
.mr-feature-route .checklist-item.checked { background:#f3f8f5; }
.mr-feature-route .progress-bar-container { background:#e9eef8; }
.mr-feature-route .progress-bar { background:var(--mr-navy); }
.mr-feature-route .upgrade-prompt-card { background:#fff!important; border:1px solid var(--mr-border)!important; box-shadow:none!important; border-radius:18px!important; padding:28px!important; }
.mr-feature-route .upload-zone { background:#f7f9fd; border-color:#ccd5e9; padding:24px; }
.mr-feature-route .os-main { box-shadow:none; border-color:var(--mr-border); }
.mr-feature-route .os-btn { min-height:36px; border-radius:8px; }
.mr-feature-route .os-action-btn { min-height:44px; }
/* Portals live outside the layout. Only scope them while a feature route is active. */
body.mr-feature-portals .MuiDialog-paper { background:#fff!important; border:1px solid #dce3f0!important; border-radius:18px!important; box-shadow:0 20px 70px #1a2b6325!important; backdrop-filter:none!important; overflow:hidden!important; color:#1a2b63; }
body.mr-feature-portals .MuiDialogTitle-root { padding:16px 20px; font:400 25px/1.25 CaptureSmallz,Impact,sans-serif; color:#1a2b63; border-bottom:1px solid #dce3f0; }
body.mr-feature-portals .MuiDialogContent-root { padding:20px!important; min-width:0; }
body.mr-feature-portals .MuiDialogActions-root { padding:12px 20px; gap:8px; border-top:1px solid #dce3f0; flex-wrap:wrap; }
body.mr-feature-portals .MuiDialog-root .MuiButton-root { min-height:44px; border-radius:10px; font-size:13px; font-weight:600; letter-spacing:0; text-transform:none; box-shadow:none!important; transform:none!important; }
body.mr-feature-portals .MuiDialog-root .MuiButton-containedPrimary { background:#e63946!important; }
body.mr-feature-portals .MuiDialog-root .MuiOutlinedInput-root { border-radius:10px; background:#fff; }
body.mr-feature-portals .MuiDialog-root .MuiTypography-h6 { font-size:16px; font-weight:700; color:#1a2b63; }
body.mr-feature-portals .MuiDialog-root .MuiIconButton-root { min-width:44px; min-height:44px; box-shadow:none!important; }
body.mr-feature-portals .tire-form-dialog-glass .dialog-header-glass { position:static; display:flex; justify-content:flex-end; padding:8px 12px 0; }
body.mr-feature-portals .tire-form-dialog-glass .dialog-content-glass { max-height:none; }
body.mr-feature-portals .tire-form-dialog-glass .close-button-glass { background:#f3f5fa!important; transform:none!important; }
.mr-feature-route :is(button,a,input,select,textarea):focus-visible { outline:2px solid var(--mr-navy); outline-offset:3px; }
@media(max-width:1024px) {
 .mr-feature-route :is(.new-tire-content,.edit-tire-content,.tire-detail-content,.session-detail-content,.new-session-content,.edit-session-content,.track-detail-content,.new-track-content,.edit-track-content,.analysis-content,.data-sharing-content,.spare-part-form-content,.wizard-content) { padding:18px; }
}
@media(max-width:640px) {
 .mr-feature-route :is(.new-tire-content,.edit-tire-content,.tire-detail-content,.session-detail-content,.new-session-content,.edit-session-content,.track-detail-content,.new-track-content,.edit-track-content,.analysis-content,.data-sharing-content,.spare-part-form-content,.wizard-content) { padding:14px 12px; }
 .mr-feature-route :is(.race-panel,.glass-panel,.detail-card,.form-container,.detail-container,.wizard-panel,.analysis-panel) { padding:14px!important; border-radius:14px!important; }
 .mr-feature-route .race-panel.hero-panel,.mr-feature-route .compact-page-header { padding:0!important; margin-bottom:14px; gap:10px; }
 .mr-feature-route .compact-page-header__subtitle { max-width:100%; font-size:13px; }
 .mr-feature-route .compact-page-header__actions { display:flex; width:100%; gap:8px; }
 .mr-feature-route .compact-page-header__actions>button { flex:1; min-width:0; }
 .mr-feature-route .action-buttons>button { flex:1 1 120px; min-width:0; }
 .mr-feature-route .compact-toolbar { padding:10px; border-radius:12px!important; }
 .mr-feature-route .MuiCardContent-root { padding:14px; }
 .mr-feature-route .MuiIconButton-root { min-width:44px; min-height:44px; }
 .mr-feature-route .MuiTab-root { padding:12px; }
 .mr-feature-route .MuiTabs-flexContainer { flex-wrap:nowrap; }
 .mr-feature-route .MuiTablePagination-toolbar { flex-wrap:wrap; padding:0 8px; }
 .mr-feature-route .sprocket-grid,.mr-feature-route .speeds-grid,.mr-feature-route .info-grid { grid-template-columns:minmax(0,1fr); gap:12px; }
 .mr-feature-route .stats-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
 .mr-feature-route .stat-value { font-size:23px; }
 .mr-feature-route .profile-section { padding:14px!important; }
 .mr-feature-route .add-item-form { flex-wrap:wrap; gap:8px!important; }
 .mr-feature-route .add-item-form>.MuiFormControl-root { flex:1 1 170px; min-width:0; }
 .mr-feature-route .calendar-container { padding:8px!important; min-height:430px; height:65dvh; }
 .mr-feature-route .rbc-toolbar { justify-content:center; }
 .mr-feature-route .rbc-toolbar-label { order:-1; flex-basis:100%; font-size:16px; font-weight:700; }
 .mr-feature-route .rbc-toolbar button { padding:8px; font-size:12px; }
 .mr-feature-route .rbc-header { font-size:10px; }
 .mr-feature-route .rbc-date-cell { font-size:12px; }
 .mr-feature-route .calendar-event-glass { font-size:10px; padding:2px; }
 body.mr-feature-portals .MuiDialog-paper { margin:12px!important; max-width:calc(100% - 24px); max-height:calc(100dvh - 24px); border-radius:14px!important; }
 body.mr-feature-portals .MuiDialogContent-root { padding:14px!important; }
 body.mr-feature-portals .MuiDialogTitle-root { padding:14px; font-size:23px; }
 body.mr-feature-portals .MuiDialogActions-root { padding:10px 14px; }
 body.mr-feature-portals .tire-form-dialog-paper { margin:0!important; max-width:100%; width:100%; height:100dvh; max-height:100dvh; border-radius:0!important; }
}
@media print {
 .mr-feature-route .glassmorphic-content { padding:0; }
 .mr-feature-route :is(.race-panel,.detail-card,.glass-panel) { border:0!important; padding:0!important; box-shadow:none!important; }
}
/* Long labels and compact legacy workspaces discovered during the route audit. */
.mr-feature-route .sp-stat { border-color:var(--mr-border); }
.mr-feature-route .sp-stat-label { color:var(--mr-muted); white-space:normal; overflow:visible; letter-spacing:0; }
.mr-feature-route .sp-stat-value { color:var(--mr-navy); white-space:normal; overflow-wrap:anywhere; line-height:1.35; }
.mr-feature-route .sp-stat:last-child .sp-stat-value { font-size:14px; }
.mr-feature-route .sessions-modern-title h1,.mr-feature-route .track-detail-title { font:400 clamp(25px,3vw,34px)/1.15 CaptureSmallz,Impact,sans-serif!important; color:var(--mr-navy)!important; letter-spacing:.5px; }
.mr-feature-route .sessions-modern-title p { font-size:13px; color:var(--mr-muted); }
.mr-feature-route .sessions-filter-card,.mr-feature-route .sessions-results-panel { background:#fff; border:1px solid var(--mr-border); border-radius:18px; box-shadow:none; }
.mr-feature-route .sessions-modern-action { min-height:44px; border-radius:10px; font-size:13px; border-color:var(--mr-border); color:var(--mr-navy); }
.mr-feature-route .sessions-modern-action.primary { background:var(--mr-red); border-color:var(--mr-red); color:#fff; }
.mr-feature-route .corner-notes-container { padding:22px 22px 100px; min-height:0; }
.mr-feature-route .corner-notes-controls { border:1px solid var(--mr-border); box-shadow:none; background:#fff; border-radius:12px; }
.mr-feature-route .corner-notes-footer { left:240px; background:#fff; border-top:1px solid var(--mr-border); box-shadow:none; }
.mr-feature-route .wizard-background { overflow:hidden; }
.mr-feature-route .race-panel .MuiTable-root { min-width:620px; }
@media(max-width:1024px) {
 .mr-feature-route .corner-notes-footer { left:0; bottom:calc(64px + env(safe-area-inset-bottom)); }
}
@media(max-width:640px) {
 .mr-feature-route .sp-stat:last-child .sp-stat-value { font-size:12px; }
 .mr-feature-route .sessions-modern-actions { flex-wrap:wrap; }
 .mr-feature-route .sessions-modern-action { flex:1; }
 .mr-feature-route .corner-notes-container { padding:14px 12px 160px; }
 .mr-feature-route .MuiStepper-horizontal { gap:0; padding:0; min-width:0; max-width:100%; }
 .mr-feature-route .MuiStep-horizontal { flex:1; min-width:0; padding:0 3px; }
 .mr-feature-route .MuiStepLabel-horizontal { flex-direction:column; gap:4px; }
 .mr-feature-route .MuiStepLabel-iconContainer { padding:0; }
 .mr-feature-route .MuiStepLabel-label { text-align:center; font-size:11px; white-space:normal; line-height:1.3; }
 .mr-feature-route .MuiStepConnector-horizontal { min-width:4px; flex:0 1 12px; }
 .mr-feature-route .session-detail-content .mr-page-actions { width:100%; }
}
.mr-feature-route .calendar-container { box-sizing:border-box; width:100%; max-width:100%; }
.mr-feature-route .mr-parts-wizard { margin-top:12px; margin-bottom:0; }
.mr-feature-route :is(.mr-parts-wizard,.mr-session-wizard)>.MuiStepper-root { margin-bottom:20px; }
.mr-feature-route .spare-part-form-content>.page-subtitle { margin:0 0 14px; }
.mr-feature-route .tire-detail-content .action-buttons { display:grid; grid-template-columns:minmax(0,1.6fr) repeat(2,minmax(0,1fr)); }
.mr-feature-route .tire-detail-content .action-buttons>button { min-width:0; white-space:normal; padding:10px 8px; }
.mr-feature-route .tire-detail-content .action-buttons>button svg { margin-right:0!important; flex-shrink:0; }
@media(max-width:640px) {
 .mr-feature-route .tire-detail-content .action-buttons>button { font-size:12px; gap:4px; }
 .mr-feature-route .mr-parts-wizard { margin-top:4px; }
 .mr-feature-route :is(.mr-parts-wizard,.mr-session-wizard)>.MuiStepper-root { margin-bottom:16px; }
}
.mr-feature-route .mr-friends-grid { display:grid!important; grid-template-columns:minmax(0,1fr) minmax(0,1.4fr); gap:16px!important; }
.mr-feature-route .mr-friends-grid>.race-panel { min-width:0!important; }
.mr-feature-route .analytics-2026-page { background:transparent!important; }
.mr-feature-route .analytics-2026 { padding-inline:0; max-width:none; }
.mr-feature-route .analytics-2026 .glass-panel:hover { transform:none!important; }
.mr-feature-route .mr-analytics-nav { margin-bottom:16px; gap:8px; }
.mr-feature-route .mr-analytics-nav>button { min-height:44px; padding:10px 14px; border-radius:10px; background:#fff; color:var(--mr-muted); border-color:var(--mr-border); box-shadow:none; font-size:13px; transform:none!important; }
.mr-feature-route .mr-analytics-nav>button[aria-current="page"] { background:var(--mr-navy); color:#fff; border-color:var(--mr-navy); box-shadow:none; }
.mr-feature-route .analytics-2026 .MuiToggleButtonGroup-root { background:#e9eef8; border:0; padding:3px; box-shadow:none; border-radius:10px; backdrop-filter:none; }
.mr-feature-route .analytics-2026 .MuiToggleButton-root { min-height:38px; padding:8px 12px; font-size:12px; }
.mr-feature-route .analytics-2026 .MuiToggleButton-root.Mui-selected,.mr-feature-route .analytics-2026 .MuiToggleButton-root.Mui-selected:hover { background:var(--mr-navy)!important; color:#fff!important; box-shadow:none; }
.mr-feature-route .analytics-2026 .MuiOutlinedInput-root.Mui-focused .MuiOutlinedInput-notchedOutline { border-color:var(--mr-navy); }
.mr-feature-route .analytics-2026 .MuiInputLabel-root.Mui-focused { color:var(--mr-navy); }
.mr-feature-route .analytics-2026 .MuiButton-outlined { color:var(--mr-navy); border-color:var(--mr-border); }
.mr-feature-route .analytics-basic-stats { margin-bottom:0; }
.mr-feature-route .analytics-basic-stats .stat-card { display:grid; grid-template-columns:minmax(0,1fr) 34px; grid-template-rows:auto auto; gap:6px; text-align:left; justify-content:stretch; align-content:center; min-height:0; }
.mr-feature-route .analytics-basic-stats .stat-icon { grid-column:2; grid-row:1 / 3; font-size:22px; width:34px; height:34px; padding:6px; box-sizing:border-box; color:var(--mr-navy)!important; background:#e9eef8; box-shadow:none; border-radius:10px; margin:0; }
.mr-feature-route .analytics-basic-stats .stat-label { grid-column:1; grid-row:1; margin:0; }
.mr-feature-route .analytics-basic-stats .stat-card>.MuiBox-root { grid-column:1; grid-row:2; width:auto!important; height:auto!important; }
.mr-feature-route .analytics-basic-stats .stat-value { font-size:26px!important; line-height:1.2; color:var(--mr-navy); }
.mr-feature-route .profile-section .glass-chip { color:var(--mr-navy)!important; background:#e9eef8!important; }
.mr-feature-route .settings-form-control { background:transparent; }
@media(max-width:640px) {
 .mr-feature-route .mr-friends-grid { grid-template-columns:minmax(0,1fr); }
 .mr-feature-route .mr-analytics-nav { scrollbar-width:thin; padding-bottom:8px; }
 .mr-feature-route .analytics-basic-stats .stat-card { grid-template-columns:minmax(0,1fr); }
 .mr-feature-route .analytics-basic-stats .stat-icon { grid-column:1; grid-row:1; width:28px; height:28px; font-size:20px; padding:4px; }
 .mr-feature-route .analytics-basic-stats .stat-label { grid-row:2; }
 .mr-feature-route .analytics-basic-stats .stat-card>.MuiBox-root { grid-row:3; }
 .mr-feature-route .analytics-basic-stats .stat-value { font-size:22px!important; }
 .mr-feature-route .analytics-2026 .MuiToggleButton-root { min-height:44px; padding:8px 10px; }
}
.mr-feature-route .glassmorphic-content h1 { font-family:CaptureSmallz,Impact,sans-serif; font-size:clamp(25px,3vw,34px); font-weight:400; letter-spacing:.5px; line-height:1.15; color:var(--mr-navy); overflow-wrap:anywhere; }
.mr-feature-route .session-detail-page { max-width:1480px; margin:0 auto; padding:22px; }
@media(max-width:640px) {
 .mr-feature-route .session-detail-page { padding:14px 12px; }
}
/* Maintenance dialogs keep every field while avoiding double padding on phones. */
body.mr-feature-portals .maintenance-form-dialog-glass .dialog-header-glass { position:static; display:flex; justify-content:flex-end; padding:6px 10px 0; }
body.mr-feature-portals .maintenance-form-dialog-glass .dialog-content-glass { padding:0!important; overflow:auto!important; }
body.mr-feature-portals .maintenance-form-dialog-glass .dialog-content-glass>.MuiPaper-root { padding:16px!important; max-width:none; max-height:calc(100dvh - 100px); background:#fff!important; border:0!important; box-shadow:none!important; backdrop-filter:none!important; border-radius:0!important; }
body.mr-feature-portals .maintenance-form-dialog-glass .dialog-content-glass>.MuiPaper-root::before { display:none; }
body.mr-feature-portals .maintenance-form-dialog-glass .MuiTypography-h6 { padding-bottom:0; margin-bottom:16px; }
body.mr-feature-portals .maintenance-form-dialog-glass .MuiTypography-h6::after { display:none; }
body.mr-feature-portals .maintenance-form-dialog-glass form>.MuiBox-root:first-of-type { gap:16px; padding-right:4px; }
body.mr-feature-portals .maintenance-form-dialog-glass .MuiInputLabel-root { color:#687594; background:#fff; font-size:13px; }
@media(max-width:640px) {
 body.mr-feature-portals .maintenance-form-dialog-glass .dialog-content-glass>.MuiPaper-root { padding:14px!important; }
}
/* Tire inventory: compact mobile cards, with every original value and action. */
@media(max-width:599px) {
 .mr-feature-route .tires-list-design .compact-toolbar { background:transparent!important; border:0!important; padding:0!important; margin-bottom:10px; }
 .mr-feature-route .tires-list-design .section-label { display:flex; align-items:center; min-height:44px; margin:0 100px 8px 0; }
 .mr-feature-route .tires-list-design .tires-list-panel { background:transparent!important; border:0!important; padding:0!important; }
 .mr-feature-route .tires-list-panel>.MuiBox-root>.MuiBox-root:first-child { margin-top:-52px; margin-bottom:8px; }
 .mr-feature-route .tires-list-panel .MuiCollapse-wrapperInner>.MuiBox-root { gap:8px; }
 .mr-feature-route .tires-list-design .tire-inventory-card { background:#fff!important; border:1px solid var(--mr-border); box-shadow:none; }
 .mr-feature-route .tires-list-design .tire-card-content { padding:12px!important; }
 .mr-feature-route .tires-list-design .tire-card-header { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:0 8px; margin-bottom:8px; }
 .mr-feature-route .tires-list-design .tire-card-title { display:contents; }
 .mr-feature-route .tires-list-design .tire-card-name { grid-column:1; grid-row:1; min-width:0; margin-bottom:0; }
 .mr-feature-route .tires-list-design .tire-card-name .MuiTypography-h6 { font-size:15px; line-height:1.3; min-width:0; }
 .mr-feature-route .tires-list-design .tire-card-name .MuiIconButton-root { flex-shrink:0; }
 .mr-feature-route .tires-list-design .tire-card-status { grid-column:2; grid-row:1; align-self:center; margin-bottom:0; }
 .mr-feature-route .tires-list-design .tire-card-meta { grid-column:1 / -1; grid-row:2; font-size:12px; line-height:1.4; }
 .mr-feature-route .tires-list-design .tire-card-stats { gap:8px; min-width:0; }
 .mr-feature-route .tires-list-design .tire-card-stats>div { min-width:0; }
 .mr-feature-route .tires-list-design .tire-card-stats .MuiTypography-caption { font-size:11px; line-height:1.3; }
 .mr-feature-route .tires-list-design .tire-card-stats .MuiTypography-body1 { font-size:13px; line-height:1.4; }
 .mr-feature-route .tires-list-design .tire-card-stats svg,.mr-feature-route .tires-list-design .tire-card-id svg { font-size:16px; flex-shrink:0; }
 .mr-feature-route .tires-list-design .tire-card-footer { display:flex; align-items:center; justify-content:space-between; gap:8px; }
 .mr-feature-route .tires-list-design .tire-card-id { flex:1; min-width:0; }
 .mr-feature-route .tires-list-design .tire-card-id .MuiTypography-body2 { font-size:11px; line-height:1.4; overflow-wrap:anywhere; }
 .mr-feature-route .tires-list-design .tire-card-actions { flex-shrink:0; margin-top:0; gap:0; }
}
/* Focused density pass: garage calculators/inventory, maintenance and Analytics.
   Tools and the accepted Dashboard keep their existing presentation. */
.mr-feature-route .gearing-density .motorcycle-selection { margin-bottom:14px; }
.mr-feature-route .gearing-density .sprocket-grid { gap:12px; margin-bottom:0; }
.mr-feature-route .gearing-density .sprocket-section { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px 10px; padding:14px; min-width:0; background:#f7f9fd; border:1px solid var(--mr-border); border-radius:12px; }
.mr-feature-route .gearing-density .sprocket-section .section-header { grid-column:1 / -1; display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 12px; margin:0; padding:0; }
.mr-feature-route .gearing-density .sprocket-section .section-title { margin:0; font-size:15px; }
.mr-feature-route .gearing-density .sprocket-section .fdr-text { margin:0; font-size:12px!important; line-height:1.4; }
.mr-feature-route .gearing-density .sprocket-section .MuiFormControl-root { margin:0; min-width:0; }
.mr-feature-route .gearing-density .gearing-calculate-actions { margin-top:14px; gap:8px; }
.mr-feature-route .gearing-density .results-section { margin-top:18px; }
.mr-feature-route .gearing-density .speeds-grid { margin-top:12px; gap:12px; }
.mr-feature-route .gearing-density .speed-column { padding:12px; }
.mr-feature-route .gearing-density .column-title { margin-bottom:8px!important; }
.mr-feature-route :is(.gearing-density,.spare-parts-density,.maintenance-density,.analytics-2026) .MuiOutlinedInput-root { min-height:44px; }
.mr-feature-route :is(.gearing-density,.spare-parts-density,.maintenance-density,.analytics-2026) .MuiOutlinedInput-input { padding:10px 12px; line-height:22px; }
.mr-feature-route :is(.gearing-density,.spare-parts-density,.maintenance-density,.analytics-2026) .MuiSelect-select { padding-right:32px; }
.mr-feature-route :is(.gearing-density,.spare-parts-density,.maintenance-density,.analytics-2026) .MuiInputLabel-outlined:not(.MuiInputLabel-shrink) { transform:translate(14px,12px) scale(1)!important; }
.mr-feature-route .spare-parts-density .sp-stats-strip { gap:8px; margin-bottom:14px; }
.mr-feature-route .spare-parts-density .sp-stat { padding:10px; gap:8px; }
.mr-feature-route .spare-parts-density .sp-stat-icon { width:28px; height:28px; flex-shrink:0; }
.mr-feature-route .spare-parts-density .sp-stat-icon svg { font-size:18px; }
.mr-feature-route .spare-parts-density .sp-stat-body { min-width:0; }
.mr-feature-route .spare-parts-density .sp-stat-value { font-size:20px; }
.mr-feature-route .spare-parts-density .sp-stat:last-child .sp-stat-value { font-size:12px; }
.mr-feature-route .maintenance-density .maintenance-bike-picker { margin-bottom:12px!important; }
.mr-feature-route .maintenance-density .maintenance-bike-picker>.MuiBox-root:first-child { margin-bottom:8px; }
.mr-feature-route .maintenance-density .maintenance-bike-picker__chips { gap:6px; }
.mr-feature-route .maintenance-density .maintenance-bike-picker__chips .MuiChip-root { padding:0; min-height:44px; height:auto; font-size:13px; }
.mr-feature-route .maintenance-density .maintenance-bike-picker__chips .MuiChip-label { white-space:normal; overflow:visible; padding:8px 12px; }
.mr-feature-route .maintenance-density .maintenance-oil-panel>.MuiCardContent-root { padding:0!important; }
.mr-feature-route .maintenance-density .maintenance-oil-panel>.MuiCardContent-root>.MuiBox-root { margin-block:0 10px; }
.mr-feature-route .maintenance-density .maintenance-oil-panel>.MuiCardContent-root>.MuiBox-root:last-child { margin-bottom:0; }
.mr-feature-route .calendar-density .calendar-stats { justify-content:flex-start; gap:6px; margin-bottom:12px; }
.mr-feature-route .calendar-density .calendar-stats .MuiChip-root { height:28px; font-size:12px; }
.mr-feature-route .calendar-density .calendar-container { margin-inline:0; transform:none; }
.mr-feature-route .calendar-density .rbc-toolbar { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; flex-direction:row; gap:8px; margin:0 0 8px; padding:0; min-height:44px; height:auto; background:transparent; backdrop-filter:none; }
.mr-feature-route .calendar-density .rbc-toolbar-label { grid-column:1; grid-row:1; order:0; flex-basis:auto; margin:0; padding:0; text-align:left; font-size:16px; font-weight:700; }
.mr-feature-route .calendar-density .rbc-toolbar>.rbc-btn-group:first-child { grid-column:2; grid-row:1; }
.mr-feature-route .calendar-density .rbc-toolbar>.rbc-btn-group:empty { display:none; }
.mr-feature-route .calendar-density .rbc-toolbar button { min-width:44px; padding:8px 10px; background:#fff; }
.mr-feature-route .analytics-2026 .mr-analytics-nav { margin-bottom:10px; gap:6px; padding-bottom:4px; }
.mr-feature-route .analytics-2026 .analytics-content-grid>.MuiGrid-item { padding-top:10px; }
.mr-feature-route .analytics-2026 .analytics-filter-row { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto; align-items:center; gap:10px; margin-bottom:14px; }
.mr-feature-route .analytics-2026 .analytics-filter-row>.MuiFormControl-root { min-width:0; width:100%; }
.mr-feature-route .analytics-2026 .analytics-basic-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; width:100%; margin:0; }
.mr-feature-route .analytics-2026 .analytics-basic-grid>.MuiGrid-item { padding:0; max-width:none; width:auto; flex-basis:auto; min-width:0; }
.mr-feature-route .analytics-2026 .analytics-basic-stats .stat-card { padding:12px!important; }
@media(max-width:900px) {
 .mr-feature-route .analytics-2026 .analytics-filter-row { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .mr-feature-route .analytics-2026 .analytics-filter-row>.MuiToggleButtonGroup-root { grid-column:1 / -1; }
}
@media(max-width:599px) {
 .mr-feature-route .gearing-density .sprocket-section { padding:12px; }
 .mr-feature-route .gearing-density .sprocket-section .section-header { display:grid; gap:2px; }
 .mr-feature-route .gearing-density .sprocket-section .MuiInputLabel-root { font-size:12px; }
 .mr-feature-route .gearing-density .gearing-calculate-actions>.MuiButton-root { width:100%; }
 .mr-feature-route .spare-parts-density .sp-stats-strip { grid-template-columns:repeat(3,minmax(0,1fr)); }
 .mr-feature-route .spare-parts-density .sp-stat { gap:4px; padding:8px; }
 .mr-feature-route .spare-parts-density .sp-stat:not(:last-child) { position:relative; }
 .mr-feature-route .spare-parts-density .sp-stat:not(:last-child) .sp-stat-icon { position:absolute; right:8px; bottom:8px; width:18px; height:18px; }
 .mr-feature-route .spare-parts-density .sp-stat:not(:last-child) .sp-stat-icon svg { font-size:14px; }
 .mr-feature-route .spare-parts-density .sp-stat:last-child { grid-column:1 / -1; }
 .mr-feature-route .spare-parts-density .sp-stat:last-child .sp-stat-body { display:flex; align-items:baseline; flex-wrap:wrap; gap:3px 8px; }
 .mr-feature-route .spare-parts-density .sp-stat-label { font-size:10px; line-height:1.4; }
 .mr-feature-route .spare-parts-density .inventory-section-label { display:flex; align-items:center; min-height:44px; margin:0 100px 8px 0; }
 .mr-feature-route .spare-parts-density .parts-list-panel { background:transparent!important; border:0!important; padding:0!important; }
 .mr-feature-route .parts-list-panel>.MuiBox-root>.MuiBox-root:first-child { margin-top:-52px; margin-bottom:8px; }
 .mr-feature-route .parts-list-panel .MuiCollapse-wrapperInner>.MuiBox-root { gap:8px; }
 .mr-feature-route .spare-parts-density .part-inventory-card { background:#fff!important; border:1px solid var(--mr-border); box-shadow:none; }
 .mr-feature-route .spare-parts-density .part-card-content { padding:12px!important; }
 .mr-feature-route .spare-parts-density .part-card-header { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:3px 8px; margin-bottom:8px; }
 .mr-feature-route .spare-parts-density .part-card-title { display:contents; }
 .mr-feature-route .spare-parts-density .part-card-name { grid-column:1; grid-row:1; margin:0; font-size:15px; line-height:1.35; }
 .mr-feature-route .spare-parts-density .part-card-status { grid-column:2; grid-row:1; margin:0; align-self:start; }
 .mr-feature-route .spare-parts-density .part-card-meta { grid-column:1 / -1; grid-row:2; font-size:12px; }
 .mr-feature-route .spare-parts-density .part-card-stats { gap:6px; }
 .mr-feature-route .spare-parts-density .part-card-stats .MuiTypography-caption { font-size:11px; }
 .mr-feature-route .spare-parts-density .part-card-stats .MuiTypography-body1 { font-size:13px; }
 .mr-feature-route .spare-parts-density .part-card-location { margin-top:0; }
 .mr-feature-route .spare-parts-density .part-card-location svg { font-size:16px; }
 .mr-feature-route .spare-parts-density .part-card-location .MuiTypography-body2 { font-size:12px; }
 .mr-feature-route .spare-parts-density .part-card-actions { margin-top:4px; gap:0; }
 .mr-feature-route .maintenance-density .maintenance-records-panel { padding:0!important; border:0!important; background:transparent!important; }
 .mr-feature-route .maintenance-density .maintenance-records-panel>.MuiBox-root { gap:8px; }
 .mr-feature-route .maintenance-density .maintenance-records-panel .MuiCard-root { background:#fff!important; border:1px solid var(--mr-border); }
 .mr-feature-route .maintenance-density .maintenance-record-card { padding:12px!important; }
 .mr-feature-route .maintenance-density .maintenance-record-header { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:6px; align-items:center; }
 .mr-feature-route .maintenance-density .maintenance-record-header>.MuiBox-root:last-child { display:flex; }
 .mr-feature-route .maintenance-density .maintenance-record-header .MuiTypography-h6 { font-size:14px; }
 .mr-feature-route .maintenance-density .maintenance-record-card>.MuiBox-root { gap:8px; }
 .mr-feature-route .maintenance-density .maintenance-record-card>.MuiBox-root:not(.maintenance-record-header) .MuiTypography-h6 { font-size:15px; }
 .mr-feature-route .calendar-density .rbc-toolbar-label { font-size:14px; }
 .mr-feature-route .calendar-density .rbc-toolbar button { padding:8px; }
 .mr-feature-route .analytics-2026 .analytics-basic-stats .stat-card { grid-template-columns:minmax(0,1fr) 18px; grid-template-rows:auto auto; gap:5px; padding:10px!important; }
 .mr-feature-route .analytics-2026 .analytics-basic-stats .stat-icon { grid-column:2; grid-row:2; align-self:center; width:18px; height:18px; padding:2px; font-size:14px; border-radius:4px; }
 .mr-feature-route .analytics-2026 .analytics-basic-stats .stat-label { grid-column:1 / -1; grid-row:1; font-size:11px; line-height:1.4; }
 .mr-feature-route .analytics-2026 .analytics-basic-stats .stat-value { grid-column:1; grid-row:2; font-size:20px!important; }
 .mr-feature-route .analytics-2026 .analytics-braking-filters { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
 .mr-feature-route .analytics-2026 .analytics-braking-filters>.MuiFormControl-root:last-child { grid-column:1 / -1; }
}
@media(max-width:359px) {
 .mr-feature-route .analytics-2026 .analytics-basic-stats .stat-value { font-size:18px!important; }
 .mr-feature-route .analytics-2026 .analytics-basic-stats .stat-card { padding:8px!important; }
 .mr-feature-route .analytics-2026 .analytics-filter-row,.mr-feature-route .analytics-2026 .analytics-braking-filters { grid-template-columns:minmax(0,1fr); }
}
.mr-feature-route .analytics-2026 .analytics-filter-row.analytics-correlation-filters { grid-template-columns:repeat(3,minmax(0,1fr)); }
.mr-feature-route .analytics-2026 .analytics-metric-content { padding:12px!important; }
.mr-feature-route .analytics-2026 .analytics-metric-header { gap:6px; margin-bottom:6px; }
.mr-feature-route .analytics-2026 .analytics-metric-header>.MuiBox-root { width:24px; height:24px; flex-basis:24px; border-radius:6px; }
.mr-feature-route .analytics-2026 .analytics-metric-header svg { font-size:17px; }
.mr-feature-route .analytics-2026 .analytics-metric-value { font-size:22px; line-height:1.2; font-weight:700; color:var(--mr-navy); }
@media(max-width:599px) {
 .mr-feature-route .analytics-2026 .analytics-filter-row.analytics-correlation-filters { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .mr-feature-route .analytics-2026 .analytics-correlation-filters>.MuiFormControl-root:last-child { grid-column:1 / -1; }
 .mr-feature-route .analytics-2026 .analytics-metric-header .MuiTypography-root { font-size:12px; }
 .mr-feature-route .analytics-2026 .analytics-metric-content>.MuiTypography-caption { font-size:11px; }
}
@media(max-width:359px) {
 .mr-feature-route .analytics-2026 .analytics-filter-row.analytics-correlation-filters { grid-template-columns:minmax(0,1fr); }
}
@media(max-width:599px) {
 /* Full field labels above the compact numeric controls; no clipped notches. */
 .mr-feature-route .gearing-density .sprocket-section .MuiInputLabel-root { position:static; transform:none!important; max-width:none; white-space:normal; font-size:12px; line-height:1.35; margin-bottom:5px; padding:0!important; background:transparent!important; }
 .mr-feature-route .gearing-density .sprocket-section .MuiOutlinedInput-notchedOutline legend { display:none; }
}
.mr-feature-route .analytics-2026 .analytics-basic-stats .stat-card { box-sizing:border-box; height:auto; filter:none; }
.mr-feature-route .analytics-2026 .analytics-basic-stats .stat-card::before { display:none; }
.mr-feature-route .analytics-2026 .analytics-basic-grid>.MuiGrid-item { padding:0!important; }
@media(max-width:599px) {
 .mr-feature-route .analytics-2026 .analytics-basic-grid { grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1.2fr); }
 .mr-feature-route .analytics-2026 .analytics-basic-stats .stat-icon { grid-column:2; grid-row:1; }
 .mr-feature-route .analytics-2026 .analytics-basic-stats .stat-label { padding-right:20px; }
 .mr-feature-route .analytics-2026 .analytics-basic-stats .stat-value { grid-column:1 / -1; }
}
.mr-feature-route .gearing-density :is(.sprocket-section,.speed-column,.glass-select .MuiOutlinedInput-root,.glass-input .MuiOutlinedInput-root) { backdrop-filter:none; -webkit-backdrop-filter:none; }
.mr-feature-route .gearing-density .glass-input .MuiOutlinedInput-root { border:0; }
/* GridLegacy uses its own item class in the current MUI version. */
.mr-feature-route .analytics-2026 .analytics-basic-grid>.MuiGridLegacy-item { padding:0!important; max-width:none; width:auto; flex-basis:auto; min-width:0; }
.mr-feature-route .analytics-2026 .analytics-content-grid>.MuiGridLegacy-item { padding-top:10px; }
.mr-feature-route .analytics-2026 .analytics-basic-stats .stat-card { backdrop-filter:none; -webkit-backdrop-filter:none; }
.mr-feature-route .calendar-density :is(.calendar-container,.calendar-event-glass) { backdrop-filter:none; -webkit-backdrop-filter:none; }

.admin-layout-container {
  min-height: 100vh;
  background: transparent;
  color: inherit;
}

.admin-layout-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(26, 43, 99, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.admin-layout-logo {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #1A2B63 0%, #457B9D 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.admin-logout-button {
  color: #1A2B63 !important;
}

.admin-logout-button:hover {
  background: rgba(26, 43, 99, 0.1) !important;
}

.admin-layout-content {
  padding: 0;
  width: 100%;
  max-width: 100%;
}

/* Mobile responsive */
@media (max-width: 600px) {
  .admin-layout-header {
    padding: 0.75rem 1rem;
  }

  .admin-layout-logo {
    font-size: 1.25rem;
  }
}

