/* ===== Reset ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* ===== Glass design tokens — everything is translucent ===== */
:root {
  --glass: rgba(255, 255, 255, 0.28);
  --glass-strong: rgba(250, 248, 245, 0.48);
  --glass-subtle: rgba(255, 255, 255, 0.15);
  --glass-tint: rgba(140, 125, 110, 0.06);
  --glass-tint-hover: rgba(140, 125, 110, 0.12);
  --glass-tint-active: rgba(140, 125, 110, 0.18);
  --border: rgba(0, 0, 0, 0.05);
  --border-glass: rgba(255, 255, 255, 0.40);
  --border-emphasis: rgba(0, 0, 0, 0.10);
  --text-1: #2c2c2c;
  --text-2: #6b6b6b;
  --text-3: #a0a0a0;
  --text-accent: #6b5d50;
  --blur: 20px;
  --blur-sm: 10px;
  --blur-xs: 6px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.07);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  /* marker glass */
  --marker-participant: rgba(215, 225, 235, 0.60);
  --marker-participant-border: rgba(140, 165, 190, 0.30);
  --marker-restaurant: rgba(235, 225, 215, 0.60);
  --marker-restaurant-border: rgba(190, 165, 140, 0.30);
  --marker-top: rgba(240, 228, 215, 0.75);
  --marker-top-border: rgba(180, 155, 130, 0.40);
}

[data-theme="dark"] {
  --glass: rgba(35, 35, 40, 0.28);
  --glass-strong: rgba(18, 18, 22, 0.48);
  --glass-subtle: rgba(255, 255, 255, 0.03);
  --glass-tint: rgba(180, 165, 150, 0.05);
  --glass-tint-hover: rgba(180, 165, 150, 0.10);
  --glass-tint-active: rgba(180, 165, 150, 0.14);
  --border: rgba(255, 255, 255, 0.05);
  --border-glass: rgba(255, 255, 255, 0.07);
  --border-emphasis: rgba(255, 255, 255, 0.12);
  --text-1: #e8e8e8;
  --text-2: #999;
  --text-3: #555;
  --text-accent: #bfb3a5;
  --body-bg: #1a1a1e;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.28);
  --marker-participant: rgba(55, 65, 80, 0.60);
  --marker-participant-border: rgba(90, 110, 140, 0.25);
  --marker-restaurant: rgba(75, 65, 55, 0.60);
  --marker-restaurant-border: rgba(140, 120, 100, 0.25);
  --marker-top: rgba(85, 72, 58, 0.75);
  --marker-top-border: rgba(160, 140, 115, 0.35);
}

/* ===== Body ===== */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text',
    'Helvetica Neue', Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--body-bg, #e8e8e8);
  color: var(--text-1);
  height: 100vh;
  overflow: hidden;
}

/* ===== Layout ===== */
.container { position: relative; height: 100vh; }
.map-wrap { position: absolute; inset: 0; }
#map-container { width: 100%; height: 100%; }

/* ===== Glass panel ===== */
.panel {
  position: absolute;
  left: 12px;
  top: 12px;
  bottom: 12px;
  width: min(390px, calc(100vw - 24px));
  z-index: 10;
  background: var(--glass-strong);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  overflow-y: auto;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-lg);
}

.panel::-webkit-scrollbar { width: 3px; }
.panel::-webkit-scrollbar-thumb { background: rgba(128, 128, 128, 0.2); border-radius: 2px; }
.panel::-webkit-scrollbar-track { background: transparent; }

/* ===== Title ===== */
.title {
  font-size: 21px;
  font-weight: 700;
  color: var(--text-1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  letter-spacing: -0.3px;
}

.subtitle {
  font-size: 12px;
  color: var(--text-3);
  margin-top: -6px;
}

/* ===== Theme toggle — glass circle ===== */
.theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-glass);
  background: var(--glass);
  backdrop-filter: blur(var(--blur-xs));
  -webkit-backdrop-filter: blur(var(--blur-xs));
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s, box-shadow 0.3s;
  box-shadow: var(--shadow);
}

.theme-toggle:hover { transform: scale(1.1); background: var(--glass-tint-hover); }
.theme-toggle:active { transform: scale(0.92); }

/* ===== Glass cards ===== */
.section {
  background: var(--glass);
  backdrop-filter: blur(var(--blur-sm));
  -webkit-backdrop-filter: blur(var(--blur-sm));
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 14px;
  box-shadow: var(--shadow);
}

.section h2 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 10px;
}

