:root { color-scheme:light; --ink:#171717; --muted:#686862; --line:#deded7; --paper:#f5f5f1; --white:#fff; --red:#b92331; --green:#1d734a; --danger:#9e2029; }
* { box-sizing:border-box; }
[hidden] { display:none !important; }
body { margin:0; background:var(--paper); color:var(--ink); font:14px/1.5 Inter,"Segoe UI",Arial,sans-serif; letter-spacing:0; }
button,input,select,textarea { font:inherit; }
button { cursor:pointer; }
.auth-screen { min-height:100vh; display:grid; place-items:center; padding:20px; background:#1a1a19; }
.auth-box { width:min(390px,100%); padding:30px; background:#fff; border-top:3px solid var(--red); }
.auth-box h1 { margin:3px 0 4px; font-size:23px; }
.auth-box label { display:block; margin-top:15px; }
.auth-box .primary { width:100%; margin-top:20px; }
.login-channels { display:grid; grid-template-columns:1fr 1fr; gap:0; margin:18px 0 4px; border:1px solid var(--line); border-radius:4px; overflow:hidden; }
.channel { height:40px; border:0; background:#eeeeea; color:var(--muted); }
.channel + .channel { border-left:1px solid var(--line); }
.channel.active { background:var(--ink); color:#fff; font-weight:700; }
.eyebrow { margin:0; color:#d6a164; font-size:11px; font-weight:800; letter-spacing:1.5px; }
.topbar { height:80px; padding:0 32px; display:flex; justify-content:space-between; align-items:center; background:var(--ink); color:#fff; }
.topbar h1 { margin:1px 0 0; font-size:22px; }
.userbar { display:flex; align-items:center; gap:12px; color:#d7d7d3; }
.tabs { min-height:49px; padding:0 32px; display:flex; gap:23px; background:#fff; border-bottom:1px solid var(--line); overflow-x:auto; }
.tab { min-width:max-content; height:49px; border:0; border-bottom:2px solid transparent; background:none; color:var(--muted); padding:0 2px; }
.tab.active { color:var(--ink); border-color:var(--red); font-weight:700; }
main { max-width:1220px; margin:0 auto; padding:28px 28px 70px; }
.panel { display:none; }
.panel.active { display:block; }
.toolbar,.heading-row { display:flex; justify-content:space-between; align-items:center; gap:18px; }
h2 { margin:0; font-size:19px; }
h3 { margin:0; font-size:15px; }
h4 { margin:17px 0 10px; font-size:13px; }
p { margin:4px 0 0; color:var(--muted); }
.primary,.small-button,.quiet,.text-button,.icon-button { border:0; border-radius:4px; text-decoration:none; }
.primary { min-height:40px; padding:0 16px; background:var(--red); color:#fff; font-weight:700; }
.primary:disabled { opacity:.55; cursor:wait; }
.small-button { height:32px; padding:0 11px; background:#e8e8e3; color:var(--ink); }
.quiet { min-height:40px; padding:0 14px; background:#e8e8e3; color:var(--ink); }
.text-button { display:inline-flex; padding:8px 11px; background:#e8e8e3; color:var(--ink); }
.icon-button { display:grid; place-items:center; width:32px; height:32px; background:#ededE8; color:#222; font-size:17px; }
.topbar .icon-button { background:#30302f; color:#fff; }
.icon-button.danger { color:var(--danger); }
.danger-button { min-height:34px; padding:0 13px; border:1px solid #d7a5aa; border-radius:4px; background:#fff; color:var(--danger); font-weight:700; }
.danger-button:hover { border-color:var(--danger); background:#fff1f2; }
.danger-button:disabled { opacity:.55; cursor:wait; }
.stats { margin:22px 0 14px; display:grid; grid-template-columns:repeat(4,1fr); border:1px solid var(--line); background:#fff; }
.rate-hint { margin:-5px 0 14px; color:var(--muted); font-size:12px; }
.stat { padding:14px 16px; border-right:1px solid var(--line); }
.stat:last-child { border:0; }
.stat strong { display:block; font-size:21px; }
.stat strong small { margin-left:2px; color:#999; font-size:11px; font-weight:500; }
.stat span { color:var(--muted); font-size:12px; }
.list,.surface { border:1px solid var(--line); background:#fff; }
.post { display:grid; grid-template-columns:24px 74px minmax(180px,1.35fr) minmax(240px,2fr) 150px 130px; align-items:center; gap:14px; padding:12px; border-bottom:1px solid var(--line); }
.post-select { width:17px; height:17px; margin:0; }
.post:last-child,.user-row:last-child,.job-row:last-child { border-bottom:0; }
.post img { width:74px; height:74px; object-fit:cover; border-radius:4px; background:#eee; }
.post h3,.user-row h3,.job-row h3 { margin:0; }
.post-copy { color:#4e4e4a; }
.post-actions { display:grid; gap:6px; }
.post-actions .small-button { display:flex; align-items:center; justify-content:center; width:100%; min-width:0; white-space:nowrap; }
.post-actions .pinterest-manual { background:#bd081c; color:#fff; }
.badge { display:inline-block; width:max-content; padding:3px 7px; border-radius:3px; background:#ededE8; color:#555; font-size:11px; }
.badge.published { background:#ddf1e5; color:#17613e; }
.badge.failed { background:#f7dddd; color:#8d1e26; }
.badge.private { background:#e5e4ef; color:#413d70; }
.visibility-manager { display:grid; grid-template-columns:minmax(190px,1fr) 140px 130px auto 150px auto; align-items:end; gap:10px; margin-top:16px; padding:16px; border:1px solid var(--line); background:#fff; }
.visibility-manager .primary,.visibility-manager .quiet { white-space:nowrap; }
.account-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.account-card { display:grid; grid-template-columns:44px 1fr auto auto; align-items:center; gap:12px; padding:14px; border:1px solid var(--line); background:#fff; }
.account-icon { width:44px; height:44px; display:grid; place-items:center; border:1px solid #d5d5ce; background:#f0f0ec; font-weight:800; }
.account-card-rate { margin:2px 0 0; color:var(--muted); font-size:11px; }
.account-meta { display:flex; flex-wrap:wrap; gap:5px; margin-top:6px; }
.account-status.normal { background:#ddf1e5; color:#17613e; }
.account-status.stopped { background:#e5e5df; color:#5e5e58; }
.account-connection { margin:2px 0 0; color:var(--danger); font-size:11px; }
.account-connection.connected { color:var(--green); }
.credential-hint { margin:0 0 10px; padding:10px 12px; border-left:3px solid #c88b20; background:#fff5dc; color:#63543d; font-size:12px; }
.actions,.form-actions { display:flex; align-items:center; gap:7px; flex-wrap:wrap; }
.drawer { margin-top:16px; padding:22px; border:1px solid var(--line); border-top:3px solid var(--red); background:#fff; }
.drawer .grid { margin-top:16px; }
.drawer > .check { margin:14px 0 0; }
.form-actions { margin-top:18px; }
.grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.grid.checks { grid-template-columns:repeat(3,auto); justify-content:start; }
label { color:#3d3d39; font-size:12px; font-weight:700; }
input,select,textarea { width:100%; margin-top:5px; padding:0 11px; border:1px solid #cacac3; border-radius:4px; background:#fff; color:var(--ink); }
input,select { height:40px; }
textarea { min-height:82px; padding-top:9px; resize:vertical; }
input:disabled { background:#eee; color:#666; }
.password-control { position:relative; display:block; width:100%; margin-top:5px; }
.password-control input { margin-top:0; padding-right:43px; }
.password-eye { position:absolute; top:3px; right:3px; width:34px; height:34px; display:grid; place-items:center; padding:0; border:0; border-left:1px solid #ddd; background:#f4f4f0; color:#333; font-size:16px; line-height:1; }
.password-eye:hover { background:#e8e8e3; }
.password-eye.is-visible::after { content:""; position:absolute; width:20px; height:2px; background:var(--danger); transform:rotate(-42deg); }
.check { display:flex; height:40px; align-items:center; gap:7px; white-space:nowrap; }
.check input,.check-item input { width:16px; height:16px; margin:0; }
.user-row,.job-row { display:grid; grid-template-columns:1fr auto auto; align-items:center; gap:15px; padding:14px 16px; border-bottom:1px solid var(--line); }
.job-row { grid-template-columns:1fr auto; }
.job-row .error { grid-column:1/-1; }
.section-head { margin-bottom:20px; }
.compact-head { margin:20px 0 8px; }
.cache-section-head { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.jobs-head { margin:25px 0 10px; }
.inline-form { max-width:830px; padding:20px; }
.inline-form > label { display:block; margin-bottom:7px; }
.inline-form > div { display:flex; gap:8px; }
.inline-form input { flex:1; margin:0; }
.queue-discover { max-width:none; margin-top:16px; }
.queue-import { margin-top:10px; padding:18px 20px; }
.queue-import-grid { display:grid; grid-template-columns:180px minmax(260px,1fr) 180px; gap:12px; }
.queue-import .primary { margin-top:14px; }
.queue-batch-bar { display:flex; justify-content:space-between; align-items:center; gap:14px; margin-top:24px; padding:10px 12px; border:1px solid var(--line); background:#fff; }
.queue-batch-bar .check { height:auto; }
#queueSelectionCount { color:var(--muted); font-size:12px; }
#crawlForm { max-width:830px; margin-top:12px; padding:20px; }
#crawlForm .primary { margin-top:15px; }
.site-notice { display:grid; grid-template-columns:1fr auto; gap:4px 14px; align-items:center; max-width:830px; margin-top:12px; padding:14px 16px; border-left:3px solid #c88b20; background:#fff5dc; color:#342b1f; }
.site-notice strong,.site-notice span { display:block; }
.site-notice span { grid-column:1; color:#63543d; }
.site-notice .small-button { grid-column:2; grid-row:1 / span 2; text-decoration:none; }
.imported-toolbar { margin:28px 0 12px; }
.imported-toolbar .actions { display:flex; gap:8px; }
.imported-toolbar button { white-space:nowrap; }
.compact-stats { margin-bottom:12px; }
.imported-product-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.imported-product { display:grid; grid-template-rows:180px auto; min-width:0; overflow:hidden; border:1px solid var(--line); border-radius:4px; background:#fff; }
.imported-product > img { width:100%; height:180px; object-fit:contain; background:#f2f2ef; }
.imported-product-body { display:grid; gap:7px; padding:12px; }
.imported-product h4 { margin:0; font-size:14px; overflow-wrap:anywhere; }
.imported-product p { display:-webkit-box; min-height:38px; margin:0; overflow:hidden; color:var(--muted); font-size:12px; -webkit-box-orient:vertical; -webkit-line-clamp:2; }
.product-facts { display:flex; flex-wrap:wrap; gap:5px; color:var(--muted); font-size:11px; }
.product-facts span { padding-right:6px; border-right:1px solid var(--line); }
.spec-chips { display:flex; flex-wrap:wrap; gap:5px; }
.spec-chips span { max-width:100%; padding:3px 6px; overflow:hidden; border:1px solid #d8d8d2; border-radius:3px; background:#f4f4f0; font-size:10px; text-overflow:ellipsis; white-space:nowrap; }
.imported-product details { font-size:11px; }
.imported-product summary { color:var(--red); cursor:pointer; }
.all-product-info { display:grid; gap:3px; max-height:150px; margin-top:6px; overflow:auto; color:var(--muted); }
.imported-product-meta { display:flex; justify-content:space-between; gap:8px; color:var(--muted); font-size:11px; }
.imported-product-actions { display:flex; gap:7px; align-items:center; }
.imported-product-actions .small-button { flex:1; }
.imported-product-actions a { color:var(--red); font-size:12px; text-decoration:none; }
.video-ingest-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.video-ingest-form { display:grid; align-content:start; gap:13px; padding:18px; }
.video-ingest-form > label { display:block; }
.video-ingest-form .primary { justify-self:start; }
.file-picker { padding:12px; border:1px dashed #b8b8b0; background:#f7f7f3; }
.file-picker input { height:auto; margin-top:8px; padding:0; border:0; background:transparent; }
.watermark-toggle { height:auto; min-height:40px; padding:9px 11px; border:1px solid var(--line); background:#f7f7f3; }
.field-hint { margin:0; color:var(--muted); font-size:12px; line-height:1.55; }
.video-library { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.video-library > .empty { grid-column:1/-1; border:1px solid var(--line); background:#fff; }
.video-card { position:relative; display:grid; grid-template-columns:190px minmax(0,1fr); min-width:0; overflow:hidden; border:1px solid var(--line); border-radius:4px; background:#fff; }
.video-select { position:absolute; z-index:2; top:10px; left:10px; width:22px; height:22px; margin:0; accent-color:var(--red); box-shadow:0 0 0 2px #fff; }
.video-card video,.video-placeholder { width:190px; height:230px; background:#161616; }
.video-card video { object-fit:contain; }
.video-placeholder { display:grid; place-content:center; gap:6px; padding:18px; color:#fff; text-align:center; }
.video-placeholder span { max-width:155px; color:#c8c8c8; font-size:11px; overflow-wrap:anywhere; }
.video-card-body { display:grid; align-content:start; gap:10px; min-width:0; padding:14px; }
.video-card h3 { overflow-wrap:anywhere; }
.video-description { min-height:42px; overflow-wrap:anywhere; }
.video-meta { display:flex; align-items:center; gap:7px; flex-wrap:wrap; color:var(--muted); font-size:11px; }
.video-help { color:var(--muted); font-size:11px; align-self:center; }
.download-link { display:inline-flex; align-items:center; justify-content:center; color:var(--ink); }
.settings-section { padding:22px 0; border-bottom:1px solid var(--line); }
.settings-section:first-child { padding-top:0; }
.settings-section h2 { margin-bottom:14px; }
#settingsForm > .primary { margin-top:20px; }
.empty { padding:30px; text-align:center; }
.table-wrap { overflow:auto; border:1px solid var(--line); background:#fff; }
.record-controls { display:flex; align-items:end; gap:8px; flex-wrap:wrap; margin:0 0 8px; padding:10px; border:1px solid var(--line); background:#fff; }
.record-controls label { min-width:150px; flex:1; }
.record-controls label:first-child { min-width:230px; }
.record-controls input,.record-controls select { height:34px; margin-top:3px; }
.record-controls button { min-height:34px; }
.pagination { display:flex; align-items:center; justify-content:flex-end; gap:8px; flex-wrap:wrap; padding:10px 0 4px; color:var(--muted); font-size:12px; }
.pagination label { display:flex; align-items:center; gap:4px; color:var(--muted); font-weight:400; }
.pagination input { width:68px; height:34px; margin:0; }
.pagination button { min-height:34px; }
.operation-progress { margin:12px 0 14px; padding:12px 14px; border:1px solid var(--line); background:#fff; }
.progress-label { display:flex; justify-content:space-between; gap:12px; margin-bottom:7px; color:var(--muted); font-size:12px; }
.progress-label strong { color:var(--ink); }
.progress-track { height:9px; overflow:hidden; border-radius:5px; background:#e3e3de; }
.progress-fill { height:100%; min-width:2px; border-radius:5px; background:var(--red); transition:width .25s ease; }
.progress-actions { display:flex; justify-content:flex-end; margin-top:10px; }
.delivery-summary { display:flex; flex-wrap:wrap; gap:5px; margin-top:7px; }
.delivery-status { display:inline-block; padding:2px 6px; border:1px solid #d7d7d0; border-radius:3px; color:var(--muted); font-size:10px; }
.delivery-status.published { border-color:#b8ddc7; background:#ddf1e5; color:#17613e; }
.delivery-status.failed { border-color:#e9b9bd; background:#f7dddd; color:#8d1e26; }
.delivery-status.private { border-color:#c9c6dc; background:#e5e4ef; color:#413d70; }
.delivery-detail { min-width:250px; white-space:normal; }
.delivery-detail.success { color:var(--green); }
table { width:100%; border-collapse:collapse; }
th,td { padding:10px 12px; border-bottom:1px solid var(--line); text-align:left; white-space:nowrap; }
th { background:#eeeeea; color:#555; font-size:11px; }
td small,td em { display:block; color:var(--muted); font-style:normal; font-weight:400; }
td em { color:var(--danger); }
#passwordForm label { display:block; margin-top:13px; }
.error { color:var(--danger); }
dialog { width:min(620px,calc(100% - 30px)); max-height:80vh; padding:22px; border:0; border-top:3px solid var(--red); box-shadow:0 20px 60px #0004; }
dialog::backdrop { background:#0008; }
.check-list { max-height:50vh; margin-top:16px; overflow:auto; border:1px solid var(--line); }
.check-item { display:grid; grid-template-columns:22px 1fr; align-items:center; gap:9px; padding:10px 12px; border-bottom:1px solid var(--line); }
.check-item:last-child { border:0; }
.check-item span,.check-item small { display:block; }
.check-item small { color:var(--muted); font-weight:400; }
#toast { position:fixed; right:22px; bottom:22px; z-index:20; max-width:430px; padding:12px 15px; border-radius:4px; background:#171717; color:#fff; opacity:0; transform:translateY(8px); pointer-events:none; transition:.2s; }
#toast.show { opacity:1; transform:none; }
@media (max-width:1050px) { .visibility-manager { grid-template-columns:1fr 1fr 1fr; } .visibility-manager > div { grid-column:1/-1; } }
@media (max-width:900px) { .post { grid-template-columns:24px 64px 1fr auto; } .post img { width:64px;height:64px;grid-row:span 2; } .post-copy { grid-column:3; } .post > .post-actions { grid-column:4; } .account-grid { grid-template-columns:1fr; } .imported-product-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .queue-import-grid { grid-template-columns:1fr 1fr; } .video-ingest-grid,.video-library { grid-template-columns:1fr; } }
@media (max-width:620px) { .topbar,.tabs { padding-left:16px;padding-right:16px; } main { padding:20px 14px; } .toolbar { align-items:flex-start;flex-direction:column; } .stats { grid-template-columns:1fr 1fr; } .grid,.grid.checks,.visibility-manager { grid-template-columns:1fr; } .visibility-manager > div { grid-column:auto; } .post { grid-template-columns:24px 58px 1fr; } .post img { width:58px;height:58px; } .post-copy,.post .badge,.post > .post-actions { grid-column:3; } .account-card { grid-template-columns:42px 1fr; } .account-card .badge,.account-card .actions { grid-column:2; } .inline-form > div { flex-direction:column; } .site-notice { grid-template-columns:1fr; } .site-notice .small-button { grid-column:1; grid-row:auto; margin-top:8px; } .imported-product-grid { grid-template-columns:1fr; } .imported-toolbar .actions { width:100%; } .imported-toolbar button { flex:1; } .queue-import-grid { grid-template-columns:1fr; } .queue-batch-bar { align-items:flex-start; flex-direction:column; } .video-card { grid-template-columns:1fr; } .video-card video,.video-placeholder { width:100%; height:auto; min-height:210px; aspect-ratio:16/9; } }
