.stats-page {
  --ios-blue: #007aff;
  --ios-blue-pressed: #0066d6;
  --ios-ink: #1c1c1e;
  --ios-muted: #6e6e73;
  --ios-line: #e5e5ea;
  --ios-group: #f2f2f7;
  --ios-surface: #fff;
  background: var(--ios-group);
  color: var(--ios-ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 88px;
}

.stats-page .stats-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;
}

.stats-page .stats-shell { padding: 0; }

.stats-page .stats-header {
  position: sticky;
  top: 0;
  z-index: 30;
  width: 100%;
  max-width: none;
  min-height: 72px;
  margin: 0;
  padding: 9px max(24px, calc((100vw - 1416px) / 2));
  align-items: center;
  gap: 12px;
  border: 0;
  border-bottom: 1px solid rgba(189, 192, 199, .65);
  border-radius: 0;
  background: rgba(250, 250, 252, .86);
  box-shadow: none;
  -webkit-backdrop-filter: blur(20px) saturate(1.55);
  backdrop-filter: blur(20px) saturate(1.55);
}

.stats-page .stats-brand-logo { width: 44px; height: 44px; flex-basis: 44px; object-fit: contain; }
.stats-page .stats-header > div { min-height: 44px; }
.stats-page .stats-header h1 { margin: 0 0 3px; color: var(--ios-ink); font-size: 18px; font-weight: 700; }
.stats-page .stats-header .stats-contact { color: var(--ios-muted); font-size: 11px; font-weight: 400; }

.stats-page .stats-layout {
  display: grid;
  width: min(100%, 1464px);
  min-height: 0;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  padding: 28px 24px 56px;
  margin: 0 auto;
}

.stats-page .stats-sidebar,
.stats-page .stats-main { display: block; min-width: 0; }

.stats-page .stats-sidebar {
  padding: 18px 20px 15px;
  border: 1px solid var(--ios-line);
  border-radius: 8px;
  background: var(--ios-surface);
  box-shadow: 0 2px 10px rgba(43, 51, 69, .035);
}

.stats-page .stats-workspace-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}

.stats-page .stats-workspace-heading h2 { margin: 0; font-size: 16px; font-weight: 700; }
.stats-page .stats-workspace-heading span { color: #8a8a90; font-size: 12px; }
.stats-page .stats-control-grid { display: grid; grid-template-columns: minmax(250px, 1.4fr) minmax(0, 3.8fr); gap: 18px; }

.stats-page #statsSearchForm,
.stats-page #statsRunForm {
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  overflow: visible;
}

.stats-page #statsSearchForm { padding-right: 18px; border-right: 1px solid var(--ios-line); }
.stats-page .stats-search-row { display: grid; grid-template-columns: minmax(0, 1fr) 64px; gap: 8px; align-items: end; }
.stats-page .stats-search-field { min-width: 0; }
.stats-page .stats-run-fields { display: grid; grid-template-columns: minmax(145px, 1fr) minmax(145px, 1fr) minmax(115px, .75fr) minmax(132px, .85fr); gap: 10px; align-items: end; }

.stats-page #statsSearchForm label,
.stats-page #statsRunForm .stats-run-fields label {
  display: grid;
  width: 100%;
  gap: 7px;
  margin: 0;
  color: #65656c;
  font-size: 12px;
  font-weight: 600;
  overflow: visible;
}

.stats-page #statsKeyword,
.stats-page #statsRunForm .stats-run-fields input {
  width: 100%;
  height: 44px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #d8d8de;
  border-radius: 7px;
  background: #fafafa;
  box-shadow: none;
  color: var(--ios-ink);
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.stats-page #statsMonth { appearance: auto; -webkit-appearance: auto; }
.stats-page #statsMonth::-webkit-date-and-time-value { text-align: left; }
.stats-page #statsKeyword:focus,
.stats-page #statsRunForm .stats-run-fields input:focus {
  border-color: var(--ios-blue);
  outline: 0;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 122, 255, .14);
}

.stats-page #statsSearchButton,
.stats-page #statsRunButton,
.stats-page #statsExportButton,
.stats-page #statsMobileRunButton {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--ios-blue);
  border-radius: 7px;
  background: var(--ios-blue);
  box-shadow: none;
  color: #fff;
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
  transition: background-color .18s ease, transform .26s cubic-bezier(.22, 1.25, .36, 1), box-shadow .18s ease;
}

.stats-page #statsSearchButton { border-color: #d5e7fd; background: #e7f2ff; color: #0067cf; }
.stats-page #statsSearchButton::before { display: none; }
.stats-page #statsSearchButton.is-searching:disabled { animation: none; box-shadow: none; }
.stats-page #statsSearchButton:not(:disabled):hover { background: #d6eaff; color: #0057b4; }
.stats-page #statsRunButton:not(:disabled):hover,
.stats-page #statsExportButton:not(:disabled):hover,
.stats-page #statsMobileRunButton:not(:disabled):hover { background: var(--ios-blue-pressed); color: #fff; }
.stats-page #statsSearchButton:not(:disabled):active,
.stats-page #statsRunButton:not(:disabled):active,
.stats-page #statsExportButton:not(:disabled):active,
.stats-page #statsMobileRunButton:not(:disabled):active { transform: scale(.975); }
.stats-page button:disabled { opacity: .48; box-shadow: none; }

