
/* Atlas embedded chat v1 - synthesis results only */

#atlasPreviewSection.atlas-chat-card {
  position: relative;
  margin-top: clamp(34px, 4vw, 50px);
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(160, 181, 198, .16);
  border-radius: 24px;
  background:
    radial-gradient(circle at 90% 0%, rgba(63, 108, 138, .15), transparent 35%),
    linear-gradient(180deg, rgba(11, 28, 42, .98), rgba(8, 21, 33, .99));
}

.atlas-chat-intro {
  padding: 26px 28px 22px;
  border-bottom: 1px solid rgba(160, 181, 198, .11);
}

.atlas-chat-kicker {
  margin-bottom: 8px;
  color: #d49b45;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.atlas-chat-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 26px;
}

.atlas-chat-title-row h3 {
  margin: 0;
  color: #f0f5f7;
  font-size: clamp(25px, 4vw, 34px);
  letter-spacing: -.035em;
}

.atlas-chat-title-row p {
  max-width: 610px;
  margin: 8px 0 0;
  color: #93a7b5;
  font-size: 13px;
  line-height: 1.58;
}

.atlas-chat-access {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  margin-top: 9px;
  color: #9aadb9;
  font-size: 11px;
}

.atlas-chat-access-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #79aa8e;
  box-shadow: 0 0 9px rgba(121, 170, 142, .35);
}

.atlas-chat-shell {
  width: min(760px, calc(100% - 44px));
  margin: 24px auto 28px;
  overflow: hidden;
  border: 1px solid rgba(157, 180, 197, .14);
  border-radius: 20px;
  background: rgba(8, 22, 34, .82);
  box-shadow: 0 18px 55px rgba(0, 0, 0, .2);
}

.atlas-chat-topbar {
  min-height: 68px;
  padding: 14px 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(157, 180, 197, .11);
}

.atlas-chat-identity {
  display: flex;
  align-items: center;
  gap: 11px;
}

.atlas-chat-identity > div:last-child {
  display: flex;
  flex-direction: column;
}

.atlas-chat-identity strong {
  color: #edf4f7;
  font-size: 13px;
}

.atlas-chat-identity small {
  margin-top: 2px;
  color: #728897;
  font-size: 9px;
}

.atlas-chat-orb {
  position: relative;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(214, 156, 67, .32);
  border-radius: 50%;
  background:
    radial-gradient(
      circle at 40% 35%,
      rgba(233, 180, 91, .30),
      rgba(63, 103, 131, .12) 45%,
      rgba(7, 19, 30, .9) 76%
    );
}

.atlas-chat-orb::before,
.atlas-chat-orb::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(231, 191, 124, .24);
  border-radius: 50%;
}

.atlas-chat-orb::before {
  width: 22px;
  height: 13px;
  transform: rotate(28deg);
}

.atlas-chat-orb::after {
  width: 13px;
  height: 22px;
  transform: rotate(-28deg);
}

.atlas-chat-orb span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #e7ae52;
}

.atlas-chat-beta {
  padding: 5px 8px;
  border: 1px solid rgba(214, 156, 67, .20);
  border-radius: 999px;
  color: #c99a55;
  background: rgba(214, 156, 67, .05);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.atlas-chat-thread {
  min-height: 250px;
  max-height: 420px;
  padding: 27px 24px 22px;
  overflow-y: auto;
}

.atlas-chat-message {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-bottom: 20px;
}

.atlas-chat-message-user {
  justify-content: flex-end;
}

.atlas-chat-avatar {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(214, 156, 67, .24);
  border-radius: 8px;
  color: #dda750;
  background: rgba(214, 156, 67, .04);
  font-size: 9px;
  font-weight: 700;
}

.atlas-chat-bubble {
  max-width: 610px;
  color: #d8e2e7;
  font-size: 13px;
  line-height: 1.65;
}

.atlas-chat-bubble p {
  margin: 0 0 8px;
}

.atlas-chat-bubble p:last-child {
  margin-bottom: 0;
}

.atlas-chat-bubble-user {
  max-width: 82%;
  padding: 11px 14px;
  border: 1px solid rgba(99, 140, 168, .15);
  border-radius: 14px 14px 5px 14px;
  background: #173047;
  color: #e4edf1;
  line-height: 1.5;
}

.atlas-chat-bubble-system {
  padding: 10px 12px;
  border: 1px dashed rgba(214, 156, 67, .20);
  border-radius: 11px;
  color: #a98c62;
  background: rgba(214, 156, 67, .035);
  font-size: 11px;
}

.atlas-chat-starters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 26px;
}

