* {
  box-sizing: border-box;
}

/* General Styles */
body {
  font-family: 'Inter', sans-serif; /* Updated font for a more festive look */
  margin: 0;
  padding: 0;
  background-color: #1e1e1e; /* Creamy color for a warm feel */
  font-size: 16px;
}

/* Chat container */
#chat-container {
  display: flex;
  flex-direction: column;
  max-width: 400px;
  margin: 50px auto;
  background-color: #1e1e1e; /* Light red for a festive touch */
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  /* border: 1px solid #008000;  Green border for Christmas theme */
}

@media (min-width: 601px) {
  #chat-container {
    max-width: 600px;
  }
}

/* Messages */
#messages {
  display: flex;
  flex-direction: column;
  padding: 10px;
  overflow-y: auto;
  flex-grow: 1;
} 

/* Chat bubbles */
.message {
  max-width: 70%;
  margin-bottom: 10px;
  padding: 12px 18px;
  border-radius: 20px; 
  line-height: 1.4;
  font-size: 16px;
  word-wrap: break-word;
  overflow-wrap: break-word; /* wrap text */
}


.message pre {
  white-space: pre-wrap; /* Wrap text for line breaks */
  font-family: inherit; /* Use the same font family as the rest of the page */
  margin: 0; /* Reset default margins */
}

.message-content {
  display: flex;
  flex-direction: column;
}

/* Updated colors for messages */

.user-message {
  align-self: flex-end;
  background-color: #2563eb; /* User message */
  color: #FFFFFF; /* White text */
  border-bottom-left-radius: 5px;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  padding: 10px 20px;
  margin-bottom: 10px;
}

.bot-message {
  align-self: flex-start;
  background-color: #3f3f46; /* Bot message */
  color: #FFFFFF; /* White text */
  border-bottom-right-radius: 5px;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  padding: 10px 20px;
  margin-bottom: 10px;
}

/* Input container */
#input-container {
  display: flex;
  align-items: center; /* align items to the center of the container */
  padding: 10px;
}

/* Input field */
#user-input {
  flex-grow: 1;
  border: none;
  padding: 5px 10px;
  font-size: 16px;
  outline: none;
	background-color: #1e1e1e;
	border: #0ea5e9 1px solid;
	color:#0ea5e9;
 /* disable textarea resizing */
  overflow:visible; /* hide scrollbar */
  height: 40px; /* set initial height */
  min-height: 80px; /* set a minimum height */
  max-height: 100px; /* set a maximum height */
  word-wrap: break-word; /* allow text to wrap to new lines */
  overflow-wrap: break-word; /* allow text to wrap to new lines */
}

a { color: #0ea5e9;}

/* Send button */
#send-button {
  background-color: #2563eb;
  color: #fff;
  border: none;
  padding: 10px;
  font-size: 16px;
  cursor: pointer;
  outline: none;
	border-radius: 5px;
  margin-left: 10px; /* add some space between the input field and the button */
}

/* Send button */
#send-image-button {
  background-color: #2563eb;
  color: #fff;
  border: none;
  padding: 10px;
  font-size: 16px;
  cursor: pointer;
	border-radius: 5px;
  outline: none;
  margin-left: 10px; /* add some space between the input field and the button */
}

/* Send button */
#supportYack {
  background-color: #ff4757;
  color: #fff;
  border: none;
  padding: 10px;
  font-size: 16px;
  cursor: pointer;
	border-radius: 5px;
  outline: none;
	margin-left: 10px; /* add some space between the input field and the button */ }

.signUpNow {
  background-color: #2563eb;
  color: #fff;
  border: none;
  padding: 10px;
  font-size: 16px;
  cursor: pointer;
  outline: none;
	border-radius: 5px;
  margin-left: 10px; /* add some space between the input field and the button */
} 

#signUpNow {
  background-color: #2563eb;
  color: #fff;
  border: none;
  padding: 10px;
  font-size: 16px;
  cursor: pointer;
  outline: none;
	border-radius: 5px;
  margin-left: 10px; /* add some space between the input field and the button */
}

#signUpNow a {

  color: #fff;
 
}



/* Send button */
.send-button {
  background-color: #2563eb;
  color: #fff;
  border: none;
  padding: 10px;
  font-size: 16px;
  cursor: pointer;
  outline: none;
	border-radius: 5px;
  margin-left: 10px; /* add some space between the input field and the button */
}

