:root {
  color-scheme: light;
  --ink: #17221d;
  --muted: #617068;
  --line: #d9e1dc;
  --surface: #ffffff;
  --canvas: #f4f7f5;
  --accent: #087a55;
  --accent-dark: #056341;
  --accent-soft: #e5f3ed;
  --danger: #b42318;
  --danger-soft: #fff0ee;
  --shadow: 0 18px 50px rgba(25, 50, 38, .1);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { min-width: 300px; background: var(--canvas); }
body { margin: 0; color: var(--ink); background: var(--canvas); line-height: 1.6; }
button, input, select, textarea { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header { height: 72px; padding: 0 clamp(20px, 5vw, 72px); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.92); }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 750; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; }
.brand-mark img { display: block; width: 32px; height: 32px; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 14px; font-size: clamp(2rem, 4.8vw, 4.2rem); line-height: 1.1; letter-spacing: -.055em; }
h2 { margin-bottom: 10px; font-size: 1.55rem; line-height: 1.25; letter-spacing: -.025em; }
h3 { margin-bottom: 2px; font-size: 1.05rem; }
.eyebrow, .section-label { margin-bottom: 8px; color: var(--accent); font-size: .76rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.muted { color: var(--muted); }
.lead { max-width: 650px; color: #405047; font-size: clamp(1rem, 2vw, 1.22rem); }

.button { min-height: 42px; padding: 9px 17px; border: 1px solid transparent; border-radius: 7px; cursor: pointer; font-weight: 700; transition: background-color .18s ease, border-color .18s ease, transform .18s ease; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:disabled { opacity: .48; cursor: not-allowed; }
.button-primary { background: var(--accent); color: white; }
.button-primary:hover:not(:disabled) { background: var(--accent-dark); }
.button-secondary { background: var(--surface); border-color: #bdcbc3; color: var(--ink); }
.button-secondary:hover:not(:disabled), .button-quiet:hover:not(:disabled) { background: var(--accent-soft); border-color: #9fb8aa; }
.button-quiet { background: transparent; border-color: transparent; color: #4c5d54; }
.button-wide { width: 100%; margin-top: 18px; min-height: 50px; }
.button-link { min-height: auto; padding: 5px 2px; background: transparent; color: var(--accent); white-space: nowrap; }
:focus-visible { outline: 3px solid rgba(8, 122, 85, .28); outline-offset: 3px; }

.login-page {
  min-height: 100vh;
  display: grid;
  overflow-x: hidden;
  background: #f1eadc;
}
.login-layout { width: min(430px, calc(100% - 44px)); margin: auto; padding: 48px 0; }
.login-card {
  min-height: 360px;
  padding: clamp(24px, 6vw, 36px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.provider-stack { display: grid; gap: 18px; }
.provider-button {
  width: 100%;
  min-height: 60px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 15px;
  border: 1px solid #38342e;
  border-radius: 0;
  background: #fffaf0;
  box-shadow: 0 5px 0 #38342e;
  color: #28251f;
  cursor: pointer;
  text-align: left;
  transition: transform .14s ease, box-shadow .14s ease, background-color .14s ease;
}
.provider-button:hover:not(:disabled) { transform: translateY(-1px); background: #fffdf8; box-shadow: 0 6px 0 #38342e; }
.provider-button:active:not(:disabled), .provider-button[aria-expanded="true"] {
  transform: translateY(4px);
  box-shadow: 0 1px 0 #38342e;
}
.provider-button:disabled { opacity: .55; cursor: wait; }
.provider-mark {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid #38342e;
  border-radius: 0;
  color: #fff;
  font-size: .92rem;
  font-weight: 850;
}
.provider-mark img { width: 24px; height: 24px; display: block; filter: invert(1); }
.provider-button strong { font-size: 1.02rem; letter-spacing: .01em; }
.provider-wechat .provider-mark { background: #07c160; }
.provider-qq .provider-mark { background: #1479ba; }
.provider-developer .provider-mark { background: #9b652f; font-size: .62rem; letter-spacing: .04em; }
.developer-form {
  margin-top: -3px;
  padding: 14px;
  display: grid;
  gap: 12px;
  border: 1px solid #81786b;
  border-radius: 0;
  background: #e4dccd;
}
.token-input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid #81786b;
  border-radius: 0;
  outline: 0;
  background: #fffaf0;
  color: #28251f;
}
.token-input::placeholder { color: #7a857d; }
.token-input:focus { border-color: #6e512e; box-shadow: 0 0 0 3px rgba(157,112,56,.2); }
.developer-submit {
  min-height: 43px;
  border: 1px solid #54361e;
  border-radius: 0;
  background: #9b652f;
  box-shadow: 0 4px 0 #54361e;
  color: #fffaf3;
  cursor: pointer;
  font-weight: 750;
}
.developer-submit:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 #684327; }
.developer-submit:disabled { opacity: .58; cursor: wait; }
.status-heading { display: flex; gap: 14px; align-items: flex-start; }
.status-heading h2 { margin-bottom: 0; }
.status-dot { flex: 0 0 auto; width: 12px; height: 12px; margin-top: 9px; border: 3px solid #a5d5c0; border-top-color: var(--accent); border-radius: 50%; animation: spin .9s linear infinite; }
.status-dot.status-good, .status-dot.status-bad { animation: none; border: 0; background: var(--accent); }
.status-dot.status-bad { background: var(--danger); }
.qr-panel { margin-top: 22px; text-align: center; color: var(--muted); font-size: .9rem; }
.qr-frame { position: relative; width: min(240px, 100%); aspect-ratio: 1; margin: 0 auto 14px; display: grid; place-items: center; padding: 12px; border: 1px solid rgba(75,88,79,.27); border-radius: 20px; background: #fff; box-shadow: inset 0 0 0 5px #e2e5dc, 0 8px 18px rgba(64,76,68,.16); overflow: hidden; }
.qr-frame img { display: block; width: 100%; height: 100%; object-fit: contain; }
.qr-loading { position: absolute; inset: 12px; display: grid; place-items: center; padding: 20px; border-radius: 12px; background: #f2f3ed; color: var(--muted); }
.restart-panel { margin-top: 24px; }
.alert { margin: 22px 0 0; padding: 11px 13px; border: 1px solid; border-radius: 13px; }
.alert-error { border-color: #cc8e87; background: #f6ded9; color: #812119; box-shadow: inset 0 2px 4px rgba(132,46,36,.08); }

.accounts-page { min-height: 100vh; background: #f5f7f9; color: #344052; font-size: 13px; }
.accounts-page .app-header { position: sticky; top: 0; z-index: 10; height: 58px; padding: 0 22px; border-color: #e5e9ef; background: rgba(255,255,255,.96); }
.accounts-page .brand-mark { width: 32px; height: 32px; border-radius: 6px; }
.app-header-actions { display: flex; align-items: center; gap: 8px; }
.auto-refresh-toggle { display: inline-flex; align-items: center; gap: 5px; color: #596679; font-size: 12px; white-space: nowrap; cursor: pointer; user-select: none; }
.button-compact { min-height: 34px; padding: 6px 12px; border-radius: 5px; font-size: 12px; }
.accounts-main { width: calc(100% - 28px); margin: 0 auto; padding: 16px 0 36px; }
.filter-panel, .account-section { border: 1px solid #e5e9ef; border-radius: 14px; background: #fff; box-shadow: 0 5px 18px rgba(33,49,73,.07); }
.filter-panel { padding: 16px 20px 14px; }
.accounts-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 13px; border-bottom: 1px solid #edf0f4; }
.accounts-heading .section-label { margin: 0 0 2px; color: #596679; font-size: 10px; letter-spacing: .1em; }
.accounts-heading h1 { margin: 0; font-size: 20px; line-height: 1.25; letter-spacing: -.02em; }
.accounts-total { margin: 2px 0 0; color: #596679; font-size: 12px; }
.account-search { width: min(340px, 40vw); }
.account-search input { width: 100%; height: 36px; padding: 0 12px; border: 1px solid #dce2e9; border-radius: 5px; outline: 0; background: #fafbfc; color: #344052; }
.account-search input:focus { border-color: #7ea6df; box-shadow: 0 0 0 3px rgba(66,117,190,.13); background: #fff; }
.filter-rows { max-height: 390px; padding: 8px 8px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; overflow-y: auto; scrollbar-gutter: stable; }
.filter-row { min-height: 30px; display: grid; grid-template-columns: 86px minmax(0, 1fr); align-items: start; gap: 8px; }
.filter-label { padding-top: 5px; color: #596679; font-size: 12px; white-space: nowrap; }
.filter-options { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-options-many { max-height: 130px; overflow-y: auto; padding: 2px; }
.filter-chip { min-height: 28px; padding: 3px 10px; border: 1px solid #dfe4eb; border-radius: 5px; background: #fff; color: #455164; cursor: pointer; font-size: 12px; line-height: 1.2; }
.filter-chip:hover { border-color: #b9c9df; color: #3568ad; }
.filter-chip.is-active { border-color: #d8e5fb; background: #edf4ff; color: #3568ad; }
.filter-loading { grid-column: 1 / -1; margin: 0; padding: 8px 0; color: #687589; font-size: 12px; }
.account-section { min-height: 250px; margin-top: 14px; overflow: hidden; }
.list-toolbar { min-height: 58px; padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.list-toolbar h2 { margin: 0; font-size: 15px; letter-spacing: 0; }
.list-toolbar p { margin: 2px 0 0; color: #596679; font-size: 11px; }
.detail-refresh-state::before { content: " · "; }
.original-platform-link { padding: 6px 10px; border: 1px solid #d9e3f2; border-radius: 4px; color: #3568ad; text-decoration: none; white-space: nowrap; }
.original-platform-link:hover { background: #edf4ff; }
.table-wrap { overflow-x: auto; border-top: 1px solid #e9edf2; background: #fff; }
.account-table { width: 100%; min-width: 1400px; border-collapse: collapse; color: #445064; text-align: left; }
.account-table th { height: 35px; padding: 7px 10px; border-bottom: 1px solid #e7ebf0; background: #f5f7f9; color: #526074; font-size: 11px; font-weight: 650; white-space: nowrap; }
.account-table td { height: 40px; padding: 7px 10px; border-bottom: 1px solid #edf0f3; vertical-align: middle; font-size: 12px; white-space: nowrap; }
.account-table tbody tr:nth-child(even) { background: #f9fbfc; }
.account-table tbody tr:hover { background: #f2f7fc; }
.account-table .col-select { width: 34px; padding-inline: 6px; text-align: center; }
.account-table .col-select input { width: 14px; height: 14px; accent-color: #3568ad; cursor: pointer; }
.account-table .col-id { width: 104px; }
.account-table .col-title { width: 280px; }
.account-table .col-remark { width: 160px; min-width: 160px; }
.account-table .col-actions { width: 300px; }
.account-table .col-custom { max-width: 180px; }
.product-title-cell { max-width: 300px; overflow: hidden; text-overflow: ellipsis; }
.product-title-link, .row-action { color: #2870cc; text-decoration: none; }
.product-title-link:hover, .row-action:hover { text-decoration: underline; }
.row-refresh-action { padding: 0; border: 0; background: transparent; cursor: pointer; }
.row-refresh-action:disabled { color: #8a95a4; cursor: wait; text-decoration: none; }
.cell-pending { color: #8a95a4; }
.cell-detail-error { color: #b85a4f; }
.cell-available { color: #17794f; }
.status-hint-mark { display: inline-block; margin-left: 4px; padding: 0 5px; border-radius: 8px; background: #b86b16; color: #fff; font-size: 11px; font-weight: 700; line-height: 16px; }
.ban-time-hint { color: #b85a4f; cursor: help; font-weight: 750; }
.ban-time-status { cursor: help; }
.ban-time-status:focus-visible { outline: 2px solid #7ea6df; outline-offset: 3px; }
.ban-time-cell { font-weight: 650; white-space: pre-line; }
.ban-time-cell.ban-source-shelved { color: #b86b16; }
.ban-time-cell.ban-source-manual { color: #252525; }
.ban-time-cell.ban-source-manual-expired { color: #258a58; }
.ban-time-cell.ban-source-detail { color: #2868b2; }
.ban-time-tooltip { position: fixed; z-index: 100; max-width: calc(100vw - 16px); padding: 7px 10px; border-radius: 5px; background: #263244; color: #fff; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; box-shadow: 0 4px 12px #19273b33; pointer-events: none; }
.cell-remark { width: 160px; min-width: 160px; max-width: 180px; color: #596679; line-height: 1.35; white-space: normal !important; overflow-wrap: anywhere; }
.remark-edit-action { width: 100%; padding: 0; border: 0; background: transparent; color: inherit; cursor: text; line-height: inherit; text-align: left; white-space: normal; overflow-wrap: anywhere; }
.remark-edit-action:hover { color: #2870cc; text-decoration: underline; }
.list-toolbar-actions { display: flex; align-items: center; gap: 10px; }
.row-actions { display: flex; align-items: center; gap: 10px; line-height: 1.45; white-space: nowrap; }
.row-ban-action { padding: 0; border: 0; background: transparent; color: #2870cc; font: inherit; cursor: pointer; }
.row-ban-action:hover { text-decoration: underline; }
.row-more-action { padding: 0; border: 0; background: transparent; font: inherit; cursor: pointer; }
.row-action-menu { position: fixed; z-index: 100; min-width: 110px; padding: 4px; border: 1px solid #dce2e9; border-radius: 5px; background: #fff; box-shadow: 0 4px 12px #19273b33; }
.row-action-menu button { display: block; width: 100%; padding: 8px 16px; border: 0; border-radius: 3px; background: transparent; color: #2870cc; font-size: 12px; text-align: left; cursor: pointer; }
.row-action-menu button:hover, .row-action-menu button:focus-visible { background: #edf4ff; }
.row-action-menu button:disabled { color: #8a95a4; cursor: wait; }
.clipboard-input { position: fixed; left: -9999px; top: 0; }
.filtered-empty { height: 120px !important; color: #596679; text-align: center; }
.state-panel { min-height: 150px; display: grid; place-items: center; padding: 24px; border-top: 1px solid #e9edf2; background: #fff; color: #748194; text-align: center; }
.state-error { color: var(--danger); background: var(--danger-soft); }
.state-empty { color: var(--muted); }
.pagination { min-height: 56px; padding: 9px 16px; display: flex; justify-content: center; align-items: center; gap: 18px; border-top: 1px solid #e9edf2; color: #596679; font-size: 12px; }
.pagination .button { min-height: 34px; padding: 6px 12px; border-radius: 5px; font-size: 12px; }
.page-jump { display: flex; align-items: center; gap: 6px; margin-left: 4px; }
.page-jump select { min-width: 90px; height: 34px; padding: 4px 7px; border: 1px solid #dce2e9; border-radius: 5px; outline: 0; background: #fff; color: #344052; text-align: center; }
.page-jump select:focus { border-color: #7ea6df; box-shadow: 0 0 0 3px rgba(66,117,190,.13); }
.sort-action { padding: 0; border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.sort-action:hover, th[aria-sort="ascending"] .sort-action, th[aria-sort="descending"] .sort-action { color: #2870cc; }

.remark-dialog { width: min(460px, calc(100% - 28px)); padding: 0; border: 1px solid #d8dee7; border-radius: 10px; background: #fff; color: #344052; box-shadow: 0 24px 70px rgba(25, 39, 59, .24); }
.remark-dialog::backdrop { background: rgba(25, 34, 47, .38); }
.remark-form { padding: 20px; display: grid; gap: 16px; }
.remark-form h2 { margin: 0; font-size: 18px; }
.remark-account { margin: 3px 0 0; color: #687589; font-size: 12px; }
.remark-field { display: grid; gap: 6px; color: #526074; font-size: 12px; font-weight: 650; }
.remark-field input { width: 100%; padding: 9px 11px; border: 1px solid #dce2e9; border-radius: 5px; background: #fafbfc; color: #344052; }
#banDialog .remark-actions { flex-wrap: wrap; }
.ban-time-tooltip { white-space: pre-line; }
.remark-field textarea { width: 100%; min-height: 96px; padding: 9px 11px; resize: vertical; border: 1px solid #dce2e9; border-radius: 5px; outline: 0; background: #fafbfc; color: #344052; font-weight: 400; line-height: 1.5; }
.remark-field textarea:focus { border-color: #7ea6df; box-shadow: 0 0 0 3px rgba(66,117,190,.13); background: #fff; }
.remark-error { margin: -4px 0 0; color: var(--danger); font-size: 12px; }
.remark-actions { display: flex; justify-content: flex-end; gap: 8px; }
.remark-actions .button { min-height: 36px; padding: 6px 14px; font-size: 12px; }

@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 1100px) {
  .filter-rows { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .site-header { height: 64px; padding: 0 18px; }
  .login-layout { width: min(430px, calc(100% - 32px)); padding: 36px 0; }
  .login-card { min-height: 360px; }
  .accounts-page .app-header { min-height: 58px; height: auto; padding: 9px 13px; gap: 12px; }
  .accounts-page .brand > span:last-child { display: none; }
  .app-header-actions { gap: 5px; }
  .button-compact { padding: 5px 8px; }
  .accounts-main { width: calc(100% - 18px); padding: 9px 0 24px; }
  .filter-panel { padding: 13px; border-radius: 10px; }
  .accounts-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
  .account-search { width: 100%; }
  .filter-rows { max-height: none; padding-right: 0; overflow-y: visible; }
  .filter-row { grid-template-columns: 1fr; gap: 3px; }
  .filter-label { padding-top: 0; }
  .account-section { margin-top: 9px; border-radius: 10px; }
  .list-toolbar { align-items: flex-start; }
  .pagination { flex-wrap: wrap; gap: 8px; }
  .page-jump { flex-basis: 100%; justify-content: center; margin-left: 0; }
}
@media (max-width: 440px) {
  .login-layout { width: calc(100% - 26px); }
  .login-card { padding: 22px 14px 26px; }
  .provider-stack { gap: 16px; }
  .provider-button { min-height: 56px; }
  .provider-mark { width: 36px; height: 36px; }
  .accounts-page .brand { font-size: .9rem; }
  .accounts-page .button-compact { min-height: 32px; padding: 4px 7px; font-size: 11px; }
  .filter-chip { padding-inline: 8px; }
  .original-platform-link { padding-inline: 8px; }
}
.profile-menu { position: relative; }
#profileMenuButton { max-width: min(260px, 45vw); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-popover { position: absolute; right: 0; top: calc(100% + 10px); z-index: 20; width: min(300px, calc(100vw - 26px)); padding: 12px; border: 1px solid #d8dee7; border-radius: 10px; background: #fff; box-shadow: 0 12px 35px #19273b22; }
.profile-popover h2, .saved-profiles h2 { margin: 0 0 8px; font-size: 13px; color: #687589; }
#profileList { max-height: 40vh; overflow-y: auto; }
.profile-action { display: block; width: 100%; padding: 11px 10px; text-align: left; border: 0; border-radius: 5px; background: transparent; color: #344052; font: inherit; cursor: pointer; overflow-wrap: anywhere; }
.profile-action:hover { background: #f2f5f9; }
.profile-choice:disabled { opacity: 1; background: #edf4ff; color: #2563a6; cursor: default; }
#addProfile { margin-top: 8px; border-top: 1px solid #e6e9ee; border-radius: 0; }
.saved-profiles { margin-bottom: 20px; padding: 15px; background: #fffdf8; border: 1px solid #ded8cc; }
.login-dialog { width: min(440px, calc(100% - 26px)); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid #ded8cc; border-radius: 12px; background: #f4efe5; color: #344052; box-shadow: 0 24px 70px #19273b44; }
.login-dialog::backdrop { background: #19222f66; }
.login-dialog-heading { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px 0; }
.login-dialog-heading h2 { margin: 0; font-size: 17px; }
.login-dialog .login-card { min-height: 0; padding-top: 22px; }

/* Custom fields */
.cell-id { font-weight: 650; }
.id-highlight-mark { display: inline-block; width: 8px; height: 8px; margin-right: 5px; border-radius: 2px; vertical-align: baseline; }
.id-highlight-text { font-weight: 750; }
.cell-custom { max-width: 180px; cursor: pointer; }
.cell-custom:hover { background: #eef6ff; }
.cell-custom:focus-visible { outline: 2px solid #7ea6df; outline-offset: -2px; }
.tag-chip { display: inline-block; max-width: 160px; margin: 1px 3px 1px 0; padding: 1px 7px; border: 1px solid; border-radius: 9px; font-size: 11px; line-height: 1.5; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; white-space: nowrap; }
.tag-chip-highlight { box-shadow: 0 0 0 1px currentColor inset; }
.custom-empty { color: #a5b0bd; font-weight: 700; }
.cell-custom:hover .custom-empty { color: #3568ad; }
.custom-checked { color: #17794f; font-weight: 800; }
.custom-text { display: inline-block; max-width: 170px; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
.account-table tbody tr.row-located td { animation: locate-flash 1.1s ease-in-out 2; }
@keyframes locate-flash { 0%, 100% { background-color: transparent; } 50% { background-color: #ffe9a8; } }

.batch-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 9px 16px; border-top: 1px solid #e9edf2; border-bottom: 1px solid #e9edf2; background: #f4f8ff; }
.batch-count { color: #3568ad; font-size: 12px; font-weight: 700; white-space: nowrap; }
.batch-fields { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.batch-field select { height: 30px; max-width: 200px; padding: 2px 6px; border: 1px solid #cdd9ec; border-radius: 5px; background: #fff; color: #344052; font-size: 12px; }
.batch-field select:focus { border-color: #7ea6df; outline: 0; box-shadow: 0 0 0 3px rgba(66,117,190,.13); }

.field-option-menu { position: fixed; z-index: 100; min-width: 150px; max-width: 240px; padding: 4px; border: 1px solid #dce2e9; border-radius: 5px; background: #fff; box-shadow: 0 4px 12px #19273b33; }
.field-option-item { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 10px; border: 0; border-radius: 3px; background: transparent; color: #344052; font-size: 12px; text-align: left; cursor: pointer; }
.field-option-item:hover, .field-option-item:focus-visible { background: #edf4ff; }
.field-option-item.is-active { background: #edf4ff; color: #2563a6; font-weight: 650; }
.field-option-item.is-active::after { content: "✓"; margin-left: auto; color: #2563a6; font-weight: 700; }
.field-option-dot { flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; }
.field-option-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.field-option-flag { flex: 0 0 auto; padding: 0 4px; border-radius: 3px; background: #1f2937; color: #fde68a; font-size: 10px; line-height: 15px; }
.field-option-footer { display: flex; justify-content: space-between; gap: 6px; margin-top: 3px; padding-top: 3px; border-top: 1px solid #edf0f3; }
.field-option-footer button { flex: 1; padding: 6px 8px; border: 0; border-radius: 3px; background: transparent; color: #2870cc; font-size: 12px; cursor: pointer; }
.field-option-footer button:hover { background: #edf4ff; }

.filter-dot { display: inline-block; width: 8px; height: 8px; margin-right: 5px; border-radius: 50%; vertical-align: baseline; }

.field-dialog { width: min(560px, calc(100% - 28px)); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid #d8dee7; border-radius: 10px; background: #fff; color: #344052; box-shadow: 0 24px 70px rgba(25, 39, 59, .24); }
.field-dialog::backdrop { background: rgba(25, 34, 47, .38); }
.field-dialog-body { max-height: calc(100dvh - 32px); padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; }
.field-dialog-hint { margin: 0; color: #687589; font-size: 12px; line-height: 1.5; }
.field-list { display: grid; gap: 8px; }
.field-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 10px; border: 1px solid #e5e9ef; border-radius: 7px; background: #fafbfc; }
.field-item-info { min-width: 0; }
.field-item-name { margin-right: 8px; color: #344052; font-size: 13px; font-weight: 700; }
.field-item-type { margin-right: 8px; padding: 1px 6px; border-radius: 8px; background: #eef2f7; color: #596679; font-size: 11px; }
.field-item-chips { margin-top: 5px; }
.field-item-actions { flex: 0 0 auto; display: flex; gap: 5px; }
.field-delete { color: #b42318; }
.field-add-trigger { align-self: flex-start; }
.field-form { display: grid; gap: 12px; padding: 12px; border: 1px solid #dbe4ef; border-radius: 8px; background: #f7faff; }
.field-form h3 { margin: 0; font-size: 14px; }
.field-form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.field-form-grid .remark-field input, .field-form-grid .remark-field select { width: 100%; padding: 8px 10px; border: 1px solid #dce2e9; border-radius: 5px; background: #fff; color: #344052; font-size: 12px; font-weight: 400; }
.field-options-editor { display: grid; gap: 6px; }
.field-options-head { display: flex; align-items: center; justify-content: space-between; color: #526074; font-size: 12px; font-weight: 650; }
.field-option-rows { display: grid; gap: 6px; max-height: 240px; overflow-y: auto; }
.field-option-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; align-items: center; gap: 8px; }
.field-option-name { height: 32px; padding: 4px 9px; border: 1px solid #dce2e9; border-radius: 5px; background: #fff; font-size: 12px; }
.field-option-color { height: 32px; padding: 4px 5px; border: 1px solid #dce2e9; border-radius: 5px; background: #fff; font-size: 12px; }
.field-option-highlight { display: inline-flex; align-items: center; gap: 4px; color: #526074; font-size: 12px; white-space: nowrap; cursor: pointer; }
.field-option-highlight input { accent-color: #3568ad; }
.field-option-remove { width: 28px; height: 28px; border: 0; border-radius: 5px; background: transparent; color: #98a4b3; font-size: 15px; cursor: pointer; }
.field-option-remove:hover { background: #f6ded9; color: #b42318; }
@media (max-width: 620px) {
  .field-form-grid { grid-template-columns: 1fr; }
  .field-item { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
