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

html {
  font-size: 12px;
}

.leaflet-container {
  font-size: 1rem;
}

.leaflet-control-attribution {
  font-size: 11px;
}

.sidebar h3 {
  text-align: center;
  padding-bottom: 20px;
  border-bottom: 2px #eee solid;
  margin-bottom: 20px !important;
}
#spot-header-row #spot-header {
  padding-bottom: 0 !important;
  border-bottom: none !important;
  margin-bottom: 0 !important;
}

.sidebar h3,
.sidebar h4 {
  font-weight: bold !important;
  font-size: 1em !important;
}

.sidebar h4 {
  padding-top: 20px;
}
.sidebar input[type="radio"] + label {
  font-weight: normal;
  margin-left: -5px;
  padding-left: 5px;
}

#map {
  height: 100%;
}

/* ===== Google Maps-style layout ===== */

/* Hide old Leaflet button controls (replaced by bottom pane) */
.leaflet-bar.horizontal-button {
  display: none !important;
}

/* Top search bar - only the main geocoder in the Leaflet control container */
.leaflet-control-container .leaflet-control-geocoder {
  position: fixed !important;
  top: 48px !important;
  left: 16px !important;
  right: 68px !important;
  width: auto !important;
  max-width: 600px !important;
  margin: 0 !important;
  z-index: 1000 !important;
  border-radius: 24px !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3) !important;
  border: none !important;
  background: white !important;
  float: none !important;
}

.leaflet-control-container .leaflet-control-geocoder-form input {
  height: 44px !important;
  font-size: 16px !important;
  padding: 0 16px !important;
  border-radius: 24px !important;
  border: none !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.leaflet-control-container .leaflet-control-geocoder-icon {
  width: 44px !important;
  height: 44px !important;
  line-height: 44px !important;
  background-size: 20px !important;
  background-position: center !important;
  border-radius: 24px !important;
}

/* Top-right account button */
.top-account-btn {
  position: fixed;
  top: 48px;
  right: 12px;
  z-index: 1001;
  width: 44px;
  height: 44px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.top-account-btn a {
  color: #555;
  font-size: 24px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-bottom: none !important;
}

.top-account-btn:hover {
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.top-account-btn .login-prompt-badge {
  position: absolute;
  top: -6px;
  right: 100%;
  margin-right: 8px;
  background: #d9342b;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  pointer-events: none;
}

.top-account-btn .login-prompt-badge::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 100%;
  border: 5px solid transparent;
  border-left-color: #d9342b;
}

/* Filter pane below search bar */
.filter-pane {
  position: fixed;
  top: 100px;
  left: 16px;
  right: 68px;
  max-width: 600px;
  z-index: 999;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  padding: 8px 14px;
  display: block;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 13px;
}

.filter-pane-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.filter-pane-header span {
  font-weight: 600;
  font-size: 13px;
  color: #333;
}

.filter-collapse-btn {
  background: none;
  border: none;
  padding: 2px 6px;
  cursor: pointer;
  color: #666;
  font-size: 12px;
  line-height: 1;
  transition: transform 0.2s;
}

.filter-pane.collapsed .filter-collapse-btn i {
  transform: rotate(180deg);
}

.filter-pane-body {
  margin-top: 8px;
  overflow-y: auto;
  transition: max-height 0.2s ease, opacity 0.2s ease;
  /* Cap to viewport so the pane never extends past the bottom edge on small screens
     (100vh - top offset of pane - header height - padding/margin buffer). */
  max-height: calc(100vh - 160px);
  opacity: 1;
}

.filter-pane.collapsed .filter-pane-body {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  margin-top: 0;
}

.filter-pane-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.filter-pane-row + .filter-pane-row {
  margin-top: 8px;
}

.filter-pane-row input[type="text"],
.filter-pane-row input[type="search"],
.filter-pane-row input[type="number"],
.filter-pane-row input[type="date"],
.filter-pane-row select {
  flex: 1;
  height: 34px;
  padding: 0 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 13px;
  outline: none;
  min-width: 0;
  background: white;
  color: #333;
  font-family: inherit;
}

.filter-pane-row input:focus,
.filter-pane-row select:focus {
  border-color: #1a73e8;
}

.filter-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

.filter-field > span {
  font-size: 11px;
  color: #777;
  font-weight: 500;
}

.filter-toggles {
  flex-wrap: wrap;
}

.filter-toggles label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #555;
  white-space: nowrap;
  margin: 0;
  cursor: pointer;
}

.filter-toggles label input[type="checkbox"] {
  margin: 0;
}

#clear-filters {
  background: none;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 4px 12px;
  font-size: 12px;
  color: #555;
  cursor: pointer;
  white-space: nowrap;
  margin: 0;
  width: auto;
}