/* Send button */
.send-image-button {
  background-color: #2563eb;
  color: #fff;
  border: none;
  padding: 10px;
  font-size: 16px;
  cursor: pointer;
	border-radius: 5px;
  outline: none;
  margin-left: 10px; /* add some space between the input field and the button */
}


/* Yack image */
.yack-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

/* Message info */
.message-info {
  display: flex;
  align-items: center;
  margin-top: 5px;
  font-size: 14px;
  color: #888;
}

/* Assistant name */
.assistant-name {
  margin-left: 10px;
  font-weight: bold;
	color: #ffffff;
}

/* Response messages */
.bot-message .message-info {
  display: flex;
  align-items: center;
}

.bot-message .message-text {
  margin-right: 10px;
}

.message-text {
  word-wrap: break-word;
  overflow-wrap: break-word; /* wrap text */
}

.bot-message .avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

/* List styles */
.bot-message ul {
  list-style-type: none;
  padding-left: 20px;
  margin-top: 5px;
  margin-bottom: 5px;
}

.bot-message li {
  font-size: 0.9em;
  padding: 3px 0;
  text-indent: -20px;
  margin-left: 20px;
}


.bot-message li:before {
  content: "•";
  display: inline-block;
  width: 20px;
  text-indent: 0;
}


.bot-message ol {
  padding-left: 24px;
  margin-top: 5px;
  margin-bottom: 5px;
}

.bot-message ol li {
  list-style-position: outside;
  text-indent: 0;
  margin-left: 0;
}

.bot-message ol li:before {
  content: none;
}

.message-table-wrapper {
  max-width: 100%;
  overflow-x: auto;
  margin: 10px 0;
}

.message-table {
  width: 100%;
  border-collapse: collapse;
  color: #ffffff;
  font-size: 0.9em;
  min-width: 320px;
}

.message-table th,
.message-table td {
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}

.message-table th {
  background-color: rgba(255, 255, 255, 0.14);
  font-weight: bold;
}

.message-table tbody tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.07);
}

.message-text a {
  color: #bfdbfe;
  text-decoration: underline;
}

.message-text h1,
.message-text h2,
.message-text h3,
.message-text h4,
.message-text h5,
.message-text h6 {
  margin: 0.8em 0 0.35em;
  line-height: 1.25;
}

.message-text h1:first-child,
.message-text h2:first-child,
.message-text h3:first-child {
  margin-top: 0;
}

.message-text p {
  margin: 0 0 0.75em;
}

.message-text p:last-child {
  margin-bottom: 0;
}

.message-text blockquote {
  margin: 0.75em 0;
  padding: 0.15em 0 0.15em 0.8em;
  border-left: 3px solid #60a5fa;
  color: #e2e8f0;
}

.message-text hr {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  margin: 1em 0;
}

.inline-code {
  padding: 0.12em 0.35em;
  border-radius: 4px;
  background: rgba(15, 23, 42, 0.65);
  color: #e2e8f0;
  font-family: Consolas, Monaco, monospace;
  font-size: 0.9em;
}

.message-image img {
  display: block;
  width: min(450px, 100%);
  max-width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  border-radius: 8px;
  object-fit: contain;
  background: #111827;
}

.generated-image-message {
  width: 100%;
}

.generated-image-message .message-text {
  width: 100%;
}

.generated-image-actions {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  margin-top: 8px;
}

.generated-image-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  margin-left: 0;
  text-decoration: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

h1 { margin-bottom: 0px; }

.ask-yack {
	font-family: 'Inter', sans-serif;
  font-size: 32px;
  text-align: center;
  margin: auto;
	padding-top: 25px;
  color: #0ea5e9;
	display: flex;
  align-items: center;
  gap: 10px; /* Adjust the space between the image and the text */
}


.yack-logo {
  width: 40px; /* Adjust the width of the image */
  height: auto;
}


/* Loading icon */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.loading-icon {
  display: inline-block;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-top-color: #666;
  border-radius: 50%;
  width: 1em;
  height: 1em;
  animation: spin 0.6s linear infinite;
}
.email-response-button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5em;
  padding: 0;
  margin-left: 0.5em;
  color: #333;
}

.email-response-button:hover {
  color: #007bff;
}

