@scope (.bidder-module) {
.site-shell { min-height:100vh; background:var(--bg); }
.site-sidebar { position:fixed; inset:0 auto 0 0; z-index:50; display:flex; width:var(--sidebar-width); flex-direction:column; align-items:center; border-right:1px solid var(--line); background:#fff; padding:24px 12px; box-shadow:0 1px 2px rgba(15,23,42,.04); }
.site-logo { display:grid; width:40px; height:40px; place-items:center; border-radius:10px; background:var(--teal); color:#fff; font-size:18px; font-weight:800; }
.site-sidebar-nav { display:grid; width:100%; gap:8px; margin-top:38px; }
.site-sidebar-nav a { position:relative; display:grid; min-width:44px; height:48px; place-items:center; border-radius:8px; color:#475569; transition:background 150ms ease,color 150ms ease,transform 150ms ease; }
.site-sidebar-nav a:hover { background:#f8fafc; color:var(--teal); }
.site-sidebar-nav a:active { transform:scale(.96); }
.site-sidebar-nav a.active { background:#f0fdfa; color:var(--teal); }
.site-sidebar-nav svg { width:22px; height:22px; }
.site-sidebar-nav span { pointer-events:none; position:absolute; left:calc(100% + 12px); top:50%; z-index:60; width:max-content; transform:translate(4px,-50%); border:1px solid var(--line); border-radius:10px; background:#fff; padding:8px 11px; color:#1e293b; font-size:14px; font-weight:600; opacity:0; box-shadow:0 12px 32px rgba(15,23,42,.12); transition:opacity 150ms ease,transform 150ms ease; }
.site-sidebar-nav a:hover span,.site-sidebar-nav a:focus-visible span { transform:translate(0,-50%); opacity:1; }
.site-header { position:fixed; inset:0 0 auto var(--sidebar-width); z-index:40; display:flex; height:64px; align-items:center; justify-content:space-between; border-bottom:1px solid var(--line); background:rgba(255,255,255,.88); padding:0 32px; backdrop-filter:blur(12px); }
.site-product-name { font-size:14px; font-weight:700; color:#0f172a; }
.site-header-note { font-size:14px; color:var(--muted); }
.shell { max-width:calc(1440px + 96px + var(--sidebar-width)); margin:0 auto; padding:96px 48px 32px calc(48px + var(--sidebar-width)); }
.site-mobile-nav { display:none; }

.task-settings-card { overflow:visible; border-radius:16px; padding:0; }
.task-settings-heading { min-height:76px; padding:16px 24px; border-bottom:1px solid var(--line); }
.task-settings-heading h1 { margin:2px 0 3px; font-size:25px; font-weight:600; letter-spacing:-.03em; }
.task-settings-heading .eyebrow { margin:0; font-size:11px; }
.task-settings-heading .muted { margin:0; font-size:13px; line-height:1.4; }
.task-route-loading { display:flex; min-height:240px; align-items:center; justify-content:center; gap:10px; color:#64748b; font-size:14px; }
.task-route-loading > span { width:16px; height:16px; border:2px solid #ccfbf1; border-top-color:#0d9488; border-radius:50%; animation:task-route-spin .8s linear infinite; }
@keyframes task-route-spin { to { transform:rotate(360deg); } }
.task-settings-card > .form { gap:0; }
.settings-tabs { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:6px; padding:10px 24px; border-bottom:1px solid var(--line); background:#f7f8fa; }
.settings-tabs button { display:grid; min-height:50px; align-content:center; gap:2px; border:1px solid var(--line); border-radius:9px; background:#fff; padding:7px 11px; color:#475569; text-align:left; transition:border-color 150ms ease,background 150ms ease,color 150ms ease,box-shadow 150ms ease; }
.settings-tabs button:hover { border-color:#99f6e4; background:#f0fdfa; color:var(--teal-strong); }
.settings-tabs button.active { border-color:#5eead4; background:var(--teal-soft); color:var(--teal-strong); box-shadow:inset 0 0 0 1px rgba(13,148,136,.08); }
.settings-tabs strong { font-size:14px; font-weight:700; }
.settings-tabs span { overflow:hidden; color:#64748b; font-size:12px; line-height:1.2; text-overflow:ellipsis; white-space:nowrap; }
.task-settings-card .form-grid { display:block; padding:16px 24px 4px; }
.task-settings-card .form-section.form-panel { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:11px 18px; }
.task-settings-card .form-section.form-panel[hidden] { display:none; }
.form-panel-heading { display:flex; grid-column:1 / -1; align-items:baseline; gap:12px; padding-bottom:9px; border-bottom:1px solid var(--line); }
.form-panel-heading h2 { flex:0 0 auto; margin:0; padding-top:0; border-top:0; font-size:18px; font-weight:600; letter-spacing:-.02em; }
.form-panel-heading p { margin:0; overflow:hidden; color:var(--muted); font-size:12px; line-height:1.35; text-overflow:ellipsis; white-space:nowrap; }
.task-settings-card .field { align-content:start; gap:5px; }
.task-settings-card .field > label { display:flex; min-height:19px; align-items:center; gap:6px; font-size:13px; font-weight:600; color:#334155; }
.task-settings-card .field input:not([type="checkbox"]),.task-settings-card .field select { min-height:40px; border-color:var(--line); background:#f7f8fa; padding:0 12px; font-size:13px; }
.money-input,.percent-input { position:relative; }
.task-settings-card .money-input input,.task-settings-card .percent-input input { padding-right:42px!important; }
.money-input > span,.percent-input > span { position:absolute; top:50%; right:14px; color:#64748b; font-size:14px; font-weight:700; transform:translateY(-50%); pointer-events:none; }
.schedule-setting-card { grid-column:1 / -1; display:grid; grid-template-columns:minmax(0,1.4fr) minmax(210px,.6fr); align-items:end; gap:10px 18px; padding:12px 14px; border:1px solid var(--line); border-radius:10px; background:#f8fafc; }
.lower-stable-card { margin-top:2px; }
.schedule-setting-copy { display:grid; align-self:center; gap:7px; }
.schedule-setting-copy label { display:flex; align-items:center; gap:8px; color:#1e293b; font-size:14px; font-weight:700; }
.schedule-setting-copy > .muted { padding-left:24px; font-size:12px; line-height:1.5; }
.schedule-setting-card > .muted { grid-column:1; padding-left:24px; color:#9a6700; font-size:12px; }
.schedule-setting-card .field { gap:6px; }
.schedule-setting-fields { display:grid; grid-column:1 / -1; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; padding-top:10px; border-top:1px solid var(--line); }
.auto-pause-card { align-items:start; }
.task-settings-card .field select[multiple] { min-height:104px; padding:8px 10px; }
.listing-picker-field { grid-column:1 / -1; gap:7px!important; }
.listing-picker-label { display:flex; align-items:flex-end; justify-content:space-between; gap:16px; }
.listing-picker-label > div { display:grid; gap:4px; }
.listing-picker-label strong { color:#334155; font-size:14px; font-weight:600; }
.listing-picker-label > div > span { color:var(--muted); font-size:12px; }
.listing-picker-count { flex:0 0 auto; color:var(--teal-strong); font-size:13px; font-weight:700; }
.listing-manual-fields { display:grid; gap:6px; }
.listing-manual-caption { color:#475569; font-size:13px; font-weight:600; }
.listing-manual-row { display:grid; grid-template-columns:minmax(0,1.6fr) minmax(160px,.6fr) 40px 40px; gap:6px; }
.listing-limit-input { position:relative; }
.task-settings-card .listing-limit-input input { padding-right:62px!important; }
.listing-limit-input > span { position:absolute; top:50%; right:10px; color:#64748b; font-size:11px; font-weight:600; transform:translateY(-50%); pointer-events:none; }
.listing-manual-action { display:grid; width:40px; height:40px; place-items:center; border:1px solid var(--line); border-radius:8px; background:#fff; font:inherit; font-size:20px; line-height:1; cursor:pointer; }
.listing-manual-action.add { color:var(--teal-strong); border-color:#99f6e4; background:var(--teal-soft); }
.listing-manual-action.remove { color:#be123c; }
.listing-manual-action:hover { filter:brightness(.98); }
.listing-picker-error { color:var(--rose); font-size:12px; line-height:1.45; }
.listing-search-wrap { position:relative; }
.listing-search-wrap svg { position:absolute; top:50%; left:14px; width:18px; height:18px; color:#64748b; transform:translateY(-50%); pointer-events:none; }
.task-settings-card .listing-search-wrap input { padding-left:42px!important; background:#fff!important; }
.listing-picker-table { overflow:hidden; border:1px solid var(--line); border-radius:10px; background:#fff; }
.listing-picker-head,.listing-picker-row { display:grid; grid-template-columns:minmax(150px,.65fr) minmax(240px,1.8fr) minmax(105px,.45fr) minmax(130px,.55fr); align-items:center; }
.listing-picker-head { min-height:32px; color:#64748b; background:#f7f8fa; font-size:10px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; }
.listing-picker-head span,.listing-picker-row > span { padding:6px 12px; }
.listing-picker-body { max-height:132px; overflow:auto; }
.listing-picker-row { min-height:42px; border-top:1px solid var(--line); cursor:pointer; transition:background 150ms ease; }
.listing-picker-row:hover { background:#f8fbfa; }
.listing-picker-id { display:flex; align-items:center; gap:10px; color:#475569; font-size:13px; font-variant-numeric:tabular-nums; }
.task-settings-card .listing-picker-id input { width:18px; height:18px; flex:0 0 auto; accent-color:var(--teal); }
.listing-picker-title { min-width:0; overflow:hidden; color:#1e293b; font-size:14px; font-weight:600; text-overflow:ellipsis; white-space:nowrap; }
.listing-picker-title small { display:inline-flex; margin-left:8px; padding:2px 6px; border-radius:999px; color:#9f1239; background:#fff1f2; font-size:10px; font-weight:700; }
.listing-picker-price { color:#1e293b; font-size:13px; font-weight:600; font-variant-numeric:tabular-nums; white-space:nowrap; }
.listing-picker-price.muted { font-weight:500; }
.listing-row-limit { padding:4px 10px!important; }
.task-settings-card .listing-row-limit input { width:100%; min-height:34px!important; background:#fff; font-variant-numeric:tabular-nums; }
.task-settings-card .listing-row-limit input:disabled { opacity:.45; cursor:not-allowed; }
.listing-picker-empty { padding:28px 16px; border-top:1px solid var(--line); color:var(--muted); font-size:13px; text-align:center; }
.task-settings-card .form-actions { padding:12px 24px 16px; border-top:1px solid var(--line); }
.task-settings-card .form-actions .button { min-height:40px; padding:0 18px; }
.form-step-indicator { color:var(--muted); font-size:12px; font-weight:600; }
.outside-schedule-card { align-items:center; }
.task-settings-card > .form > .error,.task-settings-card > .form > .banner { margin:16px 32px 0; }
.bid-recommendations { display:grid; grid-column:1 / -1; gap:10px; margin-top:3px; padding:13px 14px; border:1px solid var(--line); border-radius:10px; background:#f8fafc; }
.bid-recommendations-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.bid-recommendations-heading > div { display:grid; gap:3px; }
.bid-recommendations-heading strong { color:#1e293b; font-size:14px; }
.bid-recommendations-heading span { color:var(--muted); font-size:12px; }
.bid-recommendations-heading .button { min-height:40px; flex:0 0 auto; }
.bid-recommendations-error { color:var(--rose); font-size:12px; }
.bid-recommendations-list { display:grid; grid-template-columns:repeat(auto-fill,minmax(180px,1fr)); overflow:hidden; border:1px solid var(--line); border-radius:9px; background:#fff; }
.bid-recommendations-list > div { position:relative; display:grid; min-height:58px; align-content:center; gap:2px; padding:9px 11px; border-right:1px solid var(--line); border-bottom:1px solid var(--line); }
.bid-recommendations-list > div.recommended { background:var(--teal-soft); box-shadow:inset 3px 0 0 var(--teal); }
.bid-recommendations-list strong { color:#0f172a; font-size:14px; font-variant-numeric:tabular-nums; }
.bid-recommendations-list span { color:var(--muted); font-size:11px; }
.bid-recommendations-list small { color:var(--teal-strong); font-size:10px; font-weight:700; }
.hint-label { cursor:help; font:inherit; color:inherit; text-decoration:none; }

@media (min-width:721px) {
  .task-settings-card { display:flex; max-height:calc(100dvh - 112px); min-height:560px; flex-direction:column; }
  .task-settings-heading { flex:0 0 auto; }
  .task-settings-card > .form { display:flex; min-height:0; flex:1; flex-direction:column; }
  .settings-tabs,.task-settings-card .form-actions { flex:0 0 auto; }
  .task-settings-card .form-grid { min-height:0; flex:1; overflow-y:auto; scrollbar-gutter:stable; }
  .task-settings-card .form-actions { position:relative; z-index:2; background:#fff; box-shadow:0 -8px 18px rgba(15,23,42,.035); }

}
@media (max-width:720px) {
  .bid-recommendations-heading { align-items:stretch; flex-direction:column; }
  .bid-recommendations-heading .button { width:100%; }
  .bid-recommendations-list { grid-template-columns:1fr 1fr; }
}

.ops-dashboard { gap:20px; }
.bidder-overview { overflow:hidden; border:1px solid var(--line); border-radius:12px; background:#fff; box-shadow:0 4px 24px rgba(30,41,59,.05); }
.bidder-overview-heading { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:26px 28px; }
.bidder-overview-heading h1 { margin:0 0 6px; color:#0f172a; font-size:24px; font-weight:600; letter-spacing:-.025em; line-height:1.3; }
.bidder-overview-heading p:last-child { margin:0; color:#475569; font-size:14px; line-height:20px; }
.bidder-create-button { display:inline-flex; min-height:44px; flex:0 0 auto; align-items:center; justify-content:center; border-radius:8px; background:#0d9488; padding:0 16px; font-size:14px; font-weight:600; }
.bidder-create-button:hover { background:#0f766e; }
.bidder-list-heading { display:flex; align-items:baseline; gap:12px; margin:8px 0 -6px; color:#0f172a; font-size:24px; font-weight:600; letter-spacing:-.025em; }
.bidder-list-heading span { color:#64748b; font-size:14px; font-weight:400; letter-spacing:0; }
.ops-task-list { gap:20px; }
.ops-account-groups { display:grid; gap:24px; }
.ops-account-group { display:grid; gap:12px; }
.ops-account-group-toggle { display:grid; width:100%; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:12px; border:1px solid var(--line); border-left:4px solid var(--teal); border-radius:12px; background:#fff; padding:14px 16px 14px 13px; color:var(--ink); text-align:left; box-shadow:0 1px 2px rgba(15,23,42,.04); transition:border-color 150ms ease,background 150ms ease,box-shadow 150ms ease; }
.ops-account-group-toggle:hover { border-color:#99f6e4; border-left-color:var(--teal); background:#f8fafc; box-shadow:0 3px 10px rgba(15,23,42,.06); }
.ops-account-group-chevron { width:10px; height:10px; border-right:2px solid var(--teal-strong); border-bottom:2px solid var(--teal-strong); transform:rotate(45deg) translateY(-2px); transition:transform 150ms ease; }
.ops-account-group-toggle[aria-expanded="false"] .ops-account-group-chevron { transform:rotate(-45deg) translateX(-2px); }
.ops-account-group-title { display:grid; min-width:0; }
.ops-account-group-title strong { overflow:hidden; color:#0f172a; font-size:16px; font-weight:600; letter-spacing:-.01em; text-overflow:ellipsis; white-space:nowrap; }
.ops-account-group-count { color:#64748b; font-size:13px; font-weight:500; white-space:nowrap; }
.account-name-editor { display:grid; gap:6px; }.account-name-editor label { font-size:13px; font-weight:700; }.account-name-editor > div { display:flex; flex-wrap:wrap; gap:8px; }.account-name-editor input { min-width:min(100%,280px); flex:1 1 220px; border:1px solid #cbd5e1; border-radius:8px; padding:10px; background:#fff; }.account-name-editor .muted { font-size:12px; }
.accounts-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.accounts-heading h1 { margin:0; font-size:24px; line-height:1.3; font-weight:600; letter-spacing:-.025em; }
.grid.two > .card > h2 { margin:0 0 14px; font-size:20px; line-height:1.35; font-weight:600; letter-spacing:-.025em; }
.accounts-count { flex:0 0 auto; border:1px solid #99f6e4; border-radius:999px; background:#f0fdfa; padding:5px 10px; color:#0f766e; font-size:12px; font-weight:700; font-variant-numeric:tabular-nums; }
.accounts-list { display:grid; gap:12px; }
.connected-account-card { display:grid; min-width:0; gap:14px; border:1px solid var(--line); border-radius:13px; background:#fff; padding:14px; box-shadow:0 2px 10px rgba(30,41,59,.035); }
.connected-account-header { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:14px; }
.connected-account-identity { display:flex; min-width:0; align-items:center; gap:11px; }
.connected-account-avatar { display:grid; width:40px; height:40px; flex:0 0 auto; place-items:center; border:1px solid #ccfbf1; border-radius:11px; background:#f0fdfa; color:#0f766e; font-size:17px; font-weight:700; }
.connected-account-copy { display:grid; min-width:0; gap:5px; }
.connected-account-title-row { display:flex; min-width:0; flex-wrap:wrap; align-items:center; gap:7px 9px; }
.connected-account-title-row h2 { min-width:0; margin:0; overflow:hidden; color:#0f172a; font-size:16px; font-weight:700; letter-spacing:-.015em; text-overflow:ellipsis; white-space:nowrap; }
.account-status { display:inline-flex; flex:0 0 auto; align-items:center; gap:5px; border-radius:999px; padding:3px 8px; font-size:11px; font-weight:700; line-height:1.4; }
.account-status::before { width:6px; height:6px; border-radius:50%; background:currentColor; content:""; }
.account-status.is-connected { background:#ecfdf5; color:#047857; }
.account-status.is-attention { background:#fff7ed; color:#c2410c; }
.connected-account-avito-name { min-width:0; margin:0; overflow:hidden; color:var(--muted); font-size:12px; line-height:1.5; text-overflow:ellipsis; white-space:nowrap; }
.connected-account-avito-name strong { color:#475569; font-weight:600; }
.connected-account-actions { display:flex; align-items:center; gap:7px; }
.account-edit-button { display:grid; width:38px; height:38px; flex:0 0 auto; place-items:center; padding:0; }
.connected-account-footer { display:flex; justify-content:flex-end; }
.button.danger.account-delete-button { min-height:36px; border:1px solid #fecaca; border-radius:8px; background:#fff; padding:0 10px; color:#b42318; font-size:13px; font-weight:600; }
.account-delete-button:hover { border-color:#fda29b; background:#fff5f5; }
.account-action-dialog { width:min(460px,calc(100vw - 32px)); max-width:none; max-height:calc(100dvh - 32px); margin:auto; border:1px solid var(--line); border-radius:14px; padding:22px; color:var(--ink); background:#fff; box-shadow:0 24px 72px rgba(15,23,42,.2); }
dialog.account-action-dialog:not([open]) { display:none; }
.account-action-dialog::backdrop { background:rgba(15,23,42,.48); }
.account-action-dialog h2 { margin:0; color:#0f172a; font-size:18px; font-weight:650; }
.account-action-dialog p { margin:0; color:#475569; font-size:14px; line-height:1.55; }
.account-name-editor { display:grid; gap:12px; }
.account-name-editor label { color:#0f172a; font-size:14px; font-weight:600; }
.account-name-editor input { width:100%; min-height:42px; border:1px solid #cbd5e1; border-radius:8px; padding:9px 11px; background:#fff; color:#0f172a; }
.account-name-editor .muted { color:#64748b; font-size:13px; }
.account-name-editor > .account-credentials-fields { display:grid; gap:10px; border:1px solid #e2e8f0; border-radius:10px; background:#f8fafc; padding:12px; }
.account-credential-field { display:grid; min-width:0; gap:6px; }
.account-delete-dialog { display:grid; gap:14px; }
.account-action-dialog-buttons { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; margin-top:4px; }
.account-action-dialog-buttons .button.danger { min-height:40px; border:1px solid #b42318; border-radius:8px; background:#b42318; padding:0 14px; color:#fff; font-weight:600; }
.account-action-dialog-buttons .button.danger:hover { background:#912018; }
.account-action-dialog-buttons .button.danger:disabled { opacity:.6; }
.account-edit-button svg,.account-sync-button svg { width:16px; height:16px; flex:0 0 auto; }
.account-sync-control { display:grid; justify-items:end; gap:5px; min-width:0; }
.account-sync-button { display:inline-flex; min-height:38px; align-items:center; justify-content:center; gap:7px; padding:0 11px; white-space:nowrap; }
.account-sync-spinner { animation:task-route-spin .8s linear infinite; }
.account-sync-control .error { max-width:220px; margin:0; font-size:12px; text-align:right; }
.connected-account-stats { display:grid; grid-template-columns:minmax(0,.95fr) minmax(0,1.1fr) minmax(0,1fr) minmax(0,1.45fr); gap:1px; overflow:hidden; border:1px solid var(--line); border-radius:10px; background:var(--line); }
.connected-account-stat { display:grid; min-width:0; align-content:center; gap:4px; background:#f8fafc; padding:9px 11px; }
.connected-account-stat > span { color:var(--muted); font-size:12px; font-weight:600; letter-spacing:.01em; }
.connected-account-stat > strong { overflow:hidden; color:#1e293b; font-size:14px; font-weight:700; font-variant-numeric:tabular-nums; text-overflow:ellipsis; white-space:nowrap; }
.connected-account-card > .error { margin:0; }
.ops-card { overflow:hidden; border:1px solid var(--line); border-radius:12px; background:#fff; box-shadow:0 4px 24px rgba(30,41,59,.05); }
.ops-header { min-height:72px; padding:14px 24px; border-bottom:1px solid var(--line); }
.ops-identity { gap:12px; }
.ops-identity h2 { font-size:20px; font-weight:600; letter-spacing:-.025em; color:#0f172a; }
.ops-live-dot { width:7px; height:7px; }
.ops-live-dot[data-active="false"] { background:#94a3b8; box-shadow:0 0 0 3px #f1f5f9; }
.ops-identity-copy { display:grid; gap:4px; }
.ops-task-state { color:var(--muted); font-size:12px; font-weight:600; }
.ops-actions { gap:16px; }
.ops-actions a { min-height:44px; align-items:center; font-size:14px; font-weight:600; }
.ops-actions .switch-control { flex-wrap:nowrap; font-size:14px; font-weight:600; }
.ops-actions .switch-control > span:not(.inline-error) { font-size:14px; }
.ops-actions .dashboard-task-actions { min-width:0; }
.dashboard-task-actions { display:flex; align-items:center; gap:8px; }
.task-action-button { display:inline-flex; min-height:44px; align-items:center; justify-content:center; gap:7px; padding:0 12px; border:1px solid var(--line); border-radius:8px; color:#334155; background:#fff; font:inherit; font-size:14px; font-weight:600; text-decoration:none; cursor:pointer; transition:border-color 150ms ease,background 150ms ease,color 150ms ease; }
.task-action-button svg { width:17px; height:17px; flex:0 0 auto; }
.task-action-button:hover { border-color:#99f6e4; color:var(--teal-strong); background:var(--teal-soft); text-decoration:none; }
.task-action-button.danger { color:#be123c; }
.task-action-button.danger:hover,.task-action-button.danger.confirming { border-color:#fecdd3; color:#9f1239; background:#fff1f2; }
.task-action-button:disabled { opacity:.6; cursor:wait; }
.dashboard-task-actions .inline-error { position:absolute; margin-top:68px; color:var(--rose); font-size:12px; }

.ops-summary { grid-template-columns:repeat(7,minmax(112px,1fr)); background:#f7f8fa; }
.ops-summary > div { min-height:80px; gap:4px; padding:9px 16px; }
.ops-summary > div > span { gap:7px; font-size:15px; font-weight:600; }
.ops-summary > div:last-child { padding-right:8px; padding-left:8px; }
.ops-summary > div:last-child > span { white-space:nowrap; }
.ops-summary strong { font-size:18px; font-weight:700; letter-spacing:-.025em; }
.metric-icon { width:22px; height:22px; border-radius:6px; }
.metric-icon svg { width:15px; height:15px; }
.balance-refresh button { width:36px; height:36px; border-radius:8px; }
.balance-refresh button svg { width:16px; height:16px; }
.ops-balance { grid-template-columns:1fr; }
.ops-balance-title { display:flex; min-width:0; align-items:center; justify-content:center; gap:8px; }
.ops-balance-title > span { display:inline-flex; align-items:center; gap:7px; color:var(--muted); font-size:14px; font-weight:600; }
.ops-balance-title .balance-refresh { display:flex; position:relative; align-items:center; justify-content:center; }
.ops-balance-title .balance-refresh button { width:30px; height:30px; border-radius:7px; }
.ops-balance-title .balance-refresh button svg { width:14px; height:14px; }
.ops-balance-title .balance-refresh > span { position:absolute; top:34px; left:50%; z-index:2; width:max-content; transform:translateX(-50%); }

.ops-table-header,.ops-row { grid-template-columns:minmax(400px,1.8fr) minmax(90px,.55fr) minmax(100px,.62fr) minmax(100px,.62fr) minmax(135px,.78fr) minmax(165px,.9fr) minmax(185px,1fr); min-width:1175px; }
.ops-table-header { min-height:48px; background:#f7f8fa; font-size:12px; font-weight:600; letter-spacing:.04em; }
.ops-table-header span { padding:10px 12px; }
.ops-row > div,.ops-row > .switch-control { padding:8px 12px; }
.ops-row { min-height:74px; }
.ops-listing { gap:5px; }
.ops-listing strong { display:block; width:100%; min-width:0; overflow:hidden; font-size:14px; line-height:1.4; text-overflow:ellipsis; white-space:nowrap; }
.ops-listing strong > a,.ops-listing strong > span { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ops-listing-meta { display:flex; min-width:0; align-items:center; justify-content:center; gap:10px; }
.ops-listing-meta > span { color:var(--muted); font-size:12px; white-space:nowrap; }
.ops-listing > span,.ops-numeric span,.ops-position span,.ops-result span { font-size:12px; line-height:1.45; }
.ops-numeric strong { font-size:14px; }
.ops-position strong { font-size:22px; }
.ops-result b { font-size:14px; }
.ops-result span { display:block; width:100%; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ops-history-trigger { min-height:28px; padding:4px 9px; border-radius:7px; font-size:12px; font-weight:600; }
.ops-card .switch-control > span:not(.inline-error) { font-size:12px; }
.ops-row > .switch-control { align-content:center; align-items:center; justify-content:center; flex-wrap:nowrap; gap:10px; }
.ops-row > .switch-control > span:not(.inline-error) { white-space:nowrap; font-size:11px; }
.mobile-listing-list { display:none; }
.ops-listing-details .ops-table-wrap,.ops-listing-details .mobile-listing-list { border-top:1px solid var(--line); }

.position-history-header { min-height:72px; padding:16px 24px; }
.position-history-header p { font-size:12px; font-weight:700; }
.position-history-header h2 { font-size:24px; font-weight:600; }
.position-history-close { width:44px; height:44px; }
.history-day h3 { padding:10px 12px; font-size:14px; }
.history-table-head { min-height:44px; font-size:12px; font-weight:600; }
.history-entry { min-height:54px; font-size:14px; }

@media (max-width:1100px) {
  .ops-summary { grid-template-columns:repeat(4,minmax(0,1fr)); }
  .ops-summary > div:nth-child(4) { border-right:0; }
}

@media (max-width:767px) {
  .site-sidebar,.site-header { display:none; }
  .shell { max-width:none; padding:20px 16px 32px; }
  .site-mobile-nav { display:flex; gap:8px; margin-bottom:20px; overflow-x:auto; padding:2px; scrollbar-width:none; }
  .site-mobile-nav::-webkit-scrollbar { display:none; }
  .site-mobile-nav a { flex:0 0 auto; min-height:44px; display:inline-flex; align-items:center; border:1px solid var(--line); border-radius:8px; background:#fff; padding:0 14px; color:#334155; font-size:14px; font-weight:500; }
  .site-mobile-nav a.active { border-color:var(--teal); background:var(--teal); color:#fff; font-weight:600; }
  .task-settings-heading { padding:22px 20px 18px; }
  .task-settings-heading h1 { font-size:26px; }
  .settings-tabs { grid-template-columns:1fr; padding:12px 16px; }
  .settings-tabs button { min-height:52px; }
  .task-settings-card .form-grid { padding:22px 20px 4px; }
  .task-settings-card .form-section.form-panel { grid-template-columns:1fr; gap:16px; }
  .schedule-setting-card { grid-template-columns:1fr; padding:16px; }
  .schedule-setting-fields { grid-template-columns:1fr; }
  .listing-picker-label { align-items:flex-start; flex-direction:column; gap:8px; }
  .listing-manual-row { grid-template-columns:minmax(0,1fr) 48px 48px; }
  .listing-manual-row > input:first-child { grid-column:1; grid-row:1; }
  .listing-manual-row .listing-limit-input { grid-column:1 / -1; grid-row:2; }
  .listing-manual-row .listing-manual-action.add { grid-column:2; grid-row:1; width:48px; height:48px; }
  .listing-manual-row .listing-manual-action.remove { grid-column:3; grid-row:1; width:48px; height:48px; }
  .listing-picker-table { overflow-x:auto; }
  .listing-picker-head,.listing-picker-row { min-width:620px; }
  .task-settings-card .form-actions { padding:18px 20px 24px; }
  .task-settings-card .form-actions .button { width:100%; }
  .task-settings-card > .form > .error,.task-settings-card > .form > .banner { margin:14px 20px 0; }
  .ops-card { border-radius:16px; }
  .ops-account-groups { gap:20px; }
  .ops-account-group { gap:10px; }
  .ops-account-group-toggle { grid-template-columns:auto minmax(0,1fr); gap:10px; padding:14px 14px 14px 11px; }
  .ops-account-group-count { grid-column:2; white-space:normal; }
  .ops-header { align-items:flex-start; flex-direction:column; padding:18px; }
  .ops-identity h2 { font-size:20px; }
  .ops-actions { width:100%; justify-content:space-between; }
  .dashboard-task-actions { width:100%; flex-wrap:wrap; }
  .task-action-button { flex:1 1 auto; }
  .ops-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .ops-summary > div { min-height:88px; border-bottom:1px solid var(--line); }
  .ops-summary > div:nth-child(even) { border-right:0; }
  .ops-summary > div:last-child { grid-column:1 / -1; border-bottom:0; }
  .ops-summary > div > span { font-size:13px; }
  .ops-summary strong { font-size:16px; }
  .balance-refresh button { width:44px; height:44px; }
  .switch { width:44px; height:44px; padding:12px 2px; background:linear-gradient(transparent 10px,#cbd5e1 10px,#cbd5e1 34px,transparent 34px); }
  .switch[aria-checked="true"],.switch.on { background:linear-gradient(transparent 10px,var(--teal) 10px,var(--teal) 34px,transparent 34px); }
  .ops-table-wrap { display:none; }
  .mobile-listing-list { display:grid; gap:12px; margin:0; padding:16px; list-style:none; background:#f7f8fa; }
  .mobile-listing-card { position:relative; display:grid; gap:14px; border:1px solid var(--line); border-radius:12px; background:#fff; padding:16px; box-shadow:0 2px 10px rgba(30,41,59,.04); }
  .mobile-listing-head { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:14px; align-items:start; }
  .mobile-listing-title { min-width:0; display:grid; gap:5px; }
  .mobile-listing-title strong { overflow-wrap:anywhere; font-size:14px; line-height:1.5; }
  .mobile-listing-title span { color:var(--muted); font-size:12px; }
  .mobile-position { display:grid; min-width:72px; justify-items:center; gap:3px; border-left:3px solid #cbd5e1; border-radius:8px; background:#f8fafc; padding:9px 10px; }
  .mobile-position span { color:var(--muted); font-size:12px; }
  .mobile-position strong { font-size:22px; font-variant-numeric:tabular-nums; }
  .mobile-position[data-tone="good"] { border-left-color:var(--teal); background:var(--teal-soft); color:var(--teal-strong); }
  .mobile-position[data-tone="bad"] { border-left-color:var(--rose); background:var(--rose-soft); color:var(--rose); }
  .mobile-listing-metrics { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  .mobile-listing-metrics > div { display:grid; gap:5px; border-radius:8px; background:#f7f8fa; padding:11px 12px; }
  .mobile-listing-metrics .wide { grid-column:1 / -1; }
  .mobile-listing-metrics span { color:var(--muted); font-size:12px; }
  .mobile-listing-metrics strong { font-size:14px; font-weight:600; font-variant-numeric:tabular-nums; }
  .mobile-listing-actions { display:flex; min-height:44px; align-items:center; justify-content:space-between; gap:12px; border-top:1px solid var(--line); padding-top:12px; }
  .mobile-listing-actions .ops-history-trigger { min-height:44px; padding:0 12px; font-size:12px; }
  .mobile-listing-actions .switch-control { flex-wrap:nowrap; }
  .mobile-listing-actions .switch-control > span:not(.inline-error) { max-width:92px; font-size:12px; }
  .position-history-dialog { width:calc(100vw - 20px); max-height:calc(100dvh - 20px); }
  .position-history-panel { max-height:calc(100dvh - 20px); }
  .position-history-content { padding:0 12px 14px; }
  .history-day-table { overflow-x:auto; }
}

@media (min-width:768px) and (max-width:1199px) {
  .shell { padding-right:32px; padding-left:calc(32px + var(--sidebar-width)); }
}

@media (max-width:1100px) {
  .connected-account-header { grid-template-columns:minmax(0,1fr); align-items:start; }
  .connected-account-actions { justify-content:flex-end; }
}
@media (max-width:767px) {
  .accounts-heading { align-items:flex-start; }
  .connected-account-card { gap:12px; padding:12px; }
  .connected-account-header { gap:11px; }
  .connected-account-actions { gap:8px; }
  .account-sync-button { min-height:40px; }
  .connected-account-stats { grid-template-columns:1fr 1fr; }
  .connected-account-stat:last-child { grid-column:1 / -1; }
  .connected-account-stat { padding:9px; }
  .connected-account-stat > strong { font-size:13px; }
}

/* The shared app layout owns page spacing and the sidebar. */
.shell { max-width:none; padding:0; }
@media (max-width:720px) {
  .bidder-overview-heading { align-items:stretch; flex-direction:column; padding:22px 20px; }
  .bidder-overview-heading h1 { font-size:25px; }
  .bidder-create-button { width:100%; }
  .bidder-list-heading { flex-wrap:wrap; }
}

@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after { scroll-behavior:auto!important; transition-duration:.01ms!important; animation-duration:.01ms!important; animation-iteration-count:1!important; }
}

.position-history-dialog { position:fixed; left:50%; top:50%; right:auto; bottom:auto; margin:0; transform:translate(-50%,-50%); }

.bidder-entitlement-toast { position:fixed; z-index:120; top:80px; right:24px; display:flex; max-width:calc(100vw - 48px); align-items:center; gap:14px; padding:14px 16px; border:1px solid #99f6e4; border-radius:10px; color:#134e4a; background:#fff; box-shadow:0 12px 32px rgba(15,23,42,.18); font-size:14px; }
.bidder-entitlement-toast a { flex:0 0 auto; color:#0f766e; font-weight:700; text-decoration:underline; text-underline-offset:2px; }
.bidder-entitlement-toast button { flex:0 0 auto; width:28px; height:28px; border:0; border-radius:6px; color:#475569; background:#f1f5f9; font-size:20px; line-height:1; }
@media (max-width:640px) { .bidder-entitlement-toast { top:72px; right:12px; left:12px; max-width:none; flex-wrap:wrap; gap:8px 12px; } }

.ops-dashboard-toolbar { display:flex; align-items:center; justify-content:space-between; gap:14px; margin:0 0 16px; }
.ops-dashboard-filters { display:flex; min-width:0; flex:1 1 560px; flex-wrap:wrap; align-items:center; gap:10px; }
.ops-filter-search { position:relative; display:flex; min-width:min(100%,260px); min-height:44px; flex:1 1 280px; align-items:center; }
.ops-filter-search svg { position:absolute; left:13px; width:17px; height:17px; color:#64748b; pointer-events:none; }
.ops-filter-search input { min-width:0; min-height:44px; border:1px solid #cbd5e1; border-radius:8px; color:#0f172a; background:#fff; font:inherit; font-size:14px; }
.ops-filter-search input { width:100%; padding:0 12px 0 40px; }
.ops-filter-search input:focus-visible { outline:3px solid rgba(13,148,136,.2); border-color:#0d9488; }
.ops-filter-select { position:relative; z-index:2; width:156px; flex:0 0 auto; }
.ops-filter-select:last-of-type { width:178px; }
.ops-filter-select-trigger { display:flex; width:100%; min-height:44px; align-items:center; justify-content:space-between; gap:12px; border:1px solid #cbd5e1; border-radius:9px; background:#fff; padding:0 12px; color:#334155; font:inherit; font-size:14px; text-align:left; cursor:pointer; transition:border-color .16s ease,background .16s ease,box-shadow .16s ease; }
.ops-filter-select-trigger:hover { border-color:#99c9c4; background:#fbfefd; }
.ops-filter-select-trigger[aria-expanded="true"] { border-color:#0d9488; background:#f0fdfa; box-shadow:0 0 0 3px rgba(13,148,136,.12); color:#0f766e; }
.ops-filter-select-trigger:focus-visible,.ops-filter-select-option:focus-visible { outline:3px solid rgba(13,148,136,.2); outline-offset:2px; }
.ops-filter-select-value { overflow:hidden; min-width:0; text-overflow:ellipsis; white-space:nowrap; }
.ops-filter-select-trigger > svg { width:16px; height:16px; flex:0 0 auto; stroke:currentColor; stroke-linecap:round; stroke-linejoin:round; stroke-width:1.6; transition:transform .16s ease; }
.ops-filter-select-trigger[aria-expanded="true"] > svg { transform:rotate(180deg); }
.ops-filter-select-menu { position:absolute; top:calc(100% + 7px); right:0; left:0; z-index:30; display:grid; gap:3px; max-height:min(320px,60vh); overflow-y:auto; border:1px solid #dbe4e8; border-radius:11px; background:#fff; padding:6px; box-shadow:0 12px 28px rgba(15,23,42,.14); }
.ops-filter-select:first-of-type .ops-filter-select-menu { min-width:190px; }
.ops-filter-select:last-of-type .ops-filter-select-menu { min-width:210px; }
.ops-filter-select-option { display:flex; min-height:40px; align-items:center; justify-content:space-between; gap:12px; border:0; border-radius:7px; background:transparent; padding:0 9px; color:#334155; font:inherit; font-size:13px; text-align:left; cursor:pointer; }
.ops-filter-select-option > span:first-child { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ops-filter-select-option:hover,.ops-filter-select-option[aria-checked="true"] { background:#f0fdfa; color:#0f766e; }
.ops-filter-option-meta { display:flex; flex:0 0 auto; align-items:center; gap:8px; }
.ops-filter-option-count { display:grid; min-width:22px; height:22px; place-items:center; border-radius:999px; background:#f1f5f9; padding:0 6px; color:#64748b; font-size:11px; font-variant-numeric:tabular-nums; }
.ops-filter-select-option[aria-checked="true"] .ops-filter-option-count { background:#ccfbf1; color:#0f766e; }
.ops-filter-option-meta > svg { width:15px; height:15px; stroke:currentColor; stroke-linecap:round; stroke-linejoin:round; stroke-width:2; }
.ops-filter-count { flex:0 0 auto; color:#64748b; font-size:13px; font-variant-numeric:tabular-nums; }
.ops-capacity { display:flex; min-height:58px; flex:0 0 auto; align-items:center; gap:11px; border:1px solid #99f6e4; border-radius:10px; background:#f0fdfa; padding:8px 12px; color:#134e4a; }
.ops-capacity.is-inactive,.ops-capacity.is-full { border-color:#fed7aa; background:#fff7ed; color:#9a3412; }
.ops-capacity-icon { display:grid; width:34px; height:34px; flex:0 0 auto; place-items:center; border-radius:8px; color:#0f766e; background:#ccfbf1; font-size:20px; font-weight:700; }
.ops-capacity.is-inactive .ops-capacity-icon,.ops-capacity.is-full .ops-capacity-icon { color:#c2410c; background:#ffedd5; }
.ops-capacity > div { display:grid; gap:2px; }
.ops-capacity > div > span { color:#64748b; font-size:11px; }
.ops-capacity strong { color:inherit; font-size:14px; font-variant-numeric:tabular-nums; white-space:nowrap; }
.ops-capacity > a { color:#0f766e; font-size:12px; font-weight:700; text-decoration:underline; text-underline-offset:2px; white-space:nowrap; }
.ops-capacity-available { color:#0f766e; font-size:12px; font-weight:600; white-space:nowrap; }
.ops-account-group-heading { display:flex; align-items:stretch; gap:10px; }
.ops-account-group-toggle { flex:1 1 auto; }
.ops-account-wallet { display:flex; min-width:290px; flex:0 0 auto; align-items:center; justify-content:space-between; gap:10px; border:1px solid var(--line); border-radius:12px; background:#fff; padding:7px 8px 7px 12px; color:var(--muted); font-size:12px; }
.ops-account-balances { display:flex; min-width:0; align-items:center; }
.ops-account-balances > div { display:grid; min-width:112px; gap:3px; padding:0 12px; }
.ops-account-balances > div + div { border-left:1px solid var(--line); }
.ops-account-balances span { color:var(--muted); font-size:11px; line-height:1.2; }
.ops-account-balances strong { color:var(--ink); font-size:14px; font-variant-numeric:tabular-nums; white-space:nowrap; }
.ops-account-wallet .balance-refresh { display:flex; align-items:center; }
.ops-account-wallet .balance-refresh button { width:34px; height:34px; }
.ops-account-wallet .balance-refresh > span { position:absolute; top:36px; right:0; z-index:3; }
.ops-account-metrics { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); overflow:hidden; border:1px solid var(--line); border-radius:12px; background:#fff; }
.ops-account-metrics > div { display:grid; min-width:0; justify-items:center; gap:5px; padding:12px 16px; border-right:1px solid var(--line); text-align:center; }
.ops-account-metrics > div:last-child { border-right:0; }
.ops-account-metrics span { color:var(--muted); font-size:14px; }
.ops-account-metrics strong { overflow:hidden; color:var(--ink); font-size:18px; font-variant-numeric:tabular-nums; text-overflow:ellipsis; white-space:nowrap; }
.ops-account-spend-breakdown { display:block; overflow:hidden; color:var(--muted); font-size:11px; font-weight:500; text-overflow:ellipsis; }
.ops-summary { grid-template-columns:repeat(6,minmax(112px,1fr)); }
.ops-data-note { margin:0; border-bottom:1px solid var(--line); background:#f8fafc; padding:7px 14px; color:#64748b; font-size:12px; }
.ops-filter-empty { display:flex; align-items:center; justify-content:center; gap:12px; border:1px dashed #cbd5e1; border-radius:12px; background:#fff; padding:24px; color:#64748b; font-size:14px; }
.ops-filter-empty button { min-height:40px; border:0; border-radius:7px; background:transparent; padding:0 10px; color:#0f766e; font:inherit; font-weight:700; text-decoration:underline; text-underline-offset:2px; cursor:pointer; }
@media (max-width:1100px) { .ops-dashboard-toolbar { align-items:stretch; flex-direction:column; }.ops-capacity { align-self:flex-start; }.ops-summary { grid-template-columns:repeat(3,minmax(0,1fr)); }.ops-summary > div:nth-child(4) { border-right:1px solid var(--line); }.ops-summary > div:nth-child(3n) { border-right:0; } }
@media (max-width:720px) { .ops-dashboard-filters { align-items:stretch; }.ops-filter-search { min-width:100%; flex-basis:100%; }.ops-dashboard-filters .ops-filter-select { width:auto; min-width:0; flex:1 1 0; }.ops-filter-select:first-of-type .ops-filter-select-menu { min-width:0; width:max-content; max-width:min(230px,calc(100vw - 40px)); }.ops-filter-select:last-of-type .ops-filter-select-menu { min-width:0; width:max-content; max-width:min(260px,calc(100vw - 40px)); }.ops-filter-count { align-self:center; }.ops-capacity { width:100%; }.ops-account-group-heading { flex-direction:column; }.ops-account-wallet { width:100%; min-width:0; justify-content:space-between; }.ops-account-balances > div { min-width:0; flex:1 1 0; padding:0 10px; }.ops-account-balances { flex:1 1 auto; }.ops-account-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }.ops-account-metrics > div:nth-child(even) { border-right:0; }.ops-account-metrics > div:nth-child(-n+4) { border-bottom:1px solid var(--line); }.ops-account-metrics > div:nth-child(5) { grid-column:1 / -1; border-right:0; border-bottom:0; }.ops-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }.ops-summary > div:nth-child(3n) { border-right:1px solid var(--line); }.ops-summary > div:nth-child(even) { border-right:0; }.ops-filter-empty { align-items:stretch; flex-direction:column; text-align:center; } }
}
