/* ─────────────────────────────────────────────────────────────────────────────
GLOBAL STYLES
─────────────────────────────────────────────────────────────────────────────*/

 site-rollup {
    visibility: hidden;
}

main {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 140px);
    margin-top: 90px;
    box-sizing: border-box;
}

.container {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.watermark-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.9);
}

.watermark-overlay.hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.watermark-content {
  text-align: center;
}

.watermark-logo {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  margin-bottom: 16px;
}

.watermark-logo .logo {
  height: 40px;
  width: auto;
  opacity: 0.7;
}

.watermark-text {
  font-size: 18px;
  color: #666;
  margin: 0;
  font-weight: 500;
}

/* ─────────────────────────────────────────────────────────────────────────────
DELEGATION BANNER
─────────────────────────────────────────────────────────────────────────────*/

body:has(.delegation-notice.visible) {
  --header-offset: 35px;
}

.delegation-notice {
  background-color: #fef3c7;
  padding: 0 16px;
  height: 35px;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 11;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  min-width: 100vw;
  font-size: 14px;
  color: #92400e;
  font-weight: 500;
  box-sizing: border-box;
  position: relative;
}

.delegation-notice.visible {
  display: flex;
}

.close-btn {
  position: absolute;
  right: 16px;
  cursor: pointer;
  font-size: 18px;
  color: #92400e;
  transition: color 0.2s ease;
}

/* ─────────────────────────────────────────────────────────────────────────────
NEW TICKET
─────────────────────────────────────────────────────────────────────────────*/

.new-message .textbox-container {
  position: relative;
}

.new-message .modern-textbox {
  height: 110px;
  width: 100%;
  padding: 16px 25px 16px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 16px;
  font-family: inherit;
  line-height: 1.5;
  resize: none;
  transition: all 0.2s ease;
  background-color: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  outline: none;
  box-sizing: border-box;
  margin: 10px 0 20px 0;
}

.new-message .modern-textbox:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1), 0 4px 12px rgba(0, 0, 0, 0.15);
}

.new-message .modern-textbox::placeholder {
  color: #94a3b8;
}

.new-message .submit-button {
  bottom: 38px;
}

.submit-button {
  position: absolute;
  right: 12px;
  width: 22px;
  height: 28px;
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.submit-button span {
  font-size: 16px;
  color: white;
}

/* ─────────────────────────────────────────────────────────────────────────────
TICKET SCREEN
─────────────────────────────────────────────────────────────────────────────*/

#ticket-table {
  margin-bottom: 40px;
}

#ticket-table tr {
  background-color: white;
  font-weight: normal;
}

td.due.normal {
  color: #15803d;
  font-weight: 500;
}

td.due.soon {
  color: #ca8a04;
  font-weight: 600;
}

td.due.overdue {
  color: #dc2626;
  font-weight: 700;
}

/* ─────────────────────────────────────────────────────────────────────────────
TICKET SIDEBAR
─────────────────────────────────────────────────────────────────────────────*/

/** start: message thread **/

#ticket-sidebar .email-thread { 
    padding: 8px; 
    margin: 0; 
    list-style: none; 
    overflow-y: auto;
}

#ticket-sidebar .email-thread li { 
    background: transparent;
    border: none;
    padding: 2px 16px;
    margin-bottom: 0;
    cursor: pointer;
    transition: background-color 0.1s ease;
    position: relative;
    box-shadow: none;
    max-width: 100%;
}

#ticket-sidebar .email-thread li:hover { 
    background-color: var(--background-2);
}

#ticket-sidebar .email-thread .message-row {
    display: flex;
    gap: 8px;
    padding: 8px 0;
}

#ticket-sidebar .email-thread .avatar {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--brand), black);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    flex-shrink: 0;
    margin-top: 1px;
}

#ticket-sidebar .email-thread .message-content {
    flex: 1;
    padding-left: 10px;
    padding-bottom: 10px;
}

#ticket-sidebar .email-thread .header { 
    display: flex; 
    align-items: baseline;
    margin-bottom: 4px;
    gap: 8px;
}

#ticket-sidebar .email-thread .sender { 
    font-weight: 600; 
    color: #1d1c1d; 
    font-size: 0.9375rem;
    flex-shrink: 0;
}

#ticket-sidebar .email-thread .timestamp { 
    color: #616061; 
    font-size: 0.6875rem; 
    font-weight: 400;
    opacity: 0.8;
}

#ticket-sidebar .email-thread .body { 
    color: #1d1c1d; 
    font-size: 0.9375rem; 
    line-height: 1.46; 
    white-space: pre-wrap;
    word-wrap: break-word;
}

