.desktop [hidden],
.welcome-chat [hidden] { display: none !important; }

.desktop .welcome-launcher {
  font: bold 17px "Courier New", monospace;
  width: 44px;
  height: 44px;
  padding: 0;
  background: #c0c0c0;
  cursor: pointer;
}
.desktop .toolbar { align-items: center; }
.desktop .welcome-primary { text-decoration: none; }
.desktop .welcome-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.desktop .welcome-actions .btn { min-height: 40px; }
.desktop .welcome-reference { padding: 13px 16px; border: 1px solid #a3abc6; background: #f1f3fc; }
.desktop .welcome-reference a { color: #000080; }
@media (max-height: 420px) {
  .welcome-chat { inset-block-start: 8px; }
}
.desktop .welcome-primary.btn { background: #000080; color: white; }
.desktop .btn:focus-visible,
.welcome-chat :is(button, textarea, a):focus-visible { outline: 3px solid #ad6100; outline-offset: 3px; }

.welcome-offer .mini-body { padding: 18px; background: #f9faff; color: #17233a; }
.welcome-offer h2 { margin: 0 0 8px; font-size: clamp(20px, 3vw, 29px); color: #000080; }
.welcome-offer p { line-height: 1.55; }
.welcome-offer .offer-price {
  border-left: 4px solid #000080;
  background: #edf0fb;
  padding: 10px 14px;
  margin: 12px 0;
}
.offer-price strong { display: block; font-size: 22px; }
.welcome-offer .offer-terms { margin: 12px 0; line-height: 1.55; }
.offer-terms summary { cursor: pointer; font-weight: 700; }
.welcome-offer form { display: grid; gap: 9px; margin: 12px 0; }
.welcome-offer form label { display: flex; align-items: start; gap: 8px; line-height: 1.5; }
.welcome-offer input[type="checkbox"] { width: 18px; height: 18px; flex: none; margin: 2px 0 0; }
.welcome-offer button[type="submit"] { min-height: 44px; justify-self: start; cursor: pointer; }
.welcome-offer a:not(.btn) { color: #000080; }
.welcome-offer #checkout-notice { font-size: 13px; }

.welcome-chat {
  position: fixed;
  inset: clamp(8px, 6vh, 76px) auto auto max(8px, calc((100vw - 1480px) / 2 + 8px));
  width: min(425px, calc(100vw - 16px));
  max-height: calc(100dvh - 24px);
  margin: 0;
  border: 2px solid #333;
  padding: 2px;
  background: #c0c0c0;
  color: #171c32;
  font: 14px/1.45 Tahoma, Geneva, sans-serif;
  box-shadow: inset 1px 1px #fff, 4px 5px #0007;
}
.welcome-chat::backdrop { background: #0005; }
.welcome-chat[open] { display: flex; flex-direction: column; }
.welcome-chat header { display: flex; align-items: center; gap: 10px; padding: 5px 8px; background: #080878; color: white; }
.welcome-chat h2 { font-size: 16px; margin: 0; flex: 1; }
.welcome-chat button { min-height: 40px; font: inherit; font-weight: bold; cursor: pointer; }
.welcome-chat header button { min-width: 44px; min-height: 44px; }
.welcome-chat .chat-body { padding: 12px; overflow-y: auto; }
.welcome-chat .chat-disclosure { font-size: 12px; margin: 0 0 12px; }
.welcome-chat .chat-log { display: grid; gap: 8px; max-height: min(27vh, 230px); overflow-y: auto; }
.welcome-chat .chat-log p { margin: 0; padding: 8px 10px; background: white; white-space: pre-wrap; overflow-wrap: anywhere; }
.welcome-chat .chat-log p[data-role="user"] { background: #e8e8fa; font-weight: 600; }
.welcome-chat form { margin-top: 10px; display: grid; gap: 5px; }
.welcome-chat textarea { width: 100%; min-height: 58px; resize: vertical; font: inherit; padding: 6px 8px; }
.welcome-chat .chat-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.welcome-chat .chat-controls a { margin-left: auto; }
.welcome-chat a { color: #000080; }
.welcome-chat #welcome-chat-status { margin: 4px 0 0; min-height: 1.45em; font-size: 13px; }

@media (max-width: 900px) {
  .desktop :is(.main-body, .hero, .workspace .grid, .mock-columns) {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 420px) {
  .desktop .statusbar { flex-wrap: wrap; }
  .desktop .spec-table :is(td, th) { padding-inline: 4px; overflow-wrap: anywhere; }
  .taskbar .taskname {
    display: block;
    min-width: 0;
    padding-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
