/* Galaxy branding, with a quiet layout that keeps the data in focus. */
:root {
  --gp-ink: #252337;
  --gp-muted: #797384;
  --galaxy-gradient: linear-gradient(120deg, #5856d6, #ad36c4 55%, #ff2d55);
  --ink: #252337;
  --navy: #19152b;
  --violet: #5856d6;
  --line: #ebe8f0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  color: var(--gp-ink);
  background: #f8f8fb;
}
.cart-image-empty { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 12px; }
.workspace, .main { background: #f8f8fb; }
.brand { gap: 11px; font-weight: 650; letter-spacing: -.3px; white-space: normal; }
.brand img { object-fit: contain; flex-shrink: 0; }
.brand .brand-name { font-size: 16px; line-height: 1.35; }
.brand .brand-admin { display: block; margin: 3px 0 0; font-size: 11px; letter-spacing: .6px; font-weight: 450; color: #b3a9c7; }
.sidebar { width: 250px; padding: 30px 20px; background: var(--navy); }
.nav-label { margin: 44px 10px 15px; color: #a69bb9; font-size: 11px; letter-spacing: .8px; text-transform: uppercase; }
.site-nav { gap: 8px; }
.site-button { min-height: 52px; padding: 11px 10px; gap: 11px; color: #c1b8d0; font-size: 13px; border-radius: 9px; }
.site-button:hover { color: #fff; background: #29223c; }
.site-button.active { color: #fff; background: #322643; border-color: #65507c; }
.site-button.active:before { background: var(--galaxy-gradient); height: 27px; }
.site-logo { width: 28px; height: 28px; object-fit: contain; flex-shrink: 0; }
.site-indicator { display: none; }
.topbar { height: 55px; padding: 0 36px; justify-content: flex-end; border: 0; background: #f8f8fb; }
.topbar .text-button { padding: 8px 0 8px 14px; color: #797384; font-size: 12px; }
.topbar .text-button:hover { color: #5856d6; }
.main { max-width: 1700px; padding: 15px 36px 32px; }
.page-heading { margin-bottom: 23px; align-items: center; }
.page-heading h1 { margin: 0; color: var(--gp-ink); font-size: 29px; line-height: 1.25; letter-spacing: -.8px; font-weight: 600; }
.secondary-button { min-height: 37px; padding: 8px 15px; font-size: 12px; border-radius: 8px; box-shadow: none; }
.secondary-button:hover { background: #f3f0fa; }
.site-overview { padding: 16px 19px; margin-bottom: 22px; background: #fff; border-color: var(--line); border-radius: 11px; box-shadow: none; }
.site-overview-icon { width: 40px; height: 40px; background: none; }
.site-overview-icon:after { display: none; }
.site-overview h2 { font-size: 15px; margin-bottom: 3px; }
.site-overview a { color: var(--gp-muted); font-size: 12px; }
.site-overview a:hover { color: #5856d6; }
.data-tabs { display: flex; gap: 25px; margin: -3px 0 20px; border-bottom: 1px solid var(--line); }
.data-tabs:has(#carts-tab[hidden]) { display: none; }
.data-tabs button { position: relative; padding: 0 1px 13px; background: none; color: var(--gp-muted); font-size: 13px; font-weight: 500; }
.data-tabs button[aria-selected="true"] { color: #5856d6; }
.data-tabs button[aria-selected="true"]:after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--galaxy-gradient); border-radius: 2px; }
.inbox { grid-template-columns: minmax(270px, 31%) minmax(0, 1fr); height: calc(100vh - 281px); min-height: 550px; max-height: 1100px; border-color: var(--line); border-radius: 11px; box-shadow: none; }
.visitor-panel { background: #fff; }
.panel-heading { padding: 21px 20px 17px; }
.panel-heading h2 { margin: 0; font-size: 15px; }
.count-chip { background: #f1edf7; color: #7d639c; font-size: 11px; border-radius: 6px; }
.search-form { height: 38px; background: #f9f8fb; border-color: #e9e6ee; border-radius: 8px; }
.search-form input { font-size: 12px; }
.search-form input::placeholder { color: #918a9d; }
.search-submit { color: #736781; font-size: 11px; padding: 4px 2px 4px 6px; }
.list-caption { font-size: 10px; color: #8d8598; }
.visitor-item { padding: 18px; border-top-color: #f0edf4; }
.visitor-item:hover { background: #f9f7fc; }
.visitor-item.selected { background: #f4effb; }
.visitor-item.selected:before { background: var(--galaxy-gradient); }
.visitor-avatar { background: #f0eaf7; color: #8b6aab; border-radius: 9px; }
.visitor-title { color: #4c405c; font-size: 13px; }
.visitor-id { color: #8b8197; font-size: 11px; }
.visitor-time { color: #8f879a; font-size: 10px; }
.load-more, .older-messages { color: #7a5b9b; font-size: 12px; }
.conversation-empty h2 { margin: 0 0 8px; font-size: 20px; font-weight: 550; letter-spacing: -.4px; }
.conversation-empty p { max-width: 260px; font-size: 13px; line-height: 1.7; color: #8a8195; }
.conversation-header { padding: 20px 25px 17px; }
.conversation-person h2 { font-size: 14px; }
.session-line > span { color: #8a8096; font-size: 11px; }
.conversation-meta { background: #fff; color: #8d8499; font-size: 11px; }
.message-scroll { padding-bottom: 18px; }
.message-bubble { padding: 13px 16px; color: #494251; background: #f6f5f8; border-color: #efedf3; font-size: 14px; line-height: 1.7; }
.message.visitor .message-bubble { color: #655075; background: #f4effa; border-color: #ebe2f3; }
.message-caption { font-size: 11px; }
.message-caption strong { color: #82758e; }
.message-mode { font-size: 9px; }
.message-attachment { white-space: normal; background: #ffffffcf; border-color: #e6ddee; }
.attachment-file-icon { background: #f0e8f8; color: #9874b2; }
.attachment-name { font-size: 12px; }
.attachment-size, .attachment-action { font-size: 11px; }
.attachment-action { color: #805b9f; border-radius: 6px; }
.primary-button { min-height: 40px; background: var(--galaxy-gradient); border-color: transparent; border-radius: 8px; box-shadow: none; font-size: 12px; }
.primary-button:hover { background: linear-gradient(120deg, #4b49c5, #9928b1 55%, #ed2048); }
.message-attachment.has-image { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.image-preview { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; min-height: 130px; padding: 8px; overflow: hidden; background: #f8f6fb; border: 1px solid #ece6f3; border-radius: 8px; cursor: zoom-in; }
.image-preview:hover { background: #f1edf7; }
.image-preview img { display: block; max-width: 100%; width: auto; max-height: 220px; object-fit: contain; border-radius: 4px; }
.message-attachment.has-image > .image-preview { grid-column: 1 / -1; }
.image-placeholder { padding: 15px; color: #8b7d99; font-size: 12px; text-align: center; }
.cart-coverage { margin: -5px 0 17px; color: #8a8195; font-size: 12px; }
.cart-view { display: flex; flex-direction: column; height: 100%; min-height: 0; overflow: hidden; }
.cart-header { display: flex; align-items: flex-start; gap: 14px; padding: 21px 25px; border-bottom: 1px solid var(--line); }
.cart-header h2 { margin: 0 0 5px; font-size: 15px; font-weight: 600; }
.cart-customer-id { margin: 0; overflow-wrap: anywhere; color: #8a8096; font: 11px/1.7 Consolas, "SFMono-Regular", monospace; }
.cart-date { margin: 7px 0 0; color: #8d8499; font-size: 11px; }
.cart-items { flex: 1; min-height: 0; padding: 0 25px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #ddddeb transparent; }
.cart-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 20px; padding: 23px 0; border-bottom: 1px solid var(--line); }
.cart-item:last-child { border-bottom: 0; }
.cart-item-details h3 { margin: 0 0 8px; color: #4c405c; font-size: 14px; font-weight: 600; }
.cart-item-details p { margin: 6px 0 0; color: #7f728b; font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; white-space: pre-wrap; }
.cart-item-details .cart-dimensions { color: #8d8198; font-size: 12px; }
.cart-item-details .cart-item-price { color: #776186; font-size: 12px; }
.cart-line-total { padding-top: 1px; color: #5b476a; font-size: 14px; font-weight: 600; white-space: nowrap; }
.cart-gallery { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.cart-gallery .image-preview { min-height: 150px; }
.cart-total { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 19px 25px; border-top: 1px solid var(--line); color: #5b476a; font-size: 14px; }
.mobile-cart-back { display: none; }
.attachment-dialog { border-color: #e7e0ee; border-radius: 12px; }
.dialog-header h2 { margin: 0; font-size: 15px; }
.dialog-footer p { font-size: 11px; }
.auth-screen { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: #f8f8fb; }
.auth-panel { width: 100%; min-height: 100vh; padding: 40px 24px; }
.auth-card { width: 100%; max-width: 380px; padding: 39px 33px 34px; border: 1px solid #eae6f0; border-radius: 16px; background: #fff; box-shadow: 0 8px 32px #29203905; }
.auth-brand { gap: 12px; margin-bottom: 35px; }
.auth-brand img { width: 44px; height: 44px; }
.auth-brand .brand-name { font-size: 22px; }
.auth-brand .brand-admin { font-size: 12px; color: #797384; }
.auth-card h2 { margin: 0 0 24px; font-size: 22px; letter-spacing: -.4px; }
.auth-card > p { color: #797384; font-size: 13px; }
.auth-error { font-size: 12px; }
.auth-card .text-button { font-size: 12px; padding-bottom: 0; }
#login-button { min-height: 44px; display: flex; align-items: center; justify-content: flex-start; gap: 10px; padding: 11px 12px; background: #fff; color: #1f1f1f; border: 1px solid #747775; border-radius: 999px; box-shadow: none; font-size: 14px; font-weight: 500; line-height: 20px; }
#login-button:hover { background: #f8f9fa; }
#login-button:active { background: #eef1f5; }
#login-button .google-logo { width: 20px; height: 20px; object-fit: contain; flex-shrink: 0; }
#login-button > span { flex: 1; padding-right: 30px; text-align: center; font-size: 14px; line-height: 20px; }
@media (min-width: 1450px) {
  .main { padding-top: 15px; }
  .sidebar { width: 258px; }
}
@media (max-width: 1100px) {
  .sidebar { width: 220px; padding-left: 16px; padding-right: 16px; }
  .brand .brand-name { font-size: 14px; }
  .site-button { gap: 9px; font-size: 12px; }
  .main { padding: 15px 25px 25px; }
  .topbar { padding: 0 25px; }
  .inbox { grid-template-columns: 250px minmax(0, 1fr); }
  .message-bubble { font-size: 13px; }
  .auth-brand .brand-name { font-size: 22px; }
}
@media (max-width: 850px) and (min-width: 681px) {
  .sidebar { width: 200px; padding-left: 12px; padding-right: 12px; }
  .brand .brand-name { font-size: 13px; }
  .brand .brand-admin { font-size: 10px; }
  .site-button { gap: 8px; padding: 11px 7px; font-size: 11px; }
  .site-logo { width: 25px; height: 25px; }
  .main { padding: 15px 18px 22px; }
  .topbar { padding: 0 18px; }
  .inbox { grid-template-columns: 215px minmax(0, 1fr); }
  .visitor-title { font-size: 12px; }
  .visitor-id, .visitor-time { font-size: 10px; }
  .auth-brand .brand-name { font-size: 22px; }
  .auth-brand .brand-admin { font-size: 12px; }
}
@media (max-width: 680px) {
  .sidebar { width: 100%; padding: 20px 19px 0; }
  .sidebar > .brand { gap: 11px; margin-bottom: 23px; }
  .sidebar .brand-name { font-size: 18px; }
  .sidebar .brand-admin { display: block; margin: 3px 0 0; font-size: 11px; }
  .site-button { min-height: 42px; padding: 9px 11px; gap: 8px; font-size: 12px; background: #29223c; border-color: #392c4c; }
  .site-button.active { background: #3b2b50; border-color: #7a5b98; }
  .site-logo { width: 24px; height: 24px; }
  .topbar { height: 43px; padding: 0 18px; }
  .main { padding: 9px 16px 22px; }
  .page-heading { margin-bottom: 19px; align-items: center; }
  .page-heading h1 { margin: 0; font-size: 26px; }
  .secondary-button { margin: 0; padding: 8px 13px; font-size: 12px; }
  .site-overview { margin-bottom: 20px; padding: 14px; }
  .site-overview h2 { font-size: 14px; }
  .site-overview a { font-size: 11px; }
  .inbox { display: block; height: 590px; min-height: 590px; }
  .panel-heading { padding: 20px 19px 17px; }
  .panel-heading h2 { font-size: 15px; }
  .search-form input { font-size: 12px; }
  .list-caption { font-size: 10px; }
  .visitor-item { padding: 18px; }
  .visitor-title { font-size: 13px; }
  .visitor-id { font-size: 11px; }
  .visitor-time { font-size: 11px; }
  .conversation-header { padding: 18px 17px; }
  .session-line > span { max-width: 190px; font-size: 10px; }
  .conversation-meta { font-size: 11px; }
  .message-bubble { font-size: 14px; }
  .message-caption { font-size: 10px; }
  .message-mode { font-size: 9px; }
  .attachment-name { font-size: 12px; }
  .attachment-action { font-size: 11px; }
  .cart-header { padding: 18px; }
  .cart-items { padding: 0 18px; }
  .cart-item { gap: 12px; padding: 20px 0; }
  .cart-total { padding: 18px; }
  .mobile-cart-back { display: inline-flex; flex-shrink: 0; padding: 6px 9px; min-height: 31px; font-size: 11px; }
  .cart-gallery { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
  .auth-panel { padding: 30px 20px; }
  .auth-card { padding: 33px 26px; }
  .auth-brand .brand-name { font-size: 21px; }
  .auth-brand .brand-admin { display: block; margin-left: 0; font-size: 12px; }
  .auth-card h2 { font-size: 22px; }
}