/* navigation */

/* The side navigation menu */
.sidenav {
  height: 100%; /* 100% Full-height */
  width: 0; /* 0 width - change this with JavaScript */
  position: fixed; /* Stay in place */
  z-index: 1; /* Stay on top */
  top: 0; /* Stay at the top */
  right: 0; /* Aligh menu on the right side */
  background-color: #111; /* Black*/
  overflow-x: hidden; /* Disable horizontal scroll */
  padding-top: 60px; /* Place content 60px from the top */
  transition: 0.5s; /* 0.5 second transition effect to slide in the sidenav */
	font-size: 16px;
}

/* The navigation menu links */
.sidenav a {
  padding: 8px 8px 8px 32px;
  text-decoration: none;
  font-size: 16px;
  color: #818181;
  display: block;
  transition: 0.3s;
	
}

/* When you mouse over the navigation links, change their color */
.sidenav a:hover {
  color: #0ea5e9;
	 
}

/* Position and style the close button (top right corner) */
.sidenav .closebtn {
  position: absolute;
  top: 0;
  right: 25px;
  font-size: 36px;
  margin-left: 50px;
}

#socialTags {
  display: flex;
  align-items: center;
  justify-content: center; /* Optional, use this to center the icons */
}

#socialTags a {
  text-decoration: none;
  padding: 0 10px; /* Adjust the space between the icons */
}

.socialTags:hover {
  color: #0d8fd4; /* Darker Twitter blue for hover effect */
}



/* Style page content - use this if you want to push the page content to the right when you open the side navigation */
#main {
  transition: margin-left .5s;
  padding: 20px;
}

/* On smaller screens, where height is less than 450px, change the style of the sidenav (less padding and a smaller font size) */
@media screen and (max-height: 450px) {
  .sidenav {padding-top: 15px;}
  .sidenav a {font-size: 18px;}
}


/* Hamburger Menu Icon */
.menu-icon {
  cursor: pointer;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 2;
}

.bar1, .bar2, .bar3 {
  width: 25px;
  height: 3.5px;
  background-color: #333;
  margin: 6px 0;
  transition: 0.4s;
}

#menu-wrapper.open .menu-icon {
  display: none;
}


.dark-theme {
  background-color: #647081;
}

.dark-theme #chat-container {
  background-color: #434a54;
}

.dark-theme .bot-message {
  background-color: #6f7785;
  color: #d1d6db;
}

.dark-theme .user-message {
  background-color: #869bb3;
  color: #fff;
}

.dark-theme .assistant-name {
	color: #ffffff;
}

pre {
  background-color: #DBDBDB;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 1rem;
  overflow-x: auto;
  white-space: pre-wrap;
  word-wrap: break-word;
  font-size: 10px;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
  font-size: 10px;
}

pre.plaintext-code {
  white-space: pre-wrap;
  font-family: 'Courier New', monospace;
  font-size: 10px;
  
}

.code-block-wrapper {
  position: relative;
}

.copy-code-button {
  position: absolute;
  top: 6px;
  right: 6px;
  border: 1px solid #b7b7b7;
  background: #f3f3f3;
  border-radius: 4px;
  font-size: 10px;
  padding: 4px 8px;
  cursor: pointer;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
}

.modal-content {
  background-color: #dfeeff;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  max-width: 500px;
}

.modal-content-plus {
  background-color: #dfeeff;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  max-width: 500px;
	border-radius: 25px;
}

.close {
  color: #aaaaaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

.version-info {
	margin: auto 0;
  font-size: 10px;
  color: #666;
  
	padding: 10px;
}
.askyack-bottomchat{
	margin: auto 0;
  font-size: 10px;
  color: #666;
  
	padding: 10px;
}

/* Add this to your CSS file */
@media (max-width: 768px) {
  .message-image img {
    width: min(250px, 100%);
  }
}


/*-- modal CSS --*/

/* Add these styles to your CSS file or inside a <style> tag in the <head> of your HTML file */
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
}

.modal-content {
  background-color: #dfeeff;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  max-width:  300px;
	border-radius: 25px;
}

