/* Version A–looking shell · A2 dock prototype */
:root {
  --bg: #05070a;
  --plate: #070a0c;
  --line: rgba(255, 255, 255, 0.08);
  --muted: rgba(226, 232, 240, 0.62);
  --text: #f1f5f9;
  --teal: #2de2c5;
  --teal-dim: rgba(45, 226, 197, 0.22);
  --danger: #fb7185;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --dock-h: calc(2.75rem + var(--safe-b));
  --twin-h: 60px;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  background: #0b0f14;
  color: var(--text);
}
body {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 12px calc(12px + var(--safe-b));
}

.proto-note {
  width: min(440px, 100%);
  margin-bottom: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(45, 226, 197, 0.28);
  background: rgba(6, 20, 18, 0.9);
  color: #a7f3e5;
  font-size: 0.8125rem;
  line-height: 1.35;
}

.phone {
  width: min(440px, 100%);
  height: min(932px, calc(100dvh - 4.5rem));
  max-height: 932px;
  display: flex;
  flex-direction: column;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--bg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  position: relative;
}

.screen {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding-bottom: calc(var(--dock-h) + var(--twin-h));
}

.topbar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px 10px;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 7, 10, 0.96);
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.brand img { width: 28px; height: 28px; border-radius: 8px; }
.tabs {
  display: flex;
  gap: 4px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}
.tabs button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
}
.tabs button.active {
  color: #04110e;
  background: linear-gradient(120deg, #5eead4, #67e8f9);
}

.scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px 12px 18px;
}

.tv-rim {
  border-radius: 18px;
  padding: 2px;
  background: linear-gradient(120deg, #34d399, #2dd4bf, #38bdf8, #a78bfa, #fb923c);
  margin-bottom: 12px;
}
.tv-plate {
  border-radius: 16px;
  background: var(--plate);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 12px 0;
}
.chip {
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}
.chip.strong {
  color: #ecfeff;
  border-color: rgba(45, 226, 197, 0.35);
  background: rgba(45, 226, 197, 0.1);
}

.reco {
  padding: 12px;
}
.reco-photo {
  height: 168px;
  border-radius: 14px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}
.reco-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.72));
}
.reco-caption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 1;
}
.reco-caption strong {
  display: block;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.reco-caption span {
  font-size: 0.875rem;
  color: rgba(241, 245, 249, 0.85);
}
.reco-body { margin-top: 12px; }
.reco-body h2 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}
.reco-body p {
  margin: 0 0 8px;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: rgba(226, 232, 240, 0.88);
}
.why {
  font-size: 0.875rem;
  color: var(--muted);
}

.cta-row {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.btn {
  border: 0;
  border-radius: 14px;
  padding: 13px 14px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}
.btn-primary {
  color: #04110e;
  background: linear-gradient(120deg, #5eead4, #67e8f9);
}
.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
}
.btn-danger-ghost {
  color: var(--danger);
  background: transparent;
  border: 1px solid rgba(251, 113, 133, 0.35);
  font-size: 0.875rem;
  font-weight: 650;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
}

.compare {
  margin-top: 14px;
  padding: 12px;
  border-radius: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--muted);
}
.compare strong { color: #e2e8f0; }

/* Collapsed hotkeys — small arrow only */
.dock-slim {
  position: absolute;
  left: 0;
  right: 0;
  bottom: var(--twin-h);
  z-index: 22;
  display: flex;
  justify-content: center;
  padding: 0 12px 6px;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(5, 7, 10, 0.92) 40%);
}
.hotkey-arrow {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(12, 18, 22, 0.92);
  color: #ecfeff;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.8125rem;
  font-weight: 650;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.hotkey-arrow:disabled {
  opacity: 0.45;
  cursor: default;
}
.arrow-icon {
  width: 10px;
  height: 10px;
  border-right: 2px solid #5eead4;
  border-bottom: 2px solid #5eead4;
  transform: rotate(-135deg);
  transition: transform 0.28s ease;
  margin-top: 3px;
}
.hotkey-arrow.open .arrow-icon {
  transform: rotate(45deg);
  margin-top: -2px;
}
.arrow-label { letter-spacing: 0.04em; }

/* Glass overlay with the four Version A hotkeys */
.hotkey-overlay {
  position: absolute;
  inset: 0;
  z-index: 35;
  pointer-events: none;
}
.hotkey-overlay.open { pointer-events: auto; }
.hotkey-scrim {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.28s ease;
  cursor: pointer;
}
.hotkey-overlay.open .hotkey-scrim { opacity: 1; }
.hotkey-glass {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: calc(var(--twin-h) + 8px);
  border-radius: 20px;
  background: rgba(12, 18, 22, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  padding: 8px 12px 12px;
  transform: translateY(18px) scale(0.98);
  opacity: 0;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease;
}
.hotkey-overlay.open .hotkey-glass {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.hotkey-kicker {
  margin: 0 0 10px;
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 650;
}
.hotkey-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.hotkey-tile {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 14px 12px;
  text-align: left;
  color: var(--text);
  cursor: pointer;
  min-height: 74px;
}
.hotkey-tile strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 4px;
}
.hotkey-tile span {
  display: block;
  font-size: 0.75rem;
  line-height: 1.3;
  color: var(--muted);
}
.hotkey-tile.danger {
  border-color: rgba(251, 113, 133, 0.35);
}
.hotkey-tile.danger strong { color: #fda4af; }
.hotkey-tile:active { transform: scale(0.98); }
.hotkey-collapse {
  display: block;
  width: 100%;
  margin-top: 10px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 650;
  cursor: pointer;
  padding: 8px;
}

.twin {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--twin-h);
  z-index: 21;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: #05070a;
}
.twin button {
  border: 0;
  background: transparent;
  color: var(--muted);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 650;
  cursor: pointer;
}
.twin button.active { color: #ecfeff; }
.twin img { width: 22px; height: 22px; opacity: 0.9; }

/* Detail glass sheet (after picking a hotkey) */
.sheet-root { position: absolute; inset: 0; z-index: 40; pointer-events: none; }
.sheet-root.open { pointer-events: auto; }
.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 0.28s ease;
}
.sheet-root.open .sheet-backdrop { opacity: 1; }
.glass {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: min(72dvh, 560px);
  border-radius: 22px 22px 0 0;
  background: rgba(12, 18, 22, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transform: translateY(108%);
  transition: transform 0.36s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  padding: 10px 14px calc(14px + var(--safe-b));
}
.sheet-root.open .glass { transform: translateY(0); }
.handle {
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  margin: 4px auto 12px;
}
.glass h3 {
  margin: 0 0 6px;
  font-size: 1.15rem;
}
.glass p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.45;
}
.place {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  margin-bottom: 8px;
}
.place strong { display: block; font-size: 0.95rem; }
.place span { font-size: 0.8125rem; color: var(--muted); }

.toast {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: calc(var(--dock-h) + var(--twin-h) + 12px);
  z-index: 50;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(45, 226, 197, 0.35);
  font-size: 0.9rem;
  text-align: center;
}

.pane-muted {
  padding: 28px 8px;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

/* a2-collapse-v2 */