/* ===== Form ===== */
.form-row { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.form-row label { font-size: 12px; font-weight: 500; color: var(--text-2); }
.hint-inline { font-weight: 400; color: var(--text-3); font-size: 11px; }

input[type='text'],
input[type='password'],
select,
textarea {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  outline: none;
  font-family: inherit;
  background: var(--glass-subtle);
  backdrop-filter: blur(var(--blur-xs));
  -webkit-backdrop-filter: blur(var(--blur-xs));
  color: var(--text-1);
  transition: border-color 0.2s, box-shadow 0.2s;
}

textarea { width: 100%; resize: vertical; min-height: 56px; }

input[type='text']:focus,
input[type='password']:focus,
select:focus,
textarea:focus {
  border-color: var(--border-emphasis);
  box-shadow: 0 0 0 3px var(--glass-tint);
}

input:disabled { opacity: 0.45; }
select { cursor: pointer; }

/* ===== Glass buttons ===== */
.btn {
  padding: 8px 14px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
}

.btn-block { width: 100%; }

.btn-outline {
  background: var(--glass-subtle);
  color: var(--text-accent);
  border: 1px dashed var(--border-emphasis);
  backdrop-filter: blur(var(--blur-xs));
  -webkit-backdrop-filter: blur(var(--blur-xs));
}

.btn-outline:hover:not(:disabled) { background: var(--glass-tint-hover); }
.btn-outline:disabled { color: var(--text-3); border-color: var(--border); cursor: not-allowed; }

.btn-search {
  width: 100%;
  padding: 13px;
  background: var(--glass-tint-hover);
  color: var(--text-accent);
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-emphasis);
  margin-top: 6px;
  backdrop-filter: blur(var(--blur-sm));
  -webkit-backdrop-filter: blur(var(--blur-sm));
  position: relative;
  overflow: hidden;
  letter-spacing: 0.3px;
}

.btn-search::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.10) 0%, transparent 50%);
  pointer-events: none;
}

.btn-search:hover:not(:disabled) {
  background: var(--glass-tint-active);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-search:active:not(:disabled) { transform: translateY(0); }

.btn-search:disabled {
  background: var(--glass-subtle);
  color: var(--text-3);
  border-color: var(--border);
  cursor: not-allowed;
  transform: none;
  opacity: 0.6;
}

/* ===== Slider ===== */
.slider-row { display: flex; align-items: center; gap: 6px; }
.slider-hint { font-size: 10px; color: var(--text-3); white-space: nowrap; }
input[type='range'] { flex: 1; accent-color: var(--text-accent); }

.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-accent);
  background: var(--glass-tint);
  padding: 1px 8px;
  border-radius: 10px;
  margin-left: 6px;
  border: 1px solid var(--border);
}

/* ===== Participants — glass labels ===== */
.participant-row { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 8px; }

