:root {
  color-scheme: light;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #182230;
  background: #f3f5f8;
  letter-spacing: 0;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: #f4f6f8; }
body { margin: 0; min-width: 320px; }
body.app-booting { visibility: hidden; }
body::selection { background: #ffd8c8; }
button, input, select, textarea { font: inherit; letter-spacing: 0; }
button { cursor: pointer; }

.quota-button { min-height: 32px; padding: 0 10px; border: 1px solid #ff7a45; border-radius: 6px; background: #fff7f2; color: #c94e24; font-size: 12px; font-weight: 700; }
.quota-button:hover { background: #ffe9dc; }
.redeem-dialog { width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; border: 0; border-radius: 8px; padding: 0; background: #fff; box-shadow: 0 28px 90px rgba(17, 24, 39, .28); }
.redeem-dialog::backdrop { background: rgba(17, 24, 39, .58); backdrop-filter: blur(2px); }
.redeem-dialog__body { display: grid; margin: 0; }
.redeem-campaign-hero { min-height: 250px; padding: 22px 28px 30px; background: #172033; color: #fff; }
.redeem-campaign-hero header { display: flex; align-items: center; justify-content: space-between; }
.redeem-campaign-hero .eyebrow { color: #f7a17e; }
.redeem-campaign-hero header button { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid #495466; border-radius: 50%; background: #202b3d; color: #fff; font-size: 23px; line-height: 1; }
.redeem-campaign-hero header button:hover { border-color: #fff; background: #2b374a; }
.redeem-campaign-copy { max-width: 580px; margin-top: 25px; }
.redeem-campaign-copy > span { color: #f7a17e; font-size: 12px; font-weight: 750; }
.redeem-campaign-copy h2 { margin: 9px 0 10px; color: #fff; font-size: 34px; line-height: 1.18; }
.redeem-campaign-copy p { max-width: 520px; margin: 0; color: #c7d0dc; font-size: 14px; line-height: 1.7; }
.redeem-campaign-benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid #e7ebf0; background: #fff; }
.redeem-campaign-benefits > div { display: grid; min-width: 0; gap: 5px; padding: 20px 22px; border-right: 1px solid #e7ebf0; }
.redeem-campaign-benefits > div:last-child { border-right: 0; }
.redeem-campaign-benefits b { color: #dd5c2d; font-size: 10px; }
.redeem-campaign-benefits strong { color: #182230; font-size: 14px; }
.redeem-campaign-benefits span { color: #7a8595; font-size: 12px; line-height: 1.5; }
.redeem-purchase-panel { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 22px 28px 0; padding: 18px 20px; border: 1px solid #cfe7dc; border-radius: 7px; background: #f3fbf7; }
.redeem-purchase-panel div { display: grid; gap: 5px; }
.redeem-purchase-panel small { color: #087443; font-size: 10px; font-weight: 750; }
.redeem-purchase-panel strong { color: #182230; font-size: 14px; }
.redeem-purchase-panel span { color: #7a8595; font-size: 12px; }
.redeem-purchase-panel .primary-button { flex: 0 0 auto; height: 40px; margin: 0; padding: 0 18px; }
.redeem-code-section { display: grid; gap: 14px; padding: 22px 28px 26px; }
.redeem-divider { display: flex; align-items: center; gap: 12px; color: #98a2b3; font-size: 12px; }
.redeem-divider::before, .redeem-divider::after { content: ""; height: 1px; flex: 1; background: #e5e9ef; }
.redeem-input-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.redeem-input-row input { min-width: 0; height: 42px; border: 1px solid #d9dee7; border-radius: 6px; padding: 0 12px; outline: 0; }
.redeem-input-row input:focus { border-color: #ff7a45; box-shadow: 0 0 0 3px rgba(255, 122, 69, .13); }
.redeem-input-row .primary-button { height: 42px; margin: 0; padding: 0 17px; }
.redeem-code-section > .message { min-height: 0; }
.redeem-generator { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr) auto; align-items: end; gap: 12px; padding: 16px 18px 0; }
.redeem-generator label, .purchase-url-field { display: grid; gap: 6px; color: #4e596b; font-size: 12px; font-weight: 650; }
.redeem-generator input, .purchase-url-field input { min-width: 0; width: 100%; box-sizing: border-box; height: 38px; border: 1px solid #d9dee7; border-radius: 6px; padding: 0 10px; }
.redeem-generator .primary-button { height: 38px; margin: 0; padding: 0 14px; }
.redeem-purchase-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px; padding: 10px 18px 12px; }
.redeem-purchase-row button { height: 38px; padding: 0 12px; border: 1px solid #d6dce5; border-radius: 6px; background: #fff; color: #344054; font-size: 12px; font-weight: 700; }
.redeem-output { width: calc(100% - 36px); min-height: 64px; max-height: 100px; box-sizing: border-box; margin: 0 18px 12px; border: 1px solid #d9dee7; border-radius: 6px; padding: 10px; resize: vertical; }
.redeem-output:placeholder-shown { display: none; }
.redeem-history { border-top: 1px solid #e4e8ee; }
.redeem-history summary { display: flex; align-items: center; justify-content: space-between; min-height: 42px; padding: 0 18px; color: #475467; font-size: 12px; font-weight: 700; cursor: pointer; list-style: none; }
.redeem-history summary::-webkit-details-marker { display: none; }
.redeem-history summary::after { content: "+"; color: #98a2b3; font-size: 18px; font-weight: 400; }
.redeem-history[open] summary::after { content: "−"; }
.redeem-history summary span { margin-left: auto; margin-right: 12px; color: #98a2b3; font-weight: 600; }
.redeem-code-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 180px; padding: 0 18px 12px; overflow: auto; border-top: 1px solid #eef1f5; column-gap: 18px; }
.redeem-code-row { overflow: hidden; padding: 9px 0; border-bottom: 1px solid #eef1f5; color: #536174; font: 11px ui-monospace, SFMono-Regular, Menlo, monospace; text-overflow: ellipsis; white-space: nowrap; }

.brand-mark { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; background: #ff7a45; color: #fff; font-size: 15px; font-weight: 800; }
.eyebrow { margin: 0; color: #6d7787; font-size: 11px; font-weight: 750; letter-spacing: .12em; }

.auth-screen { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: #f4f6f8; }
.auth-panel { display: grid; width: min(440px, 100%); gap: 14px; padding: 40px; border: 1px solid #e1e6ed; border-radius: 8px; background: #fff; box-shadow: 0 16px 48px rgba(16, 24, 40, .1); }
.auth-panel__head { margin-bottom: 18px; }
.auth-panel h2 { margin: 10px 0 8px; color: #172033; font-size: 28px; }
.auth-panel__head p:last-child { margin: 0; color: #778194; font-size: 14px; }
.auth-panel label { display: grid; gap: 8px; color: #4e596b; font-size: 13px; font-weight: 650; }
.auth-panel input, .filters input, .filters select { width: 100%; border: 1px solid #d9dee7; border-radius: 6px; background: #fff; color: #182230; outline: none; }
.auth-panel input { height: 46px; padding: 0 13px; }
.auth-panel input:focus, .filters input:focus, .filters select:focus { border-color: #ff7a45; box-shadow: 0 0 0 3px rgba(255, 122, 69, .14); }
.primary-button { height: 46px; margin-top: 10px; border: 0; border-radius: 6px; background: #172033; color: #fff; font-weight: 700; }
.primary-button:hover { background: #28354a; }
.text-button { justify-self: start; padding: 2px 0; border: 0; background: transparent; color: #dd5c2d; font-size: 13px; }
.message { min-height: 20px; margin: 0; color: #c43222; font-size: 13px; }

.app-shell { min-height: 100vh; }
.app-shell--nav { padding-left: 220px; }
.side-nav { position: fixed; z-index: 20; top: 0; bottom: 0; left: 0; width: 220px; border-right: 1px solid #e2e7ee; background: #fff; }
.side-nav__brand { display: flex; height: 68px; align-items: center; gap: 10px; padding: 0 20px; border-bottom: 1px solid #e2e7ee; color: #172033; font-size: 16px; font-weight: 760; }
.side-nav__list { display: grid; gap: 6px; padding: 18px 12px; }
.side-nav__item { display: flex; width: 100%; min-height: 42px; align-items: center; padding: 0 13px; border: 0; border-radius: 6px; background: transparent; color: #596579; font-size: 13px; font-weight: 700; text-align: left; text-decoration: none; }
.side-nav__item:hover { background: #f7f8fa; color: #182230; }
.side-nav__item.is-active { background: #fff1eb; color: #c94d25; }
.topbar { position: sticky; top: 0; z-index: 10; height: 68px; display: flex; align-items: center; justify-content: space-between; padding: 0 max(32px, calc((100vw - 1680px) / 2)); border-bottom: 1px solid #e2e7ee; background: rgba(255, 255, 255, .94); backdrop-filter: blur(14px); }
.app-shell--nav .topbar { padding-right: max(32px, calc((100vw - 220px - 1680px) / 2)); padding-left: max(32px, calc((100vw - 220px - 1680px) / 2)); }
.topbar__brand, .topbar__right { display: flex; align-items: center; gap: 11px; }
.topbar__brand { color: #172033; font-size: 16px; font-weight: 760; }
.page-title { color: #172033; font-size: 16px; font-weight: 760; }
.section-name { margin-left: 4px; padding-left: 15px; border-left: 1px solid #dce2ea; color: #778194; font-size: 13px; font-weight: 600; }
.topbar__right { color: #697486; font-size: 13px; }
.connection { display: flex; align-items: center; gap: 7px; }
.connection i { width: 8px; height: 8px; border-radius: 50%; background: #12b76a; box-shadow: 0 0 0 4px #e8f8ef; }
.account-name { padding-left: 15px; border-left: 1px solid #e2e7ee; color: #344054; font-weight: 650; }
.icon-button { border: 0; background: transparent; color: #697486; font-size: 13px; }
.icon-button:hover { color: #172033; }
.workspace { width: min(1680px, calc(100% - 64px)); margin: 0 auto; padding: 38px 0 72px; }
.workspace-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 25px; }
.workspace-heading h1 { margin: 8px 0 0; color: #101828; font-size: 32px; line-height: 1; letter-spacing: -.02em; }
.heading-meta { display: flex; align-items: center; gap: 14px; }
.heading-meta span { color: #7b8594; font-size: 12px; }
.refresh-button { border: 1px solid #d9dee7; border-radius: 6px; background: #fff; color: #344054; padding: 9px 13px; font-size: 13px; font-weight: 650; }
.refresh-button:hover { border-color: #aeb8c7; }

.metric-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.metric-card { position: relative; min-height: 92px; overflow: hidden; padding: 13px 15px; border: 1px solid #e1e6ed; border-radius: 8px; background: #fff; box-shadow: 0 2px 8px rgba(16, 24, 40, .03); }
.metric-card { text-align: left; transition: border-color .15s, box-shadow .15s, transform .15s; }
.metric-card:hover { border-color: #cbd3de; box-shadow: 0 5px 14px rgba(16, 24, 40, .08); transform: translateY(-1px); }
.metric-card:focus-visible { outline: 2px solid #ff7a45; outline-offset: 2px; }
.metric-card::before { position: absolute; top: 0; left: 0; width: 100%; height: 3px; content: ""; background: #98a2b3; }
.metric-card > span { display: block; color: #697586; font-size: 13px; font-weight: 650; }
.metric-card strong { display: block; margin: 7px 0 4px; color: #182230; font-size: 25px; line-height: 1; }
.metric-card small { color: #98a2b3; font-size: 12px; }
.metric-card time { display: block; margin-top: 3px; color: #98a2b3; font-size: 11px; }
.metric-card--total::before { background: #667085; }
.metric-card--today::before { background: #dd5c2d; }
.metric-card--waiting::before { background: #f79009; }
.metric-card--ai::before { background: #7f56d9; }
.metric-card--waiting[data-active="true"],
.metric-card--ai[data-active="true"] { border-color: #a6e1c2; background: #effbf4; }
.metric-card--waiting[data-active="true"]::before,
.metric-card--ai[data-active="true"]::before { background: #12b76a; }
.metric-card--waiting[data-active="true"] small,
.metric-card--ai[data-active="true"] small { color: #087443; }
.metric-card--quota::before { background: #12b76a; }
.metric-card--upstream::before { background: #2e90fa; }
.metric-card--upstream[data-upstream-status="online"] { border-color: #a6e1c2; background: #effbf4; }
.metric-card--upstream[data-upstream-status="online"]::before { background: #12b76a; }
.metric-card--upstream[data-upstream-status="online"] small { color: #087443; }
.metric-card--upstream[data-upstream-status="offline"] { border-color: #f7b4ae; background: #fff3f2; }
.metric-card--upstream[data-upstream-status="offline"]::before { background: #f04438; }
.metric-card--upstream[data-upstream-status="offline"] small { color: #b42318; }
.metric-card--upstream[data-upstream-status="checking"] { border-color: #fedf89; background: #fffaeb; }
.metric-card--upstream[data-upstream-status="checking"]::before { background: #f79009; }
.metric-card--upstream[data-upstream-status="checking"] small { color: #b54708; }
.metric-card--upstream[data-upstream-status="unknown"] { background: #f8fafc; }

.queue-panel { overflow: hidden; border: 1px solid #e1e6ed; border-radius: 10px; background: #fff; box-shadow: 0 2px 10px rgba(16, 24, 40, .025); }
.task-panel { margin-bottom: 20px; }
.task-panel--primary { border-color: #f4c2ae; box-shadow: 0 8px 24px rgba(221, 92, 45, .08); }
.task-form { display: grid; grid-template-columns: minmax(300px, .85fr) minmax(0, 2.15fr); gap: 18px; align-items: stretch; padding: 16px 18px; }
.task-form--settings-collapsed { grid-template-columns: 1fr; }
.task-form label { display: grid; gap: 5px; color: #4e596b; font-size: 11px; font-weight: 650; }
.task-form input, .task-form select, .task-form textarea { width: 100%; border: 1px solid #d9dee7; border-radius: 7px; background: #fff; padding: 9px 10px; color: #182230; outline: 0; transition: border-color .15s, box-shadow .15s; }
.task-form input:focus, .task-form select:focus, .task-form textarea:focus, .admin-row input:focus, .admin-row select:focus { border-color: #ff7a45; box-shadow: 0 0 0 3px rgba(255, 122, 69, .12); }
.task-form input, .task-form select { height: 36px; padding: 7px 9px; }.task-form textarea { resize: vertical; }
.task-publish-column { display: grid; grid-template-rows: 1fr auto auto; gap: 8px; min-width: 0; }
.task-publish-column label { min-height: 0; }
.task-publish-column textarea { height: 100%; min-height: 126px; }
.task-form--settings-collapsed .task-publish-column textarea { min-height: 250px; }
.keyword-dedupe-summary { display: flex; flex-wrap: wrap; gap: 6px 14px; min-height: 32px; align-items: center; padding: 7px 10px; border: 1px solid #dfe5ec; border-radius: 6px; background: #f8fafc; color: #697486; font-size: 11px; }
.keyword-dedupe-summary strong { color: #182230; }
.task-publish-column .primary-button { height: 36px; margin: 0; }
.task-publish-column .message { min-height: 16px; }
.task-settings-column { min-width: 0; padding-left: 18px; border-left: 1px solid #edf0f4; }
.task-form--settings-collapsed .task-settings-column { display: none; }
.task-settings-toggle { display: flex; flex: 0 0 auto; width: auto; min-height: 34px; align-items: center; justify-content: space-between; gap: 10px; padding: 0 11px; border: 1px solid #d9dee7; border-radius: 7px; background: #fff; color: #344054; font-size: 12px; font-weight: 700; text-align: left; }
.task-settings-toggle:hover { border-color: #ff7a45; color: #c94d25; }
.task-settings-toggle strong { color: #dd5c2d; font-size: 11px; }
.task-settings-content { padding-top: 1px; }
.task-settings-title { display: block; margin-bottom: 9px; color: #344054; font-size: 12px; }
.task-settings-grid { display: grid; grid-template-columns: repeat(5, minmax(100px, 1fr)); gap: 10px; align-items: end; }
.keyword-dedupe-controls { display: flex; grid-column: 1 / -1; align-items: center; gap: 18px; min-height: 38px; padding-top: 4px; border-top: 1px solid #edf0f4; }
.task-form .toggle-control { display: inline-flex; width: auto; align-items: center; gap: 7px; font-size: 11px; }
.task-form .toggle-control input { width: 16px; height: 16px; padding: 0; accent-color: #dd5c2d; }
.keyword-dedupe-controls > button { margin-left: auto; border: 0; background: transparent; color: #475467; font-size: 11px; font-weight: 700; }
.keyword-dedupe-controls > button:hover { color: #c94d25; }
.task-filter-button { display: flex; height: 36px; align-items: center; justify-content: space-between; gap: 8px; padding: 0 10px; border: 1px solid #d9dee7; border-radius: 7px; background: #fff; color: #475467; font-size: 11px; font-weight: 700; }
.task-filter-button:hover { border-color: #ff7a45; color: #c94d25; }
.task-filter-button strong { color: #dd5c2d; font-size: 11px; white-space: nowrap; }
.task-filter-dialog { width: min(520px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 8px; background: #fff; box-shadow: 0 24px 72px rgba(16, 24, 40, .26); }
.task-filter-dialog::backdrop { background: rgba(15, 23, 42, .48); }
.task-filter-dialog__body { display: grid; gap: 18px; padding: 20px 22px; }
.task-filter-dialog header, .task-filter-dialog footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.task-filter-dialog h2 { margin: 5px 0 0; font-size: 19px; }
.task-filter-dialog header button { height: 34px; padding: 0 11px; border: 1px solid #d6dce5; border-radius: 6px; background: #fff; color: #475467; font-size: 12px; font-weight: 700; }
.task-filter-dialog label { display: grid; gap: 7px; color: #4e596b; font-size: 12px; font-weight: 650; }
.task-filter-dialog textarea { width: 100%; min-height: 230px; resize: vertical; border: 1px solid #d9dee7; border-radius: 7px; padding: 11px; outline: 0; }
.task-filter-dialog textarea:focus { border-color: #ff7a45; box-shadow: 0 0 0 3px rgba(255, 122, 69, .12); }
.task-filter-dialog footer span { color: #697486; font-size: 12px; }
.task-filter-dialog footer .primary-button { min-width: 88px; height: 36px; margin: 0; }
.keyword-history-dialog { width: min(720px, calc(100vw - 32px)); max-height: min(720px, calc(100vh - 40px)); padding: 0; border: 0; border-radius: 8px; background: #fff; box-shadow: 0 24px 72px rgba(16, 24, 40, .26); }
.keyword-history-dialog::backdrop { background: rgba(15, 23, 42, .48); }
.keyword-history-dialog__body { display: grid; grid-template-rows: auto auto minmax(180px, 1fr) auto; max-height: min(720px, calc(100vh - 40px)); }
.keyword-history-dialog header, .keyword-history-dialog footer, .keyword-history-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; }
.keyword-history-dialog header { border-bottom: 1px solid #e7ebf0; }
.keyword-history-dialog h2 { margin: 4px 0 0; font-size: 18px; }
.keyword-history-dialog header button, .keyword-history-dialog footer button { height: 34px; padding: 0 11px; border: 1px solid #d6dce5; border-radius: 6px; background: #fff; color: #344054; font-size: 12px; font-weight: 700; }
.keyword-history-toolbar { padding-top: 12px; padding-bottom: 12px; background: #fafbfc; }
.keyword-history-toolbar input { flex: 1; height: 36px; border: 1px solid #d9dee7; border-radius: 6px; padding: 0 10px; outline: 0; }
.keyword-history-toolbar span, .keyword-history-dialog footer span { color: #7a8595; font-size: 11px; }
.keyword-history-list { overflow-y: auto; border-top: 1px solid #edf0f4; border-bottom: 1px solid #edf0f4; }
.keyword-history-row { display: grid; grid-template-columns: minmax(0, 1fr) 130px 70px 54px; gap: 12px; align-items: center; min-height: 48px; padding: 7px 20px; border-bottom: 1px solid #f0f2f5; }
.keyword-history-row strong { overflow: hidden; color: #273142; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.keyword-history-row span { color: #7a8595; font-size: 11px; }
.keyword-history-row button { border: 0; background: transparent; color: #b42318; font-size: 11px; }
.keyword-history-empty { display: grid; min-height: 180px; place-items: center; color: #98a2b3; font-size: 12px; }
.keyword-history-dialog footer { align-items: flex-start; }
.keyword-history-dialog footer > div { display: flex; gap: 7px; }
.keyword-history-dialog footer .danger-button { border-color: #f2b8b5; background: #fff5f4; color: #b42318; }
.account-stat { display: inline-flex; align-items: center; min-height: 30px; padding: 0 10px; border: 1px solid #e5e7eb; border-radius: 6px; background: #fafbfc; color: #475467; font-size: 12px; white-space: nowrap; }
.account-quota { border-color: #ccebdc; background: #f0fbf5; color: #087443; }
.admin-dashboard { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.admin-overview { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 26px; border: 1px solid #dfe5ec; border-radius: 10px; background: #172033; color: #fff; box-shadow: 0 10px 26px rgba(16, 24, 40, .12); }
.admin-dashboard > .admin-overview, .admin-dashboard > .admin-section--devices, .admin-dashboard > .message { grid-column: 1 / -1; }
.admin-dashboard > .admin-section--running { grid-column: 1 / -1; min-width: 0; }
.admin-dashboard > .admin-section--archives, .admin-dashboard > .admin-section--users, .admin-dashboard > .admin-section--plans, .admin-dashboard > .admin-section--redeem, .admin-dashboard > .admin-section--ai { grid-column: span 6; min-width: 0; align-self: start; }
.admin-overview__copy h2 { margin: 7px 0 6px; font-size: 24px; letter-spacing: -.02em; }
.admin-overview__copy p:last-child { margin: 0; color: #b9c4d2; font-size: 13px; }
.admin-overview .eyebrow { color: #aeb9c9; }
.admin-overview__right { display: grid; justify-items: end; gap: 12px; }
.admin-overview__stats { display: flex; gap: 9px; }
.admin-overview__stats > div { min-width: 106px; padding: 10px 12px; border: 1px solid #3b475a; border-radius: 7px; background: #202b3d; }
.admin-overview__stats span { display: block; color: #aeb9c9; font-size: 11px; }
.admin-overview__stats strong { display: block; margin-top: 5px; color: #fff; font-size: 21px; }
.admin-overview__stats small { display: block; margin-top: 4px; color: #fdb022; font-size: 10px; white-space: nowrap; }
.admin-overview__stats > div.is-paused { border-color: #b7791f; background: #352f24; }
.admin-overview__stats > div.is-online { border-color: #26865b; background: #20382f; }
.admin-overview__stats > div.is-online small { color: #75e0a7; }
.admin-overview__legend { display: flex; gap: 16px; color: #d1d8e2; font-size: 12px; white-space: nowrap; }
.legend-dot { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; }
.legend-dot--green { background: #32d583; }.legend-dot--gray { background: #98a2b3; }
.admin-section { overflow: hidden; border: 1px solid #e1e6ed; border-radius: 8px; background: #fff; box-shadow: 0 2px 10px rgba(16, 24, 40, .025); }
.admin-section__heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 62px; padding: 14px 18px 12px; border-bottom: 1px solid #e7ebf0; }
.admin-section h3 { margin: 0; color: #182230; font-size: 15px; }
.admin-section__heading p { margin: 4px 0 0; color: #98a2b3; font-size: 11px; }
.admin-section__tag { color: #98a2b3; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.admin-row { display: grid; gap: 10px; align-items: center; min-height: 52px; padding: 8px 18px; border-top: 1px solid #f0f2f5; }
.admin-user-row, .admin-section--users .admin-row--head { grid-template-columns: minmax(100px, 1.3fr) minmax(96px, 1fr) 82px 78px 38px 50px 116px; }
.admin-plan-row, .admin-section--plans .admin-row--head { grid-template-columns: minmax(120px, 1.5fr) 100px 90px 60px 110px; }
.admin-device-row, .admin-section--devices .admin-row--head { grid-template-columns: minmax(210px, 1.35fr) 90px minmax(170px, 1.2fr) 150px 82px; }
.admin-running-row, .admin-section--running .admin-row--head { grid-template-columns: minmax(240px, 1.5fr) minmax(100px, .7fr) minmax(240px, 1.25fr) 110px 100px 150px; }
.admin-archive-row, .admin-section--archives .admin-row--head { grid-template-columns: minmax(160px, 1.3fr) 120px 120px minmax(160px, 1fr) 100px; }
.admin-archive-download { height: 34px; border: 1px solid #172033; border-radius: 6px; background: #172033; color: #fff; font-size: 12px; font-weight: 700; }
.admin-archive-download:disabled { cursor: wait; opacity: .55; }
.admin-row input, .admin-row select { min-width: 0; width: 100%; box-sizing: border-box; height: 34px; border: 1px solid #d9dee7; border-radius: 6px; background: #fff; padding: 0 8px; }
.admin-row--head { min-height: 32px; color: #98a2b3; font-size: 10px; font-weight: 750; background: #fafbfc; border-top: 0; }
.admin-bindings { display: flex; flex-wrap: wrap; gap: 4px; }
.admin-bindings span { display: inline-flex; align-items: center; gap: 3px; padding: 3px 6px; background: #eef4ff; color: #2457a6; border-radius: 4px; font-size: 12px; }
.admin-bindings button { border: 0; padding: 0; color: #2457a6; background: transparent; cursor: pointer; }
.admin-device-policy { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-bottom: 1px solid #e7ebf0; background: #fafbfc; }
.admin-device-policy label { display: inline-flex; align-items: center; gap: 6px; color: #475467; font-size: 11px; font-weight: 700; white-space: nowrap; }
.admin-device-policy input { width: 76px; height: 34px; border: 1px solid #d9dee7; border-radius: 6px; background: #fff; padding: 0 8px; color: #182230; }
.admin-device-policy > span { flex: 1; color: #98a2b3; font-size: 10px; }
.admin-device-policy button { height: 34px; border: 1px solid #172033; border-radius: 6px; background: #172033; padding: 0 12px; color: #fff; font-size: 11px; font-weight: 700; white-space: nowrap; }
.admin-device-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 12px; padding: 16px 18px 18px; }
.admin-device-card { min-width: 0; overflow: hidden; border: 1px solid #dfe4ea; border-radius: 8px; background: #fff; }
.admin-device-card[data-status="online"] { border-color: #a6e1c2; background: #f5fcf8; }
.admin-device-card[data-status="paused"] { border-color: #d0d5dd; background: #f8fafc; }
.admin-device-card[data-status="cooldown"] { border-color: #fedf89; background: #fffaeb; }
.admin-device-card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 14px; border-bottom: 1px solid rgba(208, 213, 221, .7); }
.admin-device-card > header > div { min-width: 0; }
.admin-device-card > header strong, .admin-device-card > header code { display: block; }
.admin-device-card > header strong { overflow: hidden; color: #182230; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.admin-device-card > header code { overflow: hidden; margin-top: 4px; color: #98a2b3; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.admin-device-status { flex: 0 0 auto; padding: 4px 7px; border-radius: 5px; background: #f2f4f7; color: #667085; font-size: 11px; font-weight: 750; white-space: nowrap; }
.admin-device-card[data-status="online"] .admin-device-status { background: #dcfae6; color: #087443; }
.admin-device-card[data-status="paused"] .admin-device-status { background: #eaecf0; color: #344054; }
.admin-device-card[data-status="cooldown"] .admin-device-status { background: #fef0c7; color: #b54708; }
.admin-device-metrics { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid #eaecf0; }
.admin-device-metrics > div { min-width: 0; padding: 12px 14px; }
.admin-device-metrics > div + div { border-left: 1px solid #eaecf0; }
.admin-device-metrics span, .admin-device-metrics strong { display: block; }
.admin-device-metrics span { color: #98a2b3; font-size: 10px; }
.admin-device-metrics strong { overflow: hidden; margin-top: 4px; color: #344054; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.admin-device-control { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; padding: 12px 14px 0; }
.admin-device-control input, .admin-device-actions select { min-width: 0; height: 34px; border: 1px solid #d9dee7; border-radius: 6px; background: #fff; padding: 0 8px; color: #344054; }
.admin-device-control button, .admin-device-actions button { height: 34px; border: 1px solid #d6dce5; border-radius: 6px; background: #fff; padding: 0 10px; color: #344054; font-size: 11px; font-weight: 700; white-space: nowrap; }
.admin-device-binding-box { display: grid; gap: 6px; padding: 12px 14px; }
.admin-device-binding-box > span { color: #98a2b3; font-size: 10px; font-weight: 700; }
.admin-device-binding-box .admin-bindings { min-height: 24px; align-items: center; color: #98a2b3; font-size: 11px; }
.admin-device-cooldown { display: grid; gap: 8px; padding: 0 14px 12px; }
.admin-device-cooldown > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.admin-device-cooldown > div:first-child span { color: #98a2b3; font-size: 10px; font-weight: 700; }
.admin-device-cooldown > div:first-child strong { color: #667085; font-size: 10px; font-weight: 650; }
.admin-device-cooldown > div:last-child { display: grid; grid-template-columns: minmax(64px, 1fr) minmax(64px, 1fr) auto auto; gap: 6px; }
.admin-device-cooldown input { min-width: 0; width: 100%; height: 32px; box-sizing: border-box; border: 1px solid #d9dee7; border-radius: 6px; background: #fff; padding: 0 7px; color: #344054; font-size: 11px; }
.admin-device-cooldown button { height: 32px; border: 1px solid #d6dce5; border-radius: 6px; background: #fff; padding: 0 8px; color: #344054; font-size: 10px; font-weight: 700; white-space: nowrap; }
.admin-device-cooldown button:disabled { cursor: default; opacity: .42; }
.admin-device-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 7px; padding: 0 14px 14px; }
.admin-device-actions .admin-device-pause { border-color: #f0b5b1; color: #b42318; }
.admin-device-actions .admin-device-enable { border-color: #86d5ad; background: #ecfdf3; color: #087443; }
.device-pause-dialog { width: min(440px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 8px; background: #fff; box-shadow: 0 24px 72px rgba(16, 24, 40, .28); }
.device-pause-dialog::backdrop { background: rgba(15, 23, 42, .48); }
.device-pause-dialog__body { display: grid; gap: 16px; padding: 18px 20px 20px; }
.device-pause-dialog__body header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.device-pause-dialog__body h2 { margin: 4px 0 0; color: #182230; font-size: 18px; }
.device-pause-dialog__body header button { width: 32px; height: 32px; border: 1px solid #d9dee7; border-radius: 6px; background: #fff; color: #667085; font-size: 19px; }
.device-pause-dialog__body > p:not(.message) { overflow: hidden; margin: 0; color: #667085; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.device-pause-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.device-pause-modes label { position: relative; }
.device-pause-modes input { position: absolute; opacity: 0; }
.device-pause-modes span { display: grid; min-height: 38px; place-items: center; border: 1px solid #d9dee7; border-radius: 6px; background: #fff; color: #475467; font-size: 12px; font-weight: 700; }
.device-pause-modes input:checked + span { border-color: #dd5c2d; background: #fff1eb; color: #b54708; }
.device-pause-time { display: grid; gap: 7px; color: #475467; font-size: 11px; font-weight: 700; }
.device-pause-time input { width: 100%; height: 38px; box-sizing: border-box; border: 1px solid #d9dee7; border-radius: 6px; background: #fff; padding: 0 10px; color: #182230; }
.device-pause-time.is-disabled { opacity: .42; }
.device-pause-dialog__body footer { display: flex; justify-content: flex-end; gap: 8px; }
.device-pause-dialog__body footer button { min-width: 88px; height: 36px; border: 1px solid #d6dce5; border-radius: 6px; background: #fff; color: #344054; font-size: 12px; font-weight: 700; }
.device-pause-dialog__body footer .primary-button { border-color: #b42318; background: #b42318; color: #fff; }
.admin-device-name { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px; align-items: center; }
.admin-device-name input { height: 32px; border: 1px solid #d9dee7; border-radius: 5px; padding: 0 7px; }
.admin-device-name button { border: 1px solid #d6dce5; border-radius: 5px; background: #fff; color: #344054; padding: 6px 7px; font-size: 11px; white-space: nowrap; }
.admin-section .message { padding: 0 18px 12px; }
.ai-settings-form { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(130px, .8fr); gap: 12px; padding: 16px 18px 18px; }
.ai-settings-form label { display: grid; gap: 6px; min-width: 0; color: #4e596b; font-size: 11px; font-weight: 700; }
.ai-settings-form input, .ai-settings-form textarea { min-width: 0; width: 100%; border: 1px solid #d9dee7; border-radius: 6px; background: #fff; color: #182230; padding: 0 10px; font: inherit; font-weight: 500; }
.ai-settings-form input { height: 36px; }
.ai-settings-form textarea { min-height: 58px; padding: 9px 10px; resize: vertical; }
.ai-settings-wide, .ai-settings-actions { grid-column: 1 / -1; }
.ai-settings-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.ai-settings-actions span { min-width: 0; margin-right: auto; color: #697486; font-size: 11px; }
.ai-settings-actions button { height: 36px; border: 1px solid #d6dce5; border-radius: 6px; background: #fff; color: #344054; padding: 0 12px; font-size: 12px; font-weight: 700; }
.ai-settings-actions .primary-button { border-color: #172033; background: #172033; color: #fff; }
.admin-running-empty { min-height: 72px; display: grid; place-items: center; color: #98a2b3; font-size: 13px; }
.danger-button { height: 34px; padding: 0 11px; border: 1px solid #f2b8b5; border-radius: 6px; background: #fff5f4; color: #b42318; font-size: 12px; font-weight: 700; }
.danger-button:disabled { cursor: default; opacity: .45; }
@media (max-width: 800px) {
  .admin-dashboard { grid-template-columns: 1fr; gap: 12px; }
  .admin-dashboard > .admin-section--running, .admin-dashboard > .admin-section--archives, .admin-dashboard > .admin-section--users, .admin-dashboard > .admin-section--plans, .admin-dashboard > .admin-section--redeem, .admin-dashboard > .admin-section--ai { grid-column: 1; }
  .ai-settings-form { grid-template-columns: 1fr; }
  .ai-settings-wide, .ai-settings-actions { grid-column: 1; }
  .redeem-generator { grid-template-columns: 1fr; align-items: stretch; }
  .redeem-generator .primary-button { width: 100%; }
  .redeem-purchase-row { grid-template-columns: 1fr; }
  .redeem-purchase-row button { width: 100%; }
  .redeem-code-list { grid-template-columns: 1fr; }
  .redeem-purchase-panel { align-items: stretch; flex-direction: column; gap: 14px; }
  .redeem-purchase-panel .primary-button { width: 100%; }
  .redeem-input-row { grid-template-columns: 1fr; }
  .admin-overview { align-items: flex-start; flex-direction: column; padding: 20px; }
  .admin-overview__legend { width: 100%; justify-content: space-between; }
  .admin-overview__right { width: 100%; justify-items: stretch; }
  .admin-overview__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .admin-overview__stats > div { min-width: 0; }
  .admin-row--head { display: none; }
  .admin-row { grid-template-columns: 1fr 1fr !important; gap: 8px 12px; padding: 13px 16px; }
  .admin-row > :first-child { grid-column: 1 / -1; }
  .admin-row .row-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .admin-device-name { grid-column: 1 / -1; }
  .admin-bindings { grid-column: 1 / -1; }
  .account-expires { display: none; }
}
.pagination { display: flex; align-items: center; justify-content: flex-end; gap: 10px; min-height: 58px; padding: 10px 20px; border-top: 1px solid #e7ebf0; }
.pagination button { min-width: 72px; height: 34px; border: 1px solid #d6dce5; border-radius: 5px; background: #fff; color: #344054; font-size: 12px; font-weight: 650; }
.pagination button:disabled { cursor: default; opacity: .42; }.pagination span { min-width: 120px; color: #697486; font-size: 12px; text-align: center; }
.queue-panel__toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 22px; border-bottom: 1px solid #e7ebf0; }
.queue-panel__title { display: flex; align-items: center; gap: 12px; }
.queue-panel__title h2 { margin: 0; color: #182230; font-size: 16px; }
.queue-panel__title p { margin: 4px 0 0; color: #98a2b3; font-size: 12px; }
.section-kicker { display: inline-grid; place-items: center; width: 30px; height: 30px; flex: 0 0 30px; border-radius: 8px; background: #fff1eb; color: #dd5c2d; font-size: 11px; font-weight: 800; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.filters input { width: 220px; height: 36px; padding: 0 11px; font-size: 13px; }
.filters select { width: 126px; height: 36px; padding: 0 8px; font-size: 13px; }
.filters button { height: 36px; border: 1px solid #172033; border-radius: 6px; background: #172033; color: #fff; padding: 0 12px; font-size: 12px; font-weight: 700; }
.queue-list { display: grid; }
.queue-row { display: grid; grid-template-columns: minmax(300px, 1.8fr) minmax(90px, .55fr) minmax(100px, .6fr) minmax(100px, .6fr) minmax(115px, .7fr) minmax(110px, .75fr) 224px; gap: 12px; align-items: center; min-height: 88px; padding: 12px 22px; border-bottom: 1px solid #edf0f4; }
.item-table-head, .item-row { grid-template-columns: minmax(440px, 2.8fr) minmax(90px, .5fr) minmax(90px, .5fr) minmax(82px, .45fr) minmax(118px, .62fr) minmax(120px, .7fr) 224px; }
.item-table-head { display: grid; gap: 12px; align-items: center; min-height: 40px; padding: 0 22px; border-bottom: 1px solid #e7ebf0; background: #fafbfc; color: #8a94a3; font-size: 11px; font-weight: 700; }
.item-table-head span:last-child { text-align: right; }
.collect-task-row { grid-template-columns: 22px minmax(250px, 1.8fr) minmax(90px, .6fr) minmax(118px, .65fr) minmax(125px, .65fr) minmax(170px, 1fr) 52px; }
.collect-task-head { display: grid; grid-template-columns: 22px minmax(250px, 1.8fr) minmax(90px, .6fr) minmax(118px, .65fr) minmax(125px, .65fr) minmax(170px, 1fr) 52px; gap: 14px; align-items: center; min-height: 38px; padding: 0 22px; border-bottom: 1px solid #e7ebf0; background: #fafbfc; color: #8a94a3; font-size: 11px; font-weight: 700; }
.collect-task-row { min-height: 72px; cursor: pointer; }
.collect-task-row--selected, .collect-task-row--selected:hover { background: #fff6f1; }
.collect-total-progress { display: grid; gap: 9px; padding: 13px 22px; border-bottom: 1px solid #e7ebf0; background: #fcfdff; }
.collect-total-progress__meta { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.collect-total-progress__meta > div { display: flex; align-items: baseline; gap: 9px; }
.collect-total-progress__meta strong { color: #344054; font-size: 12px; }
.collect-total-progress__meta span { color: #7a8595; font-size: 11px; }
.collect-total-progress__meta > div:last-child strong { color: #182230; font-size: 14px; }
.collect-total-progress__meta > div:last-child span { min-width: 34px; color: #dd5c2d; font-weight: 750; text-align: right; }
.collect-total-progress__track { display: block; width: 100%; height: 8px; overflow: hidden; border-radius: 6px; background: #e7ebf0; }
.collect-total-progress__track i { display: block; height: 100%; border-radius: inherit; background: #12b76a; transition: width .3s ease; }
.task-keyword-cell { min-width: 0; }
.task-keyword-cell strong { display: block; overflow: hidden; color: #273142; font-size: 13px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.task-keyword-cell span, .task-params span { display: block; margin-top: 5px; color: #98a2b3; font-size: 11px; }
.task-progress { display: grid; gap: 7px; }
.task-progress > div { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.task-progress strong { color: #344054; font-size: 12px; }
.task-progress small { color: #7a8595; font-size: 10px; font-weight: 700; }
.task-progress > span { display: block; width: 100%; height: 6px; overflow: hidden; border-radius: 6px; background: #e7ebf0; }
.task-progress i { display: block; height: 100%; border-radius: inherit; background: #2e90fa; transition: width .3s ease; }
.task-params strong { color: #475467; font-size: 12px; }
.queue-row:hover { background: #fcfdff; }
.item-row { cursor: pointer; }
.item-row--selected, .item-row--selected:hover { background: #fff6f1; }
.row-actions { display: flex; gap: 7px; justify-content: flex-end; }
.row-actions button { padding: 7px 9px; border: 1px solid #d6dce5; border-radius: 5px; background: #fff; color: #344054; font-size: 12px; font-weight: 650; }
.row-actions button:last-child { border-color: #172033; background: #172033; color: #fff; }
.auto-publish { display: inline-flex; align-items: center; gap: 6px; margin-left: 10px; color: #667085; font-size: 12px; font-weight: 600; }
.auto-publish input { accent-color: #172033; }
.editor-dialog { width: calc(100vw - 24px); height: calc(100vh - 24px); max-width: 1560px; max-height: none; padding: 0; border: 0; border-radius: 10px; box-shadow: 0 24px 80px rgba(16, 24, 40, .28); }
.editor-dialog::backdrop { background: rgba(15, 23, 42, .58); }
.editor { display: grid; height: 100%; align-content: start; gap: 16px; padding: 20px 24px; overflow-x: hidden; overflow-y: auto; font-size: 12px; }
.editor header, .editor footer, .editor-section-title { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.editor h2, .editor h3 { margin: 0; color: #182230; }
.editor h2 { font-size: 18px; }.editor h3 { font-size: 12px; }
.editor header button, .editor footer button { border: 1px solid #d6dce5; border-radius: 6px; background: #fff; padding: 8px 12px; color: #344054; font-size: 12px; font-weight: 650; }
.editor header .editor-close-button { display: grid; width: 34px; height: 34px; place-items: center; padding: 0; border: 0; border-radius: 50%; background: #f2f4f7; color: #475467; font-size: 22px; line-height: 1; }
.editor header .editor-close-button:hover { background: #e7ebf0; color: #182230; }
.editor footer .primary-button { border-color: #172033; background: #172033; color: #fff; }
.editor label { display: grid; gap: 6px; color: #4e596b; font-size: 11px; font-weight: 650; }
.editor label input { height: 38px; border: 1px solid #d9dee7; border-radius: 6px; padding: 0 10px; font-size: 12px; }
.editor-title-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.editor-title-row button { height: 38px; border: 1px solid #172033; border-radius: 6px; background: #172033; color: #fff; padding: 0 13px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.editor-title-row button:disabled { cursor: wait; opacity: .55; }
.editor-skus { display: grid; gap: 5px; }
.editor-specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 10px; }
.editor-spec { padding: 10px; border: 1px solid #e4e8ee; border-radius: 7px; background: #fafbfc; }
.editor-spec__head { display: flex; gap: 8px; align-items: center; }
.editor-spec__head input { width: 120px; height: 30px; border: 1px solid #d9dee7; border-radius: 5px; padding: 0 8px; font-size: 12px; font-weight: 650; }
.editor-spec__head button { margin-left: auto; border: 0; background: transparent; color: #b42318; font-size: 11px; }
.editor-options { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.editor-option { display: flex; align-items: center; overflow: hidden; border: 1px solid #d9dee7; border-radius: 5px; background: #fff; }
.editor-option input { width: 130px; height: 30px; border: 0; padding: 0 7px; font-size: 12px; }
.editor-option button { width: 26px; height: 30px; border: 0; border-left: 1px solid #e5e7eb; background: #fff; color: #b42318; }
.editor-gallery, .editor-detail-gallery { display: flex; flex-wrap: wrap; gap: 8px; }
.editor-gallery .editor-image-card, .editor-detail-gallery .editor-image-card { width: 76px; flex: 0 0 76px; }
.editor-image-card { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 7px; background: #eef2f6; }
.editor-image-card img { width: 100%; height: 100%; object-fit: cover; }
.editor-image-card button { position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border: 0; border-radius: 50%; background: rgba(17, 24, 39, .78); color: #fff; font-size: 14px; line-height: 1; }
.editor-sku { display: grid; grid-template-columns: 42px minmax(0, 1fr) 84px 28px; gap: 6px; align-items: center; }
.editor-sku-image, .editor-sku-placeholder { width: 38px; height: 38px; border-radius: 5px; object-fit: cover; background: #eef2f6; }
.editor-sku-placeholder { display: grid; place-items: center; color: #98a2b3; font-size: 11px; }
.editor-sku input { min-width: 0; height: 30px; border: 1px solid #d9dee7; border-radius: 5px; padding: 0 8px; font-size: 12px; }
.editor-sku button { width: 28px; height: 28px; border: 0; border-radius: 50%; background: #fff0ee; color: #b42318; font-size: 18px; line-height: 1; }
.queue-row:last-child { border-bottom: 0; }
.product { display: flex; min-width: 0; align-items: center; gap: 12px; }
.product-image, .product-placeholder { flex: 0 0 58px; width: 58px; height: 58px; border-radius: 7px; background: #edf1f6; object-fit: cover; }
.product-placeholder { display: grid; place-items: center; color: #98a2b3; font-size: 17px; font-weight: 750; }
.product-copy { min-width: 0; }
.product-copy strong { display: -webkit-box; overflow: hidden; color: #273142; font-size: 13px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.product-title-line { display: flex; min-width: 0; align-items: baseline; gap: 8px; }
.product-title-line strong { min-width: 0; }
.product-price-range { flex: 0 0 auto; color: #dd5c2d; font-size: 12px; font-weight: 750; white-space: nowrap; }
.product-copy span { display: block; overflow: hidden; margin-top: 5px; color: #98a2b3; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.queue-cell { color: #596579; font-size: 12px; overflow-wrap: anywhere; }
.status { display: inline-flex; align-items: center; min-height: 25px; border-radius: 4px; padding: 0 8px; font-size: 12px; font-weight: 700; }
.status-pending { color: #9a6700; background: #fff5d8; }
.status-draft { color: #6941c6; background: #f4f3ff; }
.status-leased { color: #175cd3; background: #eaf2ff; }
.status-queued { color: #087443; background: #e9f8ef; }
.status-rejected { color: #b42318; background: #fff0ee; }
.status-running { color: #175cd3; background: #eaf2ff; }
.status-completed { color: #087443; background: #e9f8ef; }
.status-failed, .status-stopped { color: #b42318; background: #fff0ee; }
.queue-message { color: #7a8595; line-height: 1.4; }
.task-list-toolbar { display: flex; align-items: center; gap: 10px; color: #7a8595; font-size: 12px; }
.select-all-control { display: inline-flex; align-items: center; gap: 5px; color: #475467; font-size: 12px; font-weight: 650; white-space: nowrap; }
.filters .select-all-control { min-height: 36px; padding: 0 9px; border: 1px solid #d6dce5; border-radius: 6px; background: #fff; }
.filters .select-all-control input { width: 16px; height: 16px; padding: 0; accent-color: #dd5c2d; }
.item-select-checkbox { flex: 0 0 16px; width: 16px; height: 16px; accent-color: #dd5c2d; }
.selection-dock { position: fixed; z-index: 30; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; width: min(680px, calc(100vw - 32px)); min-height: 64px; box-sizing: border-box; align-items: center; justify-content: space-between; gap: 18px; padding: 11px 14px 11px 18px; border: 1px solid #d7dde6; border-radius: 8px; background: #fff; box-shadow: 0 16px 42px rgba(16, 24, 40, .2); }
.selection-dock[hidden] { display: none; }
.selection-dock strong, .selection-dock span { display: block; }
.selection-dock strong { color: #182230; font-size: 14px; }
.selection-dock span { margin-top: 3px; color: #7a8595; font-size: 11px; }
.selection-dock__actions { display: flex; flex: 0 0 auto; gap: 8px; }
.selection-dock__actions button { height: 36px; padding: 0 12px; border: 1px solid #d6dce5; border-radius: 6px; background: #fff; color: #344054; font-size: 12px; font-weight: 700; }
.selection-dock__actions .secondary-button { border-color: #172033; background: #172033; color: #fff; }
.selection-dock__actions .danger-button { border-color: #e49a95; background: #b42318; color: #fff; }
.task-select-checkbox { width: 16px; height: 16px; accent-color: #dd5c2d; }
.task-delete-button { border: 1px solid #f2b8b5; border-radius: 5px; background: #fff5f4; color: #b42318; padding: 7px 9px; font-size: 12px; font-weight: 650; }
.task-delete-button:disabled { cursor: default; opacity: .45; }
.task-empty-state { display: grid; min-height: 150px; place-items: center; align-content: center; gap: 6px; color: #98a2b3; text-align: center; }
.task-empty-state strong { color: #475467; font-size: 14px; }
.task-empty-state span { font-size: 12px; }
.empty-state { display: grid; place-items: center; gap: 6px; min-height: 340px; text-align: center; }
.empty-state strong { color: #344054; font-size: 15px; }
.empty-state span { color: #98a2b3; font-size: 13px; }

@media (max-width: 980px) {
  .item-table-head { display: none; }
  .metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .task-form { grid-template-columns: 1fr; }
  .task-settings-column { padding-top: 14px; padding-left: 0; border-top: 1px solid #edf0f4; border-left: 0; }
  .task-settings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .queue-row { grid-template-columns: minmax(280px, 1.8fr) minmax(110px, .7fr) minmax(115px, .7fr) 126px; }
  .collect-task-row { grid-template-columns: 22px minmax(0, 1fr) 112px; }
  .collect-task-head { display: none; }
  .collect-task-row > :nth-child(3), .collect-task-row > :nth-child(4), .collect-task-row > :nth-child(5), .collect-task-row > :nth-child(6) { display: none; }
  .collect-task-row > :last-child { grid-column: 3; }
  .queue-row:not(.collect-task-row) > :nth-child(4), .queue-row:not(.collect-task-row) > :nth-child(5) { display: none; }
}

@media (max-width: 640px) {
  .redeem-campaign-hero { min-height: 230px; padding: 18px 20px 24px; }
  .redeem-campaign-copy h2 { font-size: 28px; }
  .redeem-campaign-benefits { grid-template-columns: 1fr; }
  .redeem-campaign-benefits > div { padding: 13px 20px; border-right: 0; border-bottom: 1px solid #e7ebf0; }
  .redeem-campaign-benefits > div:last-child { border-bottom: 0; }
  .redeem-purchase-panel { margin: 18px 20px 0; }
  .redeem-code-section { padding: 18px 20px 22px; }
  .auth-screen { padding: 16px; }
  .auth-panel { padding: 30px 24px; }
  .topbar { height: 58px; padding: 0 12px; }
  .app-shell--nav { padding-left: 72px; }
  .side-nav { width: 72px; }
  .side-nav__brand { height: 58px; justify-content: center; padding: 0; }
  .side-nav__brand > span:last-child { display: none; }
  .side-nav__list { padding: 12px 7px; }
  .side-nav__item { min-height: 44px; padding: 0 3px; font-size: 11px; text-align: center; }
  .app-shell--nav .topbar { padding: 0 12px; }
  .app-shell--nav .account-stat { display: none; }
  .section-name, .connection, .account-name { display: none; }
  .workspace { width: calc(100% - 24px); padding-top: 24px; }
  .workspace-heading { align-items: flex-start; }
  .workspace-heading h1 { font-size: 27px; }
  .heading-meta span { display: none; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .task-settings-grid { grid-template-columns: 1fr; }
  .keyword-dedupe-controls { align-items: flex-start; flex-direction: column; gap: 10px; }
  .keyword-dedupe-controls > button { margin-left: 0; }
  .keyword-history-row { grid-template-columns: minmax(0, 1fr) 54px; }
  .keyword-history-row span { display: none; }
  .keyword-history-dialog footer { align-items: stretch; flex-direction: column; }
  .metric-card { min-height: 90px; padding: 13px 14px; }
  .metric-card strong { font-size: 24px; }
  .queue-panel__toolbar { align-items: flex-start; flex-direction: column; padding: 15px 16px; }
  .task-panel--primary .queue-panel__toolbar { align-items: center; flex-direction: row; }
  .task-panel--primary .queue-panel__title { min-width: 0; }
  .task-panel--primary .queue-panel__title p { display: none; }
  .admin-device-grid { padding: 12px; }
  .admin-device-policy { flex-wrap: wrap; padding: 12px; }
  .admin-device-policy > span { order: 3; flex-basis: 100%; }
  .admin-device-cooldown > div:last-child { grid-template-columns: 1fr 1fr; }
  .admin-device-actions { grid-template-columns: 1fr 1fr; }
  .admin-device-actions select { grid-column: 1 / -1; }
  .task-form { gap: 10px; padding: 16px; }
  .task-publish-column .primary-button { width: 100%; }
  .filters { width: 100%; }
  .filters input { flex: 1; width: auto; min-width: 0; }
  .filters select { width: 112px; }
  .queue-row { grid-template-columns: minmax(0, 1fr) 150px; gap: 8px; padding: 13px 14px; }
  .collect-task-row { grid-template-columns: 22px minmax(0, 1fr) 52px; }
  .collect-total-progress { padding: 12px 14px; }
  .collect-total-progress__meta { align-items: flex-start; }
  .collect-total-progress__meta > div { display: grid; gap: 3px; }
  .queue-row:not(.collect-task-row) > :nth-child(2), .queue-row:not(.collect-task-row) > :nth-child(4), .queue-row:not(.collect-task-row) > :nth-child(5) { display: none; }
  .queue-row:not(.collect-task-row) > :nth-child(3) { justify-self: end; }
  .row-actions { grid-column: 2; grid-row: 1; align-self: end; flex-wrap: wrap; }
  .row-actions button { flex: 1 1 60px; padding: 6px; }
  .filters { width: 100%; justify-content: stretch; }
  .filters input { flex: 1 1 100%; }
  .filters select, .filters button { flex: 1 1 0; width: auto; min-width: 0; }
  .admin-device-name { grid-template-columns: 1fr; }
  .admin-device-name button { width: max-content; }
  .editor-dialog { width: calc(100vw - 12px); height: calc(100vh - 12px); }.editor { padding: 14px; }.editor-sku { grid-template-columns: 42px 1fr 66px 28px; }
  .selection-dock { bottom: 10px; align-items: flex-start; }
  .selection-dock span { display: none; }
}