#ticket-sidebar .email-thread .audit {
  border: none;
  padding: 10px 20px;
  margin: 10px 20px;
  font-size: 13px;
  color: #696969;
  text-align: center;
}

/** end: essage thread **/

#ticket-sidebar .sidebar-actions {
    background: var(--background-2);
}

#ticket-sidebar .button-row {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  padding: 0 20px 0 20px;
  margin: 16px 0 0 0;
  border-radius: 8px;
}

#ticket-sidebar .field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  position: relative;
}

#ticket-sidebar .field-group label {
  font-size: 10px;
  font-weight: 500;
  color: #8b949e;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
}

#ticket-sidebar .field-group input[type="text"],
#ticket-sidebar .field-group select,
#ticket-sidebar .initiative-button {
  height: 40px;
  padding: 8px 12px;
  border: 1px solid #d1d9e0;
  border-radius: 6px;
  background: #ffffff;
  font-size: 13px;
  color: #24292f;
  font-family: inherit;
  box-sizing: border-box;
  display: flex;
}

#ticket-sidebar .field-group input[type="text"],
#ticket-sidebar .field-group select {
  width: 100%;
  min-width: 0;
}

#ticket-sidebar .initiative-button {
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  font-weight: 500;
  white-space: nowrap;
  justify-content: center;
}

#ticket-sidebar .initiative-button:hover {
  background-color: #f3f4f6;
  border-color: #c9d1d9;
}

#ticket-sidebar .initiative-button.active {
  background-color: #fff8dc;
  border-color: #ffd700;
  color: #8b6914;
}

#ticket-sidebar .initiative-button .material-symbols-outlined {
  font-size: 16px;
}

#ticket-sidebar .new-message {
  padding: 0 20px 20px 20px;
}

/* ─────────────────────────────────────────────────────────────────────────────
METRICS HEADER
─────────────────────────────────────────────────────────────────────────────*/

.metrics-header {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: nowrap;
  overflow-x: auto;
  flex-shrink: 0;
}

.metric-card {
  background: white;
  border-radius: 8px;
  padding: 8px 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 140px;
  flex: 1;
}

.metric-number {
  font-size: 18px;
  font-weight: 600;
  color: #2c3e50;
  text-transform: bold;
  line-height: 1;
}

.metric-number-total {
  font-size: 13px;
  font-weight: 300;
  line-height: 1;
}

.metric-label {
  font-size: 11px;
  color: #7f8c8d;
  margin-top: 1px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.metric-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #6c757d;
  flex-shrink: 0;
}

.metric-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

.metric-card.pressed {
  transform: scale(0.98);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
  background-color: rgba(0, 0, 0, 0.03);
}

.header-card {
  background: linear-gradient(135deg, #fff 0%, #fef5f9 100%);
  border: 2px solid rgba(224, 18, 128, 0.15);
  min-width: 240px;
  padding: 16px 20px;
  box-shadow: 0 4px 12px rgba(224, 18, 128, 0.12);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(224, 18, 128, 0.08), transparent 70%);
  pointer-events: none;
}

.header-card .metric-info {
  position: relative;
  z-index: 1;
}

.header-subtitle {
  font-size: 14px;
  color: var(--muted);
  opacity: 0.80;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

/* ─────────────────────────────────────────────────────────────────────────────
MONITORS SCREEN
─────────────────────────────────────────────────────────────────────────────*/

#monitor-screen .monitor-container {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

#monitor-screen .empty-monitor {
  text-align: center;
  padding: 3rem 2rem;
  margin: 0 auto;
}

#monitor-screen .main-text {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 1rem;
  font-weight: 500;
}

#monitor-screen .alt-text {
  font-size: 0.95rem;
  color: #666;
  margin: 0;
  line-height: 1.5;
}

#monitor-screen .email {
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--brand);
  font-weight: 600;
  word-break: break-all;
}

#monitor-screen .monitor-nav {
    width: 25%;
    background-color: var(--background-2);
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
}

#monitor-screen .nav-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    cursor: pointer;
    border-bottom: 1px solid #e2e8f0;
    transition: background-color 0.2s;
}

#monitor-screen .nav-item:hover {
    background-color: #f1f5f9;
}

#monitor-screen .nav-item.selected {
    background-color: #eff6ff;
    border-right: 3px solid var(--brand);
}

#monitor-screen .nav-icon {
    background-color: white;
    width: 24px;
    height: 24px;
    margin-right: 12px;
    border-radius: 50%;
    border: 1px solid var(--muted);
    flex-shrink: 0;
}

#monitor-screen .nav-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    flex: 1;
}

