/* Ask Carolyn — homepage Play tab */
.ask-carolyn-card {
  appearance: none;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.ask-carolyn-card .project-media {
  position: relative;
  display: flex;
  min-height: 270px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #171717;
}

.ask-carolyn-card .case-pill { color: #f8f8f8; background: rgba(255,255,255,.12); }
.ask-carolyn-card .pill-dot { background: #f8f8f8; }

.ask-card-window {
  position: relative;
  width: min(78%, 330px);
  padding: 15px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 18px;
  background: rgba(35,35,35,.92);
  box-shadow: 0 18px 42px rgba(0,0,0,.3);
}

.ask-card-topline { display: flex; align-items: center; gap: 7px; color: rgba(255,255,255,.62); font-size: 11px; }
.ask-card-status { width: 6px; height: 6px; border-radius: 50%; background: #b6f36d; }
.ask-card-prompt { margin: 30px 0 12px; min-height: 22px; color: #fff; font-size: 16px; letter-spacing: -.02em; transition: opacity .2s ease, transform .2s ease; }
.ask-card-prompt.is-changing { opacity: 0; transform: translateY(4px); }
.ask-card-input { display: flex; align-items: center; justify-content: space-between; padding: 9px 10px; border-radius: 9px; background: rgba(255,255,255,.1); color: rgba(255,255,255,.48); font-size: 11px; }
.ask-card-send { color: #f8f8f8; font-size: 16px; line-height: .8; }

.ask-carolyn-modal[hidden] { display: none; }
.ask-carolyn-modal { position: fixed; inset: 0; z-index: 20000; display: grid; place-items: center; padding: 20px; }
.ask-carolyn-backdrop { position: absolute; inset: 0; background: rgba(16,16,16,.45); backdrop-filter: blur(10px); }
.ask-carolyn-dialog { position: relative; display: flex; flex-direction: column; width: min(100%, 620px); height: min(710px, calc(100vh - 40px)); overflow: hidden; border: 1px solid rgba(0,0,0,.1); border-radius: 22px; background: #fff; box-shadow: 0 28px 80px rgba(0,0,0,.25); animation: ask-chat-in .3s cubic-bezier(.2,.8,.2,1); }

.ask-chat-header { display: flex; align-items: center; justify-content: space-between; padding: 17px 19px; border-bottom: 1px solid #ececec; }
.ask-chat-person { display: flex; align-items: center; gap: 10px; }
.ask-chat-avatar { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 50%; background: #171717; color: #fff; font-size: 12px; font-weight: 500; }
.ask-chat-name { font-size: 14px; font-weight: 500; }
.ask-chat-status { margin-top: 2px; color: #8b8b8b; font-size: 11px; }
.ask-chat-close { appearance: none; width: 32px; height: 32px; border: 0; border-radius: 50%; background: #f1f1f1; color: #1d1d1f; cursor: pointer; font-size: 18px; line-height: 1; }
.ask-chat-close:hover { background: #e7e7e7; }

.ask-chat-messages { flex: 1; overflow-y: auto; padding: 24px 19px; scrollbar-width: thin; }
.ask-chat-welcome { max-width: 390px; margin: 0 0 20px; color: #303030; font-size: 15px; line-height: 1.5; }
.ask-chat-welcome.is-typing::after { content: ''; display: inline-block; width: 1px; height: .9em; margin-left: 3px; vertical-align: -.08em; background: currentColor; animation: ask-cursor .7s steps(1) infinite; }
.ask-chat-bubble { max-width: 80%; margin: 12px 0; padding: 11px 13px; border-radius: 15px; font-size: 14px; line-height: 1.5; animation: ask-message-in .22s ease both; }
.ask-chat-bubble.user { margin-left: auto; border-bottom-right-radius: 4px; background: #171717; color: #fff; }
.ask-chat-bubble.carolyn { border-bottom-left-radius: 4px; background: #f0f0f0; color: #252525; }
.ask-chat-typing { display: inline-flex; align-items: center; gap: 4px; min-height: 17px; }
.ask-chat-typing i { width: 5px; height: 5px; border-radius: 50%; background: #777; animation: ask-dot 1s infinite ease-in-out; }
.ask-chat-typing i:nth-child(2) { animation-delay: .15s; }.ask-chat-typing i:nth-child(3) { animation-delay: .3s; }

.ask-chat-choices { padding: 13px 15px 15px; border-top: 1px solid #ececec; background: #fafafa; }
.ask-chat-choices-label { margin: 0 0 9px 2px; color: #878787; font-size: 11px; }
.ask-chat-choices-list { display: flex; flex-wrap: wrap; gap: 7px; }
.ask-chat-choice { appearance: none; border: 1px solid #dedede; border-radius: 999px; padding: 8px 10px; background: #fff; color: #282828; cursor: pointer; font: inherit; font-size: 12px; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.ask-chat-choice:hover { border-color: #171717; background: #171717; color: #fff; transform: translateY(-1px); }
.ask-chat-choice:disabled { cursor: wait; opacity: .5; }

@keyframes ask-chat-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes ask-message-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
@keyframes ask-dot { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes ask-cursor { 50% { opacity: 0; } }

@media (max-width: 600px) {
  .ask-carolyn-dialog { height: min(690px, calc(100vh - 24px)); border-radius: 18px; }
  .ask-carolyn-modal { padding: 12px; }
  .ask-chat-bubble { max-width: 88%; }
}
