:root{--p-bg:#f1f1f1;--p-surface:#fff;--p-border:#e3e3e3;--p-border-input:#8a8a8a;--p-text:#303030;--p-text-secondary:#616161;--p-dark:#1a1a1a;--p-dark-hover:#2a2a2a;--p-focus:#005bd3;--p-danger:#8e1f0b;--p-danger-bg:#fedad9;--p-sidebar-bg:#ebebeb;--p-sidebar-hover:#e0e0e0;--radius-card:12px;--radius-btn:8px;--shadow-card:0 1px 0 #00000012;--shadow-btn:0 1px 0 #0000000d;--font:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", sans-serif}*{box-sizing:border-box;margin:0;padding:0}html,body,#root{height:100%}body{font-family:var(--font);color:var(--p-text);background:var(--p-bg);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-size:14px}button{font-family:inherit}a{color:var(--p-focus);text-decoration:none}.app-shell{min-height:100vh}.topbar{background:var(--p-dark);z-index:50;align-items:center;gap:16px;height:56px;padding:0 16px;display:flex;position:fixed;top:0;left:0;right:0}.topbar-brand{color:#fff;white-space:nowrap;align-items:center;gap:8px;min-width:216px;font-size:14px;font-weight:650;display:flex}.topbar-logo{color:#fff;background:linear-gradient(135deg,#e53238,#f5af02 55%,#86b817);border-radius:8px;flex-shrink:0;justify-content:center;align-items:center;width:28px;height:28px;font-size:12px;font-weight:700;display:inline-flex}.topbar-search{flex:1;justify-content:center;display:flex}.topbar-search input{color:#e3e3e3;background:#303030;border:1px solid #616161;border-radius:8px;width:100%;max-width:520px;height:32px;padding:0 12px;font-family:inherit;font-size:13px}.topbar-search input::placeholder{color:#b5b5b5}.topbar-search input:focus{outline:2px solid var(--p-focus);outline-offset:1px}.topbar-user{align-items:center;gap:10px;min-width:0;display:flex}.topbar-avatar{width:28px;height:28px;color:var(--p-dark);background:#36fba1;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;font-size:11px;font-weight:700;display:inline-flex}.topbar-username{color:#e3e3e3;white-space:nowrap;text-overflow:ellipsis;max-width:180px;font-size:13px;font-weight:550;overflow:hidden}.topbar-logout{color:#b5b5b5;cursor:pointer;background:0 0;border:none;border-radius:8px;justify-content:center;align-items:center;width:32px;height:32px;display:inline-flex}.topbar-logout:hover{color:#fff;background:#303030}.app-body{min-height:100vh;padding-top:56px;display:flex}.sidebar{background:var(--p-sidebar-bg);flex-shrink:0;width:232px;height:calc(100vh - 56px);position:sticky;top:56px;overflow-y:auto}.sidebar-nav{flex-direction:column;gap:3px;padding:14px 10px;display:flex}.sidebar-link{color:var(--p-text);border-radius:8px;align-items:center;gap:10px;padding:10px 12px;font-size:14px;font-weight:500;transition:background .1s;display:flex}.sidebar-link svg{color:#4a4a4a;flex-shrink:0;width:18px;height:18px}.sidebar-link:hover{background:var(--p-sidebar-hover)}.sidebar-link.active{background:#fff;font-weight:600;box-shadow:0 1px 2px #00000014}.main-content{flex:1;min-width:0;padding:24px 16px 48px}.page-container,.main-content>*{max-width:1600px;margin-left:auto;margin-right:auto}.main-content{padding-left:24px;padding-right:24px}.sidebar{transition:margin-left .18s}.app-shell.sidebar-collapsed .sidebar{margin-left:-232px}.sidebar-toggle{color:#e3e3e3;cursor:pointer;background:0 0;border:0;border-radius:8px;align-items:center;margin-right:4px;padding:6px;display:inline-flex}.sidebar-toggle:hover{color:#fff;background:#303030}@media (width<=900px){.app-shell.sidebar-collapsed .sidebar{margin-left:0;display:none}}.page-header{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;margin-bottom:16px;display:flex}.page-header h1{letter-spacing:-.01em;font-size:22px;font-weight:700}.page-loading{text-align:center;color:var(--p-text-secondary);padding:32px}.card{background:var(--p-surface);border:1px solid var(--p-border);border-radius:var(--radius-card);box-shadow:var(--shadow-card);padding:16px 20px}.btn{border-radius:var(--radius-btn);cursor:pointer;white-space:nowrap;border:1px solid #0000;justify-content:center;align-items:center;gap:6px;height:36px;padding:0 14px;font-size:14px;font-weight:550;transition:background .1s,border-color .1s;display:inline-flex}.btn:disabled{opacity:.55;cursor:not-allowed}.btn-primary{background:var(--p-dark);color:#fff;box-shadow:0 1px 0 #fff3 inset, 0 -1px 0 #0009 inset, var(--shadow-btn)}.btn-primary:hover:not(:disabled){background:var(--p-dark-hover)}.btn-secondary{background:var(--p-surface);color:var(--p-text);box-shadow:var(--shadow-btn);border-color:#d4d4d4}.btn-secondary:hover:not(:disabled){background:#f7f7f7}.btn-danger{background:var(--p-surface);color:#b52519;box-shadow:var(--shadow-btn);border-color:#d4d4d4}.btn-danger:hover:not(:disabled){background:var(--p-danger-bg);border-color:#e9adaa}.btn-ghost{color:var(--p-text);background:0 0;border-color:#d4d4d4}.btn-ghost:hover:not(:disabled){background:#f7f7f7}.btn-sm{height:28px;padding:0 10px;font-size:12px}.btn-block{width:100%}.form-field{flex-direction:column;flex:1;gap:4px;margin-bottom:14px;display:flex}.form-field label{color:var(--p-text);font-size:14px;font-weight:550}.form-field input,.form-field select,.form-field textarea,.search-form input,.filter-search input,.filter-bar select,.chat-reply input{border:1px solid var(--p-border-input);border-radius:var(--radius-btn);background:var(--p-surface);height:36px;color:var(--p-text);padding:0 12px;font-family:inherit;font-size:13px}.form-field textarea{height:auto;padding:8px 12px}.form-field input:focus,.form-field select:focus,.form-field textarea:focus,.search-form input:focus,.filter-search input:focus,.filter-bar select:focus,.chat-reply input:focus{outline:2px solid var(--p-focus);outline-offset:1px;border-color:var(--p-border-input)}.form-row{gap:14px;display:flex}.form-actions{justify-content:flex-end;gap:8px;margin-top:6px;display:flex}.form-card{max-width:760px}.search-form{gap:8px;display:flex}.search-form input{min-width:240px}.filter-bar{flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:16px;display:flex}.checkbox-label{color:var(--p-text-secondary);cursor:pointer;align-items:center;gap:6px;font-size:13px;display:inline-flex}.checkbox-label input[type=checkbox]{accent-color:var(--p-dark)}.alert{border-radius:var(--radius-btn);margin-bottom:16px;padding:10px 14px;font-size:13px}.alert-error{background:var(--p-danger-bg);color:var(--p-danger);border:1px solid #f4b7b3}.alert-success{color:#0c5132;background:#cdfee1;border:1px solid #92e6b5}.stat-grid{grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:12px;display:grid}.stat-card{background:var(--p-surface);border:1px solid var(--p-border);border-radius:var(--radius-card);box-shadow:var(--shadow-card);flex-direction:column-reverse;justify-content:flex-end;gap:4px;padding:16px 20px;display:flex}.stat-value{font-size:20px;font-weight:700}.stat-label{color:var(--p-text-secondary);font-size:13px;font-weight:550}.table-wrap{background:var(--p-surface);border:1px solid var(--p-border);border-radius:var(--radius-card);box-shadow:var(--shadow-card);overflow-x:auto}.data-table{border-collapse:collapse;width:100%;font-size:13px}.data-table th{text-align:left;background:var(--p-surface);color:var(--p-text-secondary);border-bottom:1px solid var(--p-border);white-space:nowrap;padding:12px;font-size:12px;font-weight:550}.data-table td{vertical-align:middle;border-bottom:1px solid #f1f1f1;height:56px;padding:14px 12px;font-size:14px}.data-table th:first-child,.data-table td:first-child{padding-left:16px}.data-table th:last-child,.data-table td:last-child{padding-right:16px}.data-table tbody tr:last-child td{border-bottom:none}.data-table tbody tr:hover{background:#f7f7f7}.table-empty{text-align:center;color:var(--p-text-secondary);padding:32px!important}.table-link{color:var(--p-text);font-weight:550}.table-link:hover{color:var(--p-focus);text-decoration:underline}.table-actions{justify-content:flex-end;gap:6px;display:flex}.error-text{color:var(--p-danger);text-overflow:ellipsis;white-space:nowrap;max-width:220px;margin-top:4px;font-size:12px;overflow:hidden}.badge{white-space:nowrap;border-radius:8px;padding:2px 8px;font-size:12px;font-weight:550;display:inline-block}.badge-gray{color:#303030;background:#e3e3e3}.badge-blue,.badge-purple{color:#00527c;background:#e0f0ff}.badge-green{color:#0c5132;background:#cdfee1}.badge-red{color:#8e1f0b;background:#fedad9}.badge-orange{color:#4f4700;background:#ffef9d}.pagination{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:12px;margin-top:14px;display:flex}.pagination-info{color:var(--p-text-secondary);font-size:13px}.pagination-buttons{gap:4px;display:flex}.pagination-buttons .btn{width:32px;color:var(--p-text);padding:0;font-size:16px;line-height:1}.pagination-buttons .btn:disabled{color:#b5b5b5;background:#fafafa}.modal-overlay{z-index:100;background:#00000080;justify-content:center;align-items:flex-start;padding:60px 16px;display:flex;position:fixed;inset:0;overflow-y:auto}.modal{background:var(--p-surface);border-radius:var(--radius-card);width:100%;max-width:560px;box-shadow:0 20px 40px #0000003d}.modal-header{border-bottom:1px solid var(--p-border);justify-content:space-between;align-items:center;padding:14px 20px;display:flex}.modal-header h2{font-size:15px;font-weight:650}.modal-close{cursor:pointer;color:var(--p-text-secondary);background:0 0;border:none;border-radius:6px;width:28px;height:28px;font-size:22px;line-height:1}.modal-close:hover{color:var(--p-text);background:#f1f1f1}.modal-body{padding:20px}.login-page{background:var(--p-bg);justify-content:center;align-items:center;min-height:100vh;padding:20px;display:flex}.login-card{background:var(--p-surface);border:1px solid var(--p-border);border-radius:var(--radius-card);width:100%;max-width:380px;box-shadow:var(--shadow-card);padding:32px}.login-brand{align-items:center;gap:12px;margin-bottom:6px;display:flex}.login-brand .topbar-logo{width:36px;height:36px;font-size:14px}.login-brand h1{font-size:16px;font-weight:700}.login-subtitle{color:var(--p-text-secondary);margin-bottom:20px;font-size:13px}.inbox-page{flex-direction:column;max-width:1600px;height:calc(100vh - 128px);margin:0 auto;display:flex}.inbox-layout{flex:1;grid-template-columns:320px 1fr;gap:16px;min-height:0;display:grid}.conversation-list{background:var(--p-surface);border:1px solid var(--p-border);border-radius:var(--radius-card);box-shadow:var(--shadow-card);flex-direction:column;display:flex;overflow-y:auto}.conversation-item{text-align:left;cursor:pointer;width:100%;color:var(--p-text);background:0 0;border:none;border-bottom:1px solid #f1f1f1;padding:12px 14px;font-family:inherit;font-size:13px;display:block}.conversation-item:hover{background:#f7f7f7}.conversation-item.active{background:#f1f1f1}.conversation-item.unread .conversation-buyer,.conversation-item.unread .conversation-subject{color:var(--p-text);font-weight:650}.conversation-item.unread .conversation-buyer:before{content:"";background:var(--p-focus);border-radius:50%;width:8px;height:8px;margin-right:6px;display:inline-block}.conversation-top{justify-content:space-between;gap:8px;margin-bottom:3px;display:flex}.conversation-buyer{font-weight:550}.conversation-time{color:var(--p-text-secondary);white-space:nowrap;font-size:11px}.conversation-subject{color:var(--p-text-secondary);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.conversation-detail{min-width:0;display:flex}.inbox-empty{color:var(--p-text-secondary);text-align:center;flex:1;justify-content:center;align-items:center;padding:32px;display:flex}.chat-pane{background:var(--p-surface);border:1px solid var(--p-border);border-radius:var(--radius-card);box-shadow:var(--shadow-card);flex-direction:column;flex:1;min-width:0;display:flex;overflow:hidden}.chat-header{border-bottom:1px solid var(--p-border);padding:12px 16px}.chat-buyer{font-weight:650}.chat-subject{color:var(--p-text-secondary);font-size:12px}.chat-messages{background:#fafafa;flex-direction:column;flex:1;gap:10px;padding:16px;display:flex;overflow-y:auto}.chat-bubble-row{display:flex}.chat-bubble-row.inbound{justify-content:flex-start}.chat-bubble-row.outbound{justify-content:flex-end}.chat-bubble{border-radius:12px;max-width:70%;padding:8px 12px;font-size:13px}.chat-bubble-row.inbound .chat-bubble{border:1px solid var(--p-border);background:#fff;border-bottom-left-radius:4px}.chat-bubble-row.outbound .chat-bubble{background:var(--p-dark);color:#fff;border-bottom-right-radius:4px}.chat-sender{opacity:.85;margin-bottom:2px;font-size:11px;font-weight:650}.chat-content{white-space:pre-wrap;word-break:break-word}.chat-meta{opacity:.7;margin-top:4px;font-size:11px}.chat-reply{border-top:1px solid var(--p-border);background:var(--p-surface);gap:8px;padding:12px 14px;display:flex}.chat-reply input{flex:1}.empty-state{text-align:center;color:var(--p-text-secondary);flex-direction:column;align-items:center;gap:8px;padding:40px 20px;display:flex}@media (width<=900px){.topbar-search{display:none}.topbar-brand{min-width:0}.app-body{flex-direction:column}.sidebar{width:100%;height:auto;position:static}.sidebar-nav{flex-flow:wrap}.main-content{padding:16px 12px 40px}.inbox-layout{grid-template-columns:1fr}.inbox-page{height:auto}.form-row{flex-direction:column;gap:0}}.category-picker{position:relative}.category-dropdown{z-index:30;background:#fff;border:1px solid #e3e3e3;border-radius:12px;max-height:260px;padding:4px;position:absolute;top:calc(100% + 4px);left:0;right:0;overflow-y:auto;box-shadow:0 4px 12px #0000001f}.category-option{text-align:left;cursor:pointer;background:0 0;border:0;border-radius:8px;flex-direction:column;gap:2px;width:100%;padding:8px 10px;font-size:13px;display:flex}.category-option:hover{background:#f7f7f7}.category-name{color:#303030;font-weight:550}.category-path{color:#616161;font-size:12px}.category-empty{color:#616161;padding:10px;font-size:13px}.category-selected{background:#f7f7f7;border:1px solid #d4d4d4;border-radius:8px;justify-content:space-between;align-items:center;gap:8px;padding:5px 8px 5px 12px;font-size:13px;display:flex}.category-id{color:#616161}.category-clear{color:#616161;cursor:pointer;background:0 0;border:0;border-radius:6px;padding:4px;font-size:16px;line-height:1}.category-clear:hover{color:#303030;background:#e3e3e3}.form-row-3{grid-template-columns:1fr 1fr 1fr;gap:12px;display:grid}@media (width<=720px){.form-row-3{grid-template-columns:1fr}}.table-check{text-align:center;width:36px}.table-check input{accent-color:#1a1a1a;width:15px;height:15px}.bulk-note{color:#616161;background:#f7f7f7;border-radius:8px;margin:12px 0 0;padding:10px 12px;font-size:12px}.bulk-summary{margin:0 0 8px;font-size:13px}.bulk-skipped{color:#8e1f0b;margin:0;padding-left:18px;font-size:13px}.bulk-publish-toggle{align-items:flex-end;padding-bottom:6px;display:flex}.bulk-publish-toggle input{accent-color:#1a1a1a}.detail-layout{grid-template-columns:minmax(0,2fr) minmax(260px,1fr);align-items:start;gap:16px;display:grid}@media (width<=900px){.detail-layout{grid-template-columns:1fr}}.detail-side{flex-direction:column;gap:16px;display:flex}.side-card{padding:16px}.side-card h2{margin:0 0 12px;font-size:14px;font-weight:650}.image-grid{grid-template-columns:repeat(3,1fr);gap:8px;display:grid}.image-grid img{aspect-ratio:1;object-fit:cover;background:#f7f7f7;border:1px solid #e3e3e3;border-radius:8px;width:100%}.side-empty{color:#616161;margin:0;font-size:13px}.side-info{grid-template-columns:auto 1fr;gap:6px 16px;margin:0 0 12px;font-size:13px;display:grid}.side-info dt{color:#616161}.side-info dd{word-break:break-all;margin:0}.filter-search{gap:8px;display:flex}.filter-search input{min-width:240px}.table-thumb-cell{width:56px;padding-right:0!important}.table-thumb{object-fit:cover;background:#f7f7f7;border:1px solid #e3e3e3;border-radius:8px;width:40px;height:40px;display:block}.table-thumb-empty{color:#8a8a8a;justify-content:center;align-items:center;font-size:12px;display:flex}.consent-note{color:#303030;margin:0 0 12px;font-size:13px}.consent-link-row{gap:8px;margin-bottom:8px;display:flex}.consent-link-row input{color:#616161;flex:1;font-size:12px}.teams-section{margin-top:24px}.teams-section h2{margin:0 0 12px;font-size:14px;font-weight:650}.teams-table{margin-top:12px}.assign-list{flex-direction:column;gap:8px;max-height:260px;margin-bottom:8px;display:flex;overflow-y:auto}.assign-item{border:1px solid #e3e3e3;border-radius:8px;padding:8px 10px}.assign-item:hover{background:#f7f7f7}.assign-email{color:#616161}.apikey-card{max-width:640px}.attr-note{margin-bottom:10px}.attr-ai-btn{margin:10px 0 12px}.attr-rows{flex-direction:column;gap:6px;margin-bottom:10px;display:flex}.attr-row{grid-template-columns:1fr 1.4fr auto;align-items:center;gap:6px;display:grid}.attr-row input{height:28px;font-size:12px}.attr-actions{justify-content:space-between;display:flex}.category-title-suggest{flex-wrap:wrap;align-items:center;gap:6px;margin-top:6px;display:flex}.category-suggest-label{color:#616161;font-size:12px}.category-suggest-chip{color:#00527c;cursor:pointer;background:#e0f0ff;border:0;border-radius:8px;padding:4px 10px;font:550 12px/1.2 inherit}.category-suggest-chip:hover{background:#c9e6ff}.ebay-word{letter-spacing:-1.5px;align-items:baseline;font-family:Helvetica Neue,Arial,sans-serif;font-size:24px;font-weight:800;line-height:1;display:inline-flex}.ebay-word span:first-child{color:#e53238}.ebay-word span:nth-child(2){color:#0064d2}.ebay-word span:nth-child(3){color:#f5af02}.ebay-word span:nth-child(4){color:#86b817}.ebay-word-lg{font-size:34px}.category-picker input{width:100%}.bulk-publish-toggle label{white-space:nowrap;cursor:pointer;align-items:center;gap:8px;height:36px;display:inline-flex}
