@import url('/app.css?v=20260928-still-1');

/* Independent V2 overlay: the original stylesheet and page stay unchanged. */
.laboratory-v2 {
  background: radial-gradient(ellipse at 20% 0%, #183c54 0, transparent 60%), #071827;
}
.laboratory-v2 .shell {
  width: min(1680px, calc(100% - 40px));
  padding: 18px 0;
}
.laboratory-v2 .topbar { min-height: 64px; margin-bottom: 16px; gap: 22px; }
.laboratory-v2 .brand { min-width: 0; gap: 17px; }
.brand-mark {
  display: block;
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  border-radius: 15px;
  background: #fff url('/assets/brand/company-logo-source.jpg') 50.6% 45.8% / 300% no-repeat;
  box-shadow: 0 5px 24px rgba(0, 10, 22, .16);
}
.brand-copy { min-width: 0; }
.laboratory-v2 .brand .eyebrow {
  font-size: clamp(11px, 1.02vw, 14px);
  letter-spacing: .10em;
  color: #a8daec;
  margin: 0 0 7px;
  line-height: 1.3;
}
.laboratory-v2 h1 {
  font-size: clamp(19px, 2.05vw, 29px);
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.3;
}
.laboratory-v2 .top-actions { flex-shrink: 0; gap: 9px; }
.laboratory-v2 .icon-button,
.laboratory-v2 .admin-link { color: #d5edf6; background: rgba(130,199,224,.08); }
.laboratory-v2 .stage-card {
  height: calc(100dvh - 116px);
  min-height: 480px;
  border-radius: 23px;
  border-color: rgba(180,215,229,.24);
  box-shadow: 0 24px 70px rgba(0,8,22,.28);
}
.laboratory-v2 .avatar-panel { min-height: 0; background: #aabec8; }
.laboratory-v2 .avatar-panel::before {
  inset: 0;
  background: url('/assets/brand/company-laboratory-v2-8458.jpg') 50% 64% / cover no-repeat;
  filter: saturate(.80) brightness(1.16) blur(.45px);
  transform: scale(1.006);
  animation: none;
}
.laboratory-v2 .avatar-panel::after {
  background: linear-gradient(90deg, rgba(20,43,63,.10) 0%, rgba(25,52,70,.03) 40%, rgba(8,33,52,.29) 100%);
}
.laboratory-v2 .scene-vignette {
  background: linear-gradient(to top, rgba(17,38,53,.28), transparent 28%);
  box-shadow: inset 0 0 70px rgba(15,32,44,.06);
}
.laboratory-v2 .avatar { left: 6%; right: auto; width: 66%; }
.floor-contact {
  display: none;
  position: absolute;
  z-index: 1;
  left: 31%;
  bottom: 6%;
  width: 18%;
  height: 3%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(14,26,34,.32), transparent 70%);
  filter: blur(6px);
  pointer-events: none;
}
.laboratory-v2 .avatar-name {
  left: 24px;
  bottom: 23px;
  transform: none;
  padding: 9px 18px;
  border-color: rgba(227,245,251,.38);
  background: rgba(7,36,56,.67);
  box-shadow: 0 7px 28px rgba(4,20,30,.12);
}
.laboratory-v2 .avatar-name strong { font-size: 15px; }
.laboratory-v2 .avatar-name small { color: #c0deea; }
.laboratory-v2 .chat-panel {
  left: auto;
  right: 25px;
  top: 25px;
  bottom: 23px;
  width: calc(34% - 17px);
  padding: 21px;
  grid-template-rows: minmax(0, 1fr) auto auto auto;
  gap: 15px;
  border: 1px solid rgba(222,243,251,.32);
  border-radius: 21px;
  background: linear-gradient(155deg, rgba(8,39,61,.36), rgba(5,27,46,.48));
  box-shadow: 0 16px 46px rgba(2,19,32,.17), inset 0 1px rgba(255,255,255,.06);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.laboratory-v2 .messages { min-height: 0; padding: 2px 3px 12px; mask-image: none; }
.laboratory-v2 .message { gap: 12px; margin-bottom: 20px; }
.laboratory-v2 .message > div { max-width: calc(100% - 48px); }
.laboratory-v2 .message p {
  font-size: clamp(14px, 1.15vw, 17px);
  line-height: 1.85;
  background: rgba(8,35,55,.45);
  border-color: rgba(184,225,244,.16);
  box-shadow: none;
  backdrop-filter: none;
}
.laboratory-v2 .message.user p { background: rgba(13,132,183,.61); }
.laboratory-v2 .welcome-message p {
  white-space: nowrap;
  font-size: clamp(12px, 1.05vw, 16px);
  padding: 12px;
}
.laboratory-v2 .message time { color: #d1e7f0; text-shadow: 0 1px 3px rgba(0,15,28,.7); }
.laboratory-v2 .suggestions { gap: 7px; }
.laboratory-v2 .suggestions button { color: #e2f4fb; background: rgba(8,35,55,.48); font-size: 11px; }
.laboratory-v2 .composer { background: rgba(2,18,31,.65); box-shadow: none; }
.laboratory-v2 .input-wrap { min-width: 0; }
.laboratory-v2 textarea { font-size: 14px; }
.laboratory-v2 textarea::placeholder { color: #8bb0c3; }
.laboratory-v2 .hint { color: #d9edf6; text-shadow: 0 1px 3px rgba(0,15,28,.7); font-size: 10px; line-height: 1.5; margin: -3px 0 0; }

@media (max-width: 1100px) {
  .laboratory-v2 .welcome-prompt { display: none; }
}
@media (max-width: 1100px) and (min-width: 701px) {
  .laboratory-v2 .shell { width: calc(100% - 28px); }
  .laboratory-v2 .brand { gap: 12px; }
  .brand-mark { flex-basis: 54px; width: 54px; height: 54px; border-radius: 12px; }
  .laboratory-v2 h1 { font-size: 20px; }
  .laboratory-v2 .brand .eyebrow { font-size: 11px; letter-spacing: .02em; }
  .laboratory-v2 .top-actions { gap: 6px; }
  .laboratory-v2 .status-pill { font-size: 0; padding: 11px; }
  .laboratory-v2 .chat-panel { left: auto; right: 16px; top: 18px; bottom: 18px; width: calc(35.333% - 11px); padding: 16px; gap: 12px; }
  .laboratory-v2 .avatar { left: 4%; }
  .laboratory-v2 .floor-contact { left: 29%; }
}
@media (max-width: 700px) {
  .laboratory-v2 .shell { width: calc(100% - 16px); height: 100dvh; padding: 10px 0; display: flex; flex-direction: column; }
  .laboratory-v2 .topbar { min-height: 0; margin-bottom: 10px; gap: 10px; flex-wrap: wrap; }
  .laboratory-v2 .brand { gap: 10px; }
  .brand-mark { flex-basis: 44px; width: 44px; height: 44px; border-radius: 10px; }
  .laboratory-v2 .brand .eyebrow { max-width: none; font-size: 8px; margin-bottom: 4px; letter-spacing: .02em; }
  .laboratory-v2 h1 { font-size: clamp(13px, 3.65vw, 20px); letter-spacing: .01em; }
  .laboratory-v2 .top-actions { width: 100%; justify-content: flex-end; }
  .laboratory-v2 .icon-button { height: 28px; min-width: 55px; font-size: 10px; }
  .laboratory-v2 .admin-link { padding: 6px 9px; font-size: 10px; }
  .laboratory-v2 .status-pill { font-size: 10px; padding: 6px 9px; }
  .laboratory-v2 .stage-card { flex: 1; height: auto; min-height: 0; border-radius: 18px; }
  .laboratory-v2 .avatar { left: 0; width: 100%; }
  .laboratory-v2 .avatar-panel::before { background-position: 42% 62%; }
  .laboratory-v2 .avatar-name { left: 50%; bottom: 99px; transform: translateX(-50%); }
  .laboratory-v2 .floor-contact { left: 50%; bottom: 8%; width: 40%; }
  .laboratory-v2 .chat-panel {
    display: none; left: 10px; right: 10px; top: 12px; bottom: 96px; width: auto; height: auto; min-height: 0;
    padding: 14px; grid-template-rows: minmax(0, 1fr) auto auto; gap: 10px; border-radius: 17px;
    background: rgba(5,28,47,.94);
  }
  .laboratory-v2 .chat-panel.mobile-text-open { display: grid; }
  .laboratory-v2 .message p { font-size: 13px; }
  .laboratory-v2 .suggestions { display: none; }
  .laboratory-v2 .mobile-actions { left: 10px; right: 10px; bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .laboratory-v2 .message, .laboratory-v2 .mic-button, .laboratory-v2 .mobile-action { animation: none; }
}