.atlas-chat-starters button {
  min-height: 64px;
  padding: 11px 12px;
  border: 1px solid rgba(157, 180, 197, .12);
  border-radius: 12px;
  color: #bac9d1;
  background: rgba(255, 255, 255, .015);
  text-align: left;
  font-size: 11px;
  cursor: pointer;
}

.atlas-chat-starters button:hover {
  border-color: rgba(214, 156, 67, .25);
  background: rgba(214, 156, 67, .025);
}

.atlas-chat-composer {
  margin: 0 16px 10px;
  padding: 10px 10px 10px 14px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  border: 1px solid rgba(157, 180, 197, .17);
  border-radius: 15px;
  background: #0d1e2c;
}

.atlas-chat-composer:focus-within {
  border-color: rgba(214, 156, 67, .30);
}

.atlas-chat-composer textarea {
  width: 100%;
  min-height: 25px;
  max-height: 120px;
  resize: none;
  overflow-y: auto;
  border: 0;
  outline: 0;
  color: #edf4f7;
  background: transparent;
  font-size: 13px;
  line-height: 1.5;
}

.atlas-chat-composer textarea::placeholder {
  color: #617889;
}

.atlas-chat-composer button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 0;
  border-radius: 10px;
  color: #17202a;
  background: linear-gradient(135deg, #e9b55f, #d18e2e);
  cursor: pointer;
}

.atlas-chat-composer button:disabled {
  opacity: .24;
  cursor: default;
}

.atlas-chat-composer svg {
  width: 17px;
  height: 17px;
}

.atlas-chat-shell-note {
  padding: 0 14px 13px;
  color: #596f7e;
  font-size: 9px;
  text-align: center;
}

.atlas-chat-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 720px) {
  .atlas-chat-intro {
    padding: 22px 18px 18px;
  }

  .atlas-chat-title-row {
    display: block;
  }

  .atlas-chat-access {
    margin-top: 13px;
  }

  .atlas-chat-shell {
    width: calc(100% - 24px);
    margin: 18px auto 20px;
  }

  .atlas-chat-thread {
    min-height: 230px;
    padding: 22px 15px 18px;
  }

  .atlas-chat-starters {
    grid-template-columns: 1fr;
  }

  .atlas-chat-starters button {
    min-height: 46px;
  }

  .atlas-chat-composer {
    margin-right: 10px;
    margin-left: 10px;
  }
}

/* Atlas contained chat window v6 */

#atlasChatSection.atlas-chat-card{
  position:relative;
  overflow:hidden;
}

#atlasChatSection .atlas-chat-intro{
  padding:30px 34px 26px;
}

#atlasChatSection .atlas-chat-title-row h3{
  font-size:clamp(30px,3.2vw,38px);
}

#atlasChatSection .atlas-chat-title-row p{
  max-width:720px;
  font-size:16px;
  line-height:1.6;
}

#atlasChatSection .atlas-chat-access{
  font-size:13px;
}

#atlasChatSection .atlas-chat-shell{
  width:min(980px,calc(100% - 40px));
  margin:24px auto 30px;
  overflow:hidden;
}

#atlasChatSection .atlas-chat-topbar{
  min-height:72px;
  padding:15px 20px;
}

#atlasChatSection .atlas-chat-identity strong{
  font-size:15px;
}

#atlasChatSection .atlas-chat-identity small{
  font-size:11px;
}

#atlasChatSection .atlas-warmup-notice{
  padding:17px 22px;
  border-bottom:1px solid rgba(157,180,197,.11);
  background:rgba(214,156,67,.025);
}

