:root {
  --ink: #18221d;
  --muted: #69746e;
  --line: #e5e9e5;
  --paper: #f4f6f3;
  --surface: #ffffff;
  --green: #1f6b4f;
  --green-dark: #14513b;
  --green-soft: #e5f1eb;
  --amber: #b67622;
  --amber-soft: #fbf0dc;
  --coral: #bd5b45;
  --coral-soft: #f9e9e5;
  --blue: #3c67a4;
  --blue-soft: #e9eff8;
  --shadow: 0 14px 40px rgba(24, 34, 29, .08);
  --radius: 18px;
}
* { box-sizing: border-box; }
html { min-width: 320px; background: var(--paper); }
body { margin: 0; color: var(--ink); background: var(--paper); font: 14px/1.5 Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
.hidden { display: none !important; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 232px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 28px 18px 20px; background: #17251f; color: #f7faf8; display: flex; flex-direction: column; }
.brand { display: flex; gap: 12px; align-items: center; padding: 0 10px 30px; }
.brand strong { display: block; font: 700 22px/1.1 Georgia, serif; letter-spacing: -.4px; }
.brand small { color: #91a49a; font-size: 11px; letter-spacing: .08em; }
.brand-mark { position: relative; display: inline-block; width: 34px; height: 34px; flex: 0 0 auto; }
.brand-mark i { position: absolute; left: 13px; top: 2px; width: 8px; height: 30px; border-radius: 99px; background: #e8b45a; transform-origin: center; }
.brand-mark i:nth-child(2) { transform: rotate(60deg); background: #dd7658; }
.brand-mark i:nth-child(3) { transform: rotate(120deg); background: #71ae91; }
.brand-mark.large { width: 48px; height: 48px; }
.brand-mark.large i { left: 19px; width: 10px; height: 44px; }
nav { display: grid; gap: 6px; }
.nav-item { border: 0; background: transparent; color: #aebdb5; padding: 12px 14px; border-radius: 12px; text-align: left; cursor: pointer; transition: .18s ease; }
.nav-item span { display: inline-grid; place-items: center; width: 25px; margin-right: 8px; font-size: 18px; }
.nav-item:hover { color: white; background: rgba(255,255,255,.06); }
.nav-item.active { color: white; background: #294438; box-shadow: inset 3px 0 #e8b45a; }
.sidebar-note { margin-top: auto; display: flex; gap: 10px; align-items: center; padding: 14px; border: 1px solid rgba(255,255,255,.08); border-radius: 14px; background: rgba(255,255,255,.035); }
.sidebar-note strong, .sidebar-note small { display: block; }
.sidebar-note strong { font-size: 12px; }
.sidebar-note small { color: #91a49a; font-size: 11px; }
.logout-button { margin-top: 9px; padding: 8px 12px; border: 0; border-radius: 9px; color: #91a49a; background: transparent; font-size: 11px; cursor: pointer; }
.logout-button:hover { color: white; background: rgba(255,255,255,.06); }
.pulse-dot { width: 9px; height: 9px; border-radius: 50%; background: #e8b45a; box-shadow: 0 0 0 5px rgba(232,180,90,.12); }
main { min-width: 0; }
.topbar { min-height: 112px; padding: 27px clamp(24px, 4vw, 54px) 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(244,246,243,.93); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(12px); }
.eyebrow { margin: 0 0 4px; color: #839087; font-size: 10px; font-weight: 800; letter-spacing: .16em; }
h1, h2, h3, p { margin-top: 0; }
.topbar h1 { margin: 0; font: 700 clamp(25px, 3vw, 34px)/1.15 Georgia, serif; letter-spacing: -.5px; }
.top-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.button { border: 1px solid transparent; border-radius: 11px; padding: 10px 16px; font-weight: 700; cursor: pointer; transition: transform .15s ease, background .15s ease, border-color .15s ease; }
.button:hover { transform: translateY(-1px); }
.button:disabled { cursor: not-allowed; opacity: .5; transform: none; }
.button.primary { color: white; background: var(--green); box-shadow: 0 7px 18px rgba(31,107,79,.18); }
.button.primary:hover { background: var(--green-dark); }
.button.ghost { border-color: #d9dfda; background: white; }
.button.ghost:hover { border-color: #bac6bf; }
.button.danger { color: var(--coral); border-color: #ecc7be; background: var(--coral-soft); }
.content { padding: 30px clamp(24px, 4vw, 54px) 48px; max-width: 1500px; margin: auto; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)); gap: 15px; margin-bottom: 22px; }
.metric-card { min-height: 108px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: flex; gap: 15px; align-items: center; box-shadow: 0 4px 16px rgba(24,34,29,.025); }
.metric-card.accent { color: white; background: var(--green); border-color: var(--green); }
.metric-card small, .metric-card strong { display: block; }
.metric-card small { margin-bottom: 3px; color: var(--muted); font-size: 12px; }
.metric-card.accent small { color: #c8ddd2; }
.metric-card strong { font: 700 29px/1 Georgia, serif; }
.metric-card em { display: block; margin-top: 6px; color: var(--muted); font-size: 10px; font-style: normal; white-space: nowrap; }
.metric-card.accent em { color: #d9e8e0; }
.metric-icon { width: 43px; height: 43px; border-radius: 13px; display: grid; place-items: center; background: rgba(255,255,255,.13); font-size: 20px; }
.metric-icon.amber { color: var(--amber); background: var(--amber-soft); }
.metric-icon.green { color: var(--green); background: var(--green-soft); }
.metric-icon.coral { color: var(--coral); background: var(--coral-soft); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 5px 20px rgba(24,34,29,.03); overflow: hidden; }
.panel-heading { min-height: 88px; padding: 21px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.panel-heading h2 { margin: 0 0 3px; font: 700 20px/1.2 Georgia, serif; }
.panel-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.filters { display: flex; flex-wrap: nowrap; justify-content: flex-end; gap: 3px; max-width: 100%; padding: 4px; background: var(--paper); border-radius: 10px; }
.filter { padding: 7px 11px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 700; cursor: pointer; }
.filter.active { color: var(--ink); background: white; box-shadow: 0 2px 7px rgba(24,34,29,.08); }
.filter-more { width: auto; min-width: 128px; height: 33px; padding: 0 30px 0 11px; border: 0; border-radius: 8px; color: var(--muted); background-color: transparent; font-size: 12px; font-weight: 700; cursor: pointer; }
.filter-more:hover, .filter-more:focus { color: var(--ink); background-color: rgba(255,255,255,.7); box-shadow: none; }
.filter-more.active { color: var(--ink); background-color: white; box-shadow: 0 2px 7px rgba(24,34,29,.08); }
.account-search-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px; padding: 11px 20px; border-bottom: 1px solid var(--line); background: #fbfcfb; }
.account-search { display: block; flex: 1 1 320px; min-width: 0; max-width: 560px; }
.account-search > input { height: 38px; }
.account-search .ant-input-search { width: 100%; }
.account-search .ant-input-search .ant-input-affix-wrapper,
.account-search .ant-input-search .ant-input-group-addon,
.account-search .ant-input-search .ant-input-search-btn,
.account-search .ant-input-search .ant-input-search-button { height: 38px; }
.account-search .ant-input-search .ant-input-search-btn { min-width: 38px; }
.account-search .ant-input-search .ant-input-affix-wrapper > input.ant-input { height: 100%; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.account-search-row .filters { flex: 0 1 auto; align-items: center; margin-left: auto; min-height: 38px; padding: 3px; }
.account-search-row .filters .ant-button-host:has(> .hidden) { display: none; }
.account-search-row .filter, .account-search-row .filter-more { height: 30px; padding-block: 0; }
.bulk-toolbar { min-height: 58px; padding: 10px 20px; display: flex; align-items: center; gap: 14px; border-bottom: 1px solid var(--line); background: #fbfcfb; }
.bulk-toolbar label { display: inline-flex; align-items: center; gap: 8px; color: #46534c; font-size: 12px; font-weight: 800; cursor: pointer; }
.bulk-toolbar input, .account-select { width: 17px; height: 17px; flex: 0 0 auto; accent-color: var(--green); cursor: pointer; }
.bulk-toolbar input:disabled, .account-select:disabled { cursor: not-allowed; opacity: .38; }
.bulk-toolbar > span { color: var(--muted); font-size: 11px; }
.bulk-toolbar > div { margin-left: auto; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.bulk-toolbar .button { padding: 8px 12px; font-size: 11px; }
.table-wrap { position: relative; min-height: 230px; overflow-x: auto; }
.account-table { width: 100%; min-width: 1040px; table-layout: fixed; border-collapse: collapse; white-space: normal; }
.account-table th { position: sticky; top: 0; z-index: 2; padding: 12px 14px; color: #89938e; background: #fbfcfb; border-bottom: 1px solid var(--line); text-align: left; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.account-table th:nth-child(1) { width: 25%; }
.account-table th:nth-child(2) { width: 18%; }
.account-table th:nth-child(3) { width: 14%; }
.account-table th:nth-child(4) { width: 16%; }
.account-table th:nth-child(5) { width: 27%; }
.account-table[data-platform="gmail"], .account-table[data-platform="gemini"] { min-width: 1300px; }
.account-table[data-platform="gmail"] th:nth-child(1), .account-table[data-platform="gemini"] th:nth-child(1) { width: 20%; }
.account-table[data-platform="gmail"] th:nth-child(2), .account-table[data-platform="gemini"] th:nth-child(2) { width: 13%; }
.account-table[data-platform="gmail"] th:nth-child(3), .account-table[data-platform="gemini"] th:nth-child(3) { width: 11%; }
.account-table[data-platform="gmail"] th:nth-child(4), .account-table[data-platform="gemini"] th:nth-child(4) { width: 10%; }
.account-table[data-platform="gmail"] th:nth-child(5), .account-table[data-platform="gemini"] th:nth-child(5) { width: 8%; }
.account-table[data-platform="gmail"] th:nth-child(6), .account-table[data-platform="gemini"] th:nth-child(6) { width: 8%; }
.account-table[data-platform="gmail"] th:nth-child(7), .account-table[data-platform="gemini"] th:nth-child(7) { width: 11%; }
.account-table[data-platform="gmail"] th:nth-child(8), .account-table[data-platform="gemini"] th:nth-child(8) { width: 19%; }
.account-table[data-platform="openai"] { min-width: 1180px; }
.account-table[data-platform="openai"] th:nth-child(1) { width: 21%; }
.account-table[data-platform="openai"] th:nth-child(2) { width: 11%; }
.account-table[data-platform="openai"] th:nth-child(3) { width: 12%; }
.account-table[data-platform="openai"] th:nth-child(4) { width: 11%; }
.account-table[data-platform="openai"] th:nth-child(5) { width: 11%; }
.account-table[data-platform="openai"] th:nth-child(6) { width: 13%; }
.account-table[data-platform="openai"] th:nth-child(7) { width: 21%; }
.account-table td { min-width: 0; padding: 15px 14px; border-bottom: 1px solid #edf0ed; vertical-align: top; }
.account-table tbody tr:last-child td { border-bottom: 0; }
.account-table tbody tr { transition: background .15s, box-shadow .15s; }
.account-table tbody tr:hover { background: #f9fbfa; box-shadow: inset 3px 0 0 rgba(31,107,79,.24); }
.identity { min-width: 0; display: flex; align-items: flex-start; gap: 11px; }
.provider-logo { width: 34px; height: 34px; display: inline-grid; place-items: center; border-radius: 10px; font-weight: 900; font-style: normal; }
.provider-logo.gmail { color: #a94438; background: #f9e9e5; }
.provider-logo.outlook { color: #315f99; background: #e7eef8; }
.provider-logo.mail-api { color: #5a4b9d; background: #eeeafd; }
.provider-logo.domain { color: #236c62; background: #e4f2ed; }
.identity-content { min-width: 0; flex: 1; display: grid; gap: 5px; }
.identity-title { min-width: 0; display: flex; align-items: center; gap: 7px; }
.identity-title strong { min-width: 0; overflow: hidden; color: #26352d; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.provider-label { flex: 0 0 auto; padding: 3px 6px; border-radius: 6px; color: #53635a; background: #edf2ef; font-size: 9px; font-weight: 900; letter-spacing: .03em; }
.provider-label.gmail { color: #a94438; background: #f9e9e5; }
.provider-label.outlook { color: #315f99; background: #e7eef8; }
.provider-label.domain { color: #236c62; background: #e4f2ed; }
.identity-meta { display: flex; flex-wrap: wrap; gap: 3px 7px; color: var(--muted); font-size: 10px; }
.identity-meta span:not(:last-child)::after { content: "·"; margin-left: 7px; color: #c3cbc6; }
.proxy-summary { min-width: 0; display: flex; align-items: center; gap: 6px; overflow: hidden; color: #738078; font: 10px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; text-overflow: ellipsis; white-space: nowrap; }
.proxy-summary span { flex: 0 0 auto; padding: 2px 5px; border-radius: 5px; color: #647269; background: #f0f3f1; font: 800 9px/1.2 system-ui, sans-serif; }
.subtle { color: var(--muted); font-size: 11px; }
.status { display: inline-flex; align-items: center; gap: 7px; padding: 6px 9px; border-radius: 99px; font-size: 11px; font-weight: 800; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.pending { color: var(--amber); background: var(--amber-soft); }
.status.connected { color: var(--green); background: var(--green-soft); }
.status.attention, .status.invalid, .status.restricted { color: var(--coral); background: var(--coral-soft); }
.status.running { color: var(--blue); background: var(--blue-soft); }
.account-status-cell, .authorization-cell, .binding-cell, .gmail-metadata-cell { overflow-wrap: anywhere; }
.account-status-cell > .status:first-of-type, .authorization-cell > .status:first-of-type { margin-bottom: 3px; }
.account-stage { max-width: 100%; margin-top: 5px; overflow-wrap: anywhere; line-height: 1.35; }
.mobile-cell-label { display: none; }
.adspower-binding { min-width: 0; padding: 9px 10px; display: grid; gap: 4px; border: 1px solid #e4e9e6; border-radius: 10px; background: #fbfcfb; }
.machine-pill { min-width: 0; display: flex; align-items: center; gap: 6px; }
.machine-pill i { width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: #71ae91; box-shadow: 0 0 0 3px rgba(113,174,145,.13); }
.adspower-machine { overflow: hidden; color: #46534c; font-size: 11px; text-overflow: ellipsis; }
.container-id { overflow: hidden; color: #27362e; font: 700 11px ui-monospace, SFMono-Regular, Menlo, monospace; text-overflow: ellipsis; white-space: nowrap; }
.machine-address { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.account-actions-cell { text-align: left; }
.row-actions { display: grid; justify-items: stretch; gap: 8px; }
.row-actions-primary, .row-actions-secondary { display: flex; justify-content: flex-start; align-items: center; flex-wrap: wrap; gap: 6px; }
.row-actions-primary + .row-actions-secondary { padding-top: 8px; border-top: 1px dashed #e3e8e5; }
.row-actions-secondary .mini-button { color: #5f6d65; border-color: #e3e7e4; background: #fafbfa; }
.mini-button { height: 31px; padding: 0 10px; border: 1px solid #dfe4e0; border-radius: 8px; background: white; font-size: 10px; font-weight: 800; white-space: nowrap; cursor: pointer; }
.account-actions-cell .mini-button { min-width: 68px; height: 30px; padding: 0 9px; border-radius: 7px; font-weight: 750; line-height: 28px; text-align: center; }
.mini-button:hover { border-color: #aebbb3; }
.mini-button:disabled { opacity: .42; cursor: not-allowed; }
.mini-button:disabled:hover { border-color: #dfe4e0; }
.mini-button.launch { color: white; border-color: var(--green); background: var(--green); }
.mini-button.authorize { color: var(--green); border-color: #b9d2c5; background: var(--green-soft); }
.mini-button.authorize:hover { border-color: var(--green); }
.mini-button.danger-muted { color: #a65a49; }
.mini-button.remove, .row-actions-secondary .mini-button.remove { color: #b95843; border-color: transparent; background: transparent; }
.mini-button.remove:hover, .row-actions-secondary .mini-button.remove:hover { border-color: #ecc7be; background: var(--coral-soft); }
.row-actions-secondary [data-action="remote"], .row-actions-secondary [data-action="remote-live-job"] { order: 10; }
.row-actions-secondary [data-action="session-key-login"] { order: 20; }
.row-actions-secondary [data-action="view-job"], .row-actions-secondary [data-batch-detail] { order: 30; }
.row-actions-secondary [data-action="account-details"], .row-actions-secondary [data-gmail-details] { order: 40; }
.row-actions-secondary [data-action="copy-proxy"] { order: 50; }
.row-actions-secondary [data-action="edit-account"] { order: 60; }
.row-actions-secondary [data-fusion-action="join"] { order: 70; }
.row-actions-secondary [data-fusion-action="archive"] { order: 80; }
.row-actions-secondary [data-fusion-action="remove-platform"] { order: 90; }
.windsurf-team-candidates { max-height: 320px; overflow-y: auto; border: 1px solid var(--border, #ddd); border-radius: 6px; }
.windsurf-team-candidate { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--border, #ddd); }
.windsurf-team-candidate:last-child { border-bottom: 0; }
.windsurf-team-candidate span { flex: 1; overflow-wrap: anywhere; }
.windsurf-team-candidate small { color: #666; }
.row-actions-secondary .mini-button.remove { order: 100; }
.auth-state-detail { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 7px; margin-top: 6px; }
.authorization-cell .auth-state-detail { align-items: flex-start; flex-direction: column; }
.api-allocation-detail { display: flex; align-items: flex-start; flex-direction: column; gap: 4px; margin-top: 9px; padding-top: 9px; border-top: 1px dashed #dfe5e1; }
.api-allocation-detail .status { padding: 5px 8px; font-size: 10px; }
.api-allocation-error { max-width: 210px; overflow: hidden; color: #b95843; font-size: 10px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.auth-state-button { padding: 2px 6px; border: 0; border-radius: 6px; color: var(--green); background: var(--green-soft); font-size: 10px; font-weight: 800; cursor: pointer; }
.auth-state-button:hover { color: white; background: var(--green); }
.table-pagination { min-height: 58px; padding: 10px 20px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 11px; }
.table-pagination > div { display: flex; align-items: center; gap: 10px; }
.table-pagination strong { min-width: 76px; color: var(--ink); text-align: center; font-size: 11px; }
.table-pagination button { height: 32px; padding: 0 12px; border: 1px solid #dfe4e0; border-radius: 9px; color: var(--ink); background: white; font-size: 11px; font-weight: 800; cursor: pointer; }
.table-pagination button:hover:not(:disabled) { border-color: var(--green); color: var(--green); }
.table-pagination button:disabled { opacity: .4; cursor: not-allowed; }
.empty-state { min-height: 330px; display: grid; place-items: center; align-content: center; text-align: center; padding: 40px; }
.empty-state > span { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 13px; border-radius: 16px; color: var(--green); background: var(--green-soft); font-size: 26px; }
.empty-state h3 { margin: 0 0 4px; }
.empty-state p { color: var(--muted); }
.modal-backdrop { position: fixed; inset: 0; z-index: 40; padding: 24px; display: grid; place-items: center; background: rgba(15,25,20,.58); backdrop-filter: blur(4px); }
.modal { width: min(650px, 100%); max-height: calc(100vh - 48px); overflow-y: auto; padding: 28px; border-radius: 22px; background: white; box-shadow: 0 28px 80px rgba(0,0,0,.22); }
.compact-modal { width: min(500px, 100%); }
.account-details-modal { width: min(1040px, 100%); }
.account-details-email { margin: 5px 0 0; color: var(--muted); font: 12px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }
.account-details-loading { min-height: 180px; display: grid; place-items: center; color: var(--muted); font-size: 12px; }
.account-details-note { margin-top: 22px; padding: 12px 14px; border: 1px solid #ead9ae; border-radius: 11px; color: #7b5a19; background: #fff9e9; font-size: 12px; line-height: 1.55; }
.account-details-grid { margin-top: 22px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.account-details-grid > div { min-height: 72px; padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: #fafbfa; }
.account-details-grid span, .account-details-grid strong { display: block; }
.account-details-grid span { margin-bottom: 6px; color: var(--muted); font-size: 10px; }
.account-details-grid strong { color: #34433b; font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
.account-details-section { margin-top: 24px; }
.account-details-heading { margin-bottom: 10px; display: flex; align-items: baseline; justify-content: space-between; gap: 18px; }
.account-details-heading h3 { margin: 0; font: 700 17px/1.2 Georgia, serif; }
.account-details-heading span { color: var(--muted); font-size: 10px; text-align: right; }
.account-details-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.account-details-table { width: 100%; min-width: 760px; border-collapse: collapse; }
.account-details-table th { padding: 10px 12px; color: #89938e; background: #f7f9f7; border-bottom: 1px solid var(--line); text-align: left; font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }
.account-details-table td { padding: 11px 12px; border-bottom: 1px solid #edf0ed; color: #46534c; font-size: 11px; vertical-align: middle; }
.account-details-table tbody tr:last-child td { border-bottom: 0; }
.account-details-table td strong, .account-details-table td small { display: block; }
.account-details-table td small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.detail-session-state { display: inline-flex; padding: 4px 7px; border-radius: 99px; font-size: 9px; font-weight: 800; white-space: nowrap; }
.detail-session-state.active { color: var(--green); background: var(--green-soft); }
.detail-session-state.ended { color: var(--muted); background: var(--paper); }
.account-details-empty { height: 80px; color: var(--muted) !important; text-align: center; }
.human-verification-backdrop { z-index: 80; }
#humanVerificationModal { z-index: 1400; }
#humanVerificationAlertList, #manualActionAlertList { z-index: 1410; }
#remoteModal { z-index: 1500; }
.human-verification-modal { border: 2px solid #df5b3f; box-shadow: 0 28px 90px rgba(69,18,9,.38); }
.human-verification-hero { margin: 24px 0 16px; padding: 18px; display: grid; grid-template-columns: 42px 1fr; gap: 13px; align-items: center; border-radius: 15px; color: #762719; background: #fff0e8; }
.human-verification-hero > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: white; background: #df5b3f; font-size: 23px; font-weight: 900; }
.human-verification-hero p { margin: 0; line-height: 1.55; font-weight: 700; }
.human-verification-details { margin: 0 0 22px; display: grid; gap: 9px; }
.human-verification-details > div { padding: 11px 13px; display: grid; grid-template-columns: 115px minmax(0,1fr); gap: 10px; border: 1px solid var(--line); border-radius: 11px; background: #fafbfa; }
.human-verification-details dt { color: var(--muted); font-size: 11px; }
.human-verification-details dd { margin: 0; overflow-wrap: anywhere; color: var(--ink); font: 700 12px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; }
.human-verification-details .human-verification-countdown { color: #c4452d; font-size: 17px; letter-spacing: .08em; }
.human-verification-code { margin: 0 0 20px; padding: 14px; border: 1px solid #efb29f; border-radius: 12px; background: #fff8f5; }
.human-verification-code label { display: block; margin-bottom: 8px; color: var(--ink); font-size: 12px; font-weight: 800; }
.human-verification-code > div { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; }
.human-verification-code input { width: 100%; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; font: 800 18px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .25em; }
.human-verification-code p { margin: 9px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.human-verification-actions { flex-wrap: wrap; }
.human-verification-actions #humanVerificationRebuild { border-color: #df5b3f; color: #b23f29; }
.human-verification-alert-list { position: fixed; top: 124px; right: 24px; z-index: 82; width: min(380px, calc(100vw - 32px)); max-height: calc(100vh - 148px); padding: 2px; overflow-y: auto; display: grid; gap: 9px; overscroll-behavior: contain; }
.human-verification-reopen { position: relative; width: 100%; min-height: 56px; padding: 11px 15px 11px 11px; display: flex; align-items: center; gap: 10px; border: 1px solid #df5b3f; border-radius: 14px; color: #762719; background: #fff5ef; box-shadow: 0 15px 42px rgba(111,37,22,.24); cursor: pointer; text-align: left; animation: slideIn .2s ease; }
.human-verification-reopen:hover, .human-verification-reopen:focus-visible { border-color: #c43f25; background: #ffede3; outline: none; }
.human-verification-reopen.active { border-color: #c43f25; background: #ffe9de; box-shadow: 0 16px 46px rgba(111,37,22,.32); }
.human-verification-reopen .human-verification-reopen-icon { width: 32px; height: 32px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: white; background: #df5b3f; font-size: 18px; font-weight: 900; }
.human-verification-reopen .human-verification-reopen-copy { min-width: 0; display: grid; gap: 2px; }
.human-verification-reopen strong, .human-verification-reopen small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.human-verification-reopen strong { font-size: 12px; }
.human-verification-reopen small { color: #9b4b39; font-size: 10px; }
.human-verification-reopen:hover { background: #ffe9de; transform: translateY(-1px); }
.manual-action-alert-list { position: fixed; top: 124px; left: 280px; z-index: 1101; width: min(390px, calc(100vw - 32px)); max-height: calc(100vh - 148px); padding: 2px; overflow-y: auto; display: grid; gap: 10px; overscroll-behavior: contain; }
.manual-action-alert { position: relative; padding: 14px 38px 14px 13px; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 11px; border: 1px solid #d5a643; border-radius: 14px; color: #5f4511; background: #fff9e8; box-shadow: 0 15px 42px rgba(92,66,13,.22); animation: slideIn .2s ease; }
.manual-action-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: white; background: #c28b1c; font-size: 18px; font-weight: 900; }
.manual-action-copy { min-width: 0; }
.manual-action-copy strong, .manual-action-copy small { display: block; }
.manual-action-copy strong { color: #5f4511; font-size: 13px; }
.manual-action-copy .manual-action-account { margin-top: 3px; overflow: hidden; color: #8b671d; font: 10px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; text-overflow: ellipsis; white-space: nowrap; }
.manual-action-copy p { margin: 8px 0 10px; color: #765c27; font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.manual-action-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.manual-action-actions .mini-button { background: rgba(255,255,255,.72); }
.manual-action-dismiss { position: absolute; top: 7px; right: 8px; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 8px; color: #9b7b36; background: transparent; font-size: 19px; line-height: 1; cursor: pointer; }
.manual-action-dismiss:hover, .manual-action-dismiss:focus-visible { color: #634711; background: #f6e8bc; outline: none; }
.sync-result-detail { max-width: 280px; margin-top: 4px; color: var(--muted); font-size: 10px; white-space: normal; overflow-wrap: anywhere; }
.sync-claude-check { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 8px; margin-top: 7px; }
.sync-claude-check .sync-result-detail { flex-basis: 100%; margin-top: 0; }
.modal-header, .drawer-header { display: flex; justify-content: space-between; align-items: flex-start; }
.modal-header h2, .drawer-header h2 { margin: 0; font: 700 25px/1.2 Georgia, serif; }
.icon-button { width: 34px; height: 34px; border: 0; border-radius: 9px; background: var(--paper); color: var(--muted); font-size: 22px; cursor: pointer; }
.provider-switch { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin: 24px 0 20px; }
.provider-switch input { position: absolute; opacity: 0; pointer-events: none; }
.provider-switch label > span { display: grid; grid-template-columns: 38px 1fr; grid-template-rows: auto auto; column-gap: 10px; padding: 13px; border: 1px solid var(--line); border-radius: 13px; cursor: pointer; }
.provider-switch .provider-logo { grid-row: 1 / 3; }
.provider-switch small { color: var(--muted); font-size: 10px; }
.provider-switch input:checked + span { border-color: var(--green); box-shadow: 0 0 0 2px rgba(31,107,79,.1); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid label, .login-card label { display: grid; gap: 7px; color: #425047; font-size: 12px; font-weight: 700; }
.import-input { display: grid; gap: 7px; color: #425047; font-size: 12px; font-weight: 700; }
.import-input small { color: var(--muted); font: 11px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; }
.import-channel { margin: -5px 0 18px; display: grid; gap: 7px; color: #425047; font-size: 12px; font-weight: 700; }
.import-channel + .import-credential { margin-top: 0; }
.import-credential { margin: -6px 0 18px; padding: 13px 14px; display: grid; grid-template-columns: minmax(180px, 250px) 1fr; gap: 14px; align-items: end; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfb; }
.import-credential label { display: grid; gap: 6px; color: #425047; font-size: 12px; font-weight: 700; }
.import-credential small { padding-bottom: 4px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.form-grid label.wide { grid-column: 1 / -1; }
.saved-account-secret { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 8px; align-items: center; min-width: 0; padding: 9px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); }
.saved-account-secret > small { grid-column: 1 / -1; color: var(--muted); font-weight: 400; }
.saved-account-secret > code { min-width: 0; overflow-wrap: anywhere; white-space: pre-wrap; user-select: text; font-size: 12px; }
.saved-secret-actions { display: flex; gap: 5px; }
label em { color: #9aa49e; font-size: 10px; font-style: normal; font-weight: 500; }
input, select, textarea { width: 100%; padding: 0 12px; border: 1px solid #dce2dd; border-radius: 10px; outline: none; color: var(--ink); background: #fcfdfc; }
input, select { height: 43px; }
textarea { padding-block: 11px; resize: vertical; line-height: 1.55; }
input:focus, select:focus, textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(31,107,79,.09); }
.security-note { display: flex; gap: 11px; margin-top: 19px; padding: 12px 14px; border-radius: 11px; color: #59675f; background: var(--paper); font-size: 11px; }
.security-note > span { color: var(--green); font-size: 20px; }
.security-note p { margin: 0; }
.form-error { margin: 12px 0 0; padding: 9px 11px; border-radius: 9px; color: var(--coral); background: var(--coral-soft); font-size: 12px; }
.import-result { margin-top: 14px; padding: 13px 14px; border: 1px solid #cde0d5; border-radius: 11px; color: var(--green-dark); background: #f4faf6; }
.import-result.has-failures { border-color: #efd1c9; background: #fff9f6; }
.import-result strong, .import-result span { display: block; }
.import-result span { margin-top: 2px; color: var(--muted); font-size: 11px; }
.import-failures { margin-top: 12px; padding-top: 11px; border-top: 1px solid #efd8d1; }
.import-failures > b { color: var(--coral); font-size: 12px; }
.import-failures ul { max-height: 230px; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; overflow: auto; list-style: none; }
.import-failures li { padding: 8px 9px; display: grid; grid-template-columns: 58px minmax(0,1fr); gap: 2px 8px; border-radius: 8px; color: var(--ink); background: rgba(255,255,255,.75); }
.import-failures li span { grid-row: 1 / 4; margin: 0; color: #a56758; font-size: 10px; }
.import-failures li strong { overflow-wrap: anywhere; color: #7f3425; font: 700 11px/1.35 ui-monospace, SFMono-Regular, Menlo, monospace; }
.import-failures li code { overflow-wrap: anywhere; color: #75584f; font: 10px/1.35 ui-monospace, SFMono-Regular, Menlo, monospace; }
.import-failures li em { overflow-wrap: anywhere; color: var(--muted); font-size: 10px; font-style: normal; }
.import-failures > small { display: block; margin-top: 8px; color: var(--muted); font-size: 10px; }
.assignment-pool { margin: 22px 0 18px; padding: 17px 18px; display: flex; align-items: center; justify-content: space-between; border: 1px solid #cde0d5; border-radius: 13px; color: var(--green-dark); background: #f4faf6; }
.assignment-pool small { font-weight: 700; }
.assignment-pool strong { font: 700 28px/1 Georgia, serif; }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.remote-backdrop { position: fixed; inset: 0; z-index: 85; padding: 18px; display: grid; place-items: center; background: rgba(10,18,14,.82); backdrop-filter: blur(5px); }
.remote-console { width: min(1240px, 100%); height: min(900px, calc(100vh - 36px)); min-height: 520px; padding: 18px; display: flex; flex-direction: column; gap: 13px; border: 1px solid rgba(255,255,255,.12); border-radius: 20px; color: #f4f7f5; background: #14201b; box-shadow: 0 30px 90px rgba(0,0,0,.38); }
.remote-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.remote-header h2 { margin: 0 0 3px; font: 700 23px/1.2 Georgia, serif; }
.remote-header small { display: block; max-width: 900px; overflow: hidden; color: #9fb0a7; text-overflow: ellipsis; white-space: nowrap; }
.remote-header .icon-button { color: #d8e1dc; background: rgba(255,255,255,.08); }
.remote-screen-wrap { position: relative; flex: 1; min-height: 280px; display: grid; place-items: center; overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: 13px; background: #080d0b; touch-action: none; user-select: none; }
.remote-screen-wrap img { display: none; max-width: 100%; max-height: 100%; object-fit: contain; cursor: crosshair; user-select: none; -webkit-user-drag: none; }
.remote-screen-wrap.ready img { display: block; }
.remote-screen-placeholder { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 10px; color: #c8d3cd; text-align: center; pointer-events: none; }
.remote-screen-placeholder small { color: #82948a; }
.remote-screen-wrap.ready .remote-screen-placeholder { display: none; }
.remote-screen-placeholder .auth-ring { margin-bottom: 8px; animation: spin 2.4s linear infinite; border-color: #668174; border-style: dashed; }
.remote-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.remote-key-group, .remote-text-form { display: flex; gap: 7px; }
.remote-toolbar button { height: 35px; padding: 0 11px; border: 1px solid rgba(255,255,255,.14); border-radius: 9px; color: #e9efec; background: rgba(255,255,255,.075); font-size: 11px; font-weight: 800; cursor: pointer; }
.remote-toolbar button:hover { border-color: #78a18c; background: rgba(113,174,145,.15); }
.remote-text-form { width: min(420px, 46%); }
.remote-text-form input { height: 35px; color: #edf2ef; border-color: rgba(255,255,255,.14); background: rgba(255,255,255,.07); }
.remote-text-form input::placeholder { color: #83958b; }
.remote-help { margin: 0; color: #8fa097; font-size: 11px; }
.job-drawer { position: fixed; top: 0; right: 0; z-index: 60; width: min(480px, 94vw); height: 100vh; padding: 26px; display: flex; flex-direction: column; background: #f8faf8; box-shadow: -20px 0 60px rgba(14,25,19,.16); transform: translateX(105%); transition: transform .25s ease; }
.job-drawer.open { transform: translateX(0); }
.drawer-scrim { display: none; position: fixed; inset: 0; z-index: 55; background: rgba(16,25,21,.32); }
.drawer-scrim.open { display: block; }
.job-summary { margin: 24px 0 14px; padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: white; }
.job-summary strong, .job-summary span { display: block; }
.job-summary span { color: var(--muted); font-size: 11px; }
.job-summary .job-failure-reason { margin-top: 8px; color: #b42318; font-size: 12px; font-weight: 700; line-height: 1.5; }
.job-human-notice { margin: 0 0 12px; padding: 13px; display: grid; grid-template-columns: auto 1fr; gap: 10px 12px; align-items: center; border: 2px solid #df5b3f; border-radius: 14px; color: #762719; background: #fff0e8; box-shadow: 0 6px 22px rgba(189,62,35,.15); }
.job-human-notice .job-human-icon { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: white; background: #df5b3f; font-weight: 800; }
.job-human-notice strong, .job-human-notice small { display: block; }
.job-human-notice strong { font-size: 14px; }
.job-human-notice small { margin-top: 3px; color: #8f4233; line-height: 1.45; }
.job-human-notice .button { grid-column: 1 / -1; width: 100%; }
.job-preview { position: relative; flex: 0 0 245px; min-height: 190px; margin-bottom: 12px; display: grid; place-items: center; overflow: hidden; border: 1px solid #263b32; border-radius: 14px; background: #080d0b; }
.job-preview.failure { border: 2px solid #d92d20; box-shadow: 0 0 0 3px rgba(217,45,32,.10); }
.job-preview.failure .job-preview-meta { color: #fff1ef; background: rgba(116,25,18,.88); }
.job-preview img { display: none; max-width: 100%; max-height: 100%; object-fit: contain; }
.job-preview.ready img { display: block; }
.job-preview-enlarge { position: absolute; top: 9px; right: 9px; z-index: 2; height: 32px; padding: 0 11px; border: 1px solid rgba(255,255,255,.48); border-radius: 8px; color: white; background: rgba(20,31,26,.86); font-size: 11px; font-weight: 800; cursor: pointer; box-shadow: 0 5px 16px rgba(0,0,0,.22); }
.job-preview-enlarge:hover { border-color: white; background: rgba(48,73,61,.96); }
.job-preview-placeholder { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 7px; color: #c8d3cd; text-align: center; }
.job-preview-placeholder small { color: #82948a; }
.job-preview-placeholder .auth-ring { width: 42px; height: 42px; margin-bottom: 5px; animation: spin 2.4s linear infinite; border-color: #668174; border-style: dashed; }
.job-preview.ready .job-preview-placeholder { display: none; }
.job-preview-meta { position: absolute; right: 8px; bottom: 7px; left: 8px; padding: 5px 7px; overflow: hidden; border-radius: 7px; color: #c8d3cd; background: rgba(7,14,11,.76); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.job-screenshot-backdrop { z-index: 90; }
.job-screenshot-modal { width: min(1380px, 100%); height: min(900px, calc(100vh - 48px)); overflow: hidden; display: flex; flex-direction: column; }
.job-screenshot-stage { flex: 1; min-height: 260px; margin-top: 18px; display: grid; place-items: center; overflow: auto; border: 1px solid #263b32; border-radius: 14px; background: #080d0b; }
.job-screenshot-stage img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.job-screenshot-meta { min-height: 18px; margin: 10px 0 0; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.terminal { flex: 1; min-height: 170px; padding: 17px; overflow: auto; border-radius: 14px; color: #cfdbd3; background: #16221d; font: 11px/1.7 ui-monospace, SFMono-Regular, Menlo, monospace; }
.terminal p { margin: 0 0 4px; white-space: pre-wrap; overflow-wrap: anywhere; }
.terminal .muted-log { color: #718078; }
.drawer-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 14px; }
.login-overlay { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: #17251f; }
.login-card { width: min(410px, 100%); padding: 36px; border-radius: 22px; background: white; box-shadow: 0 25px 80px rgba(0,0,0,.24); }
.login-card h1 { margin: 14px 0 7px; font: 700 28px/1.2 Georgia, serif; }
.login-card > p:not(.eyebrow):not(.form-error) { margin-bottom: 22px; color: var(--muted); }
.wide-button { width: 100%; margin-top: 18px; }
.toast-stack { position: fixed; right: 22px; bottom: 22px; z-index: 120; display: grid; gap: 9px; }
.toast { min-width: 260px; max-width: 390px; padding: 13px 16px; border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: 11px; background: white; box-shadow: var(--shadow); animation: slideIn .2s ease; }
.toast.error { border-left-color: var(--coral); }
.job-history { padding: 22px; display: grid; gap: 10px; }
.history-card { padding: 17px; border: 1px solid var(--line); border-radius: 13px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.user-list { padding: 20px; display: grid; gap: 10px; }
.user-card { min-height: 70px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 13px; display: grid; grid-template-columns: 42px minmax(0,1fr) auto; gap: 12px; align-items: center; }
.user-card strong, .user-card small { display: block; }
.user-card small { color: var(--muted); font-size: 11px; }
.user-avatar { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; color: var(--green-dark); background: var(--green-soft); font-weight: 900; }
.machine-avatar { color: var(--blue); background: var(--blue-soft); }
.api-role-list { padding: 20px; display: grid; gap: 10px; }
.api-role-list article { padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: #fbfcfb; }
.api-role-list strong, .api-role-list small { display: block; }
.api-role-list strong { overflow-wrap: anywhere; font: 700 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
.api-role-list small { margin-top: 4px; color: var(--muted); }
.api-role-list pre, .api-auth-doc pre { margin: 10px 0 0; padding: 11px 13px; overflow-x: auto; border-radius: 9px; color: #dce8e1; background: #17251f; white-space: pre-wrap; overflow-wrap: anywhere; font: 11px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; }
.api-auth-doc { padding: 15px 16px; border: 1px solid #cbded3; border-radius: 13px; background: #f5faf7; }
.api-auth-doc > strong { font-size: 12px; font-weight: 800; }
.api-key-card { margin: 20px 20px 0; padding: 17px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 14px; align-items: center; border: 1px solid #cbded3; border-radius: 14px; background: #f5faf7; }
.api-key-card strong, .api-key-card small { display: block; }
.api-key-card small { margin-top: 3px; color: var(--muted); }
.api-key-result { grid-column: 1 / -1; padding-top: 14px; border-top: 1px solid #dbe8e0; }
.api-key-result p { margin-bottom: 9px; color: var(--coral); font-size: 11px; font-weight: 700; }
.api-key-result textarea { margin-bottom: 9px; font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; background: white; }
.api-key-result .button { width: 100%; }
.extraction-list { padding: 20px; display: grid; gap: 10px; }
.extraction-card { padding: 15px 16px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 13px; background: white; }
.extraction-card strong, .extraction-card small { display: block; }
.extraction-card small { color: var(--muted); font-size: 11px; }
.extraction-card .failure { margin-top: 7px; color: var(--coral); overflow-wrap: anywhere; }
.extraction-meta { margin-top: 5px; display: flex; flex-wrap: wrap; gap: 5px 12px; }
.statistics-heading { margin-bottom: 20px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.statistics-heading h2 { margin: 1px 0 5px; font: 700 24px/1.2 Georgia, serif; }
.statistics-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.statistics-heading > div:last-child { display: flex; align-items: center; gap: 10px; }
.statistics-heading > div:last-child small { color: var(--muted); font-size: 10px; }
.statistics-toolbar { flex-wrap: wrap; justify-content: flex-end; }
#statisticsDateRange { min-width: 270px; }
#statisticsDateRange .ant-picker { width: 100%; }
.statistics-metrics { grid-template-columns: repeat(4, minmax(170px, 1fr)); }
.statistics-detail-grid { margin-bottom: 22px; display: grid; grid-template-columns: minmax(300px, .8fr) minmax(480px, 1.2fr); gap: 16px; }
.statistics-panel { min-height: 330px; }
.statistics-breakdown { padding: 14px 22px 20px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 26px; }
.statistics-breakdown-row { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid #edf0ed; }
.statistics-breakdown-row span { display: inline-flex; align-items: center; gap: 8px; color: #516058; font-size: 12px; }
.statistics-breakdown-row strong { font: 700 17px/1 Georgia, serif; }
.statistics-dot { width: 8px; height: 8px; border-radius: 50%; background: #abb5af; }
.statistics-dot.connected { background: var(--green); }
.statistics-dot.running { background: var(--blue); }
.statistics-dot.attention, .statistics-dot.restricted { background: var(--coral); }
.statistics-trend { padding: 18px 20px 22px; display: grid; grid-template-columns: repeat(auto-fit, minmax(105px, 1fr)); gap: 8px; }
.trend-day { min-width: 0; padding: 13px 11px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfb; }
.trend-day > strong, .trend-day > span, .trend-day > small { display: block; }
.trend-day > strong { margin-bottom: 12px; color: #445149; font-size: 12px; }
.trend-day > span { margin-top: 9px; color: var(--muted); font-size: 10px; }
.trend-day > span b { float: right; color: var(--ink); font-size: 14px; }
.trend-day > small { margin-top: 4px; color: #7c8881; font-size: 9px; line-height: 1.5; }
.trend-day i { width: 5px; height: 5px; display: inline-block; margin-right: 2px; border-radius: 50%; }
.trend-success { background: var(--green); }
.trend-failed { margin-left: 4px; background: var(--coral); }
.authorization-daily-panel { overflow: hidden; }
.authorization-daily-scroll { padding: 18px 20px 20px; overflow-x: auto; }
.authorization-daily-chart { min-width: 800px; height: 205px; display: grid; gap: 8px; align-items: end; }
.authorization-daily-item { min-width: 0; height: 100%; display: grid; grid-template-rows: 22px 1fr 18px; gap: 5px; text-align: center; }
.authorization-daily-item strong { color: #445149; font-size: 10px; }
.authorization-daily-item small { color: var(--muted); font-size: 8px; white-space: nowrap; }
.authorization-daily-bar { height: 100%; display: flex; align-items: flex-end; overflow: hidden; border-radius: 7px; background: #f0f4f1; }
.authorization-daily-bar i { width: 100%; min-height: 0; display: block; border-radius: 7px 7px 4px 4px; background: linear-gradient(180deg, #69b98a, var(--green)); }
.authorization-users-heading { padding: 16px 20px 10px; display: flex; align-items: baseline; gap: 10px; border-top: 1px solid var(--line); }
.authorization-users-heading strong { color: #445149; font-size: 13px; }
.authorization-users-heading small { color: var(--muted); font-size: 10px; }
.authorization-users-scroll { padding: 0 20px 20px; overflow-x: auto; }
.authorization-users-table { width: 100%; min-width: 1080px; border-collapse: separate; border-spacing: 0; }
.authorization-users-table th, .authorization-users-table td { min-width: 42px; padding: 9px 8px; border-right: 1px solid #edf0ed; border-bottom: 1px solid #edf0ed; text-align: center; font-size: 9px; }
.authorization-users-table th { color: #89938e; background: #fbfcfb; font-weight: 700; }
.authorization-users-table th:first-child, .authorization-users-table td:first-child { position: sticky; left: 0; z-index: 2; min-width: 140px; text-align: left; background: white; }
.authorization-users-table th:first-child { z-index: 3; background: #fbfcfb; }
.authorization-users-table td:first-child strong { color: #425047; font-size: 11px; }
.authorization-users-table th:nth-child(2), .authorization-users-table td:nth-child(2) { min-width: 58px; }
.authorization-users-table th:nth-child(3), .authorization-users-table td:nth-child(3) { min-width: 72px; }
.authorization-user-count { color: #a5aea9; }
.authorization-user-count.has-value { color: #17633e; background: #edf8f1; font-weight: 800; }
.authorization-source { display: inline-flex; padding: 3px 7px; border-radius: 999px; font-size: 9px; font-weight: 800; }
.authorization-source.api { color: #315f91; background: #edf4fb; }
.authorization-source.page { color: #7a5b24; background: #fbf4df; }
.statistics-table-panel { margin-bottom: 22px; }
.statistics-table-wrap { overflow-x: auto; }
.statistics-table { width: 100%; min-width: 940px; border-collapse: collapse; }
.operator-statistics-table { min-width: 1080px; }
.statistics-table th { padding: 11px 14px; color: #89938e; background: #fbfcfb; border-bottom: 1px solid var(--line); text-align: left; font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }
.statistics-table td { padding: 13px 14px; border-bottom: 1px solid #edf0ed; color: #425047; font-size: 12px; vertical-align: middle; }
.statistics-table tbody tr:last-child td { border-bottom: 0; }
.statistics-table tbody tr:hover { background: #fafcfb; }
.statistics-table td strong, .statistics-table td small { display: block; }
.statistics-table td small { margin-top: 3px; color: var(--muted); font-size: 9px; white-space: nowrap; }
.stat-positive { color: var(--green); font-weight: 800; }
.stat-negative { color: var(--coral); font-weight: 800; }
.statistics-empty { padding: 28px; color: var(--muted); text-align: center; font-size: 12px; }
.user-card .button { padding: 7px 11px; font-size: 11px; }
.user-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; flex-wrap: wrap; }
.user-form-grid { margin-top: 24px; }
.form-grid label.checkbox-line { display: flex; flex-direction: row; align-items: center; gap: 9px; }
.checkbox-line input { width: 16px; height: 16px; flex: 0 0 auto; }
.section-permission-field { border: 1px solid #dfe7e2; border-radius: 12px; padding: 14px; margin: 18px 0 0; }
.section-permission-field.wide { grid-column: 1 / -1; margin: 0; }
.section-permission-field legend { padding: 0 6px; color: #425047; font-size: 12px; font-weight: 800; }
.section-permission-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.section-permission-grid label { display: flex; align-items: center; gap: 9px; min-height: 36px; padding: 7px 10px; border: 1px solid #e8eeea; border-radius: 9px; background: #f9fbfa; cursor: pointer; }
.section-permission-grid input { width: 16px; height: 16px; flex: 0 0 auto; }
.user-section-summary { color: #587064; }
.authorization-modal-backdrop { z-index: 70; align-items: start; overflow-y: auto; }
.authorization-dialog { position: relative; width: min(980px, calc(100vw - 48px)); margin: auto; }
.authorization-modal-close { position: sticky; top: 0; z-index: 3; float: right; margin: 10px 10px -50px 0; background: white; box-shadow: 0 8px 24px rgba(18,35,27,.16); }
.authorization-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr); gap: 22px; align-items: start; clear: both; }
.authorization-form-card, .authorization-result-card { min-height: 0; }
.authorization-form { padding: 25px; display: grid; gap: 19px; }
.authorization-form label, .code-result label { display: grid; gap: 7px; color: #425047; font-size: 12px; font-weight: 700; }
.authorization-actions { display: flex; justify-content: flex-end; gap: 9px; padding-top: 4px; }
.claude-task-api-panel { display: grid; gap: 13px; padding: 15px; border: 1px solid #cfe0d6; border-radius: 13px; background: #f7fbf8; }
.claude-task-api-heading, .claude-task-api-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.claude-task-api-heading > div { display: grid; gap: 3px; }
.claude-task-api-heading small { color: var(--muted); font-size: 10px; font-weight: 500; }
.claude-task-api-actions .subtle { flex: 1; text-align: right; overflow-wrap: anywhere; }
.claude-task-bulk-modal { width: min(760px, 100%); }
.claude-task-bulk-results { display: grid; gap: 7px; max-height: min(430px, 48vh); margin-top: 14px; overflow: auto; }
.claude-task-bulk-row { display: grid; grid-template-columns: minmax(150px, 1fr) auto; gap: 6px 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fbfcfb; }
.claude-task-bulk-row strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.claude-task-bulk-row small { grid-column: 1 / -1; color: var(--muted); overflow-wrap: anywhere; }
.claude-task-bulk-row .status { justify-self: end; }
.authorization-step-log { max-height: 180px; overflow: auto; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: #f7faf8; font-size: 11px; line-height: 1.8; }
.authorization-step-log > div { display: flex; gap: 10px; }
.authorization-step-log time { flex-shrink: 0; color: var(--muted); font-variant-numeric: tabular-nums; }
.claude-task-bulk-row > .authorization-step-log { grid-column: 1 / -1; }
.claude-task-key-modal { width: min(720px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow-y: auto; }
.claude-task-key-list { display: grid; gap: 9px; margin-top: 20px; }
.claude-task-key-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 11px; background: var(--paper); }
.claude-task-key-item > div { flex: 1; display: grid; gap: 3px; min-width: 0; }
.claude-task-key-item small { color: var(--muted); }
.claude-task-key-item .key-actions { display: flex; gap: 7px; }
.authorization-result-card { padding: 34px; text-align: center; }
.authorization-result-card h2 { margin: 7px 0 7px; font: 700 25px/1.2 Georgia, serif; }
.authorization-result-card > p:not(.eyebrow) { max-width: 420px; margin: 0 auto 24px; color: var(--muted); }
.auth-ring { position: relative; width: 66px; height: 66px; display: grid; place-items: center; border: 2px solid #bdd5c8; border-radius: 50%; }
.auth-ring::before, .auth-ring::after, .auth-ring i { content: ""; position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--green); }
.auth-ring::before { top: -5px; }
.auth-ring::after { right: -5px; }
.auth-ring i { bottom: -5px; }
.oauth-countdown { max-width: 240px; margin: -10px auto 22px; padding: 10px 13px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid #d9e4de; border-radius: 12px; background: #f8fbf9; text-align: left; }
.oauth-countdown > span { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.oauth-countdown > strong { color: var(--green); font: 700 18px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.oauth-countdown.urgent { border-color: #efc7b8; background: #fff6f1; }
.oauth-countdown.urgent > strong, .oauth-countdown.expired > strong { color: var(--coral); }
.oauth-countdown.expired { border-color: #e7c1b5; background: #fff3ef; }
.code-result { margin: 4px 0 18px; padding: 16px; border: 1px solid #cde0d5; border-radius: 13px; background: #f4faf6; text-align: left; }
.code-result textarea { margin-bottom: 10px; font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; background: white; }
.code-result .button { width: 100%; }
.code-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.code-result > small { display: block; margin-top: 9px; color: var(--muted); overflow-wrap: anywhere; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes slideIn { from { opacity: 0; transform: translateY(8px); } }
@media (max-width: 1280px) {
  .account-table th, .account-table td { padding-inline: 12px; }
  .identity-title strong { font-size: 12px; }
}
@media (max-width: 1040px) {
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .app-shell { grid-template-columns: 80px minmax(0,1fr); }
  .sidebar { padding-inline: 12px; }
  .brand { justify-content: center; padding-inline: 0; }
  .brand > span:last-child, .nav-item:not(.active) span + *, .sidebar-note div { display: none; }
  .nav-item { font-size: 0; text-align: center; }
  .nav-item span { margin: 0; }
  .sidebar-note { justify-content: center; }
  .authorization-grid { grid-template-columns: 1fr; }
  .authorization-dialog { width: min(100%, calc(100vw - 24px)); }
  .authorization-form-card, .authorization-result-card { min-height: auto; }
  .statistics-detail-grid { grid-template-columns: 1fr; }
  .account-details-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .manual-action-alert-list { left: 104px; }
}
@media (max-width: 720px) {
  .app-shell { display: block; }
  .sidebar { position: static; width: 100%; height: auto; padding: 13px 18px; flex-direction: row; align-items: center; }
  .brand { padding: 0; }
  .brand > span:last-child { display: block; }
  .brand small { display: none; }
  .sidebar nav { margin-left: auto; display: flex; }
  .nav-item { font-size: 0; padding: 8px; }
  .sidebar-note { display: none; }
  .logout-button { margin: 0 0 0 4px; }
  .topbar { position: static; min-height: 96px; padding: 20px; }
  .top-actions #refreshButton { display: none; }
  .top-actions { gap: 6px; }
  .top-actions .button { padding-inline: 11px; }
  .content { padding: 20px; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric-card { min-height: 92px; padding: 15px; }
  .metric-icon { display: none; }
  .statistics-heading { align-items: flex-start; flex-direction: column; }
  .statistics-heading > div:last-child { width: 100%; justify-content: space-between; }
  .statistics-toolbar { justify-content: flex-start !important; }
  #statisticsDateRange { width: 100%; }
  .statistics-trend { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .statistics-breakdown { grid-template-columns: 1fr; }
  .panel-heading { align-items: flex-start; flex-direction: column; }
  .bulk-toolbar { align-items: flex-start; flex-wrap: wrap; }
  .bulk-toolbar > div { width: 100%; margin-left: 0; }
  .bulk-toolbar .button { flex: 1; }
  .filters { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; }
  .account-search { flex-basis: 100%; max-width: none; }
  .account-search-row .filters { margin-left: 0; }
  .filter { min-width: 0; padding-inline: 7px; white-space: nowrap; }
  .filter-more { grid-column: 1 / -1; width: 100%; }
  .table-wrap { padding: 10px; overflow-x: visible; background: #f6f8f6; }
  .account-table { min-width: 0; display: block; }
  .account-table thead { display: none; }
  .account-table tbody { display: grid; gap: 10px; }
  .account-table tbody tr { min-width: 0; padding: 14px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; border: 1px solid #e1e7e3; border-radius: 15px; background: white; box-shadow: 0 4px 15px rgba(31,56,43,.035); }
  .account-table tbody tr:hover { background: white; box-shadow: 0 7px 22px rgba(31,56,43,.08); }
  .account-table td { min-width: 0; padding: 0; border: 0; }
  .account-table .account-cell { grid-column: 1 / -1; padding-bottom: 11px; border-bottom: 1px solid #edf0ed; }
  .account-table .account-status-cell, .account-table .authorization-cell, .account-table .gmail-metadata-cell { grid-column: auto; }
  .account-table .binding-cell { grid-column: 1 / -1; }
  .account-table .account-actions-cell { grid-column: 1 / -1; padding-top: 10px; border-top: 1px solid #edf0ed; text-align: left; }
  .mobile-cell-label { margin-bottom: 6px; display: block; color: #97a09b; font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
  .identity-title strong { max-width: 100%; font-size: 13px; }
  .proxy-summary { max-width: 100%; }
  .adspower-binding { grid-template-columns: minmax(90px, auto) minmax(0, 1fr); align-items: center; column-gap: 10px; }
  .machine-address { grid-column: 1 / -1; }
  .row-actions { justify-items: stretch; }
  .row-actions-primary, .row-actions-secondary { justify-content: flex-start; }
  .row-actions-primary .mini-button { flex: 1 1 145px; }
  .row-actions-secondary .mini-button { flex: 1 0 auto; }
  .table-pagination { align-items: flex-start; flex-direction: column; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid label.wide { grid-column: auto; }
  .provider-switch { grid-template-columns: 1fr; }
  .import-credential { grid-template-columns: 1fr; }
  .account-details-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .account-details-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
  .account-details-heading span { text-align: left; }
  .remote-backdrop { padding: 0; }
  .remote-console { width: 100%; height: 100vh; min-height: 0; padding: 13px; border: 0; border-radius: 0; }
  .remote-toolbar { align-items: stretch; flex-direction: column; }
  .remote-key-group { overflow-x: auto; }
  .remote-key-group button { flex: 0 0 auto; }
  .remote-text-form { width: 100%; }
}
@media (max-width: 440px) {
  .metric-grid { grid-template-columns: 1fr; }
  .metric-card { min-height: 78px; }
  .account-table tbody tr { grid-template-columns: minmax(0, 1fr); }
  .account-table .account-status-cell, .account-table .authorization-cell, .account-table .gmail-metadata-cell { grid-column: 1; }
  .identity { gap: 9px; }
  .provider-logo { width: 31px; height: 31px; }
  .identity-meta { line-height: 1.45; }
  .modal { padding: 22px; }
  .human-verification-alert-list { top: auto; right: 16px; bottom: 18px; left: 16px; width: auto; max-height: min(46vh, 360px); }
  .manual-action-alert-list { top: 84px; right: 16px; bottom: auto; left: 16px; width: auto; max-height: min(42vh, 340px); }
  .account-details-grid { grid-template-columns: 1fr; }
}

/*
 * Keep the server-rendered legacy shell available for the DOM bridge without
 * painting it before ProLayout is ready. Show a plain reload link after 12
 * seconds; revealing the legacy form cannot unblock deferred scripts still
 * downloading. Keep these styles in the base sheet so the hint also works when
 * the framework bundle or its stylesheet fails to load.
 */
.pro-boot-screen {
  display: none;
}

html.pro-ui-booting,
html.pro-ui-booting body {
  min-height: 100%;
  overflow: hidden;
  background: #f5f5f5;
}

html.pro-ui-booting body > :not(.pro-boot-screen) {
  visibility: hidden;
}

html.pro-ui-booting .pro-boot-screen {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  color: rgba(0, 0, 0, .88);
  background: #f5f5f5;
}

/* Keep role-controlled navigation out of the first paint. The session response
   removes this class only after the allowed sections have been rendered. */
html.permissions-loading .sidebar nav,
html.permissions-loading #platformTabs {
  visibility: hidden !important;
}

.pro-boot-screen > strong {
  margin-top: 8px;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.pro-boot-screen > small {
  color: rgba(0, 0, 0, .45);
  font-size: 13px;
}

.pro-boot-logo {
  position: relative;
  width: 38px;
  height: 38px;
}

.pro-boot-logo i {
  position: absolute;
  top: 3px;
  left: 16px;
  width: 7px;
  height: 32px;
  border-radius: 999px;
  background: #1677ff;
  transform-origin: center;
}

.pro-boot-logo i:nth-child(2) { background: #69b1ff; transform: rotate(60deg); }
.pro-boot-logo i:nth-child(3) { background: #91caff; transform: rotate(120deg); }

.pro-boot-progress {
  width: 112px;
  height: 3px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e7eb;
}

.pro-boot-progress i {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: #1677ff;
  animation: orbit-boot-progress 1.05s ease-in-out infinite;
}

@keyframes orbit-boot-progress {
  from { transform: translateX(-115%); }
  to { transform: translateX(275%); }
}

.pro-boot-help {
  visibility: hidden;
  margin-top: 8px;
  text-align: center;
  color: #59675f;
  font-size: 13px;
  animation: orbit-boot-help 0s 12s forwards;
}
.pro-boot-help p { margin: 0 16px 12px; }
.pro-boot-help a { display: inline-block; padding: 8px 16px; border-radius: 8px; background: #1677ff; color: #fff; text-decoration: none; }
@keyframes orbit-boot-help {
  to { visibility: visible; }
}

@media (prefers-reduced-motion: reduce) {
  .pro-boot-progress i { animation-duration: 2.2s; }
}