#clear-filters:hover {
  background: #f5f5f5;
  border-color: #999;
}

@media only screen and (max-width: 500px) {
  .filter-pane {
    right: 16px;
  }

  .filter-pane-row {
    flex-wrap: wrap;
  }

  .filter-pane-row input[type="text"],
  .filter-pane-row input[type="search"],
  .filter-pane-row input[type="number"],
  .filter-pane-row input[type="date"],
  .filter-pane-row select,
  .filter-field {
    flex: 1 1 100%;
  }
}

/* Bottom action pane */
.bottom-action-pane {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2001;
  background: white;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 6px 0;
  padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -2px 6px rgba(0,0,0,0.15);
}

.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 12px;
  font-size: 11px;
  color: #555;
  min-width: 56px;
  margin: 0;
  width: auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.action-btn i {
  font-size: 20px;
}

.action-btn:hover,
.action-btn:active {
  color: #1a73e8;
}

.action-btn.active {
  color: #ff6b35;
}

body.adding-spot .bottom-action-pane {
  display: none;
}

body.adding-spot .leaflet-control-attribution {
  display: none;
}


/* Push zoom controls above bottom action pane and attribution */
.leaflet-bottom.leaflet-right .leaflet-control-zoom {
  margin-bottom: 84px !important;
}

/* Attribution in bottom-right, above bottom action pane */
.leaflet-control-attribution {
  position: fixed !important;
  bottom: 64px;
  right: 0;
  z-index: 1001;
}

/* Heatmap Legend */
/* Heatmap legend pane (positioned below filter pane via JS) */
.heatmap-legend-pane {
  position: fixed;
  left: 16px;
  right: 68px;
  max-width: 600px;
  z-index: 998;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  padding: 8px 14px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 13px;
}

.heatmap-legend-body {
  margin-top: 8px;
  overflow: hidden;
  transition: max-height 0.2s ease, opacity 0.2s ease;
  max-height: 200px;
  opacity: 1;
}

.heatmap-legend-pane.collapsed .heatmap-legend-body {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
}

.heatmap-legend-pane.collapsed .filter-collapse-btn i {
  transform: rotate(180deg);
}

@media only screen and (max-width: 500px) {
  .heatmap-legend-pane {
    right: 16px;
  }
}

.legend-scale {
  position: relative;
}

.legend-gradient {
  height: 20px;
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 3px;
}

.legend-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
  font-size: 11px;
  color: #666;
}

.legend-labels span {
  font-weight: bold;
}

/* Uncertainty indicator */
.uncertainty-indicator {
  margin-top: 15px;
  padding-top: 10px;
  border-top: 1px solid #eee;
}

.uncertainty-title {
  font-size: 11px;
  font-weight: bold;
  margin-bottom: 8px;
  text-align: center;
  color: #333;
}

.uncertainty-scale {
  position: relative;
}

.uncertainty-bar {
  position: relative;
  height: 15px;
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 3px;
  overflow: hidden;
}

.uncertainty-gradient {
  height: 100%;
  width: 100%;
}

.uncertainty-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
  font-size: 10px;
  color: #666;
  font-style: italic;
}

.uncertainty-labels span {
  font-weight: normal;
}

.sidebar {
  line-height: 1.5;
  font-size: 19px;
  font-family: Georgia, serif;
  color: #1a1a1a;
  background-color: #fdfdfd;
  hyphens: auto;
  overflow-wrap: break-word;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
  overflow-y: auto;
}
.topbar,
.sidebar {
  display: none;
}
.topbar.visible,
.sidebar.visible {
  display: block;
}
.sidebar {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 400px;
  max-width: 100%;
  z-index: 1999;
  background: white;
  padding: 0 20px 20px 20px;
  box-shadow: 2px 0 10px;
}
#spots-loading-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 1000;
  font-size: 48px;
  color: #555;
  background: rgba(255, 255, 255, 0.4);
}
#spots-loading-overlay.hidden {
  display: none;
}
.spot-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px 0;
  font-size: 24px;
  color: #888;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.sidebar.bottom-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: var(--bottom-pane-h, 0px);
  top: 36px;
  width: 100%;
  max-width: 100%;
  padding: 0;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.2);
  transform: translateY(55%);
  transition: transform 0.25s ease;
  overflow: hidden;
  touch-action: none;
}
/* When visible, lay out as a flex column so .sheet-handle keeps its natural
   height and .sheet-body fills the rest. Scoped to .visible so the base
   `.sidebar { display: none }` rule still hides closed sheets. */