#atlasChatSection .atlas-warmup-notice > strong{
  display:block;
  margin-bottom:5px;
  color:#f0f5f7;
  font-size:17px;
  line-height:1.3;
  font-weight:850;
}

#atlasChatSection .atlas-warmup-notice p{
  max-width:760px;
  margin:0;
  color:#aabdc7;
  font-size:15px;
  line-height:1.58;
}

#atlasChatSection .atlas-warmup-notice small{
  display:block;
  margin-top:6px;
  color:#8197a3;
  font-size:12.5px;
  line-height:1.45;
}

#atlasChatSection .atlas-chat-thread-integrated{
  min-height:0;
  max-height:520px;
  padding:18px 28px 10px;
  overflow-y:auto;
  overflow-x:hidden;
  overscroll-behavior:contain;
  scrollbar-gutter:stable;
  scrollbar-width:thin;
}

#atlasChatSection .atlas-chat-thread-integrated::-webkit-scrollbar{
  width:8px;
}

#atlasChatSection .atlas-chat-thread-integrated::-webkit-scrollbar-track{
  background:transparent;
}

#atlasChatSection .atlas-chat-thread-integrated::-webkit-scrollbar-thumb{
  border-radius:999px;
  background:rgba(133,157,171,.24);
}

#atlasChatSection .atlas-chat-thread-integrated:empty{
  padding-top:8px;
}

#atlasChatSection .atlas-chat-message{
  margin-bottom:20px;
}

#atlasChatSection .atlas-chat-bubble{
  font-size:16.5px;
  line-height:1.68;
}

#atlasChatSection .atlas-chat-bubble-assistant{
  max-width:780px;
}

#atlasChatSection .atlas-chat-bubble-user{
  max-width:78%;
  font-size:15.5px;
  line-height:1.55;
}

#atlasChatSection .atlas-chat-message-loading{
  opacity:.7;
}

#atlasChatSection .atlas-chat-avatar{
  width:30px;
  height:30px;
  font-size:11px;
}

#atlasChatSection .atlas-chat-divider{
  display:flex;
  align-items:center;
  gap:10px;
  margin:8px 0 16px;
  color:#879ca8;
  font-size:12px;
  font-weight:800;
  letter-spacing:.025em;
}

#atlasChatSection .atlas-chat-divider::before,
#atlasChatSection .atlas-chat-divider::after{
  content:"";
  height:1px;
  flex:1;
  background:rgba(157,180,197,.10);
}

#atlasChatSection .atlas-chat-divider span{
  flex:0 0 auto;
}

#atlasChatSection .atlas-warmup-rating{
  margin:4px 0 22px 42px;
  padding:15px;
  border:1px solid rgba(214,156,67,.20);
  border-radius:13px;
  background:rgba(214,156,67,.025);
}

#atlasChatSection .atlas-warmup-rating-title{
  margin-bottom:11px;
  color:#edf3f5;
  font-size:14.5px;
  line-height:1.45;
  font-weight:820;
}

#atlasChatSection .atlas-warmup-rating-buttons{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:9px;
}

#atlasChatSection .atlas-warmup-rating-buttons button{
  min-height:44px;
  padding:9px 11px;
  border:1px solid rgba(157,180,197,.16);
  border-radius:10px;
  color:#c5d2d8;
  background:rgba(255,255,255,.015);
  font-size:13.5px;
  font-weight:780;
  cursor:pointer;
}

#atlasChatSection .atlas-warmup-rating-buttons button:hover,
#atlasChatSection .atlas-warmup-rating-buttons button.selected{
  border-color:rgba(214,156,67,.40);
  color:#f4d7a7;
  background:rgba(214,156,67,.08);
}

#atlasChatSection .atlas-warmup-rating-buttons button:disabled{
  cursor:default;
  opacity:.54;
}

#atlasChatSection .atlas-warmup-rating-buttons button.selected:disabled{
  opacity:1;
}

#atlasChatSection .atlas-composer-context{
  margin:12px 20px 8px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  color:#899eaa;
  font-size:12.5px;
}

