.has-chat-card{box-shadow:none!important;background:0 0!important;padding:0!important}.chat-card{border:1px solid var(--color-border);background:var(--color-surface);width:min(320px,75vw);color:var(--color-text);text-align:left;box-shadow:0 6px 16px rgba(var(--shadow-rgb), .048);border-radius:14px;gap:8px;padding:14px;display:grid}.chat-card-head{align-items:flex-start;gap:10px;display:flex}.chat-card-head>i{background:var(--color-surface-tint);width:34px;height:34px;color:var(--color-ink);border-radius:10px;flex:0 0 34px;place-items:center;font-size:16px;display:grid}.chat-card-head div{flex:1;min-width:0;display:grid}.chat-card-head strong{color:var(--color-title);font-size:14px}.chat-card-head div span{color:var(--color-text-secondary);text-overflow:ellipsis;white-space:nowrap;font-size:12px;overflow:hidden}.chat-card-status{background:var(--status-neutral-bg);color:var(--status-neutral-text);white-space:nowrap;border-radius:999px;padding:2px 8px;font-size:12.5px;font-weight:700}.chat-card-status.status-accepted,.chat-card-status.status-sent{background:var(--status-done-bg);color:var(--status-done-text)}.chat-card-status.status-expired,.chat-card-status.status-overdue,.chat-card-status.status-declined{background:var(--status-problem-bg);color:var(--status-problem-text)}.chat-card-status.status-draft,.chat-card-status.status-being-revised{background:var(--status-waiting-bg);color:var(--status-waiting-text)}.chat-card-amount{background:var(--color-surface-soft);border-radius:10px;justify-content:space-between;align-items:baseline;gap:8px;padding:8px 10px;display:flex}.chat-card-amount span{color:var(--color-text-secondary);font-size:12px}.chat-card-amount strong{color:var(--color-title);font-variant-numeric:tabular-nums;font-size:16px}.chat-card small{color:var(--color-text-muted);font-size:12px}.chat-card-actions{gap:8px;display:flex}.chat-card-actions a,.chat-card-actions button{border:1px solid var(--color-border);background:var(--color-surface);color:var(--color-ink);white-space:nowrap;border-radius:9px;flex:1;justify-content:center;align-items:center;gap:6px;padding:7px 10px;font-size:12.5px;font-weight:700;text-decoration:none;display:inline-flex}.chat-card-actions a:hover,.chat-card-actions button:hover:not(:disabled){background:var(--color-surface-soft)}.chat-card-actions .chat-card-accept{color:#fff;background:#1d7a46;border-color:#1d7a46}.chat-card-actions .chat-card-accept:hover:not(:disabled){background:#17673a}.chat-card-actions .chat-card-decline{color:var(--color-danger)}.chat-card-actions button:disabled{opacity:.6;cursor:wait}.chat-card-designs{gap:6px;display:grid}.chat-card-design{border:1px solid var(--color-border);color:var(--color-text);border-radius:10px;align-items:center;gap:10px;padding:6px;text-decoration:none;display:flex}.chat-card-design:hover{background:var(--color-surface-soft)}.chat-card-design img{background:var(--color-surface-soft);object-fit:cover;pointer-events:none;-webkit-user-select:none;user-select:none;border-radius:8px;flex:0 0 54px;width:54px;height:54px}.chat-card-design span{flex:1;min-width:0;display:grid}.chat-card-design strong{color:var(--color-title);text-overflow:ellipsis;white-space:nowrap;font-size:13px;overflow:hidden}.chat-card-design i{color:var(--color-ink)}.chat-card-note{font-size:12.5px!important}.chat-card-actions a.chat-card-primary{border-color:var(--color-primary);background:var(--color-primary);color:#fff}.chat-card-actions a.chat-card-primary:hover{background:var(--color-primary-hover)}.chat-card-status.status-signed{background:var(--status-waiting-bg);color:var(--status-waiting-text)}.chat-card-status.status-confirmed{background:var(--status-done-bg);color:var(--status-done-text)}.chat-card-status.status-cancelled{background:var(--status-problem-bg);color:var(--status-problem-text)}.chat-card-reason{color:var(--color-title,#111);background:#fff5f5;border-left:3px solid #c73c3c;border-radius:6px;margin:8px 0 0;padding:8px 10px;font-size:12px;line-height:1.45}.chat-card-reason strong{color:#b42318}.chat-card-file{flex-direction:column;gap:8px;min-width:220px;display:flex}.chat-file-image img{object-fit:cover;border-radius:10px;max-width:260px;max-height:200px;display:block}.chat-file-link{border:1px solid var(--color-border,#e2e2e2);color:var(--color-title,#111);background:#fff;border-radius:10px;align-items:center;gap:10px;padding:8px 10px;text-decoration:none;display:flex}.chat-file-link:hover{border-color:var(--color-primary,#8a0215)}.chat-file-link>i:first-child{color:var(--color-primary,#8a0215);font-size:22px}.chat-file-link span{flex-direction:column;flex:1;min-width:0;display:flex}.chat-file-link strong{text-overflow:ellipsis;white-space:nowrap;font-size:12.5px;overflow:hidden}.chat-file-link small{color:var(--color-text-secondary,#555);font-size:11px}.chat-card-amount.is-down strong{font-size:14px}.chat-pending-files{background:#fdf8ec;border:1px solid #e6d9bf;border-radius:10px;flex-direction:column;gap:6px;max-height:260px;margin:0 12px 8px;padding:8px;font-size:13px;display:flex;overflow-y:auto}.chat-pending-files[hidden]{display:none!important}.chat-pending-file{background:#fff9;border-radius:8px;align-items:center;gap:10px;padding:4px;display:flex}.chat-pending-preview{background:#fff;border:1px solid #eadfcd;border-radius:8px;flex:none;justify-content:center;align-items:center;width:44px;height:44px;display:flex;overflow:hidden}.chat-pending-preview img{object-fit:cover;width:100%;height:100%}.chat-pending-preview i{color:#b3261e;font-size:22px}.chat-pending-info{flex-direction:column;flex:1;min-width:0;display:flex}.chat-pending-name{text-overflow:ellipsis;white-space:nowrap;color:#2b2b2b;overflow:hidden}.chat-pending-size,.chat-pending-note{color:#777;font-size:11.5px}.chat-pending-note{padding:0 4px}.chat-pending-remove{color:#5a4a2a;cursor:pointer;background:#f1e7d6;border:0;border-radius:50%;flex:none;width:30px;height:30px}.chat-pending-remove:hover{background:#e6d6ba}