.participant-label {
  width: 28px;
  height: 28px;
  background: var(--glass-tint-active);
  backdrop-filter: blur(var(--blur-xs));
  -webkit-backdrop-filter: blur(var(--blur-xs));
  border: 1px solid var(--border-emphasis);
  color: var(--text-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
  margin-top: 4px;
  box-shadow: var(--shadow);
}

.participant-input-wrap { flex: 1; min-width: 0; }
.participant-addr { width: 100%; }

.participant-resolved {
  font-size: 11px;
  color: var(--text-accent);
  margin-top: 3px;
  line-height: 1.3;
  word-break: break-all;
}

.btn-remove {
  background: none;
  border: none;
  font-size: 18px;
  color: var(--text-3);
  cursor: pointer;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: color 0.2s, opacity 0.2s;
}

.btn-remove:hover { color: var(--text-1); opacity: 0.7; }

/* ===== Loading ===== */
.loading {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  background: var(--glass);
  backdrop-filter: blur(var(--blur-sm));
  -webkit-backdrop-filter: blur(var(--blur-sm));
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
  font-size: 13px;
  color: var(--text-2);
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid var(--border);
  border-top-color: var(--text-accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading-content { display: flex; align-items: center; gap: 10px; }

.progress-bar {
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  margin-top: 10px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--text-accent);
  border-radius: 2px;
  transition: width 0.4s ease;
}

.progress-steps {
  margin-top: 6px;
  font-size: 11px;
  color: var(--text-3);
  line-height: 1.5;
}

/* ===== Results ===== */
.results-meta { display: flex; gap: 12px; font-size: 11px; color: var(--text-3); margin-bottom: 10px; }

.results-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }

.result-item {
  background: var(--glass);
  backdrop-filter: blur(var(--blur-sm));
  -webkit-backdrop-filter: blur(var(--blur-sm));
  border-radius: var(--radius-md);
  padding: 12px;
  border: 1px solid var(--border-glass);
  transition: all 0.2s;
}

.result-item:hover { background: var(--glass-tint-hover); border-color: var(--border-emphasis); }
.result-top { background: var(--glass-tint); border-color: var(--border-emphasis); }

.result-selected {
  background: var(--glass-tint-active) !important;
  border-color: var(--border-emphasis) !important;
  box-shadow: 0 0 0 2px var(--glass-tint);
}

.result-header { display: flex; align-items: center; gap: 10px; cursor: pointer; }

.result-rank {
  width: 28px;
  height: 28px;
  background: var(--glass-tint-active);
  backdrop-filter: blur(var(--blur-xs));
  -webkit-backdrop-filter: blur(var(--blur-xs));
  border: 1px solid var(--border-emphasis);
  color: var(--text-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.result-rank::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 60%);
}

.result-top .result-rank { width: 32px; height: 32px; font-size: 15px; }
.result-info { flex: 1; min-width: 0; }

.result-name {
  font-weight: 600; font-size: 13px; color: var(--text-1);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.result-address {
  font-size: 11px; color: var(--text-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.result-score { font-size: 16px; font-weight: 700; color: var(--text-accent); flex-shrink: 0; }
.result-score small { font-size: 10px; font-weight: 400; }

.result-summary { display: flex; gap: 14px; margin-top: 6px; font-size: 12px; color: var(--text-2); }

.result-times {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.result-times > .result-times-inner { overflow: hidden; }

.result-times.expanded {
  grid-template-rows: 1fr;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.time-row { display: flex; justify-content: space-between; padding: 3px 0; font-size: 12px; }
.time-name { color: var(--text-2); }
.time-value { font-weight: 500; color: var(--text-1); }
.time-value.unreachable { opacity: 0.4; }

.no-results {
  text-align: center;
  padding: 32px 20px;
  color: var(--text-3);
  font-size: 13px;
  line-height: 1.6;
}

.no-results::before {
  content: '🍽️';
  display: block;
  font-size: 32px;
  margin-bottom: 8px;
}

/* ===== AI ===== */
.ai-result { font-size: 13px; line-height: 1.7; color: var(--text-2); }

.ai-text {
  background: var(--glass-subtle);
  backdrop-filter: blur(var(--blur-sm));
  -webkit-backdrop-filter: blur(var(--blur-sm));
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 12px;
  white-space: pre-wrap;
}

/* ===== Map placeholder ===== */
.map-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 100%; color: #aaa; font-size: 16px; text-align: center; gap: 8px;
}

/* ===== Map markers — frosted glass with map showing through ===== */
.marker {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(var(--blur-xs));
  -webkit-backdrop-filter: blur(var(--blur-xs));
  box-shadow: var(--shadow);
}

.marker-participant {
  background: var(--marker-participant);
  border: 1.5px solid var(--marker-participant-border);
  color: var(--text-1);
}

.marker-restaurant {
  background: var(--marker-restaurant);
  border: 1.5px solid var(--marker-restaurant-border);
  color: var(--text-1);
}

.marker-top {
  background: var(--marker-top);
  border: 2px solid var(--marker-top-border);
  color: var(--text-1);
  width: 38px;
  height: 38px;
  font-size: 15px;
  box-shadow: var(--shadow-lg);
}

/* ===== Glass popup (custom InfoWindow) ===== */
.glass-popup {
  background: var(--glass-strong);
  backdrop-filter: blur(var(--blur)) saturate(1.1);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(1.1);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  box-shadow: var(--shadow-lg);
  color: var(--text-1);
  font-size: 12px;
  max-width: 260px;
  min-width: 140px;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'PingFang SC', sans-serif;
}

.glass-popup strong {
  font-size: 13px;
  display: block;
  margin-bottom: 4px;
  color: var(--text-1);
}

.glass-popup-addr {
  color: var(--text-3);
  font-size: 11px;
  margin-bottom: 6px;
}

.glass-popup-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 6px 0;
}

.glass-popup-times {
  font-size: 11px;
  line-height: 1.6;
  color: var(--text-2);
}

.glass-popup-score {
  margin-top: 6px;
  color: var(--text-accent);
  font-weight: 600;
  font-size: 11px;
}

/* ===== Route info panel — glass on map ===== */
.route-info-panel {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--glass-strong);
  backdrop-filter: blur(var(--blur)) saturate(1.1);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(1.1);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  box-shadow: var(--shadow-lg);
  z-index: 100;
  min-width: 200px;
  max-width: 320px;
  font-size: 13px;
  color: var(--text-1);
}

.route-info-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--border);
}

.route-info-title {
  font-weight: 700; font-size: 14px; flex: 1;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-right: 8px;
}

.route-info-close {
  background: none; border: none; font-size: 18px; color: var(--text-3);
  cursor: pointer; padding: 8px; min-width: 36px; min-height: 36px;
  display: flex; align-items: center; justify-content: center;
  line-height: 1; transition: opacity 0.2s; margin: -8px;
}
.route-info-close:hover { opacity: 0.5; }

.route-info-row { display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.route-info-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.route-info-label { font-weight: 700; width: 18px; }
.route-info-time { font-weight: 500; flex: 1; }
.route-info-dist { color: var(--text-3); font-size: 12px; }
.route-info-lines { font-size: 11px; color: var(--text-2); padding-left: 36px; padding-bottom: 4px; }

.route-loading { display: flex; align-items: center; gap: 8px; color: var(--text-3); padding: 4px 0; }
.route-loading .spinner { width: 14px; height: 14px; }

/* ===== Modify search button (shown when inputs collapsed) ===== */
.btn-modify {
  background: var(--glass-tint);
  color: var(--text-accent);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px;
  font-size: 13px;
  font-weight: 500;
  width: 100%;
  cursor: pointer;
  backdrop-filter: blur(var(--blur-xs));
  -webkit-backdrop-filter: blur(var(--blur-xs));
  transition: background 0.2s;
  font-family: inherit;
}

.btn-modify:hover { background: var(--glass-tint-hover); }

.btn-share {
  background: var(--glass-tint);
  color: var(--text-accent);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 4px 12px;
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
  backdrop-filter: blur(var(--blur-xs));
  -webkit-backdrop-filter: blur(var(--blur-xs));
  transition: background 0.2s;
}

.btn-share:hover { background: var(--glass-tint-hover); }

/* Panel toggle — hidden on desktop, visible on mobile via media query */
.panel-toggle { display: none; }

/* iOS momentum scrolling */
.panel { -webkit-overflow-scrolling: touch; }

/* ===== Toast notification ===== */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--glass-strong);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 12px 20px;
  color: var(--text-1);
  font-size: 13px;
  box-shadow: var(--shadow-lg);
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  max-width: 90vw;
  text-align: center;
}

