/* NuAsk NOW — Option A corridor collapse mock (Version A–shaped) */
: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);
  --amber: #fbbf24;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --twin-h: 60px;
  --dock-h: calc(3.25rem + var(--safe-b));
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "PingFang SC",
    "Noto Sans SC", 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: 10px 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.4;
}

.phone {
  width: min(440px, 100%);
  height: min(932px, calc(100dvh - 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: 14px 14px 8px;
  border-bottom: 1px solid var(--line);
}
.brand {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #134e4a, #0f172a);
  border: 1px solid rgba(45, 226, 197, 0.35);
}
.title-wrap {
  text-align: center;
  min-width: 0;
  flex: 1;
}
.title-wrap h1 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
}
.title-wrap p {
  margin: 4px 0 0;
  font-size: 0.8125rem;
  color: var(--muted);
}
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 2px solid var(--teal);
  background: radial-gradient(circle at 30% 30%, #5eead4, #0f766e 70%);
}

.tabs {
  flex-shrink: 0;
  display: flex;
  gap: 4px;
  margin: 8px 12px 0;
  padding: 4px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
}
.tabs button {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 6px;
  border-radius: 10px;
  cursor: pointer;
}
.tabs button.active {
  color: var(--teal);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(45, 226, 197, 0.28);
}

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

/* —— Corridor: collapsed words strip —— */
.corridor {
  position: relative;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(12, 18, 22, 0.96), rgba(5, 8, 12, 0.98));
  overflow: visible;
  margin-bottom: 18px;
}
.corridor-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.corridor-head .kicker {
  flex: 1;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}
.corridor-expand-row {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 5;
  transform: translate(-50%, 50%);
  display: flex;
  justify-content: center;
  padding: 0;
  pointer-events: none;
}
.corridor-expand-row .expand-btn {
  pointer-events: auto;
}
.expand-btn {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.expand-btn .chev {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -3px;
  transition: transform 0.22s ease;
}
.corridor.expanded .expand-btn .chev {
  transform: rotate(-135deg);
  margin-top: 3px;
}

.words-strip {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: start;
  padding: 10px 12px 12px;
}
.words-col {
  min-width: 0;
}
.words-col.center {
  text-align: center;
  padding: 0 4px;
  max-width: 9.5rem;
}
.words-role {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.9);
  margin-bottom: 4px;
}
.words-title {
  display: block;
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.25;
  color: #f8fafc;
}
.words-col.center .words-title {
  color: var(--teal);
  font-size: 0.95rem;
}
.words-meta {
  display: block;
  margin-top: 3px;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.3;
}
.words-col.right {
  text-align: right;
}

.alert-line {
  margin: 0 10px 10px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: rgba(69, 26, 3, 0.45);
  color: #fde68a;
  font-size: 0.75rem;
  line-height: 1.35;
}

/* —— Corridor: expanded full rail (current-like) —— */
.full-rail {
  display: none;
  padding: 8px 10px 12px;
}
.corridor.expanded .words-strip {
  display: none;
}
.corridor.expanded .full-rail {
  display: block;
}

.times-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 6px;
  text-align: center;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 8px;
}
.times-row .mid {
  color: var(--teal);
  font-weight: 650;
}

.cards-row {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 8px;
  align-items: stretch;
}
.card {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.35);
  padding: 10px 8px;
  min-height: 92px;
}
.card .ico {
  font-size: 1.1rem;
  margin-bottom: 6px;
}
.card strong {
  display: block;
  font-size: 0.78rem;
  line-height: 1.25;
}
.card span {
  display: block;
  margin-top: 4px;
  font-size: 0.68rem;
  color: var(--muted);
  line-height: 1.25;
}
.orb-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.orb {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  border: 1px solid rgba(45, 226, 197, 0.45);
  background:
    radial-gradient(circle at 50% 50%, rgba(45, 226, 197, 0.55) 0 8%, transparent 9%),
    radial-gradient(circle at 50% 50%, transparent 28%, rgba(45, 226, 197, 0.18) 29% 30%, transparent 31%),
    radial-gradient(circle at 50% 50%, transparent 44%, rgba(45, 226, 197, 0.22) 45% 46%, transparent 47%),
    radial-gradient(circle at 50% 42%, rgba(45, 226, 197, 0.2), rgba(2, 6, 11, 0.9) 70%);
  box-shadow: 0 0 28px rgba(45, 226, 197, 0.35);
}
.orb-label {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 650;
  color: #ecfeff;
}
.orb-sub {
  text-align: center;
  font-size: 0.68rem;
  color: var(--muted);
}
.bridge {
  margin-top: 10px;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.35;
  text-align: center;
}

.tv-rim {
  border-radius: 16px;
  padding: 2px;
  background: linear-gradient(120deg, #34d399, #2dd4bf, #38bdf8, #a78bfa);
  margin-top: 4px;
}
.tv-plate {
  border-radius: 14px;
  background: var(--plate);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.reco-photo {
  height: 150px;
  background:
    linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.75)),
    linear-gradient(135deg, #1e293b, #0f172a 50%, #134e4a);
  display: flex;
  align-items: flex-end;
  padding: 12px;
}
.reco-photo strong {
  font-size: 1.05rem;
}
.reco-body {
  padding: 12px;
}
.reco-body p {
  margin: 0 0 10px;
  color: rgba(226, 232, 240, 0.88);
  font-size: 0.875rem;
  line-height: 1.4;
}
.cta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.btn {
  border: 0;
  border-radius: 12px;
  padding: 12px 10px;
  font-weight: 650;
  font-size: 0.8rem;
  cursor: default;
}
.btn-muted {
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
}
.btn-accent {
  background: linear-gradient(180deg, #7c3aed, #4c1d95);
  color: #fff;
}

.compare {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px dashed rgba(45, 226, 197, 0.35);
  background: rgba(6, 20, 18, 0.55);
  color: #99f6e4;
  font-size: 0.78rem;
  line-height: 1.4;
}

.dock {
  position: absolute;
  left: 0;
  right: 0;
  bottom: var(--twin-h);
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0 12px 8px;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(5, 7, 10, 0.92) 35%);
}
.intel-arrow {
  pointer-events: auto;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.intel-arrow .chev {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-135deg);
  margin-top: 2px;
}
.chat-bar {
  pointer-events: auto;
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(45, 226, 197, 0.35);
  background: linear-gradient(90deg, rgba(15, 118, 110, 0.55), rgba(6, 78, 59, 0.75));
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 650;
  color: #ecfeff;
}

.twin {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--twin-h);
  display: flex;
  border-top: 1px solid var(--line);
  background: #030508;
  z-index: 21;
}
.twin button {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 650;
  cursor: pointer;
}
.twin button.active {
  color: #ecfeff;
}

.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.5);
  opacity: 0;
  transition: opacity 0.28s ease;
}
.sheet-root.open .sheet-backdrop {
  opacity: 1;
}
.sheet-glass {
  position: absolute;
  left: 0;
  right: 0;
  bottom: var(--twin-h);
  max-height: 55dvh;
  border-radius: 22px 22px 0 0;
  background: rgba(12, 18, 22, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px);
  padding: 10px 14px 16px;
  transform: translateY(108%);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
.sheet-root.open .sheet-glass {
  transform: translateY(0);
}
.handle {
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  margin: 4px auto 12px;
}
.sheet-glass h3 {
  margin: 0 0 8px;
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.hotkey-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.hotkey-grid button {
  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: 70px;
}
.hotkey-grid button strong {
  display: block;
  font-size: 0.88rem;
  margin-bottom: 4px;
}
.hotkey-grid button span {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.3;
}