.close {
  color: #aaaaaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

.powered-by {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 10px;
  margin-top: 10px;
}

.powered-by-logo {
  width: 30px;
  height: 30px;
  margin-bottom: 5px;
}



@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');

body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

#registrationModal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

#registrationModal .modal-content {
  background-color: #ffffff;
  margin: 10% auto;
  padding: 20px 30px;
  border-radius: 10px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  max-width: 400px;
}

#registrationModal .close {
  color: #333;
  float: right;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
}

#registrationModal .close:hover,
#registrationModal .close:focus {
  color: #007bff;
}

#registrationModal h2 {
  margin-top: 0;
  font-size: 24px;
  font-weight: 600;
  color: #333;
  text-align: center;
}

#registrationModal form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

#registrationModal label {
  font-size: 14px;
  font-weight: 600;
  color: #555;
}

#registrationModal input[type="email"],
#registrationModal input[type="password"],
#registrationModal input[type="text"] {
  padding: 12px 15px;
  font-size: 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: #f9f9f9;
  transition: border-color 0.3s;
}

#registrationModal input[type="email"]:focus,
#registrationModal input[type="password"]:focus,
#registrationModal input[type="text"]:focus {
  outline: none;
  border-color: #007bff;
}

#registrationModal button[type="submit"] {
  background-color: #007bff;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  padding: 12px 15px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

#registrationModal button[type="submit"]:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
}

#registrationModal button[type="submit"]:active {
  transform: translateY(0);
}

#registrationModal .g-recaptcha {
  margin-top: 10px;
  align-self: center;
  transform: scale(0.95);
}

#registrationModal label input[type="checkbox"] {
  margin-right: 10px;
}

@media (max-width: 600px) {
  #registrationModal .modal-content {
    margin: 20% auto;
    padding: 20px;
  }

  #registrationModal h2 {
    font-size: 20px;
  }
}




/*-- Registration MODAL 

#registrationModal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

#registrationModal .modal-content {
  background-color: #dfeeff;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  max-width: 500px;
}

#registrationModal .close {
  color: #aaaaaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

#registrationModal .close:hover,
#registrationModal .close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

#registrationModal h2 {
  margin-top: 0;
  font-size: 28px;
}

#registrationModal form {
  display: flex;
  flex-direction: column;
}

#registrationModal label {
  font-size: 16px;
  font-weight: bold;
  margin-top: 10px;
}

#registrationModal input[type="email"],
#registrationModal input[type="password"],
#registrationModal input[type="text"]
 {
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-bottom: 20px;
}

#registrationModal button[type="submit"] {
  background-color: #007bff;
  color: white;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  padding: 10px;
  cursor: pointer;
}

#registrationModal button[type="submit"]:hover {
  background-color: #0062cc;
} --*/

/*-- Registration MODAL --*/
/*-- Registration MODAL --*/

/*-- Login MODAL --*/

#loginModal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

#loginModal .modal-content {
  background-color: #dfeeff;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  max-width: 500px;
}

#loginModal .close {
  color: #aaaaaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

#loginModal .close:hover,
#loginModal .close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

#loginModal h2 {
  margin-top: 0;
  font-size: 28px;
}

#loginModal form {
  display: flex;
  flex-direction: column;
}

#loginModal label {
  font-size: 16px;
  font-weight: bold;
  margin-top: 10px;
}

#loginModal input[type="email"],
#loginModal input[type="password"],

#loginModal input[type="text"] {
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-bottom: 20px;
}

#loginModal button[type="submit"] {
  background-color: #007bff;
  color: white;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  padding: 10px;
  cursor: pointer;
}

#loginModal button[type="submit"]:hover {
  background-color: #0062cc;
}


.user-indicator {
	padding: 10px;
}


.about-us-modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
}