.sidebar.bottom-sheet.visible {
  display: flex;
  flex-direction: column;
}
.sidebar.bottom-sheet.snap-peek {
  transform: translateY(80%);
}
.sidebar.bottom-sheet.snap-half {
  transform: translateY(55%);
}
.sidebar.bottom-sheet.snap-full {
  transform: translateY(0);
}
.sidebar.bottom-sheet.dragging {
  transition: none;
}
/* On desktop, match the width of the search bar and filter pane
   (left: 16px, right: 68px, max-width: 600px) instead of full-width. */
@media only screen and (min-width: 701px) {
  .sidebar.bottom-sheet {
    left: 16px;
    right: 68px;
    width: auto;
    max-width: 600px;
  }
}
.sheet-body,
#spot-sheet-body {
  flex: 1;
  min-height: 0; /* flex children with overflow need this to actually scroll */
  overflow-y: auto;
  padding: 0 20px 20px 20px;
  -webkit-overflow-scrolling: touch;
}
.sheet-handle {
  width: 100%;
  padding: 22px 0 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: grab;
  touch-action: none;
  flex-shrink: 0;
}
.sheet-handle::before {
  content: "";
  display: block;
  width: 56px;
  height: 6px;
  border-radius: 3px;
  background: #ccc;
}
.sidebar.bottom-sheet.dragging .sheet-handle {
  cursor: grabbing;
}
/* Close button anchored to the sheet's top-right (instead of the page's). */
.sheet-close {
  position: absolute;
  top: 8px;
  right: 12px;
  padding: 8px;
  cursor: pointer;
  z-index: 1;
  line-height: 1;
}
/* Suppress the global #sb-close button when a bottom-sheet is visible
   (each sheet now has its own .sheet-close). */
.sidebar.bottom-sheet.visible ~ #sb-close {
  display: none;
}
#spot-rate-prompt {
  margin: 14px 0 6px;
  padding: 12px 14px;
  background: #f8f9fa;
  border: 1px solid #ddd;
  border-radius: 8px;
}
#spot-rate-prompt .rate-label {
  font-size: 0.95em;
  color: #444;
  margin-bottom: 6px;
}
#spot-rate-prompt .rate-stars {
  display: flex;
  gap: 4px;
}
#spot-rate-prompt .rate-star {
  background: none;
  border: none;
  padding: 4px 6px;
  margin: 0;
  font-size: 28px;
  line-height: 1;
  color: #ccc;
  cursor: pointer;
  width: auto;
  transition: color 0.1s ease;
}
#spot-rate-prompt .rate-star.active {
  color: #f5b301;
}
#spot-rate-prompt .rate-star:hover {
  color: #f5b301;
}