.stats-page .stats-scope-row { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding-top: 13px; border-top: 1px solid var(--ios-line); }
.stats-page .stats-scope-row > span { flex: none; color: var(--ios-muted); font-size: 12px; font-weight: 600; }
.stats-page #statsRunForm .stats-checkset {
  display: flex;
  width: auto;
  gap: 2px;
  min-width: 0;
  margin: 0;
  padding: 3px;
  border: 0;
  border-radius: 8px;
  background: #e9e9ed;
  box-shadow: none;
}

.stats-page #statsRunForm .stats-checkset label {
  display: flex;
  width: auto;
  min-width: 94px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 4px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  box-shadow: none;
  color: #595960;
  font-size: 12px;
  font-weight: 550;
  cursor: pointer;
  transition: background-color .22s ease, box-shadow .22s ease, color .22s ease, transform .24s cubic-bezier(.22, 1.25, .36, 1);
}

.stats-page #statsRunForm .stats-checkset label:has(input:checked) { background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .13); color: #0067cf; font-weight: 680; }
.stats-page #statsRunForm .stats-checkset label:active { transform: scale(.96); }
.stats-page #statsRunForm .stats-checkset input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.stats-page #statsRunForm .stats-checkset label:has(input:focus-visible) { outline: 2px solid var(--ios-blue); outline-offset: 2px; }
.stats-page #statsRunForm .stats-checkset span { overflow: visible; white-space: nowrap; }