/* ===== Focus styles for accessibility ===== */
:focus-visible {
  outline: 2px solid var(--text-accent);
  outline-offset: 2px;
}

button:focus:not(:focus-visible),
input:focus:not(:focus-visible),
select:focus:not(:focus-visible) {
  outline: none;
}

/* ===== Utility ===== */
.hidden { display: none !important; }

/* ===== Theme transitions (only for elements without their own transition) ===== */
.panel, .section, .result-item, .route-info-panel,
.marker, .participant-label, .result-rank {
  transition: background 0.35s, border-color 0.35s, color 0.25s, box-shadow 0.35s;
}

/* ===== Amap ===== */
.amap-sug-result { z-index: 10000 !important; font-size: 13px !important; }

/* ===== Responsive: tablet sidebar ===== */
@media (max-width: 1024px) and (min-width: 769px) {
  .panel { width: min(340px, 45vw); }
}

/* ===== Responsive: bottom sheet ===== */
@media (max-width: 768px) {
  .panel {
    left: 0; right: 0; top: auto; bottom: 0;
    width: 100%; max-height: 70vh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 6px 16px calc(16px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.10);
    transition: background 0.35s, border-color 0.35s, color 0.25s,
                box-shadow 0.35s, max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .panel::before {
    content: ''; display: block; width: 36px; height: 4px;
    background: var(--text-3); opacity: 0.3; border-radius: 2px;
    margin: 6px auto 10px; flex-shrink: 0;
  }

  .title { font-size: 18px; }
  .subtitle { font-size: 11px; margin-top: -4px; }
  .theme-toggle { width: 38px; height: 38px; font-size: 16px; }
  .section { padding: 12px; border-radius: var(--radius-sm); }
  .section h2 { font-size: 12px; margin-bottom: 8px; }
  .form-row { margin-bottom: 8px; }
  textarea { min-height: 48px; }
  /* Prevent iOS auto-zoom on input focus (requires >= 16px) */
  input[type='text'], select, textarea { font-size: 16px; }

  .btn-search { padding: 14px; font-size: 16px; border-radius: var(--radius-sm); }
  .btn-outline { padding: 10px; }
  .participant-row { gap: 6px; margin-bottom: 6px; }
  .participant-label { width: 26px; height: 26px; font-size: 12px; }
  .result-item { padding: 10px; }
  .route-info-panel { top: 12px; right: 8px; left: 8px; max-width: none; border-radius: var(--radius-md); }

  /* Collapsible panel */
  .panel.collapsed {
    max-height: 56px;
    overflow: hidden;
    padding-bottom: 12px;
  }

  .panel.collapsed .subtitle,
  .panel.collapsed .section,
  .panel.collapsed .loading,
  .panel.collapsed .btn-modify {
    display: none !important;
  }

  .panel-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 28px;
    cursor: grab;
    z-index: 5;
    background: none;
    border: none;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
  }

  .panel-toggle:active { cursor: grabbing; }

  .panel-toggle::after {
    content: '';
    display: block;
    width: 40px;
    height: 5px;
    background: var(--text-3);
    opacity: 0.4;
    border-radius: 3px;
  }

  /* Hide the CSS-generated drag handle since we use a button now */
  .panel::before { display: none; }
}
