.source-input-card{position:relative;flex:0 0 240px;width:240px;max-width:240px;min-width:0;display:block;padding:0;border:1px solid var(--theme-line);border-radius:8px;background:var(--theme-surface);min-height:150px;overflow:hidden}.source-input-card.script-source .source-input-icon{width:50px;height:50px;border-radius:8px;background:var(--theme-surface);display:flex;align-items:center;justify-content:center;color:var(--theme-ink-2)}.source-input-card.parsed{border-color:var(--theme-line);background:var(--theme-surface);box-shadow:none;max-height:68px;min-height:68px}.source-input-card.expanded{flex-basis:240px;width:240px;max-width:240px;min-height:150px;border-style:solid}.source-card-expanded{display:grid;grid-template-rows:auto 1fr auto;gap:12px;padding:12px;min-height:150px}.source-expanded-head{display:flex;align-items:center;gap:10px;min-width:0}.source-platform-hint{display:inline-grid;place-items:center;flex:none;min-width:22px;height:24px;margin-inline-start:-6px;padding:0;border:0;border-radius:50%;background:rgba(0,0,0,0);color:var(--theme-muted);cursor:help}.source-platform-hint:is(:hover,:focus-visible){color:var(--theme-ink)}.source-expanded-head b{font-weight:600;display:block;min-width:0;color:var(--theme-ink);font-size:13px;line-height:1.2}.source-input-icon{width:34px;height:34px;flex-shrink:0;display:grid;place-items:center;border-radius:8px;font-size:16px}.source-inline-input,.source-input-icon{background:var(--theme-surface-2);color:var(--theme-ink-2)}.source-inline-input{width:100%;min-height:38px;padding:8px 10px;border:1px solid var(--theme-line);border-radius:8px;outline:0;font-size:13px;box-shadow:none}.source-inline-input::placeholder{color:var(--theme-muted)}.source-link-field{display:flex;align-items:center;min-width:0;min-height:36px;box-sizing:border-box;padding:5px;border:1px solid var(--theme-line);border-radius:12px;background:var(--theme-surface)}.source-link-field:focus-within{border-color:var(--theme-accent)}.source-link-field.is-error{border-color:var(--gc-red-500,#d92d20)}.source-link-field>.source-inline-input{flex:1 1;min-width:0;width:0;min-height:24px;height:24px;box-sizing:border-box;padding:0 8px;border:0;background:rgba(0,0,0,0)}html[data-theme] .source-link-field>.source-inline-input{background:rgba(0,0,0,0);border:0}.source-input-action{display:inline-flex;align-items:center;justify-content:center;gap:4px;flex:0 0 auto;min-width:44px;height:24px;padding:0 8px;box-sizing:border-box;border:0;border-radius:8px;background:var(--media-action-bg,rgba(36,36,36,.9));color:#fff;font-size:12px;font-weight:500;white-space:nowrap;cursor:pointer}.source-input-action:lang(en){min-width:72px}.source-input-action.is-busy{min-width:80px}.source-input-action{transition:background-color .16s ease,color .16s ease}.source-input-action:not(:disabled):not(.is-busy):hover{background:var(--media-action-bg-hover,rgba(62,68,80,.91));color:#fff}.source-input-action.is-busy,.source-input-action:disabled{background:var(--theme-surface-2);color:var(--theme-muted);cursor:default}.source-input-action:focus-visible{outline:2px solid var(--theme-accent);outline-offset:1px}.source-error-indicator{display:inline-grid;flex:0 0 24px;width:24px;height:24px;place-items:center;padding:0;border:0;border-radius:6px;background:rgba(0,0,0,0);color:#fff;cursor:help;transition:background-color .16s ease}.source-error-indicator svg{color:var(--gc-red-500,#d92d20);fill:none}.source-error-indicator svg circle{fill:var(--gc-red-500,#d92d20);stroke:var(--gc-red-500,#d92d20)}.source-error-indicator svg line{stroke:#fff}.source-error-indicator:hover{background:var(--theme-danger-soft)}.source-error-indicator:focus-visible{background:var(--theme-danger-soft);outline:2px solid color-mix(in srgb,var(--gc-red-500,#d92d20) 35%,transparent);outline-offset:1px}.source-error-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.source-troubleshooting-content{display:grid;gap:12px;max-width:280px;color:var(--theme-ink);font-size:12px;line-height:1.6}.source-troubleshooting-list{display:grid;gap:4px}.source-troubleshooting-list ol{display:grid;gap:4px;margin:0;padding-left:18px;color:var(--theme-ink)}.source-troubleshooting-list .source-troubleshooting-title{color:var(--theme-muted);font-weight:500}.source-troubleshooting-notice{display:flex;align-items:flex-start;gap:6px;padding:8px 10px;border-radius:12px;background:var(--theme-danger-soft);color:var(--gc-red-500,#d92d20)}.source-troubleshooting-notice svg{flex:0 0 auto;margin-top:2px}.source-troubleshooting-notice>span{font-weight:400}.source-troubleshooting-popover .ant-popover-inner{border:1px solid var(--theme-line);background:var(--theme-surface);box-shadow:var(--theme-shadow-xl);-webkit-backdrop-filter:none;backdrop-filter:none}.source-troubleshooting-popover .ant-popover-arrow:before{background:var(--theme-surface)}html[data-theme=dark] .source-input-action:not(:disabled):not(.is-busy){background:var(--theme-ink);color:var(--theme-bg)}html[data-theme=dark] .source-input-action:not(:disabled):not(.is-busy):hover{background:color-mix(in srgb,var(--theme-ink) 88%,var(--theme-surface));color:var(--theme-bg)}.source-expanded-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px}.source-expanded-actions.single{justify-content:flex-end}.source-expanded-status{min-width:96px;width:auto;height:32px;padding:0 12px;display:inline-flex;align-items:center;justify-content:center;gap:4px;border-radius:8px;font-size:12px;font-weight:800;line-height:1;white-space:nowrap;justify-self:end;background:var(--theme-surface-2);color:var(--theme-muted)}.spin{animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.source-card-hit{width:100%;min-height:150px;display:grid;grid-template-columns:40px minmax(0,1fr);align-content:start;align-items:start;gap:10px;padding:14px 14px 48px;background:rgba(0,0,0,0);text-align:left;border:0;cursor:pointer;color:var(--theme-ink);font-size:14px;font-weight:800}.source-card-hit:hover{background-color:var(--theme-surface-2)}.source-input-card.product-source .source-card-hit,.source-input-card.script-source .source-card-hit{grid-template-columns:50px minmax(0,1fr)}.source-thumb{width:40px;height:40px;flex-shrink:0;border-radius:8px;background:var(--theme-surface-2);background-size:cover;background-position:50%}.source-card-image{height:50px;border-radius:8px;object-fit:cover}.source-card-product-cover{width:50px;aspect-ratio:1/1}.source-card-video-cover{width:40px;aspect-ratio:4/5;pointer-events:none}.source-card-placeholder{display:grid;place-items:center;color:var(--theme-muted);background:var(--theme-surface)}.source-input-main{display:block;min-width:0;flex:1 1}.source-type-title{display:block;color:var(--theme-muted);font-size:11px;margin-bottom:2px}.source-type-origin{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.source-type-value{display:block;margin-top:4px;font-size:13px;font-weight:500;line-height:1.35;text-overflow:ellipsis!important}.source-input-head,.source-type-value{color:var(--theme-muted);overflow:hidden;white-space:nowrap!important}.source-input-head{display:flex;align-items:center;gap:8px;font-size:11px;font-weight:600;-webkit-box-orient:vertical;-webkit-line-clamp:1;text-overflow:ellipsis;display:-webkit-box}.source-input-head>span:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.source-card-actions{position:absolute;right:12px;top:14px;z-index:3;display:flex;align-items:center;gap:4px}.source-input-card.source-label-above .source-card-actions{top:10px}.source-card-action{box-sizing:border-box;min-width:28px;flex:0 0 28px;width:28px;height:28px;border-radius:999px;display:grid;place-items:center;background:var(--theme-surface-2);color:var(--theme-muted);border:0;padding:0;cursor:pointer;line-height:1}.source-card-action>svg{display:block;width:14px;height:14px}.source-edit-button:is(:hover,:focus-visible){background:var(--theme-line);color:var(--theme-ink)}.source-card-action:focus-visible{outline:2px solid var(--theme-accent);outline-offset:2px}.source-edit-button>svg{width:12px;height:12px}.source-card-action.source-clear-x{position:static}.source-card-action.source-clear-x>svg{width:14px;height:14px}.source-card-action.source-clear-x:hover{background:rgba(239,68,68,.14);color:#dc2626}.purple-btn.source-main-action{min-width:96px;height:32px;padding:0 12px;display:inline-flex;align-items:center;justify-content:center;border-radius:8px;font-size:12px;font-weight:800;line-height:1;background:var(--theme-ink);color:var(--theme-surface);border:0;cursor:pointer}.purple-btn.source-main-action:disabled,.purple-btn.source-main-action:disabled:hover{background:var(--theme-surface-3);color:var(--theme-muted);border-color:var(--theme-surface-3);cursor:not-allowed}.small{padding:6px 10px;font-size:12px}html[data-theme=dark] .source-input-card,html[data-theme=dark] .source-input-card.parsed{border-color:var(--theme-line);background:var(--theme-surface)}html[data-theme=dark] .source-inline-input{color:var(--theme-ink);background:var(--theme-surface-2);border-color:var(--theme-line-2)}html[data-theme=dark] .source-inline-input::placeholder{color:var(--theme-muted)}html[data-theme=dark] .source-expanded-error{color:#f87171}html[data-theme=dark] .source-card-action.source-clear-x:hover{background:rgba(248,113,113,.16);color:#fca5a5}html[data-theme=dark] .purple-btn.source-main-action{background:var(--theme-accent);color:var(--theme-bg);border-color:var(--theme-accent)}html[data-theme=dark] .purple-btn.source-main-action:disabled,html[data-theme=dark] .purple-btn.source-main-action:disabled:hover{background:var(--theme-surface-3);color:var(--theme-muted);border-color:var(--theme-surface-3)}