#atlasChatSection .atlas-composer-context #atlasComposerMode{
  color:#e0aa52;
  font-weight:850;
}

#atlasChatSection.atlas-live-mode .atlas-composer-context #atlasComposerMode{
  color:#a8ceb6;
}

#atlasChatSection .atlas-chat-composer{
  margin-top:0;
}

#atlasChatSection .atlas-chat-composer textarea{
  min-height:48px;
  font-size:16px;
  line-height:1.55;
}

#atlasChatSection .atlas-chat-shell-note{
  min-height:4px;
  padding:0 16px 12px;
  color:#8398a4;
  font-size:11.5px;
  line-height:1.45;
  text-align:center;
}

#atlasChatSection .atlas-chat-shell-note:empty{
  display:none;
}

#atlasChatSection .atlas-warmup-reveal-inline{
  margin:8px 0 18px;
  padding:14px 16px;
  border:1px solid rgba(121,170,142,.20);
  border-radius:13px;
  background:rgba(121,170,142,.035);
}

#atlasChatSection .atlas-warmup-reveal-inline > strong{
  display:block;
  margin-bottom:4px;
  color:#e4f0e8;
  font-size:15px;
}

#atlasChatSection .atlas-warmup-reveal-summary{
  margin:0;
  color:#9db3a5;
  font-size:13.5px;
  line-height:1.5;
}

#atlasChatSection .atlas-warmup-reveal-grid{
  display:none!important;
}

@media(min-width:900px){
  #atlasChatSection.atlas-chat-card{
    left:50%;
    width:min(1120px,calc(100vw - 72px));
    max-width:none;
    transform:translateX(-50%);
  }
}

@media(max-width:720px){
  #atlasChatSection.atlas-chat-card{
    left:50%;
    width:calc(100vw - 24px);
    max-width:none;
    transform:translateX(-50%);
  }

  #atlasChatSection .atlas-chat-intro{
    padding:22px 18px 19px;
  }

  #atlasChatSection .atlas-chat-title-row{
    gap:14px;
  }

  #atlasChatSection .atlas-chat-title-row h3{
    font-size:30px;
  }

  #atlasChatSection .atlas-chat-title-row p{
    font-size:15px;
    line-height:1.55;
  }

  #atlasChatSection .atlas-chat-access{
    font-size:12px;
  }

  #atlasChatSection .atlas-chat-shell{
    width:calc(100% - 16px);
    margin:14px auto 18px;
    border-radius:17px;
  }

  #atlasChatSection .atlas-chat-topbar{
    min-height:64px;
    padding:12px 14px;
  }

  #atlasChatSection .atlas-chat-identity strong{
    font-size:15px;
  }

  #atlasChatSection .atlas-chat-identity small{
    font-size:11px;
  }

  #atlasChatSection .atlas-warmup-notice{
    padding:14px 15px;
  }

  #atlasChatSection .atlas-warmup-notice > strong{
    font-size:16px;
  }

  #atlasChatSection .atlas-warmup-notice p{
    font-size:14.5px;
    line-height:1.52;
  }

  #atlasChatSection .atlas-warmup-notice small{
    font-size:12px;
  }

  #atlasChatSection .atlas-chat-thread-integrated{
    max-height:min(48vh,430px);
    padding:14px 14px 8px;
  }

  #atlasChatSection .atlas-chat-bubble{
    font-size:16px;
    line-height:1.62;
  }

  #atlasChatSection .atlas-chat-bubble-user{
    max-width:88%;
    font-size:15.5px;
  }

  #atlasChatSection .atlas-warmup-rating{
    margin-left:0;
    padding:13px;
  }

  #atlasChatSection .atlas-warmup-rating-title{
    font-size:14px;
  }

  #atlasChatSection .atlas-warmup-rating-buttons{
    grid-template-columns:1fr;
  }

  #atlasChatSection .atlas-warmup-rating-buttons button{
    min-height:46px;
    font-size:14px;
  }

  #atlasChatSection .atlas-composer-context{
    margin:10px 12px 7px;
    align-items:flex-start;
    flex-direction:column;
    gap:2px;
    font-size:12.5px;
  }

  #atlasChatSection .atlas-chat-composer textarea{
    font-size:16px;
  }

  #atlasChatSection .atlas-warmup-reveal-inline > strong{
    font-size:15px;
  }

  #atlasChatSection .atlas-warmup-reveal-summary{
    font-size:13px;
  }
}


