:root {
  --blue: #3370ff;
  --blue-soft: #eef3ff;
  --cyan: #00b8b0;
  --cyan-soft: #e9fbfa;
  --orange: #ff8a00;
  --orange-soft: #fff6e8;
  --green: #16a34a;
  --green-soft: #effaf3;
  --red: #e53935;
  --red-soft: #fff1f0;
  --text: #1f2329;
  --muted: #7b8495;
  --line: #e4e8ef;
  --field: #cfd5de;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; margin: 0; overflow: hidden; background: #fff; }
button, input, select { font: inherit; color: inherit; }
button { user-select: none; }
.red { color: var(--red); }
.muted { color: var(--muted); font-size: 13px; }

.app-shell { height: 100vh; min-width: 1120px; display: flex; flex-direction: column; overflow: hidden; background: #fff; }
.topbar { flex: 0 0 68px; height: 68px; display: grid; grid-template-columns: 250px 1fr 250px; align-items: center; padding: 0 16px; border-bottom: 1px solid var(--line); background: #fff; }
.brand { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #d9dee7; border-radius: 10px; font-size: 21px; }
.brand strong { font-size: 17px; }
.brand small { color: #9aa2af; }
.nav { align-self: stretch; display: flex; align-items: stretch; justify-content: center; gap: 5px; }
.nav-item { position: relative; padding: 0 13px; border: 0; background: transparent; color: #596273; font-weight: 650; cursor: pointer; }
.nav-item:hover { color: var(--blue); }
.nav-item.active { color: var(--text); }
.nav-item.active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--blue); }
.topbar-right { display: flex; align-items: center; justify-content: flex-end; gap: 20px; }
.connection { display: flex; align-items: center; gap: 7px; color: #697386; font-size: 12px; }
.connection i { width: 8px; height: 8px; border-radius: 50%; background: #c7ced8; }
.connection.ok i { background: var(--green); }

.main { flex: 1; min-height: 0; padding: 0 clamp(60px, 6.5vw, 200px) 14px; overflow: hidden; }
.page { height: 100%; min-height: 0; }
#purchasePage.active { display: flex; flex-direction: column; }
.purchase-config { flex: 0 0 auto; padding: 18px 0 15px; display: grid; grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr); column-gap: 14px; row-gap: 13px; border-bottom: 1px solid var(--line); background: #fff; }
.left, .right { min-width: 0; }
.divider { background: var(--line); }
.toolbar { display: flex; align-items: center; justify-content: flex-start; gap: 12px; margin-bottom: 14px; }
.fixed-mode { height: 38px; display: inline-flex; align-items: center; padding: 0 16px; border: 1px solid #dfe3e9; border-radius: 999px; color: #596273; background: #f3f4f6; font-size: 13px; font-weight: 700; white-space: nowrap; }
.seg { height: 42px; display: grid; grid-template-columns: 1fr 1fr; padding: 2px; border: 1px solid #dce1e9; border-radius: 10px; background: #f5f7fa; overflow: hidden; }
.seg button { min-width: 70px; border: 0; border-radius: 8px; background: transparent; color: #7a8495; font-weight: 650; }
.seg button.on { background: #fff; color: var(--blue); box-shadow: 0 1px 4px rgba(31,35,41,.12); }
.seg button:disabled { opacity: 1; }
.info-btn { height: 38px; padding: 0 16px; border: 1px solid #bfd0ff; border-radius: 9px; color: var(--blue); background: var(--blue-soft); font-weight: 700; cursor: pointer; }
.info-btn:not(.ok) { color: var(--blue); border-color: #d7deea; background: #fff; }
.proxy-mini { height: 38px; display: inline-flex; align-items: center; gap: 6px; padding: 0 13px; border: 1px solid #d7deea; border-radius: 9px; color: #596273; background: #fff; font-weight: 700; cursor: pointer; }
.proxy-mini i { width: 7px; height: 7px; border-radius: 50%; background: #c3c9d4; }
.proxy-mini.on i { background: #00a39b; }
.proxy-mini:hover { color: var(--blue); border-color: #bfd0ff; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 14px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 14px; }
.product-location { gap: 18px; margin: 0; }
.field { min-width: 0; display: flex; flex-direction: column; gap: 7px; font-size: 14px; font-weight: 650; }
.field input, .field select, .select-like { width: 100%; height: 44px; padding: 0 13px; border: 1.5px solid var(--field); border-radius: 9px; background: #fff; font-weight: 400; }
.field input:focus { outline: 2px solid #9bb8ff; border-color: var(--blue); }
.field select { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.custom-select { position: relative; width: 100%; font-weight: 400; }
.custom-select-trigger { width: 100%; height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; border: 1.5px solid var(--field); border-radius: 9px; background: #fff; cursor: pointer; text-align: left; }
.custom-select-trigger:focus-visible { outline: 2px solid #9bb8ff; border-color: var(--blue); }
.custom-select-trigger:disabled { color: #9ca5b3; background: #f7f8fa; }
.custom-select-trigger svg, .select-with-arrow svg, .installment-provider svg { width: 17px; height: 17px; fill: none; stroke: #667085; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .16s; }
.custom-select.open .custom-select-trigger svg, .select-with-arrow.open svg { transform: rotate(180deg); }
.custom-select-menu { position: absolute; z-index: 60; top: calc(100% + 6px); left: 0; right: 0; display: none; max-height: 248px; overflow-y: auto; padding: 6px; border: 1px solid #dce1e9; border-radius: 11px; background: #fff; box-shadow: 0 15px 36px rgba(31,35,41,.16); }
.custom-select.open .custom-select-menu { display: grid; gap: 2px; }
.custom-select-menu button { min-height: 36px; padding: 7px 10px; border: 0; border-radius: 8px; background: transparent; text-align: left; cursor: pointer; }
.custom-select-menu button:hover { color: var(--blue); background: var(--blue-soft); }
.custom-select-menu button.selected { color: var(--blue); background: var(--blue-soft); font-weight: 700; }
.select-like { cursor: pointer; text-align: left; }
.select-with-arrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.multi, .payment-picker { position: relative; font-weight: 400; }
.panel, .payment-panel { position: absolute; z-index: 70; top: calc(100% + 7px); left: 0; right: 0; width: 100%; padding: 8px; border: 1px solid #dce1e9; border-radius: 12px; background: #fff; box-shadow: 0 18px 42px rgba(31,35,41,.18); }
.panel-tools { display: flex; gap: 7px; padding: 3px 3px 8px; border-bottom: 1px solid var(--line); }
.panel-tools button { padding: 5px 9px; border: 1px solid var(--line); border-radius: 7px; background: #fff; cursor: pointer; }
.store-list { max-height: 270px; overflow-y: auto; padding-top: 5px; }
.store-list label { min-height: 44px; display: grid; grid-template-columns: 18px minmax(0,1fr); align-items: center; gap: 9px; padding: 6px 9px; border-radius: 8px; font-size: 13px; cursor: pointer; }
.store-list label:hover { background: #f6f8fb; }
.store-list label.selected { background: var(--blue-soft); }
.store-list input { position: absolute; opacity: 0; }
.store-list label > i { position: relative; width: 17px; height: 17px; border: 1.5px solid #aab2c0; border-radius: 5px; background: #fff; }
.store-list label.selected > i { border-color: var(--blue); background: var(--blue); }
.store-list label.selected > i::after { content: ""; position: absolute; left: 4px; top: 1px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.store-list label > span { min-width: 0; display: flex; align-items: baseline; gap: 7px; }
.store-list label b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.store-list small { color: var(--muted); font-size: 11px; }
.store-list em { color: var(--orange); font-size: 11px; font-style: normal; white-space: nowrap; }
.store-list em.available { color: var(--green); font-weight: 700; }
.stores-empty { padding: 26px 10px; text-align: center; }
.right-head { height: 42px; display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.right-head h2 { margin: 0 auto 0 0; font-size: 25px; }
.right-head .btn { height: 42px; padding: 0 17px; }
.checkout-mode { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: #f4f6f9; }
.checkout-mode button { min-width: 70px; height: 32px; padding: 0 10px; border: 0; border-radius: 7px; color: #697386; background: transparent; font-size: 13px; font-weight: 700; cursor: pointer; }
.checkout-mode button.active { color: var(--blue); background: #fff; box-shadow: 0 1px 4px rgba(25, 53, 92, .12); }
.checkout-mode button:disabled { cursor: not-allowed; opacity: .55; }
.account-panel.guest-mode .account-extra { grid-template-columns: minmax(0, 1fr); }
.account-field { margin-bottom: 14px; }
.account-picker { position: relative; font-weight: 400; }
.account-toggle { height: 50px; }
.account-toggle:disabled { cursor: not-allowed; opacity: .6; }
.account-current, .account-option { min-width: 0; display: flex; align-items: center; gap: 10px; }
.account-current { flex: 1; }
.account-mail { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.account-placeholder { color: var(--muted); }
.account-dot { flex: 0 0 auto; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: var(--blue); background: var(--blue-soft); font-size: 13px; font-weight: 750; }
.account-badge { flex: 0 0 auto; padding: 3px 9px; border-radius: 12px; color: #596273; background: #f0f2f5; font-size: 12px; font-weight: 650; white-space: nowrap; }
.account-badge.done { color: #15803d; background: var(--green-soft); }
.account-badge.current { color: var(--blue); background: #dbe6ff; }
.account-menu { max-height: 360px; overflow-y: auto; }
.account-options { display: grid; gap: 2px; }
.account-option { width: 100%; min-height: 46px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; font-size: 15px; cursor: pointer; }
.account-option:hover { background: #f5f7fa; }
.account-option.selected { background: var(--blue-soft); font-weight: 650; }
.account-menu-empty { padding: 14px 10px; color: var(--muted); font-size: 13px; }
.account-add-link { width: 100%; min-height: 42px; display: flex; align-items: center; gap: 8px; margin-top: 6px; padding: 0 10px; border: 0; border-top: 1px solid #edf0f4; border-radius: 0 0 8px 8px; background: transparent; color: var(--blue); font-weight: 650; cursor: pointer; }
.account-add-link:hover { background: var(--blue-soft); }
.account-add-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.field-hint { color: var(--muted); font-size: 12.5px; font-weight: 400; }
.account-extra { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 18px; }
.panel-switch { height: 44px; font-size: 14px; }
.input-wrap { position: relative; display: block; }
.input-wrap input { padding-right: 42px; }
.eye { position: absolute; right: 4px; top: 3px; width: 38px; height: 38px; display: grid; place-items: center; border: 0; background: transparent; color: #8a94a3; cursor: pointer; }
.eye svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.eye.revealed { color: var(--blue); }
.payment-panel { max-height: 420px; overflow-y: auto; }
.payment-option, .installment-provider, .term-option { width: 100%; min-height: 40px; display: flex; align-items: center; justify-content: space-between; padding: 0 11px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; text-align: left; }
.payment-option:hover, .installment-provider:hover, .term-option:hover { color: var(--blue); background: var(--blue-soft); }
.payment-option.selected { color: var(--blue); background: var(--blue-soft); font-weight: 700; }
.installment-group { border-top: 1px solid #edf0f4; }
.installment-group.open .installment-provider svg { transform: rotate(90deg); }
.installment-group.selected .installment-provider { color: var(--blue); font-weight: 700; }
.installment-terms { display: none; grid-template-columns: 1fr; gap: 2px; padding: 1px 7px 7px; }
.installment-group.open .installment-terms { display: grid; }
.term-option { justify-content: flex-start; min-height: 36px; }
.term-option i { display: none; }
.term-option.selected { color: var(--blue); background: var(--blue-soft); font-weight: 750; }
.summary { grid-column: 1 / -1; padding: 11px 15px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: #4f5968; background: #fff; text-align: center; font-size: 15px; font-weight: 750; }
.actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; }
.actions .center { display: flex; gap: 16px; }
.btn { border: 0; border-radius: 9px; padding: 11px 22px; color: #fff; font-weight: 700; cursor: pointer; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary, .btn.green { background: var(--blue); }
.btn.cyan { background: var(--cyan); }
.btn.pale { color: var(--blue); background: var(--blue-soft); }
.btn.danger, .btn.red { background: var(--red); }
.btn.warning, .btn.orange { background: var(--orange); }
.btn.ghost { color: #3d4758; border: 1.5px solid var(--field); background: #fff; }
.btn.light { color: #465163; background: #eef1f5; }
.btn.big { min-width: 190px; height: 48px; font-size: 16px; }
.actions > .danger { width: 150px; padding-left: 12px; padding-right: 12px; }
.actions .center { grid-column: 2; justify-self: center; }
.actions > .danger { grid-column: 3; justify-self: end; }
.text-btn { border: 0; background: transparent; color: var(--muted); }

.logs-area { flex: 1; min-height: 0; padding-top: 16px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.col { min-height: 0; display: flex; flex-direction: column; }
.col-head { flex: 0 0 38px; display: flex; align-items: center; gap: 9px; }
.col-head h3 { margin: 0; font-size: 18px; }
.icon-btn { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 9px; background: #fff; cursor: pointer; }
.icon-btn.off { opacity: .4; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #dce1e8; }
.dot.on { background: var(--cyan); animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.log { flex: 1; min-height: 0; overflow-y: auto; border: 1px solid var(--line); border-radius: 11px; background: #fbfcfe; padding: 11px 13px; font: 13px/1.55 "SF Mono", Menlo, monospace; }
.empty { margin-top: 100px; color: #a2aab6; text-align: center; }
.entry { padding: 7px 0; border-bottom: 1px dashed var(--line); white-space: pre-wrap; color: #596477; }
.entry .time { color: var(--muted); }
.entry.ok, .success b { color: var(--green); font-weight: 750; }
.entry.warn { color: var(--orange); font-weight: 700; }
.entry.error { color: var(--red); font-weight: 750; }
.success { padding: 8px 0; border-bottom: 1px dashed var(--line); }

#watchPage { padding-top: 18px; display: flex; flex-direction: column; min-height: 0; }
.watch-controls { flex: 0 0 auto; padding-bottom: 0; }
.watch-toolbar { min-height: 42px; display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; }
.watch-proxy { min-width: 350px; height: 38px; display: flex; align-items: center; justify-content: flex-end; gap: 9px; padding: 0 7px 0 13px; border: 1px solid var(--line); border-radius: 10px; color: #596273; font-size: 12px; }
.watch-proxy b { color: #7b8495; }
.watch-proxy b.on { color: #008d87; }
.watch-proxy code { max-width: 270px; overflow: hidden; color: #667085; text-overflow: ellipsis; white-space: nowrap; }
.watch-proxy button { height: 28px; padding: 0 10px; border: 0; border-radius: 7px; color: var(--blue); background: var(--blue-soft); font-weight: 700; cursor: pointer; }
.watch-grid { display: grid; grid-template-columns: minmax(250px,1.15fr) minmax(150px,.65fr) minmax(240px,1fr) auto auto auto; align-items: end; gap: 11px; }
.watch-product-field .select-like span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.watch-action { height: 44px; padding: 0 18px; white-space: nowrap; }
.watch-summary { margin-top: 14px; min-height: 50px; display: flex; align-items: center; justify-content: center; padding: 12px 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: #445064; font-size: 13px; font-weight: 700; text-align: center; }
.watch-summary strong { color: var(--blue); }
.release-note { margin-top: 12px; padding: 9px 12px; border-radius: 8px; color: #9a5b00; background: #fff7e6; font-size: 13px; font-weight: 650; }
.watch-task-section { flex: 1; min-height: 0; display: flex; flex-direction: column; padding-top: 15px; }
.watch-task-toolbar { min-height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.watch-task-toolbar h3 { margin: 0; font-size: 16px; }
.watch-task-toolbar h3 small { margin-left: 8px; color: #8a93a2; font-size: 12px; font-weight: 500; }
.watch-legends { display: flex; align-items: center; gap: 10px; }
.stock-legend { padding: 4px 9px; border-radius: 8px; font-size: 12px; font-weight: 700; }
.stock-legend.available { color: #0a8a42; background: #eaf8ef; }
.stock-legend.unavailable { color: #8b95a5; background: #f1f3f6; }
.stock-legend.unqueried { color: #a96500; background: #fff6e8; }
.watch-legends .btn { height: 34px; padding: 0 12px; }
.watch-delete-all { color: var(--red); border: 1px solid #ffc5c2; background: #fff; }
.watch-delete-all:disabled { cursor: not-allowed; opacity: .45; }
.watch-results { flex: 1; min-height: 0; margin-top: 16px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.watch-task-head, .watch-task-row { display: grid; grid-template-columns: minmax(220px,1.12fr) minmax(120px,.58fr) minmax(105px,.5fr) minmax(105px,.52fr) minmax(320px,1.65fr) 84px; align-items: center; column-gap: 15px; }
.watch-task-head { flex: 0 0 48px; padding: 0 16px; border-bottom: 1px solid var(--line); color: #667085; background: #f7f8fa; font-size: 12px; font-weight: 700; }
.watch-task-head > span { height: 100%; display: flex; align-items: center; line-height: 1; transform: translateY(4px); }
.table-body { flex: 1; min-height: 0; overflow-y: auto; }
.watch-task-row { min-height: 82px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 13px; }
.watch-task-row > span { min-width: 0; }
.task-products, .task-cities, .task-last { display: flex; flex-direction: column; gap: 4px; }
.task-products b, .task-cities b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-products small, .task-cities small, .task-last small, .task-inventory small { color: #8791a1; font-size: 11px; }
.task-products code { color: #8b95a5; font-size: 10px; }
.task-status { display: inline-flex; width: fit-content; padding: 5px 9px; border-radius: 999px; color: #008d87; background: var(--cyan-soft); font-style: normal; font-weight: 700; }
.task-status.limited { color: #c56800; background: #fff4e5; }
.task-status.paused, .task-status.ready { color: #778293; background: #f0f2f5; }
.task-status.available { color: #0b8e47; background: #e5f8eb; }
.task-error { display: block; margin-top: 5px; overflow: hidden; color: var(--red); text-overflow: ellipsis; white-space: nowrap; }
.task-inventory { display: grid; gap: 5px; }
.stock-group { min-width: 0; display: flex; align-items: center; gap: 7px; }
.stock-group > small { flex: 0 0 70px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stock-group > div { display: flex; flex-wrap: wrap; gap: 5px; }
.store-stock { padding: 4px 8px; border: 1px solid #dce2e9; border-radius: 8px; color: #8b95a5; background: #f3f5f7; font-size: 11px; font-weight: 650; white-space: nowrap; }
.store-stock.available { color: #0b8e47; border-color: #a8dfba; background: #ecf9f0; }
.store-stock.unqueried { color: #a96500; border-color: #f0d39c; background: #fff8ea; }
.task-actions { display: flex; justify-content: flex-end; gap: 7px; }
.task-actions button { width: 34px; height: 34px; border: 0; border-radius: 9px; color: #008d87; background: var(--cyan-soft); cursor: pointer; font-weight: 800; }
.task-actions button.delete { color: var(--red); background: var(--red-soft); }
.empty-row { margin: 80px 0; color: #a0a8b5; text-align: center; }
.placeholder-page { padding: 70px 10%; }
.placeholder-page h2 { font-size: 34px; }
.placeholder-page p { color: var(--muted); }
.settings-page { padding: 34px 4%; overflow-y: auto; }
.settings-heading { margin-bottom: 28px; }
.settings-heading h2 { margin: 0 0 7px; font-size: 30px; }
.settings-heading p { margin: 0; color: var(--muted); }
.settings-section { max-width: 820px; padding: 24px 0; border-top: 1px solid var(--line); }
.settings-section h3 { margin: 0 0 8px; font-size: 20px; }
.bark-field { margin-top: 22px; }
.settings-switches { margin-top: 14px; }
.settings-numbers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 16px; }
.settings-numbers small { color: var(--muted); font-size: 12.5px; font-weight: 400; line-height: 1.5; }
.success-meta { color: #4f5968; }
.order-link { margin-top: 6px; height: 30px; padding: 0 12px; border: 0; border-radius: 8px; color: var(--blue); background: var(--blue-soft); font-weight: 650; cursor: pointer; }
.settings-switches .switch-row { margin: 0; }
.settings-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 22px; }

dialog { width: 500px; padding: 29px 33px; border: 0; border-radius: 18px; box-shadow: 0 24px 70px rgba(0,0,0,.24); }
dialog::backdrop { background: rgba(25,31,42,.4); }
dialog h2 { margin: 0 0 6px; font-size: 24px; }
dialog .field { margin-bottom: 14px; }
.dialog-close { position: absolute; right: 18px; top: 18px; }
.close-btn { width: 34px; height: 34px; border: 0; border-radius: 9px; background: #f2f4f7; color: #707b8c; cursor: pointer; font-size: 22px; }
.dialog-actions { display: flex; justify-content: center; gap: 13px; margin-top: 21px; }
.action-dialog { width: 520px; }
.action-product { margin: 20px 0; padding: 15px 17px; border-left: 4px solid var(--orange); background: var(--orange-soft); color: #b75f00; font-weight: 750; line-height: 1.6; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 0; border-top: 1px solid var(--line); cursor: pointer; }
.switch-row span { display: flex; flex-direction: column; gap: 5px; }
.switch-row small { color: var(--muted); font-size: 12px; font-weight: 400; }
.switch-row input, .auto-switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch-row i, .auto-switch i { position: relative; flex: 0 0 auto; width: 44px; height: 24px; border-radius: 999px; background: #cbd2dc; transition: .2s; }
.switch-row i::after, .auto-switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.22); transition: .2s; }
.switch-row input:checked + i, .auto-switch input:checked + i { background: var(--cyan); }
.switch-row input:checked + i::after, .auto-switch input:checked + i::after { transform: translateX(20px); }
.switch-row.compact { margin-top: 2px; padding-bottom: 3px; }
.proxy-dialog { width: 610px; }
.dialog-title { display: flex; align-items: center; gap: 13px; }
.dialog-title span { padding: 7px 11px; border-radius: 8px; color: #fff; background: var(--orange); font-size: 12px; font-weight: 750; }
.accounts-dialog { width: min(1040px,calc(100vw - 40px)); }
.accounts-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.accounts-head-actions, .auto-switch { display: flex; align-items: center; gap: 9px; }
.auto-switch { font-size: 13px; font-weight: 650; cursor: pointer; }
.auto-switch i { width: 40px; height: 22px; }
.auto-switch i::after { width: 16px; height: 16px; }
.auto-switch input:checked + i::after { transform: translateX(18px); }
.account-add-form { display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fafbfc; }
.account-add-form .field { margin: 0; }
.account-add { height: 44px; }
.account-list { display: grid; gap: 8px; max-height: 280px; overflow-y: auto; margin-top: 12px; }
.account-card { display: grid; grid-template-columns: 36px minmax(0,1fr) auto auto; align-items: center; gap: 10px; min-height: 58px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 11px; }
.account-card.active { border-color: #9bb8ff; background: var(--blue-soft); box-shadow: inset 3px 0 var(--blue); }
.account-avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; color: #fff; background: var(--blue); font-weight: 800; }
.account-copy { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.account-copy strong { overflow: hidden; text-overflow: ellipsis; }
.account-copy span, .account-result { color: var(--muted); font-size: 12px; }
.account-result.done { color: var(--green); font-weight: 750; }
.account-card-actions { display: flex; gap: 7px; }
.account-card-actions button { height: 33px; padding: 0 10px; border: 0; border-radius: 8px; cursor: pointer; }
.account-edit { color: var(--blue); background: var(--blue-soft); }
.account-delete { color: var(--red); background: var(--red-soft); font-size: 18px; }
.accounts-empty { padding: 28px; color: var(--muted); text-align: center; }
.watch-product-dialog { width: min(650px,calc(100vw - 48px)); }
.watch-choice-section { margin-top: 24px; }
.watch-choice-section h3 { margin: 0 0 12px; font-size: 16px; }
.choice-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.choice-chip { min-height: 42px; display: inline-flex; align-items: center; gap: 9px; padding: 0 14px; border: 1.5px solid var(--field); border-radius: 9px; background: #f8f9fb; cursor: pointer; font-weight: 650; }
.choice-chip input { position: absolute; opacity: 0; }
.choice-chip i { position: relative; width: 17px; height: 17px; border: 1.5px solid #9aa3af; border-radius: 4px; background: #fff; }
.choice-chip.selected { color: #087f7b; border-color: #63d8d1; background: var(--cyan-soft); }
.choice-chip.selected i { border-color: var(--cyan); background: var(--cyan); }
.choice-chip.selected i::after { content: ""; position: absolute; left: 4px; top: 1px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.watch-choice-note { margin-top: 20px; line-height: 1.55; }
.split-actions .btn { flex: 1; }
.cookie-warning { margin: 24px 0 6px; padding: 12px; border: 1px solid #ffbd73; border-radius: 9px; color: #c85e00; background: #fff7ed; font-weight: 750; }
.success-dialog, .status-dialog { width: 460px; text-align: center; }
.success-mark, .status-mark { width: 62px; height: 62px; margin: 0 auto 15px; display: grid; place-items: center; border-radius: 50%; color: #fff; font-size: 35px; font-weight: 800; }
.success-mark { background: var(--green); }
.status-mark.warning { background: var(--orange); }
.status-mark.error { background: var(--red); }
.status-mark.verification { background: var(--blue); font-size: 18px; }
.order-number { margin: 20px 0 12px; padding: 16px; border: 1px solid #afe1bf; border-radius: 12px; background: var(--green-soft); }
.order-number span { display: block; color: var(--muted); }
.order-number strong { color: var(--green); font-size: 24px; }
.verification-code { width: 230px; height: 56px; margin: 10px auto; display: block; border: 1.5px solid var(--field); border-radius: 10px; text-align: center; font-size: 27px; letter-spacing: 9px; }
.toast { position: fixed; left: 50%; bottom: 25px; transform: translateX(-50%); z-index: 100; padding: 11px 20px; border-radius: 999px; color: #fff; background: var(--cyan); box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.toast.error { background: var(--red); }

@media (max-width: 1320px) {
  .topbar { grid-template-columns: 220px 1fr 150px; padding: 0 12px; }
  .topbar-right .connection { display: none; }
  .nav { gap: 2px; }
  .main { padding-left: clamp(48px, 5vw, 72px); padding-right: clamp(48px, 5vw, 72px); }
  .purchase-config { column-gap: 10px; }
  .watch-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .watch-action { grid-row: 2; }
  .watch-task-head, .watch-task-row { grid-template-columns: minmax(190px,1fr) 100px 100px 100px minmax(260px,1.4fr) 76px; }
}

/* ---------- account manager: table with inline editing ---------- */
.accounts-head p { margin: 4px 0 0; }
.add-row-btn { height: 40px; padding: 0 16px; display: inline-flex; align-items: center; gap: 6px; }
.add-row-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.account-table { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.account-th, .account-row { display: grid; grid-template-columns: 48px minmax(0,1.5fr) minmax(0,1.1fr) 84px 200px; align-items: center; gap: 12px; padding: 0 16px; }
.account-th { height: 42px; background: #f7f8fa; color: #646d7e; font-size: 13px; font-weight: 650; }
.account-th span:last-child { text-align: right; }
.account-rows { max-height: 380px; overflow-y: auto; }
.account-row { min-height: 62px; border-top: 1px solid #edf0f4; font-size: 15px; }
.account-row.active { background: #f5f8ff; }
.account-row.active .account-mail { font-weight: 650; }
.account-row.editing { min-height: 66px; background: #fff; box-shadow: inset 0 0 0 2px var(--blue); }
.account-num { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; color: #fff; background: var(--blue); font-size: 13px; font-weight: 750; }
.account-id { min-width: 0; display: flex; align-items: center; gap: 8px; }
.account-pw { min-width: 0; display: flex; align-items: center; gap: 6px; color: #3d4758; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 14px; }
.pw-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pw-eye { flex: 0 0 auto; width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: #8a94a3; cursor: pointer; }
.pw-eye:hover { background: #f2f4f7; }
.pw-eye.revealed { color: var(--blue); }
.pw-eye svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.account-success { color: #646d7e; font-size: 14px; }
.account-success.done { color: var(--green); font-weight: 650; }
.account-actions { display: flex; justify-content: flex-end; gap: 6px; }
.account-actions .btn { height: 32px; padding: 0 12px; border-radius: 8px; font-size: 13px; }
.account-actions .btn:disabled { opacity: .4; cursor: not-allowed; }
.btn.soft-danger { color: #c62828; background: var(--red-soft); }
.account-input { width: 100%; height: 38px; padding: 0 11px; border: 1.5px solid var(--field); border-radius: 8px; background: #fff; font-size: 14px; }
.account-input:focus { outline: 2px solid #9bb8ff; border-color: var(--blue); }
.account-input-wrap { position: relative; min-width: 0; }
.account-input-wrap .account-input { padding-right: 40px; font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.account-input-wrap .pw-eye { position: absolute; right: 3px; top: 3px; }
.accounts-empty { padding: 28px; border-top: 1px solid #edf0f4; }
.accounts-footer { margin: 14px 0 0; }
.account-confirm-dialog { width: 480px; }
.confirm-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.confirm-head h2 { margin: 0; font-size: 21px; }
.confirm-icon { flex: 0 0 auto; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: var(--blue); background: var(--blue-soft); }
.confirm-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.confirm-body > p { margin: 0 0 10px; color: #3d4758; line-height: 1.6; }
.confirm-account { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid #dbe6ff; border-radius: 10px; background: #f5f8ff; }
.confirm-account strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.confirm-rows { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.confirm-rows > div { display: grid; grid-template-columns: 72px minmax(0,1fr); gap: 12px; padding: 10px 14px; font-size: 14px; }
.confirm-rows > div + div { border-top: 1px solid #edf0f4; }
.confirm-rows span { color: #646d7e; }
.confirm-rows strong { font-weight: 600; overflow-wrap: anywhere; }
.confirm-rows em { color: #646d7e; font-style: normal; font-weight: 400; }
.confirm-rows .changed { background: #fffaf0; }
.confirm-rows .changed strong { color: #b45309; }
.confirm-body .confirm-note { margin: 12px 0 0; color: #646d7e; font-size: 13px; }
.confirm-actions { display: flex; gap: 12px; margin-top: 22px; }
.confirm-actions .btn { flex: 1; height: 44px; }
/* 库存监控抢购 status sits on its own line under the heading. */
.col-head { flex: 0 0 auto; min-height: 38px; flex-wrap: wrap; row-gap: 4px; }
.col-head h3 { flex: 0 0 auto; white-space: nowrap; }
#checkInfo { flex: 1 1 100%; line-height: 1.5; }
/* 设置页：左侧分类 + 右侧内容 */
.settings-page:not([hidden]) { display: flex; padding: 0; overflow: hidden; }
.settings-nav { flex: 0 0 236px; padding: 28px 16px; border-right: 1px solid var(--line); background: #fafbfc; overflow-y: auto; }
.settings-nav-title { margin: 0 12px 12px; color: var(--muted); font-size: 13px; }
.settings-nav-item { width: 100%; display: flex; align-items: center; gap: 12px; margin-bottom: 4px; padding: 11px 12px; border: 0; border-radius: 10px; background: transparent; color: #3d4758; font: inherit; font-size: 16px; font-weight: 600; text-align: left; cursor: pointer; }
.settings-nav-item svg { width: 19px; height: 19px; flex: 0 0 auto; }
.settings-nav-item:hover { background: #f0f2f6; }
.settings-nav-item.active { background: #eef3ff; color: #2858d6; }
.settings-body { flex: 1; min-width: 0; padding: 32px 56px 48px; overflow-y: auto; }
.settings-panel { max-width: 900px; }
.settings-panel h2 { margin: 0 0 6px; font-size: 26px; }
.settings-title-row { display: flex; align-items: center; gap: 14px; }
.settings-title-row h2 { margin-bottom: 0; }
.proxy-saved { color: #0a9a4b; font-size: 13px; font-weight: 750; }
.settings-sub { margin: 0 0 18px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.settings-group { margin: 26px 0 2px; color: #8a93a3; font-size: 13px; font-weight: 700; }
.settings-panel .switch-row, .set-row { padding: 18px 0; border-top: 1px solid var(--line); }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.set-row > span:first-child { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.set-row small { color: var(--muted); font-size: 12.5px; font-weight: 400; line-height: 1.5; }
.set-num { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; color: #596273; font-size: 14px; }
.set-num input { width: 84px; height: 38px; border: 1.5px solid var(--field); border-radius: 9px; text-align: center; font: inherit; font-size: 15px; }
.settings-card { margin-bottom: 16px; padding: 0 20px; border: 1px solid #e4e8ef; border-radius: 12px; }
.settings-card .set-row { border-top: 0; }
.settings-card .set-row > span { min-height: 52px; justify-content: center; }
.settings-card .set-row > .btn { flex: 0 0 78px; }
.settings-card.open { padding: 18px 20px 20px; border: 1.5px solid #c9d8ff; }
.settings-card-head { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.settings-card-head small { color: var(--muted); font-size: 12.5px; }
.settings-card > .field { margin-bottom: 14px; }
.settings-card .switch-row { margin-top: 4px; }
.settings-card .field-hint { margin: 10px 0 0; }
.settings-pill { margin-left: 6px; padding: 2px 9px; border-radius: 10px; background: #f0f2f5; color: #596273; font-size: 12px; font-style: normal; font-weight: 650; vertical-align: 2px; }
.settings-pill.on { background: #e3f7f5; color: #0f8a83; }
.settings-panel .bark-field { margin: 4px 0 14px; }
/* 设置页铺满内容区：分类栏贴左边、到底部 */
.main:has(> .settings-page:not([hidden])) { padding: 0; }
/* 高级抢购：和库存监控保持相同的白底、扁平分区布局。 */
.advanced-page:not([hidden]) { display: flex; flex-direction: column; min-height: 0; overflow: hidden; padding-top: 18px; gap: 15px; background: #fff; }
.advanced-counts { display: flex; flex: 0 0 auto; gap: 7px; }
.advanced-counts span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border: 1px solid #e6eaf1; border-radius: 9px; background: #fff; color: #697386; font-size: 11px; white-space: nowrap; }
.advanced-counts i { width: 7px; height: 7px; border-radius: 50%; background: #9aa4b4; }
.advanced-counts .ready i { background: #2f6df6; }.advanced-counts .running i { background: #0aa19a; }.advanced-counts .problem i { background: #e24c4c; }
.advanced-counts b { color: #252d39; font-size: 13px; }
.advanced-console-toolbar { flex: 0 0 auto; min-height: 58px; display: flex; align-items: center; gap: 8px; padding: 0 0 15px; border-bottom: 1px solid var(--line); }
.advanced-console-toolbar .btn { height: 36px; padding: 0 14px; font-size: 12px; }
.advanced-console-spacer { flex: 1; }
.advanced-config-summary { min-width: 0; max-width: 38%; display: flex; align-items: center; gap: 9px; padding: 7px 10px; color: #6d7789; font-size: 11px; }
.advanced-config-summary b,.advanced-config-summary span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.advanced-config-summary b { color: #303948; }.advanced-config-summary i { flex: 0 0 auto; width: 1px; height: 16px; background: #dce2eb; }
.advanced-task-card,.advanced-log-card { min-height: 0; background: #fff; overflow: hidden; }
.advanced-task-card { flex: 1 1 55%; display: flex; flex-direction: column; }
.advanced-task-title { flex: 0 0 42px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0; }
.advanced-task-title > div { display: flex; align-items: baseline; gap: 9px; min-width: 0; }.advanced-task-title h3 { margin: 0; font-size: 14px; }.advanced-task-title small,.advanced-task-title > span { color: var(--muted); font-size: 10.5px; }
.advanced-table-scroll { flex: 1; min-height: 0; overflow: auto; border: 1px solid var(--line); border-radius: 12px; }
.advanced-task-grid { min-width: 1180px; display: grid; grid-template-columns: 38px 170px minmax(180px,1.05fr) 116px 100px 92px 92px minmax(245px,1.35fr) 108px; gap: 8px; align-items: center; padding: 9px 12px; }
.advanced-task-grid-head { position: sticky; top: 0; z-index: 2; min-height: 38px; border-bottom: 1px solid var(--line); background: #f5f7fa; color: #748095; font-size: 10.5px; font-weight: 700; }
.advanced-account-row { min-height: 68px; border-bottom: 1px solid #edf0f4; cursor: pointer; }
.advanced-account-row:hover { background: #f8fbff; }.advanced-account-row.selected { background: #eef5ff; box-shadow: inset 3px 0 #2f6df6; }
.advanced-row-number { color: #8b95a5; font-size: 11px; text-align: center; }
.advanced-account-cell,.advanced-message-cell { min-width: 0; }.advanced-account-id { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 700; }.advanced-account-cell small,.advanced-message-cell small { display: block; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 10px; }
.advanced-product-tags { display: flex; flex-wrap: wrap; gap: 4px; }.advanced-product-tag { max-width: 100%; padding: 3px 6px; border-radius: 6px; background: #edf4ff; color: #3561aa; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.advanced-cell-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #455064; font-size: 11px; }
.advanced-state { display: inline-flex; align-items: center; gap: 5px; color: #8791a2; font-size: 11px; font-style: normal; font-weight: 750; white-space: nowrap; }.advanced-state::before { content:""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.advanced-state.ready,.advanced-state.bagReady,.advanced-state.reviewReady,.advanced-state.orderCreated { color: #159658; }.advanced-state.preparing,.advanced-state.checkoutPreparing,.advanced-state.submitting { color: #c17b12; }.advanced-state.watching { color: #008f88; }.advanced-state.expired,.advanced-state.submitUnknown,.advanced-state.submitRejected,.advanced-state.testCompleted { color: #d34b4b; }
.advanced-message-cell strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #374255; font-size: 11px; }
.advanced-actions { display: flex; justify-content: flex-end; gap: 5px; }.advanced-actions .btn { width: 31px; height: 31px; display: grid; place-items: center; padding: 0; border-radius: 8px; font-size: 11px; }.advanced-actions .advanced-start-one { width: auto; min-width: 48px; padding: 0 8px; }
.advanced-empty { min-width: 1180px; padding: 35px 20px; color: var(--muted); font-size: 12px; text-align: center; }
.advanced-log-card { flex: 0 1 255px; display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.advanced-log-head { flex: 0 0 44px; display: flex; align-items: center; gap: 14px; padding: 0; }.advanced-log-head h3 { margin: 0; font-size: 14px; white-space: nowrap; }.advanced-log-tabs { display: flex; gap: 3px; }.advanced-log-tabs button,.advanced-log-actions button { border: 0; border-radius: 7px; background: transparent; color: #707b8e; padding: 6px 9px; font-size: 10.5px; cursor: pointer; }.advanced-log-tabs button.active { color: #2467dc; background: #eaf3ff; font-weight: 750; }.advanced-log-actions { margin-left: auto; display: flex; gap: 4px; }.advanced-log-actions button { border: 1px solid #e0e5ed; background: #fff; }
.advanced-live-log,.advanced-log-viewer { flex: 1; min-height: 0; overflow: auto; padding: 8px 13px; border: 1px solid var(--line); border-radius: 11px 11px 0 0; background: #fbfcfe; font: 11px/1.55 "SF Mono",Menlo,monospace; }.advanced-log-line { display: grid; grid-template-columns: 70px 64px minmax(0,1fr); gap: 7px; padding: 2px 0; color: #566176; }.advanced-log-line time { color: #8d97a7; }.advanced-log-line em { color: #637a9e; font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.advanced-log-line.ok span { color: #168454; }.advanced-log-line.warn span { color: #a96d08; }.advanced-log-line.error span { color: #d34747; font-weight: 650; }
.advanced-log-foot { flex: 0 0 29px; display: flex; align-items: center; gap: 18px; padding: 0 13px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 11px 11px; color: #7f899a; font-size: 10px; }.advanced-live-indicator { color: #168454; font-weight: 700; }.advanced-live-indicator::before { content:""; display:inline-block; width:7px; height:7px; margin-right:6px; border-radius:50%; background:#16a161; box-shadow:0 0 0 3px rgba(22,161,97,.1); }
.advanced-context-menu { position: fixed; z-index: 140; width: 168px; padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 13px 38px rgba(31,52,92,.18); }.advanced-context-menu button { width: 100%; padding: 8px 10px; border: 0; border-radius: 7px; background: transparent; color: #435066; text-align: left; font-size: 11px; cursor: pointer; }.advanced-context-menu button:hover { background: #f1f5fb; }.advanced-context-menu button.danger { color: #d34646; }
.advanced-log-dialog { width: min(1060px,88vw); height: min(720px,82vh); padding: 0; border: 0; border-radius: 15px; overflow: hidden; }.advanced-log-dialog form { height: 100%; display: flex; flex-direction: column; }.advanced-log-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; padding: 20px 24px 15px; border-bottom: 1px solid var(--line); }.advanced-log-dialog-head h2 { margin: 0 0 4px; font-size: 20px; }.advanced-log-dialog-head p { margin: 0; color: var(--muted); font-size: 11px; }.advanced-log-dialog .advanced-log-viewer { margin: 14px 18px 0; border: 1px solid var(--line); border-radius: 10px; }.advanced-log-dialog .dialog-actions { padding: 14px 18px 18px; }
@media(max-width:1250px){.advanced-page:not([hidden]){padding-top:16px}.advanced-task-grid{grid-template-columns:34px 155px minmax(170px,1fr) 98px 88px 82px 86px minmax(220px,1.2fr) 100px}.advanced-task-title>span{display:none}.advanced-config-summary{display:none}.advanced-counts span{padding:7px 8px}}

/* 强制自动更新遮罩 */
.update-overlay { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; background: rgba(15, 23, 42, .55); backdrop-filter: blur(4px); }
.update-overlay[hidden] { display: none; }
.update-card { width: 420px; padding: 28px 30px; border-radius: 16px; background: #fff; box-shadow: 0 20px 60px rgba(15, 23, 42, .25); text-align: center; }
.update-title { margin: 0 0 10px; font-size: 20px; }
.update-text { margin: 0 0 16px; color: #475467; font-size: 14px; line-height: 1.6; }
.update-bar { height: 8px; border-radius: 999px; background: #eef2f7; overflow: hidden; }
.update-bar[hidden] { display: none; }
.update-bar i { display: block; height: 100%; width: 0; background: var(--blue); transition: width .2s; }
.update-hint { margin: 14px 0 0; color: #b54708; font-size: 12.5px; line-height: 1.6; text-align: left; }
.update-retry { margin-top: 16px; height: 36px; padding: 0 22px; border: 0; border-radius: 9px; color: #fff; background: var(--blue); font-weight: 700; cursor: pointer; }

.advanced-state.failed { color: #d34b4b; }
.advanced-state.stopped,.advanced-state.stopping,.advanced-state.ready { color: #778293; }