#spot-close {
  display: none;
  position: absolute;
  top: 8px;
  right: 12px;
  padding: 8px;
  cursor: pointer;
  z-index: 1;
  line-height: 1;
}
.sidebar.show-spot.visible #spot-close {
  display: inline-block;
}
.sidebar.show-spot.visible ~ #sb-close {
  display: none;
}
.sidebar button {
  margin-top: 30px;
  margin-bottom: 30px;
  width: 100%;
  padding: 5px;
  margin-top: 24px;
}
#sb-close {
  display: none;
}
.sidebar.visible ~ #sb-close {
  display: inline-block;
  position: absolute;
  top: 0px;
  right: 0px;
  padding: 23px 14px 8px;
  cursor: pointer;
  font-size: 0;
  z-index: 2000;
  line-height: 1;
}
body.adding-spot .horizontal-button {
  display: none;
}
.horizontal-button {
  padding: 5px 10px;
  background: #fff !important;
  white-space: nowrap;
  padding: 0 !important;
}
.horizontal-button a {
  width: auto !important;
  height: auto !important;
  padding: 5px 10px;
}
.horizontal-button.add-spot,
.your-account {
  clear: none !important;
}
.horizontal-button.menu {
  width: 35px;
}
.topbar {
  pointer-events: none;
  text-align: center;
  position: absolute;
  width: 100%;
  text-shadow: 0 0 3px #fff;
  font-size: 25px;
  bottom: 0;
  padding: 20px;
  z-index: 2002;
  text-shadow: 0 0 2px #fff;
}
.topbar span {
  background: rgba(255, 255, 255, 1);
  display: inline-block;
  margin-bottom: 5px;
}
.topbar button {
  pointer-events: auto;
  width: 220px;
  max-width: 30%;
}
.topbar a {
  pointer-events: auto;
}
.topbar::before {
  content: "";
  pointer-events: none;
  position: fixed;
  left: 0px;
  top: 0px;
  right: 0px;
  bottom: 0px;
  margin: auto;
  width: 60vmin;
  height: 60vmin;
  background: linear-gradient(
      to right,
      transparent calc(50% - 1px),
      rgba(255, 0, 0, 0.5) calc(50% - 1px),
      rgba(255, 0, 0, 0.5) calc(50% + 1px),
      transparent calc(50% + 1px)
    ),
    linear-gradient(
      to bottom,
      transparent calc(50% - 1px),
      rgba(255, 0, 0, 0.5) calc(50% - 1px),
      rgba(255, 0, 0, 0.5) calc(50% + 1px),
      transparent calc(50% + 1px)
    );
}
#spot-form > label, #spot-form textarea, #spot-form input[type=submit] {
    display: block;
    width: 100%;
}
#spot-form > label, #spot-form input[type=submit] {
    margin-top: 18px;
}
.rate {
  display: inline-flex;
  flex-direction: row-reverse;
  height: 46px;
}
.rate:not(:checked) > input {
  position: absolute;
  top: -9999px;
}
.rate:not(:checked) > label {
  width: 1em;
  overflow: hidden;
  white-space: nowrap;
  cursor: pointer;
  font-size: 30px;
  color: #ccc;
}
.rate:not(:checked) > label:before {
  content: "★ ";
}
.rate > input:checked ~ label {
  color: #ffc700;
}
.rate:not(:checked) > label:hover,
.rate:not(:checked) > label:hover ~ label {
  color: #deb217;
}
.rate > input:checked + label:hover,
.rate > input:checked + label:hover ~ label,
.rate > input:checked ~ label:hover,
.rate > input:checked ~ label:hover ~ label,
.rate > label:hover ~ input:checked ~ label {
  color: #c59b08;
}
.greyed {
  background-color: #eee;
  display: inline-block;
}
.clear::after {
  content: "";
  display: block;
  clear: both;
}
.leaflet-arrowlines-pane {
  pointer-events: none;
}
body.zoomed-out .leaflet-overlay-pane {
  opacity: 0.3;
}
body.has-points .leaflet-overlay-pane {
  opacity: 0.3;
}
body.filtering .leaflet-overlay-pane,
body.filtering .leaflet-marker-pane {
  display: none;
}
body:not(.filtering) .leaflet-filtering-pane {
  display: none;
}
@media only screen and (max-width: 700px) {
  .topbar {
    font-size: 1em !important;
  }
  .topbar button {
    font-size: 12px !important;
  }
  .sidebar.show-spot {
    font-size: 13px;
  }
}
.donate-button img {
  background-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}
.leaflet-control-attribution {
  text-align: right;
}
body.reporting-duplicate .sidebar,
body.reporting-duplicate .horizontal-button,
body.reporting-duplicate .replacement-button {
  display: none !important;
}
body.reporting-duplicate .topbar.duplicate {
  display: block;
}
.topbar.duplicate::before {
  content: none;
}
a:hover {
  background-color: none !important;
  text-decoration: none;
}
/* Spot sheet header */
#spot-header-row {
  position: relative;
  padding: 4px 0 14px;
  border-bottom: 1px solid #eee;
  margin-bottom: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
#spot-coords-line {
  font-size: 1em;
  color: #1a1a1a;
  margin-bottom: 8px;
  word-break: keep-all;
  overflow-wrap: normal;
}
#spot-coords-line #spot-header {
  font-weight: 600;
  white-space: nowrap;
}
.spot-action-link {
  display: block;
  padding: 4px 0;
  color: #1a73e8;
  text-decoration: none;
  font-size: 0.95em;
}
.spot-action-link:hover {
  text-decoration: underline;
}

/* Inline share submenu (revealed on tap) */
#share-spot-menu {
  margin: 4px 0 0 16px;
  padding: 4px 0;
  border-left: 2px solid #eee;
}
#share-spot-menu a {
  display: block;
  padding: 4px 12px;
  color: #1a73e8;
  text-decoration: none;
  font-size: 0.9em;
}
#share-spot-menu a:hover {
  text-decoration: underline;
}
.leaflet-control-geocoder-form:not(:has(:focus))
  ~ .leaflet-control-geocoder-alternatives {
  display: none;
}