#monitor-screen .nav-status {
    color: #10b981;
    font-size: 18px;
}

#monitor-screen .monitor-content {
    width: 75%;
    background-color: var(--background-1);
    padding: 24px;
    display: flex;
    flex-direction: column;
}

#monitor-screen .content-header {
    margin-bottom: 24px;
}

#monitor-screen .content-title {
    font-size: 24px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 8px 0;
}

#monitor-screen .content-description {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 8px 0;
    line-height: 1.5;
}

#monitor-screen .docs-link {
    color: var(--brand);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}

#monitor-screen .docs-link:hover {
    cursor: pointer;
    text-decoration: underline;
}

#monitor-screen .form-group {
    margin-bottom: 20px;
}

#monitor-screen .form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

#monitor-screen .form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 120px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

#monitor-screen .form-textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(224, 18, 128, 0.1);
}

#monitor-screen .form-textarea.blurred {
    filter: blur(2px);
    pointer-events: none;
    background-color: #f9fafb;
}

#monitor-screen .form-button {
    border: none;
    background-color: var(--brand);
    color: white;
}

#monitor-screen .form-button:hover {
    background-color: #be185d;
}

#monitor-screen .form-button.disconnect {
    background-color: #ef4444;
}

#monitor-screen .form-button.disconnect:hover {
    background-color: #dc2626;
}

/* ─────────────────────────────────────────────────────────────────────────────
SOC SCREEN
─────────────────────────────────────────────────────────────────────────────*/

#soc-screen .invite-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 16px 24px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

#soc-screen .soc-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#soc-screen .soc-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

#soc-screen .soc-logo {
  width: 32px;
  height: 32px;
}

#soc-screen .soc-info h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--brand);
}

#soc-screen .soc-info p {
  margin: 0;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.5;
}

#soc-screen .invite-form-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
}

#soc-screen .quick-invite-form {
  display: flex;
  gap: 10px;
  width: 100%;
}

#soc-screen .quick-invite-form input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.2s ease;
  background: white;
  height: 35px;
  font-family: inherit;
}

#soc-screen .quick-invite-form input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 4px 24px var(--brand);
}

#soc-screen .quick-invite-form input::placeholder {
  color: #94a3b8;
}

#soc-screen .quick-invite-form button {
  padding: 10px 24px;
  background: var(--brand);
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  height: 35px;
}

#soc-screen .quick-invite-form button:hover {
  background: #c2185b;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
}

#soc-screen .quick-invite-form button:active {
  transform: translateY(0);
}

#soc-table tbody {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

#soc-table tbody td:first-child img {
  width: 24px;
  height: 24px;
}

#soc-table tbody tr {
  width: auto;
  display: block;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 0;
  padding: 12px;
  background: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

#soc-table tbody td {
  display: block;
  border: none;
  padding: 4px 0;
  text-align: left !important;
}

#soc-table tbody td:first-child,
#soc-table tbody td:nth-child(2) {
  display: inline-block;
  vertical-align: middle;
  margin-bottom: 8px;
}

#soc-table tbody td:first-child {
  margin-right: 8px;
}

#soc-table tbody td:nth-child(2) {
  font-weight: 600;
  border-bottom: 1px solid #eee;
  padding-bottom: 8px;
  width: calc(100% - 40px);
}

#soc-table tbody td:nth-child(3):before { content: "Open tickets: "; font-weight: 600; }
#soc-table tbody td:nth-child(4):before { content: "Next deadline: "; font-weight: 600; }

/* ─────────────────────────────────────────────────────────────────────────────
TEAM SCREEN
─────────────────────────────────────────────────────────────────────────────*/

#team-screen table thead {
  background: var(--brand);
  color: white;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#team-screen table thead td {
  vertical-align: middle;
}

#team-screen table img {
  display: inline-block;
  border-radius: 50%;
  background-color: white;
}

#team-screen table td:first-child {
    text-align: center;
    width: 50px;
}

#team-screen table td input[type="checkbox"] {
    appearance: none;
    width: 24px;
    height: 24px;
    border: 2px solid #ccc;
    border-radius: 6px;
    background-color: white;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

#team-screen table td input[type="checkbox"]:hover {
    border-color: var(--brand-hover);
    transform: scale(1.05);
}

#team-screen table td input[type="checkbox"]:checked {
    background-color: var(--brand);
}

#team-screen table td input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 16px;
    font-weight: bold;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

#team-screen table .editable {
    background-color: #f8f9fa;
    cursor: text;
    position: relative;
}

#team-screen table .editable:hover {
    border-color: #adb5bd;
    background-color: #e9ecef;
}