.about-us-modal-content {
  background-color: #dfeeff;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  max-width: 600px;
  border-radius: 25px;
  position: relative;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.about-us-close {
  color: #333;
  cursor: pointer;
  font-size: 2em;
  position: absolute;
  right: 20px;
  top: 20px;
  z-index: 10;
}

h2 {
  font-size: 2em;
  font-weight: 600;
  margin-bottom: 20px;
  color: #333;
}

.about-us-text p {
  font-size: 1.1em;
  line-height: 1.6;
  color: #333;
  text-align: justify;
  margin-bottom: 20px;
}

.about-us-text p:last-child {
  margin-bottom: 0;
}

.mail-link {
  display: inline-flex;
  align-items: center;
  color: #333;
  text-decoration: none;
  font-size: 16px;
}

.mail-link i {
  margin-right: 5px;
}



.history-page {
  color: #fff;
}

.history-container {
  max-width: 1120px;
  margin: 30px auto;
  padding: 24px;
}

.history-section {
  margin-top: 24px;
}

.history-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.history-card {
  background: #3f3f46;
  border-radius: 10px;
  padding: 14px;
  border: 1px solid #52525b;
}

.history-card-square {
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}

.history-card-square p {
  margin: 0;
  line-height: 1.35;
  overflow-y: auto;
}

.history-card-square time {
  margin-top: auto;
  color: #cbd5e1;
  font-size: 0.9rem;
}

.history-image {
  width: 100%;
  border-radius: 6px;
  margin-top: 0;
  object-fit: cover;
  flex: 1;
  min-height: 0;
}

.history-next-button {
  margin-top: 14px;
  padding: 10px 14px;
  border: 0;
  border-radius: 8px;
  background: #2563eb;
  color: #fff;
  cursor: pointer;
}

.history-empty {
  color: #cbd5e1;
}

.history-back-link {
  color: #0ea5e9;
  text-decoration: none;
}

.history-popout {
  position: fixed;
  top: 90px;
  right: 24px;
  z-index: 1000;
  width: min(420px, calc(100vw - 32px));
  height: min(76vh, 720px);
  min-width: min(320px, calc(100vw - 32px));
  min-height: 320px;
  max-width: calc(100vw - 16px);
  max-height: calc(100vh - 16px);
  background: rgba(31, 41, 55, 0.98);
  border: 1px solid #4b5563;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  color: #f8fafc;
  overflow: hidden;
  resize: both;
  flex-direction: column;
}

.history-popout-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: #111827;
  cursor: move;
  user-select: none;
  flex: 0 0 auto;
}

.history-popout-header strong {
  display: block;
  font-size: 1rem;
}

.history-popout-header span {
  display: block;
  color: #cbd5e1;
  font-size: 0.78rem;
  margin-top: 2px;
}

#historyPopoutClose {
  border: 0;
  border-radius: 999px;
  width: 30px;
  height: 30px;
  background: #374151;
  color: #fff;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
}

.history-popout-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 12px;
}

.history-popout-section + .history-popout-section {
  margin-top: 14px;
}

.history-popout-section h2 {
  margin: 0 0 8px;
  color: #f8fafc;
  font-size: 0.95rem;
}

.history-popout-list {
  display: grid;
  gap: 8px;
}

.history-popout-item {
  border: 1px solid #4b5563;
  border-radius: 10px;
  background: #27272a;
  overflow: hidden;
}

.history-popout-item summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 9px 10px;
  cursor: pointer;
  list-style: none;
}

.history-popout-item summary::-webkit-details-marker {
  display: none;
}

.history-popout-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
  font-size: 0.88rem;
}

.history-popout-time {
  color: #cbd5e1;
  font-size: 0.72rem;
  white-space: nowrap;
}

.history-popout-details {
  border-top: 1px solid #4b5563;
  padding: 10px;
  font-size: 0.83rem;
  line-height: 1.4;
}

.history-popout-details p {
  margin: 0 0 8px;
}

.history-popout-details p:last-child {
  margin-bottom: 0;
}

.history-popout-thumb {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  border-radius: 8px;
  background: #111827;
}

.history-popout-empty {
  margin: 0;
  color: #cbd5e1;
  font-size: 0.85rem;
}

.history-popout-response > strong {
  display: block;
  margin-bottom: 6px;
}

.history-popout-response p,
.history-popout-response ul,
.history-popout-response ol,
.history-popout-response blockquote,
.history-popout-response .message-table-wrapper {
  margin-top: 0;
  margin-bottom: 8px;
}

.history-popout-more {
  width: 100%;
  margin-top: 8px;
  padding: 8px 12px;
  border: 1px solid #4b5563;
  border-radius: 8px;
  background: #374151;
  color: #f8fafc;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
}

.history-popout-more:hover,
.history-popout-more:focus-visible {
  background: #4b5563;
}

@media (max-width: 640px) {
  .history-popout {
    top: 72px;
    right: 12px;
    left: 12px;
    width: auto;
    min-width: 0;
    resize: vertical;
  }
}