/* 
optional section for recording spot data 
from https://developer.mozilla.org/en-US/docs/Web/HTML/Element/details
*/

details {
  border: 1px solid #aaa;
  border-radius: 4px;
  padding: 0.5em 0.5em 0;
}

summary {
  margin: -0.5em -0.5em 0;
  padding: 0.5em;
  cursor: pointer;
}

details[open] {
  padding: 0.5em;
}

details[open] summary {
  border-bottom: 1px solid #aaa;
  margin-bottom: 0.5em;
}

ul.no-style {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

/* Fix geocoder styling in sidebar routing section */
#start-geocoder .leaflet-control-geocoder,
#end-geocoder .leaflet-control-geocoder {
  width: 100% !important;
  box-shadow: none !important;
  border: 1px solid #ccc !important;
  border-radius: 4px !important;
}

#start-geocoder .leaflet-control-geocoder-form,
#end-geocoder .leaflet-control-geocoder-form {
  width: 100% !important;
  margin: 0 !important;
}

#start-geocoder input,
#end-geocoder input {
  width: 100% !important;
  height: 2.5em !important;
  line-height: normal !important;
  padding: 8px 12px !important;
  font-size: 14px !important;
  border: none !important;
  background: transparent !important;
  box-sizing: border-box !important;
}
.sidebar .fa {
  min-width: 28px;
  display: inline-block;
  color: black;
}
/* Menu sheet body: extra top padding handled by the .sheet-handle. */
.menu-hero {
  position: relative;
  margin: 0;
  flex-shrink: 0; /* Don't squeeze the image when the sheet is short */
}
.menu-hero img {
  display: block;
  width: 100%;
  /* Image is ~785x590; cropping to the top ~half (~295px) gives ~8:3 */
  aspect-ratio: 8 / 3;
  object-fit: cover;
  object-position: top center;
}
.menu-hero figcaption {
  position: absolute;
  right: 4px;
  bottom: 4px;
  font-size: 10px;
  line-height: 1.3;
  color: #fff;
  padding: 2px 6px;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 3px;
  font-family: inherit;
  max-width: 70%;
  text-align: right;
}
.menu-hero figcaption a {
  color: #fff;
  text-decoration: underline;
}
.sidebar.menu a {
  border-bottom: 1px solid blue;
  color: #000;
}

.make-invisible {
  display: none;
}

.error {
  color: red;
  font-size: 0.9em;
}

#distance-filter {
  width: 100%;
}
.icon-button {
  cursor: pointer;
  font-size: 16px;
}

/* Full-screen success overlay */
.success-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  animation: fadeIn 0.3s ease-in;
}

.success-content {
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  width: 90%;
  text-align: center;
  font-family: Georgia, serif;
  line-height: 1.6;
}

.success-content h2 {
  color: #28a745;
  font-size: 2.2em;
  margin-bottom: 20px;
  font-weight: bold;
}

.success-content p {
  font-size: 1.1em;
  margin-bottom: 15px;
  color: #333;
}

.success-content a {
  color: #007bff;
  text-decoration: none;
  font-weight: bold;
}

.success-content a:hover {
  text-decoration: underline;
}

.success-close-btn {
  background: #28a745;
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 6px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  margin-top: 20px;
  transition: background-color 0.2s ease;
}

.success-close-btn:hover {
  background: #218838;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Logo in bottom left corner */
/* Top brand bar */
.top-brand-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 36px;
  z-index: 1001;
  background: #f3da71;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  padding: 0 14px;
}

.top-brand-bar a {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #333;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  font-weight: 600;
}

.top-brand-bar img {
  width: 24px;
  height: 24px;
  border-radius: 4px;
}

.top-brand-bar a:hover {
  color: #1a73e8;
}

/* Responsive adjustments for mobile */
@media only screen and (max-width: 700px) {
  .top-brand-bar {
    height: 32px;
    padding: 0 10px;
  }

  .top-brand-bar a {
    font-size: 13px;
  }

  .top-brand-bar img {
    width: 20px;
    height: 20px;
  }

  .sidebar {
    bottom: 56px;
    max-width: 100%;
  }

  .sidebar.bottom-sheet {
    max-width: 100%;
    bottom: var(--bottom-pane-h, 0px);
    top: 32px;
  }
}