.stats-page .stats-message { min-height: 0; margin: 7px 0 0; color: var(--ios-muted); font-size: 12px; line-height: 1.4; }
.stats-page .stats-message:empty { display: none; }
.stats-page .stats-message.ok { color: #168052; }
.stats-page .stats-message.warn { color: #c63340; }
.stats-page .stats-message.pending { color: #0069d4; }

.stats-page .stats-account-list { max-height: 204px; margin-top: 9px; padding: 0; border: 1px solid var(--ios-line); border-radius: 7px; background: #fff; box-shadow: none; }
.stats-page .stats-account-list[hidden],
.stats-page .stats-account-list.has-selection:not(.expanded) .stats-account-option:not(.active) { display: none; }
.stats-page .stats-account-option,
.stats-page .stats-card .stats-account-option {
  display: grid;
  width: 100%;
  min-height: 55px;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 9px;
  padding: 8px 10px;
  border: 0;
  border-bottom: 1px solid var(--ios-line);
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  color: var(--ios-ink);
  text-align: left;
  transition: background-color .18s ease;
}
.stats-page .stats-account-option:last-child { border-bottom: 0; }
.stats-page .stats-account-option.active { background: #f7faff; box-shadow: none; }
.stats-page .stats-account-option:hover { background: #f1f6fd; }
.stats-page .stats-account-option img,
.stats-page .stats-account-option .stats-avatar-fallback { width: 34px; height: 34px; border-radius: 6px; }
.stats-page .stats-account-change { display: none; align-self: center; color: var(--ios-blue); font-size: 12px; }
.stats-page .stats-account-option.active .stats-account-change { display: block; }

.stats-page .stats-recent-panel {
  top: calc(100% + 4px);
  border: 1px solid rgba(216, 216, 222, .8);
  border-radius: 8px;
  background: rgba(250, 250, 253, .92);
  box-shadow: 0 13px 35px rgba(30, 43, 63, .16);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  backdrop-filter: blur(24px) saturate(1.5);
  transform: translateY(-7px) scale(.98);
  transition: opacity .22s ease, transform .3s cubic-bezier(.2, 1.15, .35, 1), visibility .22s;
}
.stats-page .stats-recent-heading { min-height: 44px; padding-left: 14px; }
.stats-page #statsSearchForm .stats-recent-list button:active,
.stats-page .stats-account-option:active { background: rgba(0, 122, 255, .12); }
.stats-page #statsSearchForm.recent-open .stats-recent-panel { transform: translateY(0) scale(1); }
.stats-page #statsSearchForm .stats-recent-list button:hover { background: rgba(0, 122, 255, .08); }

.stats-page .stats-main { display: flex; flex-direction: column; gap: 17px; }
.stats-page .stats-summary-grid { order: 0; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0; border: 1px solid var(--ios-line); border-radius: 8px; background: #fff; overflow: hidden; box-shadow: 0 2px 10px rgba(43, 51, 69, .035); animation: stats-ios-reveal .38s ease-out both; }
.stats-page .stats-summary-grid[hidden] { display: none; }
.stats-page .stats-summary-card { min-height: 85px; padding: 15px 17px; border: 0; border-right: 1px solid var(--ios-line); border-radius: 0; background: transparent; box-shadow: none; }
.stats-page .stats-summary-card:last-child { border-right: 0; }
.stats-page .stats-summary-card span { color: var(--ios-muted); font-size: 11px; font-weight: 550; }
.stats-page .stats-summary-card strong { color: var(--ios-ink); font-size: 25px; font-weight: 700; }
.stats-page .stats-table-card { order: 1; min-height: 0; display: block; padding: 0; border: 1px solid var(--ios-line); border-radius: 8px; background: #fff; box-shadow: 0 2px 10px rgba(43, 51, 69, .035); overflow: hidden; }
.stats-page .stats-analysis { order: 2; padding: 0 0 10px; border-top: 1px solid #d7d7dd; }
.stats-page .stats-section-title { position: relative; min-height: 61px; padding: 12px 18px; border-bottom: 1px solid var(--ios-line); transition: min-height .35s ease; }
.stats-page .stats-section-title h2 { position: relative; z-index: 2; flex: none; color: var(--ios-ink); font-size: 16px; font-weight: 700; white-space: nowrap; }
.stats-page .stats-section-title[data-mascot-state="loading"] { min-height: 94px; }
.stats-page .stats-section-title[data-mascot-state="resting"] { min-height: 100px; }
.stats-page .stats-result-note { margin: 0; padding: 8px 18px; color: var(--ios-muted); font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.stats-page .stats-result-note:empty { display: none; }
.stats-page .stats-mascot { position: absolute; z-index: 1; bottom: 0; left: 112px; width: 110px; height: 99px; pointer-events: none; opacity: 0; visibility: hidden; }
.stats-page .stats-section-title[data-mascot-state="loading"] .stats-mascot { opacity: 1; visibility: visible; animation: stats-usagi-emerge 1.1s cubic-bezier(.2, .8, .25, 1) both; }
.stats-page .stats-section-title[data-mascot-state="resting"] .stats-mascot { opacity: 1; visibility: visible; animation: stats-usagi-settle .65s cubic-bezier(.2, 1.3, .35, 1) both; }
.stats-page .stats-mascot-pose { position: absolute; bottom: 0; left: 0; opacity: 0; }
.stats-page .stats-mascot-pose img { display: block; width: 100%; height: auto; }
.stats-page .stats-mascot-standing { width: 72px; --eye-left: 38.5%; --eye-right: 64.5%; --eye-top: 53%; --glint-size: 6px; }
.stats-page .stats-mascot-resting { width: 106px; --eye-left: 38%; --eye-right: 62%; --eye-top: 67%; --glint-size: 8px; }
.stats-page .stats-section-title[data-mascot-state="loading"] .stats-mascot-standing { opacity: 1; animation: stats-usagi-step .68s ease-in-out infinite alternate; }
.stats-page .stats-section-title[data-mascot-state="resting"] .stats-mascot-resting { opacity: 1; animation: stats-usagi-breathe 2.7s ease-in-out infinite; transform-origin: 50% 100%; }
.stats-page .stats-mascot-glint { position: absolute; top: var(--eye-top); width: var(--glint-size); height: var(--glint-size); background: #fff; clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); filter: drop-shadow(0 0 2px #fff); animation: stats-usagi-twinkle 1.35s ease-in-out infinite; }
.stats-page .stats-mascot-glint-left { left: var(--eye-left); }
.stats-page .stats-mascot-glint-right { left: var(--eye-right); animation-delay: -.57s; }
.stats-page .stats-section-title .stats-export-actions { position: relative; z-index: 2; }
.stats-page .stats-ios-progress { height: 3px; overflow: hidden; background: #e8ecf2; }
.stats-page .stats-ios-progress[hidden] { display: none; }
.stats-page .stats-ios-progress span { display: block; height: 100%; width: 0; border-radius: 0 3px 3px 0; background: var(--ios-blue); transition: width .5s cubic-bezier(.22, 1, .36, 1); }
.stats-page .stats-ios-progress.is-indeterminate span { width: 32% !important; animation: stats-ios-progress-sweep 1.6s ease-in-out infinite; }
.stats-page #statsResultNote.is-error { color: #c63340; }
.stats-page #statsResultNote.is-pending { color: #0069d4; }
.stats-page #statsResultNote.is-pending::before { display: inline-block; width: 6px; height: 6px; margin: 0 7px 1px 0; border-radius: 50%; background: currentColor; content: ''; animation: stats-ios-breathe 1.5s ease-in-out infinite; }
.stats-page .stats-export-actions { width: auto; display: flex; align-items: center; gap: 8px; }
.stats-page #statsExportButton { width: auto; min-height: 36px; padding: 0 13px; border-color: #cfe3fb; background: #eaf4ff; color: #0069d4; font-size: 12px; }
.stats-page #statsExportButton:not(:disabled):hover { background: #d7eaff; color: #0059b7; }
.stats-page .stats-export-fallback { width: auto; min-height: 36px; padding: 0 10px; border-color: #cfe3fb; background: #fff; box-shadow: none; color: #0069d4; font-size: 12px; }
.stats-page .stats-table-wrap { border: 0; border-radius: 0; box-shadow: none; }
.stats-page .stats-table { background: #fff; }
.stats-page .stats-table th { background: #f8f8fa; color: #77777d; font-size: 11px; font-weight: 600; }
.stats-page .stats-table th,
.stats-page .stats-table td { border-bottom: 1px solid #ededf1; padding: 11px 12px; }
.stats-page .stats-table tbody tr:nth-child(even):not(.stats-week-row) td { background: #fff; }
.stats-page .stats-table tbody tr:hover:not(.stats-week-row) td { background: #f8faff; }
.stats-page .stats-week-row td { background: #f4f4f8; color: #74747b; font-size: 11px; font-weight: 650; }
.stats-page .stats-table td { color: var(--ios-ink); font-size: 12px; }
.stats-page .stats-empty-cell { height: 94px; color: #8a8a90; }
.stats-page .stats-table tr[hidden] { display: none !important; }
.stats-page .stats-table a { color: var(--ios-blue); font-weight: 600; }
.stats-page .stats-row-meta select { border: 1px solid #dedee3; border-radius: 6px; background: #f7f7fa; box-shadow: none; color: #4a4a50; }
.stats-page .stats-table input:not([type="checkbox"]) { border: 1px solid #dedee3; border-radius: 6px; background: #fafafa; box-shadow: none; color: var(--ios-ink); }
.stats-page .stats-table input:not([type="checkbox"]):focus-visible,
.stats-page .stats-row-meta select:focus-visible,
.stats-page .stats-analysis-heading select:focus-visible { border-color: var(--ios-blue); outline: 0; box-shadow: 0 0 0 3px rgba(0, 122, 255, .16); }
.stats-page .stats-original-toggle input { accent-color: var(--ios-blue); }
.stats-page .stats-row-expand { display: none; }
.stats-page .stats-analysis-heading select { border: 1px solid #dedee3; background: #fff; box-shadow: none; }
.stats-page .stats-analysis-pie { box-shadow: none; }

.stats-page .stats-auth-overlay { background: rgba(22, 22, 30, .38); -webkit-backdrop-filter: blur(9px); backdrop-filter: blur(9px); }
.stats-page .stats-auth-dialog { border: 1px solid rgba(235, 235, 239, .9); border-radius: 12px; background: #fff; box-shadow: 0 24px 55px rgba(20, 24, 42, .2); }
.stats-page .stats-auth-dialog .stats-auth-refresh { background: var(--ios-blue); border-color: var(--ios-blue); }
.stats-page .stats-mobile-action { display: none; }

@keyframes stats-ios-reveal { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes stats-ios-breathe { 50% { opacity: .35; transform: scale(.78); } }
@keyframes stats-ios-cue { 50% { transform: scale(1.025); box-shadow: 0 0 0 4px rgba(0, 122, 255, .13); } }
@keyframes stats-ios-progress-sweep { from { transform: translateX(-105%); } to { transform: translateX(315%); } }
@keyframes stats-usagi-emerge {
  0% { opacity: 0; transform: translate(-88px, 23px) scale(.72); }
  25% { opacity: 1; transform: translate(-68px, 5px) rotate(-4deg); }
  55% { transform: translate(-30px, -4px) rotate(4deg); }
  78% { transform: translate(-9px, 0) rotate(-2deg); }
  100% { opacity: 1; transform: translate(0, 0); }
}
@keyframes stats-usagi-settle { from { opacity: 0; transform: translateY(-12px) scale(.85); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes stats-usagi-step { from { transform: translateY(0) rotate(-2deg); } to { transform: translateY(-4px) rotate(2deg); } }
@keyframes stats-usagi-breathe { 50% { transform: scale(1.025); } }
@keyframes stats-usagi-twinkle {
  0%, 30%, 100% { opacity: .25; transform: translate(-50%, -50%) scale(.55) rotate(-10deg); }
  41% { opacity: 1; transform: translate(-50%, -50%) scale(1.3) rotate(8deg); }
  47% { opacity: .85; transform: translate(calc(-50% + 1px), calc(-50% - 1px)) scale(.9) rotate(-8deg); }
  57% { opacity: 1; transform: translate(calc(-50% - 1px), -50%) scale(1.15) rotate(7deg); }
}

@media (max-width: 1110px) {
  .stats-page .stats-control-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .stats-page #statsSearchForm { padding: 0 0 14px; border-right: 0; border-bottom: 1px solid var(--ios-line); }
  .stats-page .stats-run-fields { grid-template-columns: repeat(3, minmax(0, 1fr)) 142px; }
  .stats-page .stats-summary-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stats-page .stats-summary-card:nth-child(4) { border-right: 0; }
  .stats-page .stats-summary-card:nth-child(-n+4) { border-bottom: 1px solid var(--ios-line); }
}

@media (max-width: 760px) {
  .stats-page { scroll-padding-top: 74px; }
  .stats-page .stats-header { min-height: 62px; padding: 7px 15px; gap: 9px; flex-direction: row; align-items: center; }
  .stats-page .stats-brand-logo { width: 37px; height: 37px; flex-basis: 37px; }
  .stats-page .stats-header > div { min-height: 37px; }
  .stats-page .stats-header h1 { font-size: 15px; }
  .stats-page .stats-header .stats-contact { font-size: 10px; line-height: 1.2; }
  .stats-page .stats-header .stats-contact span { display: inline; white-space: normal; }
  .stats-page .stats-layout { display: grid; gap: 18px; padding: 18px 14px calc(98px + env(safe-area-inset-bottom)); }
  .stats-page .stats-sidebar { padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
  .stats-page .stats-workspace-heading { margin: 0 3px 9px; }
  .stats-page .stats-workspace-heading h2 { font-size: 13px; }
  .stats-page .stats-workspace-heading span { font-size: 11px; }
  .stats-page .stats-control-grid { display: block; }
  .stats-page #statsSearchForm,
  .stats-page #statsRunForm { padding: 12px 14px; border: 0; border-radius: 8px; background: #fff; box-shadow: none; }
  .stats-page #statsSearchForm { margin-bottom: 10px; }
  .stats-page .stats-search-row { grid-template-columns: minmax(0, 1fr) 62px; }
  .stats-page .stats-run-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; }
  .stats-page #statsRunForm .stats-run-fields label:nth-child(3) { grid-column: 1 / -1; }
  .stats-page #statsRunButton { display: none; }
  .stats-page #statsKeyword,
  .stats-page #statsRunForm .stats-run-fields input { height: 44px; font-size: 16px; }
  .stats-page .stats-scope-row { display: block; margin-top: 15px; padding-top: 13px; }
  .stats-page .stats-scope-row > span { display: block; margin-bottom: 8px; }
  .stats-page #statsRunForm .stats-checkset { display: flex; width: 100%; }
  .stats-page #statsRunForm .stats-checkset label { flex: 1; min-width: 0; padding: 4px; font-size: 11px; }
  .stats-page .stats-account-list { margin-top: 10px; }
  .stats-page .stats-main { gap: 13px; }
  .stats-page .stats-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-page .stats-summary-card { min-height: 78px; padding: 12px 14px; border-right: 1px solid var(--ios-line); border-bottom: 1px solid var(--ios-line); }
  .stats-page .stats-summary-card:nth-child(even) { border-right: 0; }
  .stats-page .stats-summary-card:last-child { border-bottom: 0; }
  .stats-page .stats-summary-card strong { font-size: 23px; }
  .stats-page .stats-table-card { min-height: 0; }
  .stats-page .stats-section-title { flex-direction: row; align-items: center; min-height: 56px; padding: 10px 13px; }
  .stats-page .stats-section-title h2 { font-size: 15px; }
  .stats-page .stats-section-title[data-mascot-state="loading"] { min-height: 90px; }
  .stats-page .stats-section-title[data-mascot-state="resting"] { min-height: 96px; }
  .stats-page .stats-result-note { padding: 8px 13px; }
  .stats-page .stats-mascot { left: 92px; }
  .stats-page #statsExportButton { min-height: 34px; padding: 0 9px; font-size: 11px; }
  .stats-page .stats-export-actions { flex-direction: column; align-items: flex-end; }
  .stats-page .stats-export-fallback { min-height: 27px; font-size: 11px; }
  .stats-page .stats-table-wrap { overflow: visible; }
  .stats-page .stats-table { display: block; width: 100%; min-width: 0; }
  .stats-page .stats-table thead { display: none; }
  .stats-page .stats-table tbody { display: block; }
  .stats-page .stats-table tbody tr[data-row-id] { display: grid; grid-template-columns: minmax(0, 1fr); padding: 12px 14px; border-bottom: 1px solid var(--ios-line); background: #fff; animation: stats-ios-reveal .24s ease-out both; }
  .stats-page .stats-table tbody tr[data-row-id]:hover td,
  .stats-page .stats-table tbody tr:nth-child(even):not(.stats-week-row) td { background: transparent; }
  .stats-page .stats-table tr[data-row-id] td { display: block; height: auto; min-width: 0; padding: 0; border: 0; white-space: normal; }
  .stats-page .stats-table tr[data-row-id] td:nth-child(1),
  .stats-page .stats-table tr[data-row-id] td:nth-child(3) { display: none; }
  .stats-page .stats-table tr[data-row-id] td:nth-child(2) { margin-bottom: 5px; color: #8b8b92; font-size: 11px; }
  .stats-page .stats-table tr[data-row-id] td:nth-child(4) { position: relative; padding-right: 50px; }
  .stats-page .stats-table .stats-article-title { max-width: none; font-size: 13px; line-height: 1.4; white-space: normal; }
  .stats-page .stats-table td small.stats-row-meta { margin-top: 7px; }
  .stats-page .stats-row-expand { position: absolute; top: -20px; right: 0; width: auto; min-height: 38px; display: inline-flex; align-items: center; padding: 0 2px; border: 0; background: transparent; box-shadow: none; color: var(--ios-blue); font-size: 12px; font-weight: 600; }
  .stats-page .stats-row-expand:hover { background: transparent; color: var(--ios-blue-pressed); }
  .stats-page .stats-table tr[data-row-id] td:nth-child(n+5) { display: none; }
  .stats-page .stats-table tr[data-row-id].is-expanded td:nth-child(n+5) { display: grid; grid-template-columns: 90px minmax(0, 1fr); align-items: center; gap: 8px; min-height: 46px; border-top: 1px solid #ededf1; animation: stats-ios-reveal .22s ease-out both; }
  .stats-page .stats-table tr[data-row-id].is-expanded td:nth-child(5) { margin-top: 12px; }
  .stats-page .stats-table tr[data-row-id].is-expanded td:nth-child(n+5)::before { content: attr(data-label); color: var(--ios-muted); font-size: 11px; }
  .stats-page .stats-table tr[data-row-id].is-expanded input { width: 100%; height: 44px; font-size: 16px; }
  .stats-page .stats-table tr[data-row-id].is-expanded input[data-field="remark"] { width: 100%; }
  .stats-page .stats-week-row { display: block; }
  .stats-page .stats-week-row td { display: block; padding: 8px 14px; border-bottom: 1px solid var(--ios-line); background: #f6f6f9; }
  .stats-page .stats-table tbody tr:not([data-row-id]):not(.stats-week-row) { display: block; }
  .stats-page .stats-table tbody tr:not([data-row-id]):not(.stats-week-row) td { display: block; padding: 35px 12px; }
  .stats-page .stats-mobile-action { position: fixed; z-index: 50; right: 0; bottom: 0; left: 0; display: flex; align-items: center; gap: 12px; min-height: 66px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(188, 188, 195, .7); background: rgba(250, 250, 252, .88); box-shadow: 0 -4px 18px rgba(40, 45, 60, .04); -webkit-backdrop-filter: blur(20px) saturate(1.5); backdrop-filter: blur(20px) saturate(1.5); }
  .stats-page .stats-mobile-action-label { flex: 1; min-width: 0; display: grid; gap: 2px; color: var(--ios-muted); font-size: 11px; line-height: 1.3; }
  .stats-page .stats-mobile-action-label strong { color: var(--ios-ink); font-size: 12px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .stats-page #statsMobileRunButton { flex: 0 0 124px; width: 124px; min-height: 43px; }
  .stats-page #statsMobileRunButton.is-cued:not(:disabled) { animation: stats-ios-cue .56s ease-out; }
  .stats-page .stats-auth-dialog { width: 100%; align-self: end; border-radius: 12px 12px 0 0; padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
  .stats-page .stats-auth-overlay { display: flex; align-items: end; padding: 0; }
  .stats-page .stats-auth-overlay[hidden] { display: none; }
}

@media (max-width: 380px) {
  .stats-page .stats-header h1 { font-size: 14px; }
  .stats-page .stats-layout { padding-right: 11px; padding-left: 11px; }
}

.stats-page .stats-search-row { grid-template-columns: minmax(0, 1fr) 44px; }
.stats-page .stats-run-fields { grid-template-columns: minmax(145px, 1fr) minmax(145px, 1fr) minmax(115px, .75fr) 44px; }

.stats-page #statsSearchButton,
.stats-page #statsRunButton,
.stats-page #statsExportButton,
.stats-page #statsMobileRunButton,
.stats-page #statsExportFallback,
.stats-page #statsWereadCloseButton,
.stats-page #statsWereadRefreshButton,
.stats-page #statsSearchForm #statsRecentClear {
  position: relative;
  display: inline-grid;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid #e1e3e8;
  border-radius: 50%;
  background: #eef0f5;
  box-shadow: none;
  color: #242a32;
  font-size: 0;
  line-height: 0;
  overflow: visible;
  transition: background-color .18s ease, transform .28s cubic-bezier(.22, 1.25, .36, 1), box-shadow .2s ease;
}

.stats-page #statsRunButton,
.stats-page #statsMobileRunButton { border-color: #172d3a; background: #172d3a; color: #fff; }
.stats-page #statsSearchButton:not(:disabled):hover,
.stats-page #statsExportButton:not(:disabled):hover,
.stats-page #statsSearchForm #statsRecentClear:hover,
.stats-page #statsWereadCloseButton:hover,
.stats-page #statsWereadRefreshButton:hover { background: #e0e5ed; color: #17242f; }
.stats-page #statsRunButton:not(:disabled):hover,
.stats-page #statsMobileRunButton:not(:disabled):hover { background: #294656; color: #fff; }
.stats-page .stats-icon-button:not(:disabled):active { transform: scale(.9); }
.stats-page .stats-icon-button:focus-visible { outline: 2px solid var(--ios-blue); outline-offset: 3px; }
.stats-page :is(#statsSearchButton, #statsRunButton, #statsExportButton, #statsMobileRunButton, #statsWereadRefreshButton):disabled { border-color: #e7e8ed; background: #e7e8ed; color: #989ba3; opacity: 1; }
.stats-page .stats-icon-button:disabled::before { opacity: .55; }
.stats-page :is(#statsSearchButton.is-searching, #statsRunButton.is-running, #statsMobileRunButton.is-running, #statsExportButton.is-downloading):disabled { border-color: #dcebf9; background: #e9f3ff; color: #006edb; }
.stats-page .stats-icon-button.is-searching:disabled::before,
.stats-page .stats-icon-button.is-running:disabled::before,
.stats-page .stats-icon-button.is-downloading:disabled::before { opacity: 1; }

.stats-page .stats-icon-button::before {
  position: absolute;
  display: block;
  width: 20px;
  height: 20px;
  inset: auto;
  top: 50%;
  left: 50%;
  flex: none;
  background: currentColor;
  content: '';
  -webkit-mask: var(--stats-icon) center / contain no-repeat;
  mask: var(--stats-icon) center / contain no-repeat;
  transform: translate(-50%, -50%);
  animation: none;
}
.stats-page #statsSearchButton::before {
  position: absolute;
  display: block;
  width: 20px;
  height: 20px;
  inset: auto;
  top: 50%;
  left: 50%;
  background: currentColor;
  -webkit-mask: var(--stats-icon) center / contain no-repeat;
  mask: var(--stats-icon) center / contain no-repeat;
  transform: translate(-50%, -50%);
  animation: none;
}

.stats-page #statsSearchButton { --stats-icon: url('/icons/lucide/search.svg'); }
.stats-page #statsRunButton,
.stats-page #statsMobileRunButton { --stats-icon: url('/icons/lucide/play.svg'); }
.stats-page #statsExportButton { --stats-icon: url('/icons/lucide/file-spreadsheet.svg'); }
.stats-page #statsExportFallback { --stats-icon: url('/icons/lucide/download.svg'); }
.stats-page #statsSearchForm #statsRecentClear { --stats-icon: url('/icons/lucide/trash-2.svg'); }
.stats-page #statsWereadCloseButton { --stats-icon: url('/icons/lucide/x.svg'); }
.stats-page #statsWereadRefreshButton { --stats-icon: url('/icons/lucide/rotate-cw.svg'); }
.stats-page .stats-row-expand { --stats-icon: url('/icons/lucide/pencil.svg'); }
.stats-page .stats-row-expand[aria-expanded="true"] { --stats-icon: url('/icons/lucide/chevron-up.svg'); }
.stats-page #statsSearchButton.is-searching,
.stats-page #statsRunButton.is-running,
.stats-page #statsMobileRunButton.is-running,
.stats-page #statsExportButton.is-downloading { --stats-icon: url('/icons/lucide/loader-circle.svg'); }
.stats-page #statsSearchButton.is-searching::before,
.stats-page #statsRunButton.is-running::before,
.stats-page #statsMobileRunButton.is-running::before,
.stats-page #statsExportButton.is-downloading::before { animation: stats-ios-spinner .85s linear infinite; }
@keyframes stats-ios-spinner { to { transform: translate(-50%, -50%) rotate(360deg); } }

.stats-page .stats-icon-button[data-tooltip]::after {
  position: absolute;
  z-index: 60;
  bottom: calc(100% + 8px);
  left: 50%;
  padding: 6px 9px;
  border-radius: 5px;
  background: rgba(29, 32, 38, .9);
  color: #fff;
  content: attr(data-tooltip);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity .16s ease, transform .2s ease;
}
.stats-page .stats-icon-button[data-tooltip]:hover::after,
.stats-page .stats-icon-button[data-tooltip]:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }

.stats-page #statsSearchForm #statsRecentClear { width: 44px; min-width: 44px; height: 44px; min-height: 44px; }
.stats-page #statsSearchForm #statsRecentClear::before { width: 15px; height: 15px; }
.stats-page #statsExportButton,
.stats-page #statsExportFallback { width: 44px; min-width: 44px; height: 44px; min-height: 44px; }
.stats-page #statsExportFallback[hidden] { display: none; }
.stats-page #statsWereadCloseButton { width: 44px; min-width: 44px; height: 44px; min-height: 44px; }
.stats-page #statsWereadRefreshButton { margin-inline: auto; }
.stats-page .stats-account-change {
  position: relative;
  display: none;
  width: 28px;
  height: 28px;
  align-self: center;
  place-items: center;
  border-radius: 50%;
  background: #ecedf2;
  color: #38434b;
  font-size: 0;
}
.stats-page .stats-account-option.active .stats-account-change { display: grid; }
.stats-page .stats-account-change::before { position: absolute; top: 50%; left: 50%; display: block; width: 16px; height: 16px; background: currentColor; content: ''; transform: translate(-50%, -50%); -webkit-mask: url('/icons/lucide/chevron-down.svg') center / contain no-repeat; mask: url('/icons/lucide/chevron-down.svg') center / contain no-repeat; }
.stats-page .stats-account-list.expanded .stats-account-change::before { -webkit-mask-image: url('/icons/lucide/chevron-up.svg'); mask-image: url('/icons/lucide/chevron-up.svg'); }

@media (max-width: 1110px) {
  .stats-page .stats-run-fields { grid-template-columns: repeat(3, minmax(0, 1fr)) 44px; }
}

@media (max-width: 760px) {
  .stats-page .stats-run-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-page #statsRunButton { display: none; }
  .stats-page #statsMobileRunButton { flex: 0 0 48px; width: 48px; min-width: 48px; height: 48px; min-height: 48px; }
  .stats-page .stats-row-expand {
    position: absolute;
    top: -23px;
    right: 0;
    display: inline-grid;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    place-items: center;
    border: 1px solid #e1e3e8;
    border-radius: 50%;
    background: #eef0f5;
    box-shadow: none;
    color: #242a32;
    font-size: 0;
  }
  .stats-page .stats-row-expand::before { position: absolute; top: 50%; left: 50%; display: block; width: 16px; height: 16px; background: currentColor; content: ''; transform: translate(-50%, -50%); -webkit-mask: var(--stats-icon) center / contain no-repeat; mask: var(--stats-icon) center / contain no-repeat; }
  .stats-page .stats-row-expand:hover { background: #e0e5ed; color: #17242f; }
}

@media (max-width: 380px) {
  .stats-page .stats-run-fields { grid-template-columns: minmax(0, 1fr); }
}

@media (hover: none) {
  .stats-page .stats-icon-button[data-tooltip]::after { display: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .stats-page .stats-header,
  .stats-page .stats-mobile-action,
  .stats-page .stats-recent-panel { background: #f8f8fb; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

.stats-page .stats-keyword-control { position: relative; min-width: 0; margin-top: 7px; }
.stats-page .stats-search-field > label { display: block; }
.stats-page .stats-keyword-control.has-selection:not(.is-editing) #statsKeyword { opacity: 0; pointer-events: none; }
.stats-page .stats-selected-account {
  position: absolute;
  inset: 0;
  display: flex;
  width: 100%;
  height: 100%;
  min-width: 0;
  align-items: center;
  gap: 10px;
  padding: 5px 9px;
  border: 1px solid #bed9f5;
  border-radius: 7px;
  background: #f4f9ff;
  box-shadow: 0 0 0 3px rgba(0, 122, 255, .07);
  color: var(--ios-ink);
  text-align: left;
  cursor: pointer;
  animation: stats-selected-arrive .34s cubic-bezier(.2, .9, .3, 1) both;
  transition: background-color .18s ease, border-color .18s ease, transform .24s cubic-bezier(.2, 1.15, .3, 1);
}
.stats-page .stats-selected-account[hidden] { display: none; }
.stats-page .stats-selected-account:hover { border-color: #8fc2f7; background: #eaf4ff; }
.stats-page .stats-selected-account:active { background: #e3f0ff; }
.stats-page .stats-selected-account:focus-visible { outline: 2px solid var(--ios-blue); outline-offset: 3px; }
.stats-page .stats-selected-avatar,
.stats-page .stats-selected-avatar img,
.stats-page .stats-selected-avatar .stats-avatar-fallback { display: grid; width: 32px; height: 32px; flex: none; place-items: center; border-radius: 7px; object-fit: cover; }
.stats-page .stats-selected-text { display: grid; min-width: 0; gap: 1px; line-height: 1.15; }
.stats-page .stats-selected-text strong,
.stats-page .stats-selected-text small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stats-page .stats-selected-text strong { font-size: 13px; font-weight: 680; }
.stats-page .stats-selected-text small { color: var(--ios-muted); font-size: 11px; }
.stats-page .stats-selected-change { width: 16px; height: 16px; flex: none; margin-left: auto; background: #6e7885; -webkit-mask: url('/icons/lucide/chevron-down.svg') center / contain no-repeat; mask: url('/icons/lucide/chevron-down.svg') center / contain no-repeat; }
.stats-page .stats-account-list:not([hidden]) { animation: stats-selected-arrive .3s cubic-bezier(.2, .9, .3, 1) both; }
@keyframes stats-selected-arrive { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 760px) {
  .stats-page { scroll-padding-top: 76px; scroll-padding-bottom: calc(94px + env(safe-area-inset-bottom)); }
  .stats-page .stats-header { position: sticky; min-height: 60px; padding: 7px 14px; background: rgba(250, 250, 252, .94); }
  .stats-page .stats-brand-logo { width: 36px; height: 36px; flex-basis: 36px; }
  .stats-page .stats-header > div { min-width: 0; min-height: 36px; }
  .stats-page .stats-header h1 { overflow: hidden; font-size: 15px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
  .stats-page .stats-header .stats-contact { overflow-wrap: anywhere; }
  .stats-page .stats-layout { gap: 12px; padding: 14px 12px calc(104px + env(safe-area-inset-bottom)); }
  .stats-page .stats-sidebar { padding: 16px; border: 1px solid var(--ios-line); border-radius: 8px; background: #fff; box-shadow: 0 2px 12px rgba(32, 40, 54, .04); }
  .stats-page .stats-workspace-heading { margin: 0 0 16px; }
  .stats-page .stats-workspace-heading h2 { font-size: 17px; }
  .stats-page .stats-workspace-heading span { font-size: 11px; }
  .stats-page #statsSearchForm,
  .stats-page #statsRunForm { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
  .stats-page #statsSearchForm { margin: 0 0 16px; padding-bottom: 16px; border-bottom: 1px solid var(--ios-line); }
  .stats-page .stats-search-row { grid-template-columns: minmax(0, 1fr) 44px; gap: 10px; align-items: end; }
  .stats-page #statsKeyword { height: 52px; min-height: 52px; }
  .stats-page #statsSearchButton { width: 44px; min-width: 44px; height: 44px; min-height: 44px; align-self: end; margin-bottom: 4px; transform: none; }
  .stats-page #statsSearchButton:not(:disabled):active { transform: none; background: #d6eaff; }
  .stats-page .stats-recent-panel { top: calc(100% + 6px); max-height: min(48vh, 350px); overflow-y: auto; border-radius: 8px; }
  .stats-page .stats-run-fields { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .stats-page #statsRunForm .stats-run-fields label:nth-child(3) { grid-column: auto; }
  .stats-page #statsRunForm .stats-run-fields input { height: 48px; min-height: 48px; }
  .stats-page .stats-scope-row { margin-top: 16px; }
  .stats-page #statsRunForm .stats-checkset { gap: 2px; }
  .stats-page #statsRunForm .stats-checkset label { min-height: 42px; padding: 4px 2px; font-size: 11px; }
  .stats-page .stats-main { gap: 12px; }
  .stats-page .stats-table-card { border-radius: 8px; }
  .stats-page .stats-mobile-action { min-height: 70px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
  .stats-page .stats-mobile-action-label strong { font-size: 13px; }
  .stats-page .stats-mobile-action-label span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .stats-page #statsMobileRunButton { flex: 0 0 48px; }
}

@media (max-width: 360px) {
  .stats-page .stats-layout { padding-right: 9px; padding-left: 9px; }
  .stats-page .stats-sidebar { padding: 14px; }
  .stats-page .stats-workspace-heading span { display: none; }
  .stats-page .stats-mascot { left: 86px; }
}

@media (prefers-reduced-motion: reduce) {
  .stats-page *, .stats-page *::before, .stats-page *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .stats-page .stats-mascot,
  .stats-page .stats-mascot-pose,
  .stats-page .stats-mascot-glint { animation: none !important; }
  .stats-page .stats-mascot-glint { opacity: .8; transform: translate(-50%, -50%); }
}