#team-screen table .editable:focus {
    outline: none;
    border-color: var(--brand);
    background-color: #fff;
    box-shadow: inset 0 0 5px rgba(0, 123, 255, 0.2);
}

#team-screen table .editable:focus::after {
    display: none;
}

#team-screen .chat-window {
    position: fixed;
    bottom: 0;
    right: 20px;
    width: 350px;
    height: 350px;
    background: white;
    border: 1px solid #ddd;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 1000;
}

#team-screen .chat-window.hidden {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
}

#team-screen .chat-header {
    background: var(--brand);
    color: white;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px 8px 0 0;
}

#team-screen .chat-header .material-symbols-outlined {
  cursor: pointer;
}

#team-screen .chat-body {
    flex: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
}

#team-screen .chat-body textarea {
    font-size: 14px;
    flex: 1;
    min-height: 0;
    resize: none;
    box-sizing: border-box;
}

#team-screen .chat-body textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 2px rgba(0,123,255,0.2);
}

/* ─────────────────────────────────────────────────────────────────────────────
SPLASH MODAL
─────────────────────────────────────────────────────────────────────────────*/

#splash-modal::part(modal) {
    display: block;
    width: 950px;
    max-width: 90vw;
    background: #0a0e1a;
    border-radius: 16px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    border: 1px solid rgba(224, 18, 128, 0.3);
    max-height: 85vh;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.grid-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(224, 18, 128, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(224, 18, 128, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.6;
    pointer-events: none;
}

.modal-content {
    position: relative;
    z-index: 1;
}

.modal-header {
    padding: 50px 60px 40px;
    background: linear-gradient(135deg, rgba(224, 18, 128, 0.1) 0%, rgba(224, 18, 128, 0.05) 100%);
    border-bottom: 1px solid rgba(224, 18, 128, 0.2);
}

.status-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.status-indicator {
    width: 8px;
    height: 8px;
    background: var(--brand);
    border-radius: 50%;
}

.status-text {
    font-size: 13px;
    color: var(--brand);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.main-title {
    font-size: 38px;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
    line-height: 1.2;
}

.main-subtitle {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

.modal-body {
    padding: 40px 60px;
}

.primary-section {
    width: 100%;
    height: 100%;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(224, 18, 128, 0.3);
    border-radius: 12px;
    padding: 20px;
    backdrop-filter: blur(10px);
    height: 300px;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.feature-card textarea {
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: white;
    font-size: 16px;
    font-family: inherit;
    resize: none;
    line-height: 1.5;
}

.feature-card .submit-button {
  bottom: 10px;
}

/* ─────────────────────────────────────────────────────────────────────────────
RAG SCREEN
─────────────────────────────────────────────────────────────────────────────*/

#drive-screen .drive-header {
  width: 100%;
  background-color: var(--brand);
  font-size: 13px;
  color: white;
  padding: 15px;
}

#drive-files {
  height: calc(100vh - 100px);
  overflow-y: auto;
  list-style: none;
  margin: 0;
  padding: 16px;
  cursor: pointer;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(auto, 25vw));
  grid-auto-rows: min-content;
  gap: 8px 20px;
}

#drive-files li {
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  transition: border-color 0.2s ease;
}

#drive-files li:hover {
  border-color: red;
}

#drive-files .file-icon {
  color: #666;
  font-size: 20px;
  width: 20px;
  text-align: center;
}

#drive-files .file-icon.txt { color: #1976d2; }
#drive-files .file-icon.csv { color: #388e3c; }
#drive-files .file-icon.md { color: #7b1fa2; }
#drive-files .file-icon.json, 
#drive-files .file-icon.yml { color: #f57c00; }
#drive-files .file-icon.log { color: #c2185b; }

#drive-files .file-name {
  font-size: 13px;
  color: #333;
  flex: 1;
}

/* ─────────────────────────────────────────────────────────────────────────────
CHAT SCREEN
─────────────────────────────────────────────────────────────────────────────*/

#chat-screen .new-message {
  position: fixed;
  bottom: 0;
  left: 20px;  /* match container padding */
  right: 20px; /* match container padding */
}

#chat-screen ul {
  padding: 25px 25px 150px 25px;
  list-style: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-height: 100%;
  justify-content: flex-start;
}

#chat-screen li {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 8px;
  word-wrap: break-word;
  line-height: 1.4;
  font-size: 15px;
  position: relative;
  animation: slideIn 0.3s ease;
  align-self: flex-start;
}

#chat-screen .user {
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 122, 255, 0.2);
}

#chat-screen .system {
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

#chat-screen li.system + li.user,
#chat-screen li.user + li.system {
  margin-top: 16px;
}