/* Atlas synthesis handoff to standalone app */
#atlasChatSection .atlas-enter-app{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  margin-top:14px;
  padding:0 16px;
  border-radius:11px;
  background:linear-gradient(135deg,#e9ae4d,#c9872d);
  color:#10181d;
  text-decoration:none;
  font-size:13px;
  font-weight:850;
}
#atlasChatSection .atlas-enter-app:hover{filter:brightness(1.05)}
#atlasChatSection .atlas-enter-app-note{
  display:block;
  margin-top:8px;
  color:#718b98;
  font-size:11.5px;
  line-height:1.45;
}

/* Atlas compact blind-check shell v7 */
#atlasChatSection.atlas-chat-card{
  width:min(980px,calc(100vw - 72px));
}
#atlasChatSection .atlas-chat-intro{
  max-width:860px;
  margin:0 auto;
}
#atlasChatSection .atlas-chat-shell{
  width:min(820px,calc(100% - 40px));
  height:min(570px,calc(100dvh - 120px));
  min-height:500px;
  display:grid;
  grid-template-rows:auto auto minmax(0,1fr) auto auto auto;
  overflow:hidden;
}
#atlasChatSection .atlas-chat-thread-integrated{
  min-height:0;
  max-height:none;
  overflow-y:auto;
  overscroll-behavior:contain;
}
#atlasChatSection .atlas-composer-context{
  margin:0;
  padding:9px 18px 6px;
  border-top:1px solid rgba(157,180,197,.08);
  background:#091620;
}
#atlasChatSection .atlas-chat-composer{
  margin:0 14px 8px;
  flex:0 0 auto;
}
#atlasChatSection .atlas-chat-shell-note{
  padding:0 16px 10px;
  background:#091620;
}
#atlasChatSection.atlas-warmup-complete .atlas-chat-shell{
  height:auto;
  min-height:0;
  grid-template-rows:auto auto;
}
#atlasChatSection.atlas-warmup-complete .atlas-chat-thread-integrated{
  overflow:visible;
  padding:24px 24px 26px;
}
#atlasChatSection .atlas-warmup-ready{
  max-width:620px;
  margin:0 auto;
  padding:20px;
  border:1px solid rgba(121,170,142,.20);
  border-radius:15px;
  background:linear-gradient(145deg,rgba(90,166,145,.055),rgba(233,170,67,.025));
  text-align:center;
}
#atlasChatSection .atlas-warmup-ready strong{
  display:block;
  margin-bottom:6px;
  color:#eef5f2;
  font-size:18px;
}
#atlasChatSection .atlas-warmup-ready p{
  max-width:48ch;
  margin:0 auto;
  color:#91aaa0;
  font-size:14px;
  line-height:1.55;
}

@media(max-width:720px){
  #atlasChatSection.atlas-chat-card{
    width:calc(100vw - 20px);
  }
  #atlasChatSection .atlas-chat-intro{
    max-width:none;
  }
  #atlasChatSection .atlas-chat-shell{
    width:calc(100% - 12px);
    height:min(70dvh,560px);
    min-height:470px;
  }
  #atlasChatSection .atlas-chat-thread-integrated{
    max-height:none;
  }
  #atlasChatSection .atlas-composer-context{
    padding:8px 12px 5px;
  }
  #atlasChatSection .atlas-chat-composer{
    margin:0 9px 7px;
  }
  #atlasChatSection.atlas-warmup-complete .atlas-chat-shell{
    height:auto;
    min-height:0;
  }
  #atlasChatSection.atlas-warmup-complete .atlas-chat-thread-integrated{
    padding:18px 13px 20px;
  }
}
