:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #202936;
  background: #f7f8fa;
  font-synthesis: none;
  font-size: 14px;
  --blue: #245dc9;
  --muted: #77808e;
  --line: #e8ebef;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .48; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { border-radius: 5px; }
button { border: 0; }
:focus-visible { outline: 3px solid #94b7ff; outline-offset: 3px; }
.skip-link { position: fixed; left: 16px; top: -50px; padding: 10px 16px; background: white; z-index: 100; }
.skip-link:focus { top: 8px; }
.visually-hidden { 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; border-bottom: 1px solid var(--line); background: #fff; }
.header-inner { max-width: 1240px; height: 100%; margin: auto; padding: 0 40px; display: flex; align-items: center; gap: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 650; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 28px; height: 29px; border-radius: 6px; background: var(--blue); color: white; font-size: 15px; }
.demo-label { font-size: 10px; padding: 2px 5px; border: 1px solid #dce1e8; border-radius: 3px; color: #89919c; font-weight: 400; margin-left: 2px; }
.main-nav { align-self: stretch; display: flex; gap: 35px; }
.main-nav a { display: flex; align-items: center; position: relative; color: #737c89; font-size: 14px; padding: 0 2px; transition: color 120ms; }
.main-nav a:hover, .main-nav a[aria-current] { color: var(--blue); }
.main-nav a[aria-current] { font-weight: 600; }
.main-nav a[aria-current]::after { content: ""; position: absolute; bottom: 0; height: 2px; background: var(--blue); left: 0; right: 0; }
main { max-width: 1160px; padding: 43px 40px 80px; margin: auto; min-height: calc(100vh - 72px); }
main:focus { outline: none; }
.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
h1 { font-size: 27px; line-height: 1.4; font-weight: 650; letter-spacing: -.5px; margin: 0; }
.heading-sub { color: var(--muted); font-size: 12px; margin: 10px 0 0; line-height: 1.6; }
.page-actions { display: flex; gap: 10px; align-items: center; padding-top: 3px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 17px; min-height: 38px; background: white; border: 1px solid #dce1e8; color: #475366; font-weight: 500; line-height: 1.4; white-space: nowrap; transition: background 120ms, border-color 120ms; }
.button:hover:not(:disabled) { background: #f4f6f9; border-color: #c2cad5; }
.button.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.button.primary:hover:not(:disabled) { background: #1b4fac; border-color: #1b4fac; }
.button.small { padding: 6px 11px; min-height: 31px; font-size: 12px; }
.text-button { color: #647084; background: transparent; font-size: 12px; padding: 6px 8px; min-height: 30px; }
.text-button:hover { color: var(--blue); background: #edf3ff; }
.text-button.danger { color: #9c4f43; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; line-height: 1.4; color: #737d8b; white-space: nowrap; }
.status::before { content: ""; width: 6px; height: 6px; background: #98a1af; border-radius: 50%; }
.status.published { color: #367260; }
.status.published::before { background: #4d8b72; }
.report-toolbar { display: flex; align-items: center; gap: 20px; margin-top: 14px; flex-wrap: wrap; }
.report-toolbar label { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; }
.date-navigation { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 12px; }
.date-shortcuts { display: inline-flex; align-items: center; gap: 1px; }
.date-shortcuts .text-button { font-size: 12px; padding: 5px 7px; color: var(--blue); }
.date-shortcuts .text-button:disabled { color: #98a1af; }
.text-button:disabled:hover { color: #647084; background: transparent; }
input, select, textarea { color: #334154; background: #fff; border: 1px solid #dde2e9; padding: 9px 11px; min-height: 37px; }
input[type="date"] { min-width: 141px; font-size: 12px; padding: 6px 9px; min-height: 33px; color-scheme: light; }
input:disabled, textarea:disabled, select:disabled { color: #697383; background: #f7f8fa; }
.report-toolbar .content-date { font-size: 12px; color: var(--muted); }
.report-paper { background: #fff; border-top: 2px solid #28364b; padding: 0 30px 20px; }
.report-section { padding-top: 27px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.section-heading h2 { margin: 0; font-size: 16px; font-weight: 650; letter-spacing: .4px; }
.section-heading .count { color: #9ba2ad; font-size: 11px; }
.region-heading { margin: 22px 0 0; padding-bottom: 8px; font-size: 12px; font-weight: 500; color: #6a7b93; }
.entry-send { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; }
.push-switch { border: 0; padding: 4px 0 4px 8px; min-height: 32px; font-size: 12px; background: transparent; color: #7a8390; gap: 7px; white-space: nowrap; }
.push-switch[aria-checked="true"] { color: var(--blue); }
.switch-track { display: inline-flex; align-items: center; width: 31px; height: 18px; padding: 2px; border-radius: 20px; background: #cbd1da; transition: background 140ms; }
.switch-thumb { width: 14px; height: 14px; border-radius: 50%; background: white; box-shadow: 0 1px 2px #18223626; transition: transform 140ms; }
.push-switch[aria-checked="true"] .switch-track { background: var(--blue); }
.push-switch[aria-checked="true"] .switch-thumb { transform: translateX(13px); }
.event-check { width: 16px; height: 16px; min-height: 16px; padding: 0; margin: 0; accent-color: var(--blue); cursor: pointer; flex-shrink: 0; }
.entry-select { display: inline-flex; align-items: center; gap: 10px; padding-top: 5px; flex-shrink: 0; }
.entry-select .entry-number { padding-top: 0; }
.selection-toolbar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 22px; background: #fff; border-top: 1px solid #dce1e8; border-bottom: 1px solid var(--line); }
.select-all { display: inline-flex; align-items: center; gap: 9px; font-size: 12px; color: #657184; cursor: pointer; white-space: nowrap; }
.selection-actions { display: flex; align-items: center; gap: 12px; }
.selection-count { color: #89919e; font-size: 12px; white-space: nowrap; }
.selection-toolbar + .report-paper { border-top: 0; }
.report-entry .entry-summary, .report-entry .entry-meta { margin-left: 57px; }
.library-item .entry-summary, .library-item .entry-meta { margin-left: 26px; }
.tag.unsent { color: #7a8390; background: #f2f4f7; }
.push-button { color: var(--blue); border-color: #dce5f5; font-size: 12px; padding: 6px 10px; background: #fff; }
.push-button:hover:not(:disabled) { background: #f0f5ff; border-color: #b6caf0; }
.original-url { display: block; margin-top: 8px; color: #7384a0; font-size: 11px; overflow-wrap: anywhere; line-height: 1.7; }
.report-entry { padding: 20px 0; border-bottom: 1px solid #f0f1f4; }
.report-entry:last-child { border-bottom: 0; }
.entry-heading { display: flex; align-items: flex-start; gap: 12px; }
.entry-number { font-size: 11px; color: #a1a8b3; font-variant-numeric: tabular-nums; padding-top: 5px; width: 19px; flex-shrink: 0; }
.entry-title { background: transparent; text-align: left; color: #273246; font-size: 16px; font-weight: 600; padding: 0; line-height: 1.65; min-width: 0; }
.entry-title:hover { color: var(--blue); }
.entry-edit { margin-left: auto; flex-shrink: 0; }
.entry-summary { margin: 8px 0 10px 31px; color: #697280; font-size: 13px; line-height: 1.95; white-space: pre-line; overflow-wrap: anywhere; }
.entry-meta { display: flex; align-items: center; gap: 12px; margin-left: 31px; flex-wrap: wrap; color: #69778a; font-size: 12px; line-height: 1.8; }
.source-link { font-size: inherit; color: #5e7190; padding: 0; background: none; text-align: left; line-height: inherit; }
.source-link:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.source-action { color: #5276af; }
.tag { display: inline-block; font-size: 10px; line-height: 1.5; padding: 1px 5px; border-radius: 3px; color: #728096; background: #f0f3f7; white-space: nowrap; }
.tag.pending { color: #987339; background: #faf5e9; }
.tag.tracking { color: #4974ba; background: #edf3ff; }
.tag.sent { color: #47826b; background: #eff6f1; }
.report-footer { margin-top: 20px; text-align: center; color: #a1a8b3; font-size: 11px; }
.empty-state { padding: 80px 20px; text-align: center; color: #8c95a2; font-size: 14px; }
.filters { display: flex; gap: 15px; align-items: end; flex-wrap: wrap; padding: 18px 0 24px; border-top: 1px solid var(--line); }
.filter-field { display: flex; flex-direction: column; gap: 8px; color: #7b8593; font-size: 11px; }
.filter-field select, .filter-field input { min-width: 120px; font-size: 12px; }
.place-field { min-width: 120px; }
.place-picker { position: relative; }
.place-trigger { display: block; min-height: 37px; min-width: 120px; width: 100%; color: #334154; font-size: 12px; line-height: 17px; padding: 9px 27px 9px 11px; background: white; border: 1px solid #dde2e9; border-radius: 5px; cursor: pointer; position: relative; white-space: nowrap; }
summary.place-trigger { list-style: none; }
summary.place-trigger::-webkit-details-marker { display: none; }
.place-trigger::after { content: ''; position: absolute; right: 11px; top: 13px; width: 6px; height: 6px; border-right: 1.5px solid #526075; border-bottom: 1.5px solid #526075; transform: rotate(45deg); }
.place-trigger:disabled { background: #f4f6f8; color: #939aa4; }
.place-menu { position: absolute; z-index: 8; left: 0; top: calc(100% + 6px); width: 236px; max-width: calc(100vw - 40px); padding: 8px; border: 1px solid #e0e5ed; border-radius: 6px; background: white; box-shadow: 0 8px 25px #25375018; }
.place-picker[data-place-field="city"] .place-menu { left: auto; right: 0; }
.place-menu .place-search { width: 100%; min-width: 0; min-height: 34px; padding: 7px 9px; }
.place-options { display: flex; flex-direction: column; max-height: 235px; overflow: auto; margin-top: 5px; }
.place-option { text-align: left; flex-shrink: 0; color: #4b596d; background: white; font-size: 12px; line-height: 1.6; padding: 8px 10px; border-radius: 3px; }
.place-option:hover, .place-option[aria-current] { color: var(--blue); background: #edf3ff; }
.place-option[hidden] { display: none; }
.place-empty { margin: 15px 10px; color: var(--muted); font-size: 12px; }
.filter-clear { margin-left: auto; align-self: end; }
.library-list { background: white; border-top: 1px solid #dce1e8; }
.library-topline { padding: 13px 22px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; display: flex; justify-content: space-between; }
.library-item { padding: 19px 23px; border-bottom: 1px solid var(--line); }
.library-item:hover { background: #fcfdff; }
.library-item .entry-heading { gap: 10px; }
.library-item .entry-title { font-size: 15px; }
.library-item .entry-summary { margin-left: 26px; margin-top: 8px; margin-bottom: 10px; }
.library-item .entry-meta { margin-left: 26px; }
.library-item .tags { margin-left: auto; display: flex; flex-wrap: wrap; justify-content: end; gap: 6px; padding-top: 3px; }
.settings-form { background: #fff; border-top: 2px solid #28364b; padding: 0 30px 10px; }
.settings-section { padding: 25px 0; border-bottom: 1px solid var(--line); }
.settings-section h2 { margin: 0 0 22px; font-size: 15px; font-weight: 600; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 35px; }
.form-field { display: flex; flex-direction: column; gap: 9px; font-size: 12px; color: #6d7786; }
.form-field.wide { grid-column: 1 / -1; }
.form-field textarea { resize: vertical; width: 100%; line-height: 1.8; }
.field-suffix { display: flex; align-items: center; gap: 10px; }
.field-suffix input { width: 140px; }
.provider-row { display: flex; align-items: center; justify-content: space-between; padding: 11px 0; font-size: 13px; }
.provider-row .tag { color: #7b8594; }
.platform-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 30px; }
.platform-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 13px 0; border-bottom: 1px solid #f0f2f5; font-size: 13px; }
.settings-details { padding: 20px 0; border-bottom: 1px solid var(--line); }
.settings-details summary { cursor: pointer; color: #5c687a; font-size: 13px; padding: 5px 0; }
.settings-details .form-grid { margin-top: 22px; }
.settings-bottom { display: flex; justify-content: space-between; align-items: center; padding: 22px 0; }
dialog { color: inherit; border: 0; padding: 0; background: white; max-height: 100dvh; }
dialog::backdrop { background: #15233c30; }
.detail-dialog { width: min(536px, 100vw); max-width: 100vw; height: 100dvh; margin: 0 0 0 auto; box-shadow: -8px 0 60px #1e324012; }
.detail-dialog[open] { display: flex; flex-direction: column; animation: slide-in 150ms ease-out; }
.dialog-header { padding: 24px 27px 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); gap: 15px; }
.dialog-header h2 { margin: 0; font-size: 17px; font-weight: 600; }
.close-button { background: transparent; color: #737d8b; width: 34px; height: 34px; font-size: 23px; line-height: 1; }
.close-button:hover { background: #f1f3f6; color: #273246; }
.detail-body { flex: 1; overflow: auto; padding: 24px 27px; }
.detail-body .form-field { margin-bottom: 21px; }
.detail-body textarea { min-height: 160px; }
.detail-body input, .detail-body textarea, .detail-body select { width: 100%; }
.detail-body textarea.title-input { min-height: 72px; }
.detail-body h3 { font-size: 12px; color: #6c7888; font-weight: 500; margin: 25px 0 12px; }
.detail-facts { display: grid; grid-template-columns: 72px 1fr; margin: 0; gap: 12px 14px; font-size: 12px; line-height: 1.7; }
.detail-facts dt { color: #9199a6; }
.detail-facts dd { margin: 0; color: #647084; }
.detail-sources { border-top: 1px solid var(--line); }
.source-row { border-bottom: 1px solid var(--line); padding: 14px 0; }
.source-row button { color: var(--blue); font-size: 13px; background: transparent; padding: 0; text-align: left; }
.source-row small { display: block; color: #939ba8; margin-top: 6px; font-size: 11px; }
.detail-bottom { padding: 18px 27px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 15px; background: white; }
.tracking-control { display: flex; gap: 8px; align-items: center; color: #657184; font-size: 12px; }
.tracking-control input { accent-color: var(--blue); width: 15px; height: 15px; min-height: 0; padding: 0; margin: 0; }
.detail-buttons { display: flex; justify-content: flex-end; gap: 10px; }
.detail-buttons .text-button { margin-right: auto; padding-left: 0; }
.source-dialog { width: min(660px, calc(100vw - 28px)); max-height: calc(100dvh - 40px); border-radius: 7px; box-shadow: 0 20px 80px #192d3825; }
.source-body { padding: 24px 28px 32px; max-height: calc(100dvh - 140px); overflow: auto; }
.source-body h3 { margin: 18px 0 16px; font-size: 18px; line-height: 1.7; font-weight: 600; }
.source-body p { font-size: 14px; line-height: 2; color: #657084; white-space: pre-line; overflow-wrap: anywhere; }
.source-body .source-time { font-size: 11px; color: #8f99a5; }
.confirm-dialog { width: min(410px, calc(100vw - 32px)); border-radius: 7px; box-shadow: 0 20px 80px #192d3825; padding: 25px; }
.confirm-dialog h2 { margin: 0 0 12px; font-size: 18px; }
.confirm-dialog p { color: #758091; font-size: 13px; line-height: 1.8; }
.confirm-dialog .page-actions { justify-content: flex-end; margin-top: 24px; }
.copy-fallback { width: 100%; min-height: 220px; resize: vertical; font-size: 12px; line-height: 1.8; }
.toast { position: fixed; bottom: 30px; left: 50%; transform: translate(-50%, 8px); background: #26354a; color: white; border-radius: 5px; font-size: 12px; line-height: 1.7; padding: 10px 18px; box-shadow: 0 5px 20px #22354a20; z-index: 20; opacity: 0; visibility: hidden; transition: opacity 140ms, transform 140ms; max-width: calc(100vw - 36px); text-align: center; }
.toast.visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.inline-error { color: #a54e41; font-size: 12px; line-height: 1.7; }
.error-state { padding: 40px 0; }
.muted { color: var(--muted); }
@keyframes slide-in { from { transform: translateX(25px); } to { transform: translateX(0); } }
@media (min-width: 1400px) { main { padding-top: 51px; } }
@media (max-width: 760px) {
  .site-header { height: 62px; }
  .header-inner { padding: 0 20px; gap: 25px; justify-content: space-between; }
  .brand { font-size: 14px; gap: 7px; }
  .brand-mark { width: 25px; height: 26px; font-size: 13px; }
  .demo-label { font-size: 9px; margin-left: 0; }
  .main-nav { gap: 20px; }
  .main-nav a { font-size: 13px; }
  main { padding: 29px 18px 50px; min-height: calc(100vh - 62px); }
  h1 { font-size: 24px; }
  .page-heading { flex-direction: column; gap: 19px; margin-bottom: 23px; }
  .page-actions { width: 100%; padding-top: 0; }
  .page-actions .button { flex: 1; padding-left: 10px; padding-right: 10px; }
  .report-toolbar { gap: 12px 15px; margin-top: 12px; }
  .date-navigation { gap: 8px; }
  .date-shortcuts .text-button { font-size: 11px; padding: 4px 5px; }
  .report-paper { padding: 0 17px 15px; }
  .report-section { padding-top: 22px; }
  .section-heading { padding-bottom: 11px; }
  .section-heading h2 { font-size: 15px; }
  .entry-heading { gap: 8px; }
  .entry-title { font-size: 15px; }
  .entry-number { width: 16px; padding-top: 5px; font-size: 10px; }
  .entry-edit { font-size: 11px; padding: 4px 0 4px 6px; }
  .entry-summary { margin-left: 24px; font-size: 13px; }
  .entry-meta { margin-left: 24px; font-size: 11px; gap: 7px 10px; }
  .entry-send { width: 100%; justify-content: flex-end; padding-top: 5px; }
  .push-switch { width: auto; }
  .selection-toolbar { padding: 11px 13px; gap: 8px; }
  .selection-actions { gap: 7px; }
  .selection-count, .select-all { font-size: 11px; }
  .selection-actions .text-button { padding: 4px; }
  .selection-toolbar .button { padding: 6px 9px; font-size: 11px; }
  .entry-select { gap: 6px; }
  .report-entry .entry-summary, .report-entry .entry-meta { margin-left: 46px; }
  .platform-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
  .filters { gap: 14px 12px; }
  .filter-field { flex: 1; min-width: 130px; }
  .filter-field input, .filter-field select { width: 100%; }
  .filter-clear { margin-left: 0; }
  .library-item { padding: 17px 16px; }
  .library-topline { padding: 12px 16px; }
  .library-item .entry-heading { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 6px 10px; }
  .library-item .entry-select { grid-row: 1 / 3; }
  .library-item .entry-title { width: auto; }
  .library-item .tags { grid-column: 2; margin-left: 0; justify-content: start; padding-top: 0; }
  .settings-form { padding: 0 19px 5px; }
  .form-grid { grid-template-columns: 1fr; gap: 18px; }
  .settings-section { padding: 22px 0; }
  .detail-dialog { width: 100vw; }
  .dialog-header { padding: 19px 21px 15px; }
  .detail-body { padding: 21px; }
  .detail-bottom { padding: 16px 21px; }
  .toast { bottom: 20px; }
}
@media (max-width: 370px) {
  .header-inner { padding: 0 14px; gap: 12px; }
  .main-nav { gap: 15px; }
  .brand { gap: 5px; }
  .brand-mark { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
[hidden] { display: none !important; }
.login-panel { max-width: 350px; margin: 12vh auto 0; }
.login-panel h1 { margin-bottom: 32px; font-size: 25px; }
.login-panel form { display: grid; gap: 22px; }
.login-panel .form-field { gap: 9px; }
.login-panel input { width: 100%; min-height: 44px; }
.login-panel .inline-error { margin: -6px 0; min-height: 18px; }
.login-panel button { min-height: 44px; }
.load-more { display: flex; justify-content: center; padding: 28px 0 4px; }
.platform-state { display: flex; align-items: flex-end; flex-direction: column; gap: 5px; max-width: 75%; text-align: right; }
.platform-state small { color: var(--muted); font-size: 11px; line-height: 1.6; }
.job-list { margin: 20px 0 6px; }
.job-row { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.job-row small { color: var(--muted); margin-left: auto; }
.job-row p { flex-basis: 100%; margin: 0; }
.source-completeness { color: var(--muted); font-size: 12px; }
.detail-dialog[open],.source-dialog[open] { animation: dialog-appear 140ms ease-out; }
@keyframes dialog-appear { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media (max-width: 640px) { .login-panel { margin-top: 8vh; }.platform-state { max-width: 68%; }.settings-section .section-heading { align-items: flex-start; flex-wrap: wrap; gap: 14px; }.settings-section .page-actions { padding: 0; } }
