/* coecoco operator UI: clear, quiet, action-first */
.admin-body {
  --cc-blue: #1769e0;
  --cc-blue-dark: #0d4fb3;
  --cc-blue-soft: #eaf2ff;
  --cc-ink: #202936;
  --cc-muted: #667181;
  --cc-subtle: #8b95a4;
  --cc-bg: #f6f7f9;
  --cc-surface: #fff;
  --cc-line: #e1e6ec;
  --cc-line-strong: #d5dce5;
  --cc-good: #237a4b;
  --cc-good-soft: #eaf6ef;
  --cc-warn: #a86100;
  --cc-warn-soft: #fff5df;
  --cc-danger: #bd3f35;
  --cc-danger-soft: #fff0ee;
  --cc-shadow: 0 8px 24px rgba(31, 43, 58, .055);
  min-width: 320px;
  background: var(--cc-bg);
  color: var(--cc-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
  font-size: 15px;
}

.admin-body .app-shell { grid-template-columns: 248px minmax(0, 1fr); }
.admin-body [hidden] { display: none !important; }
.admin-body .sidebar {
  z-index: 10;
  width: auto;
  padding: 22px 16px 18px;
  overflow-x: hidden;
  overflow-y: auto;
  color: var(--cc-ink);
  background: var(--cc-surface);
  border-right: 1px solid var(--cc-line);
  box-shadow: none;
}
.admin-body .brand-block {
  display: grid;
  grid-template-areas: "lockup" "tagline";
  grid-template-columns: minmax(0, 1fr);
  row-gap: 9px;
  padding: 0 8px 20px;
  border-bottom: 1px solid var(--cc-line);
}
.admin-body .brand-lockup {
  grid-area: lockup;
  display: grid;
  justify-items: start;
  min-width: 0;
}
.admin-body .brand-logo {
  display: block;
  width: 145px;
  max-width: 100%;
  height: auto;
}
.admin-body .brand-lockup b {
  display: block;
  margin: 3px 0 0 48px;
  color: #0b3457;
  font-size: 11px;
  line-height: 1;
  letter-spacing: .08em;
}
.admin-body .brand-tagline {
  grid-area: tagline;
  display: block;
  margin: 0;
  color: var(--cc-muted);
  font-size: 8px;
  line-height: 1.4;
  letter-spacing: -.02em;
  white-space: nowrap;
}
.admin-body .sidebar nav { display: block; margin-top: 18px; }
.admin-body .nav-section-label {
  margin: 19px 10px 7px;
  color: var(--cc-subtle);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .09em;
}
.admin-body .nav-section-label:first-child { margin-top: 0; }
.admin-body .nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 40px;
  margin: 2px 0;
  padding: 8px 10px;
  color: #465466;
  background: transparent;
  border: 0;
  border-radius: 8px;
  box-shadow: none;
  font-size: 13px;
  font-weight: 680;
  transform: none;
}
.admin-body .nav-item:hover {
  color: #172334;
  background: #f0f3f7;
  box-shadow: none;
  transform: none;
}
.admin-body .nav-item.active,
.admin-body .nav-item.active:hover {
  color: #0b57c9;
  background: #e6effd;
  box-shadow: none;
  transform: none;
}
.admin-body .nav-item:active:not(.active) { background: #edf1f5; box-shadow: none; transform: none; }
.admin-body .nav-item > span:not(.nav-lock) {
  width: auto;
  min-width: 0;
  color: inherit;
  white-space: nowrap;
}
.admin-body .nav-icon {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  padding: 2px;
  color: #69778a;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.admin-body .nav-item:hover .nav-icon { color: #344255; }
.admin-body .nav-item.active .nav-icon { color: #0b57c9; }
.admin-body .nav-lock {
  width: auto;
  margin-left: auto;
  padding: 2px 5px;
  color: #8a6b31;
  background: #fff4d8;
  border-radius: 4px;
  font-size: 7px;
  letter-spacing: .05em;
}
.admin-body .sidebar-foot {
  display: grid;
  gap: 12px;
  padding: 15px 8px 0;
  color: var(--cc-muted);
  border-top: 1px solid var(--cc-line);
  font-size: 10px;
}
.admin-body .sidebar-account { display: grid; gap: 3px; }
.admin-body .sidebar-account span { color: var(--cc-blue-dark); font-size: 10px; font-weight: 700; }
.admin-body .sidebar-account strong { overflow: hidden; color: var(--cc-ink); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.admin-body .status-dot { width: 7px; height: 7px; background: var(--cc-good); box-shadow: none; }

.admin-body .main-content {
  width: 100%;
  max-width: 1580px;
  margin: 0 auto;
  padding: 26px 34px 56px;
  background: transparent;
}
.admin-body .topbar {
  align-items: flex-end;
  margin-bottom: 24px;
  padding: 0 0 21px;
  border-bottom: 1px solid var(--cc-line);
}
.admin-body .topbar-title { min-width: 0; }
.admin-body .account-context { display: flex; align-items: center; gap: 8px; margin-bottom: 19px; color: var(--cc-muted); font-size: 11px; }
.admin-body .account-context > span:first-child { color: var(--cc-subtle); }
.admin-body .account-context strong { color: var(--cc-ink); font-size: 12px; }
.admin-body .account-context > span:last-child { padding: 3px 7px; color: #536071; background: #eef1f4; border-radius: 5px; font-size: 10px; }
.admin-body .page-kicker { margin: 0 0 5px; color: var(--cc-blue); font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.admin-body .topbar h1 { margin: 0; color: var(--cc-ink); font: 720 clamp(25px, 2.7vw, 31px)/1.25 var(--font-body); letter-spacing: -.035em; }
.admin-body .page-subtitle { margin: 7px 0 0; color: var(--cc-muted); font-size: 12px; line-height: 1.65; }
.admin-body .top-actions { flex: 0 0 auto; }

.admin-body .button {
  min-height: 39px;
  padding: 0 14px;
  color: var(--cc-ink);
  background: var(--cc-surface);
  border: 1px solid var(--cc-line-strong);
  border-radius: 7px;
  box-shadow: none;
  font-size: 12px;
  font-weight: 700;
  transform: none;
}
.admin-body .button:hover { background: #f7f9fb; border-color: #c6cfda; box-shadow: none; transform: none; }
.admin-body .button:active:not(:disabled) { background: #edf1f5; box-shadow: none; transform: translateY(1px); }
.admin-body .button.primary { color: #fff; background: var(--cc-blue); border-color: var(--cc-blue); box-shadow: none; }
.admin-body .button.primary:hover { background: var(--cc-blue-dark); border-color: var(--cc-blue-dark); box-shadow: none; }
.admin-body .button:disabled { color: #9aa3ae; background: #f1f3f5; border-color: #e4e8ed; cursor: not-allowed; }
.admin-body .button.small { min-height: 34px; padding: 0 11px; font-size: 11px; }
.admin-body .text-button { color: var(--cc-blue-dark); font-weight: 700; }

.admin-body .notice {
  margin-bottom: 16px;
  padding: 12px 14px;
  color: #445365;
  background: #f0f6ff;
  border: 1px solid #d9e8ff;
  border-radius: 8px;
  box-shadow: none;
  font-size: 12px;
  line-height: 1.65;
}
.admin-body .notice strong { color: #244c83; }
.admin-body .metric-grid { gap: 12px; margin-bottom: 16px; }
.admin-body .metric-card,
.admin-body .panel,
.admin-body .link-card,
.admin-body .survey-card,
.admin-body .split-hero,
.admin-body .post-hero,
.admin-body .operations-hero {
  color: var(--cc-ink);
  background: var(--cc-surface);
  border: 1px solid var(--cc-line);
  border-radius: 10px;
  box-shadow: var(--cc-shadow);
}
.admin-body .metric-card {
  min-height: 120px;
  padding: 17px 18px;
  background: var(--cc-surface) !important;
  overflow: visible;
}
.admin-body .metric-card span,
.admin-body .metric-card small { color: var(--cc-muted); font-size: 11px; }
.admin-body .metric-card strong { margin: 10px 0 5px; color: var(--cc-ink); font: 720 29px/1 var(--font-body); letter-spacing: -.04em; }
.admin-body .metric-icon {
  top: 16px;
  right: 16px;
  width: 29px;
  height: 29px;
  color: #667485 !important;
  background: #f0f3f6 !important;
  border-radius: 7px;
  box-shadow: none;
  font-size: 11px;
}
.admin-body .metric-card:nth-child(2) .metric-icon { color: var(--cc-blue-dark) !important; background: var(--cc-blue-soft) !important; }
.admin-body .metric-card:nth-child(3) .metric-icon { color: var(--cc-danger) !important; background: var(--cc-danger-soft) !important; }

.admin-body .panel { margin-bottom: 16px; padding: 19px; overflow: visible; }
.admin-body .panel-head { margin-bottom: 15px; }
.admin-body .panel h2,
.admin-body .split-hero h2,
.admin-body .post-hero h2,
.admin-body .operations-hero h2,
.admin-body .dialog-card h2 { color: var(--cc-ink); font: 710 18px/1.45 var(--font-body); letter-spacing: -.025em; }
.admin-body .eyebrow {
  display: block;
  width: auto;
  padding: 0;
  color: var(--cc-blue) !important;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
}
.admin-body .muted { color: var(--cc-muted); font-size: 11px; }
.admin-body .content-grid { gap: 16px; margin-bottom: 0; }
.admin-body table { color: var(--cc-ink); font-size: 12px; }
.admin-body th { padding: 10px 12px; color: #697586; background: #f7f8fa; border-top: 0; border-bottom: 1px solid var(--cc-line); font-size: 10px; }
.admin-body td { padding: 12px; border-bottom: 1px solid #edf0f3; }
.admin-body tbody tr:hover td { background: #fafbfc; }
.admin-body .badge { padding: 3px 6px; border-radius: 5px; box-shadow: none; font-size: 10px; }
.admin-body .badge.good { color: var(--cc-good); background: var(--cc-good-soft); }
.admin-body .badge.danger { color: var(--cc-danger); background: var(--cc-danger-soft); }
.admin-body .badge.neutral { color: #596678; background: #eef1f4; }
.admin-body .rating { color: #95680c; }

.admin-body .filter-row { gap: 6px; padding-bottom: 14px; border-bottom: 1px solid var(--cc-line); }
.admin-body .chip {
  min-height: 33px;
  padding: 0 11px;
  color: #5e6a79;
  background: var(--cc-surface);
  border: 1px solid var(--cc-line);
  border-radius: 7px;
  box-shadow: none;
  font-size: 11px;
  transform: none;
}
.admin-body .chip:hover:not(.active) { background: #f7f8fa; box-shadow: none; transform: none; }
.admin-body .chip.active { color: var(--cc-blue-dark); background: var(--cc-blue-soft); border-color: #cddfff; box-shadow: none; }
.admin-body .review-list { gap: 8px; }
.admin-body .review-card {
  padding: 15px 16px;
  background: var(--cc-surface);
  border: 1px solid var(--cc-line);
  border-radius: 9px;
  box-shadow: none;
}
.admin-body .review-card.attention { background: var(--cc-danger-soft); border-color: #f1d0cc; }
.admin-body .review-body { padding: 10px 0 12px; }
.admin-body .review-body p { margin-top: 5px; color: #4e5a69; font-size: 13px; line-height: 1.7; }
.admin-body .review-meta .stars { color: #a97714; }

.admin-body .split-hero,
.admin-body .post-hero,
.admin-body .operations-hero,
.admin-body .section-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(250px, .65fr);
  gap: 28px;
  margin-bottom: 16px;
  padding: 23px;
}
.admin-body .split-hero p,
.admin-body .post-hero p:last-child,
.admin-body .operations-hero p:last-child,
.admin-body .section-intro p { max-width: 680px; color: var(--cc-muted); font-size: 13px; line-height: 1.75; }
.admin-body .compliance-card,
.admin-body .store-cta-section,
.admin-body .cta-coverage,
.admin-body .funnel-stage,
.admin-body .source-review {
  background: #f7f9fb;
  border: 1px solid var(--cc-line);
  border-radius: 8px;
  box-shadow: none;
}
.admin-body .post-hero-flow { gap: 7px; }
.admin-body .post-hero-flow span {
  min-height: 41px;
  padding: 11px 12px;
  color: #4f5d6e !important;
  background: #f5f7f9 !important;
  border: 1px solid var(--cc-line);
  border-radius: 7px;
  box-shadow: none;
  font-size: 10px;
}
.admin-body .post-hero-flow span:first-child { color: var(--cc-blue-dark) !important; background: var(--cc-blue-soft) !important; border-color: #d7e5fb; }
.admin-body .link-grid,
.admin-body .settings-grid { gap: 12px; }
.admin-body .link-card { padding: 17px; background: var(--cc-surface) !important; }
.admin-body .link-card code { background: #f5f7f9; border: 1px solid var(--cc-line); }
.admin-body .settings-card { background: var(--cc-surface) !important; }
.admin-body .post-store-choice,
.admin-body .post-campaign,
.admin-body .recommendation-item {
  background: var(--cc-surface);
  border: 1px solid var(--cc-line);
  border-radius: 8px;
  box-shadow: none;
}
.admin-body .post-store-choice:has(input:checked) { background: #f4f8ff; border-color: #bcd3f7; box-shadow: none; }
.admin-body .post-campaign.draft { background: var(--cc-warn-soft); border-color: #f0ddb6; }
.admin-body .funnel-stage { background: #f7f9fb !important; }
.admin-body .bar { background: #edf0f3; box-shadow: none; }
.admin-body .bar i { background: var(--cc-blue); }

.admin-body input,
.admin-body textarea,
.admin-body select {
  min-height: 40px;
  padding: 9px 10px;
  color: var(--cc-ink);
  background: var(--cc-surface);
  border: 1px solid var(--cc-line-strong);
  border-radius: 7px;
  box-shadow: none;
  font-size: 13px;
}
.admin-body textarea { min-height: 90px; }
.admin-body input:focus,
.admin-body textarea:focus,
.admin-body select:focus { border-color: #78a9ee; box-shadow: 0 0 0 3px rgba(23, 105, 224, .11); outline: none; }
.admin-body input:disabled,
.admin-body select:disabled { background: #f2f4f6; box-shadow: none; }

.admin-body .dialog {
  color: var(--cc-ink);
  background: var(--cc-surface);
  border: 1px solid var(--cc-line);
  border-radius: 11px;
  box-shadow: 0 24px 70px rgba(19, 29, 41, .22);
}
.admin-body .dialog::backdrop { background: rgba(18, 28, 40, .54); backdrop-filter: blur(2px); }
.admin-body .dialog-card { background: var(--cc-surface); }
.admin-body .toast { border-radius: 7px; box-shadow: 0 12px 34px rgba(25, 37, 51, .18); }

.admin-body .feature-locked > :not(.feature-gate) { display: none !important; }
.admin-body .feature-gate {
  max-width: 760px;
  padding: 42px;
  background: var(--cc-surface);
  border: 1px solid var(--cc-line);
  border-radius: 12px;
  box-shadow: var(--cc-shadow);
}
.admin-body .feature-gate-label { display: inline-flex; padding: 5px 8px; color: #725014; background: #fff1cc; border-radius: 5px; font-size: 10px; font-weight: 800; }
.admin-body .feature-gate h2 { margin: 17px 0 10px; font-size: 23px; letter-spacing: -.03em; }
.admin-body .feature-gate p { color: var(--cc-muted); line-height: 1.75; }
.admin-body .feature-gate ul { display: grid; gap: 8px; margin: 20px 0; padding: 0; list-style: none; }
.admin-body .feature-gate li::before { content: "✓"; margin-right: 8px; color: var(--cc-good); font-weight: 800; }
.admin-body .feature-gate-actions { display: flex; gap: 9px; margin-top: 25px; }

.admin-body .section-intro {
  align-items: center;
  background: var(--cc-surface);
  border: 1px solid var(--cc-line);
  border-radius: 10px;
  box-shadow: var(--cc-shadow);
}
.admin-body .section-intro h2 { margin: 8px 0 10px; font-size: 20px; }
.admin-body .intro-stat { display: grid; justify-self: end; min-width: 210px; padding: 17px; background: #f6f8fb; border-radius: 8px; }
.admin-body .intro-stat span,
.admin-body .intro-stat small { color: var(--cc-muted); font-size: 10px; }
.admin-body .intro-stat strong { margin: 7px 0 4px; font-size: 28px; }
.admin-body .automation-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.admin-body .automation-card { padding: 20px; background: var(--cc-surface); border: 1px solid var(--cc-line); border-radius: 10px; box-shadow: var(--cc-shadow); }
.admin-body .automation-card.locked { background: #fafbfc; }
.admin-body .automation-card-top { display: flex; justify-content: space-between; gap: 10px; }
.admin-body .automation-number { color: #a1a9b4; font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.admin-body .automation-timing { display: block; margin-top: 23px; color: var(--cc-blue); font-size: 10px; font-weight: 800; }
.admin-body .automation-card h2 { margin: 5px 0 9px; font-size: 18px; }
.admin-body .automation-card p { min-height: 68px; color: var(--cc-muted); font-size: 12px; line-height: 1.65; }
.admin-body .automation-card ul { display: grid; gap: 7px; min-height: 83px; margin: 16px 0 20px; padding: 15px 0 0; border-top: 1px solid var(--cc-line); list-style: none; }
.admin-body .automation-card li { color: #4f5c6b; font-size: 11px; }
.admin-body .automation-card li::before { content: "•"; margin-right: 7px; color: var(--cc-blue); }
.admin-body .setup-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; padding: 0; list-style: none; }
.admin-body .setup-steps li { display: flex; gap: 11px; padding: 7px 20px; border-right: 1px solid var(--cc-line); }
.admin-body .setup-steps li:first-child { padding-left: 0; }
.admin-body .setup-steps li:last-child { padding-right: 0; border-right: 0; }
.admin-body .setup-steps li > span { display: grid; flex: 0 0 27px; place-items: center; width: 27px; height: 27px; color: var(--cc-blue-dark); background: var(--cc-blue-soft); border-radius: 50%; font-size: 11px; font-weight: 800; }
.admin-body .setup-steps strong { font-size: 12px; }
.admin-body .setup-steps p { margin: 5px 0 0; color: var(--cc-muted); font-size: 11px; line-height: 1.6; }

.admin-body .plan-current { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 16px; padding: 22px 24px; color: #fff; background: #1d2b3d; border-radius: 10px; }
.admin-body .plan-current span { color: #bac7d7; font-size: 10px; }
.admin-body .plan-current h2 { margin: 5px 0 3px; font-size: 21px; }
.admin-body .plan-current p { margin: 0; color: #c8d2df; font-size: 11px; }
.admin-body .current-plan-badge { padding: 6px 9px; color: #dbe9ff !important; background: rgba(255,255,255,.1); border-radius: 6px; font-weight: 700; }
.admin-body .plan-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.admin-body .plan-card { position: relative; padding: 25px; background: var(--cc-surface); border: 1px solid var(--cc-line); border-radius: 10px; box-shadow: var(--cc-shadow); }
.admin-body .pro-plan { color: #fff; background: var(--cc-blue); border-color: var(--cc-blue); }
.admin-body .plan-ribbon { position: absolute; top: -8px; right: 17px; padding: 4px 8px; color: var(--cc-blue-dark); background: #fff; border: 1px solid #dce7fa; border-radius: 5px; font-size: 9px; font-weight: 800; }
.admin-body .plan-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.admin-body .plan-card-head span { color: var(--cc-muted); font-size: 10px; }
.admin-body .pro-plan .plan-card-head span,
.admin-body .pro-plan > p { color: #d9e8ff; }
.admin-body .plan-card h2 { margin: 6px 0 0; font-size: 21px; }
.admin-body .plan-price { padding: 4px 7px; background: #f1f3f6; border-radius: 5px; font-weight: 700; }
.admin-body .pro-plan .plan-price { color: #fff !important; background: rgba(255,255,255,.14); }
.admin-body .plan-card > p { margin: 20px 0; color: var(--cc-muted); font-size: 12px; line-height: 1.7; }
.admin-body .pro-plan > p { color: #d9e8ff; }
.admin-body .plan-card ul { display: grid; gap: 10px; padding: 0; list-style: none; }
.admin-body .plan-card li { font-size: 12px; }
.admin-body .plan-card li::before { content: "✓"; margin-right: 8px; color: var(--cc-good); font-weight: 800; }
.admin-body .pro-plan li::before { color: #fff; }
.admin-body .pro-plan .button.primary { margin-top: 22px; color: var(--cc-blue-dark); background: #fff; border-color: #fff; }
.admin-body .entitlement-list { display: grid; }
.admin-body .entitlement-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 2px; border-bottom: 1px solid var(--cc-line); }
.admin-body .entitlement-row:last-child { border-bottom: 0; }
.admin-body .entitlement-row > div { display: grid; grid-template-columns: 67px minmax(130px, 190px) minmax(200px, 1fr); align-items: center; gap: 10px; }
.admin-body .entitlement-state { color: var(--cc-good); font-size: 10px; font-weight: 800; }
.admin-body .entitlement-row.locked .entitlement-state { color: var(--cc-subtle); }
.admin-body .entitlement-row strong { font-size: 12px; }
.admin-body .entitlement-row p { margin: 0; color: var(--cc-muted); font-size: 11px; }
.admin-body .entitlement-source { padding: 4px 7px; color: #576577; background: #eef1f4; border-radius: 5px; font-size: 9px; font-weight: 700; }

@media (max-width: 1100px) {
  .admin-body .automation-grid { grid-template-columns: 1fr; }
  .admin-body .automation-card p,
  .admin-body .automation-card ul { min-height: 0; }
  .admin-body .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .admin-body .app-shell { display: block; }
  .admin-body .sidebar {
    position: static;
    width: 100%;
    height: auto;
    padding: 12px 14px 10px;
    overflow: visible;
    border: 0;
    border-bottom: 1px solid var(--cc-line);
    box-shadow: none;
  }
  .admin-body .brand-block { padding: 0 2px 10px; border: 0; }
  .admin-body .brand-block { grid-template-areas: "lockup"; grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .admin-body .brand-logo { width: 132px; }
  .admin-body .brand-lockup b { margin-left: 44px; font-size: 9px; }
  .admin-body .brand-tagline { display: none; }
  .admin-body .sidebar nav { display: flex; gap: 4px; margin: 0; overflow-x: auto; scrollbar-width: none; }
  .admin-body .sidebar nav::-webkit-scrollbar { display: none; }
  .admin-body .nav-section-label,
  .admin-body .sidebar-foot { display: none; }
  .admin-body .nav-item {
    flex: 0 0 auto;
    width: auto;
    min-width: 86px;
    min-height: 35px;
    padding: 6px 9px;
    text-align: left;
    scroll-snap-align: start;
  }
  .admin-body .nav-icon { display: none; }
  .admin-body .nav-lock { width: auto; }
  .admin-body .main-content { padding: 20px 17px 46px; }
  .admin-body .split-hero,
  .admin-body .post-hero,
  .admin-body .operations-hero,
  .admin-body .section-intro { grid-template-columns: 1fr; padding: 19px; }
  .admin-body .intro-stat { justify-self: stretch; }
  .admin-body .setup-steps { grid-template-columns: 1fr; }
  .admin-body .setup-steps li,
  .admin-body .setup-steps li:first-child,
  .admin-body .setup-steps li:last-child { padding: 12px 0; border-right: 0; border-bottom: 1px solid var(--cc-line); }
  .admin-body .setup-steps li:last-child { border-bottom: 0; }
  .admin-body .plan-layout { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .admin-body .topbar { display: grid; align-items: start; gap: 15px; }
  .admin-body .account-context { margin-bottom: 14px; }
  .admin-body .top-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .admin-body .metric-grid { grid-template-columns: 1fr 1fr; }
  .admin-body .metric-card { min-height: 105px; padding: 14px; }
  .admin-body .metric-card strong { font-size: 25px; }
  .admin-body .panel { padding: 15px; }
  .admin-body .review-list.compact { grid-template-columns: 1fr; }
  .admin-body .review-meta { align-items: flex-start; }
  .admin-body .feature-gate { padding: 25px 20px; }
  .admin-body .feature-gate-actions { display: grid; }
  .admin-body .plan-current { align-items: flex-start; flex-direction: column; }
  .admin-body .entitlement-row { align-items: flex-start; }
  .admin-body .entitlement-row > div { display: grid; grid-template-columns: 67px 1fr; }
  .admin-body .entitlement-row p { grid-column: 1 / -1; }
}

/* Codebase Clean-inspired compact flat layer */
.admin-body {
  --cc-bg: #f4f5f7;
  --cc-line: #e4e7eb;
  --cc-line-strong: #d7dce2;
  --cc-shadow: none;
}

.admin-body .app-shell { grid-template-columns: 228px minmax(0, 1fr); }
.admin-body .sidebar { padding: 18px 13px 16px; }
.admin-body .brand-block {
  grid-template-columns: minmax(0, 1fr);
  row-gap: 7px;
  padding: 0 7px 16px;
}
.admin-body .brand-lockup b { margin-top: 4px; font-size: 10px; }
.admin-body .brand-tagline { font-size: 7.5px; white-space: normal; }
.admin-body .sidebar nav { margin-top: 14px; }
.admin-body .nav-section-label { margin: 17px 9px 6px; color: #667386; font-size: 10px; }
.admin-body .nav-item { min-height: 40px; padding: 7px 9px; border-radius: 6px; font-size: 13px; }
.admin-body .nav-icon { flex-basis: 22px; width: 22px; height: 22px; color: #5d6c7f; }

.admin-body .main-content { max-width: 1640px; padding: 21px 28px 48px; }
.admin-body .topbar { align-items: center; margin-bottom: 17px; padding: 0 0 15px; }
.admin-body .account-context { margin-bottom: 9px; }
.admin-body .topbar h1 { font-size: clamp(23px, 2.2vw, 28px); }
.admin-body .page-heading-row,
.admin-body .heading-with-help { display: flex; align-items: center; gap: 7px; min-width: 0; }
.admin-body .heading-with-help h2,
.admin-body .heading-with-help strong { min-width: 0; }

.admin-body .button { min-height: 36px; border-radius: 5px; }
.admin-body .button.small { min-height: 32px; }
.admin-body input,
.admin-body textarea,
.admin-body select { min-height: 38px; border-radius: 5px; }

.admin-body .metric-grid { gap: 9px; margin-bottom: 12px; }
.admin-body #operationsMetricGrid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.admin-body .metric-card,
.admin-body .panel,
.admin-body .link-card,
.admin-body .survey-card,
.admin-body .split-hero,
.admin-body .post-hero,
.admin-body .operations-hero,
.admin-body .section-intro,
.admin-body .section-summary,
.admin-body .action-bar,
.admin-body .automation-card,
.admin-body .plan-card,
.admin-body .plan-current,
.admin-body .feature-gate { border-radius: 5px; box-shadow: none; }
.admin-body .metric-card { min-height: 96px; padding: 14px 15px; }
.admin-body .metric-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.admin-body .metric-card strong { margin: 13px 0 0; font-size: 28px; }
.admin-body .metric-card .metric-symbol { display: none; }
.admin-body .metric-unit { display: inline; margin-left: 4px; color: var(--cc-muted); font-size: 11px; font-weight: 700; }

.admin-body .panel { margin-bottom: 12px; padding: 16px; }
.admin-body .panel-head { align-items: center; margin-bottom: 12px; }
.admin-body .panel h2,
.admin-body .section-summary h2,
.admin-body .action-bar h2 { margin: 0; font-size: 16px; }
.admin-body .view > .eyebrow,
.admin-body .view .panel-head .eyebrow { display: none; }
.admin-body .content-grid { gap: 12px; }
.admin-body th { padding: 9px 10px; }
.admin-body td { padding: 10px; }
.admin-body .review-card { padding: 13px 14px; border-radius: 5px; }

.admin-body .section-summary,
.admin-body .action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  padding: 14px 16px;
  background: var(--cc-surface);
  border: 1px solid var(--cc-line);
}
.admin-body .status-chip {
  flex: 0 0 auto;
  padding: 5px 8px;
  color: #596678;
  background: #eef1f4;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 750;
}
.admin-body .status-chip.good { color: var(--cc-good); background: var(--cc-good-soft); }
.admin-body .workflow-strip { display: flex; align-items: center; gap: 7px; color: #657181; font-size: 10px; }
.admin-body .workflow-strip span { padding: 5px 8px; background: #f2f4f6; border-radius: 4px; font-weight: 700; }
.admin-body .workflow-strip i { color: #a1a8b2; font-style: normal; }
.admin-body .action-bar .operations-actions { display: flex; align-items: center; gap: 7px; }
.admin-body .action-bar .operations-actions .button { width: auto; white-space: nowrap; }
.admin-body .action-bar .operations-actions .muted { max-width: 150px; }

.admin-body .notice { margin-bottom: 12px; padding: 10px 12px; border-radius: 5px; }
.admin-body .post-hero-flow span,
.admin-body .compliance-card,
.admin-body .store-cta-section,
.admin-body .cta-coverage,
.admin-body .funnel-stage,
.admin-body .source-review,
.admin-body .post-store-choice,
.admin-body .post-campaign,
.admin-body .recommendation-item,
.admin-body .link-card { border-radius: 5px; }

.admin-body .automation-grid { gap: 9px; margin-bottom: 12px; }
.admin-body .automation-card { display: flex; min-height: 166px; padding: 15px; flex-direction: column; }
.admin-body .automation-timing { margin-top: 17px; }
.admin-body .automation-card h2 { margin: 4px 0 0; font-size: 16px; }
.admin-body .automation-card > .button { align-self: flex-start; margin-top: auto; }
.admin-body .compact-steps li { align-items: center; padding-top: 4px; padding-bottom: 4px; }
.admin-body .compact-steps .heading-with-help { min-height: 28px; }

.admin-body .plan-current { padding: 17px 19px; }
.admin-body .plan-card { padding: 20px; }
.admin-body .plan-card > .plan-summary { margin: 14px 0; font-size: 11px; }
.admin-body .entitlement-row > div { grid-template-columns: 72px minmax(130px, 1fr) auto; }

.admin-body .info-tip {
  position: relative;
  display: inline-grid;
  flex: 0 0 19px;
  place-items: center;
  width: 19px;
  height: 19px;
  padding: 0;
  color: #687587;
  background: #f0f2f5;
  border: 1px solid #dfe3e8;
  border-radius: 50%;
  font: 750 11px/1 var(--font-body);
  cursor: help;
}
.admin-body .info-tip:hover,
.admin-body .info-tip:focus-visible,
.admin-body .info-tip.open { color: #fff; background: var(--cc-blue); border-color: var(--cc-blue); outline: none; }
.admin-body .info-tip:focus-visible { box-shadow: 0 0 0 3px rgba(23, 105, 224, .16); }
.admin-body .info-tip-content {
  position: absolute;
  z-index: 80;
  display: none;
  top: calc(100% + 9px);
  left: 0;
  width: min(270px, calc(100vw - 34px));
  padding: 10px 11px;
  color: #fff;
  background: #273240;
  border-radius: 5px;
  box-shadow: 0 8px 20px rgba(20, 29, 40, .18);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.65;
  text-align: left;
  letter-spacing: 0;
  pointer-events: none;
}
.admin-body .info-tip:hover .info-tip-content,
.admin-body .info-tip:focus-visible .info-tip-content,
.admin-body .info-tip.open .info-tip-content { display: block; }
.admin-body .metric-card .info-tip-content,
.admin-body .entitlement-row .info-tip-content,
.admin-body .automation-card:nth-child(3n) .info-tip-content,
.admin-body .setup-steps li:last-child .info-tip-content { right: 0; left: auto; }

/* アンケート結果集計 */
.admin-body .filter-field {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: var(--cc-muted);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.admin-body .filter-field select { min-width: 108px; }

/* 180日分でも画面からはみ出さないよう、表と同じく内側で横スクロールさせる。 */
.admin-body .survey-daily { display: flex; align-items: flex-end; gap: 2px; height: 74px; overflow-x: auto; }
.admin-body .survey-daily .empty { align-self: center; width: 100%; }
.admin-body .survey-daily-day {
  display: flex;
  flex: 1 1 0;
  min-width: 2px;
  height: 100%;
  align-items: flex-end;
  overflow: hidden;
  background: #eff2f5;
  border-radius: 2px;
}
.admin-body .survey-daily-day i { display: block; width: 100%; height: var(--bar-fill, 0%); background: var(--cc-blue); }

.admin-body .survey-store-counts { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 2px; }
.admin-body .survey-store-counts span {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 5px 9px;
  color: #4f5d6e;
  background: #f5f7f9;
  border: 1px solid var(--cc-line);
  border-radius: 5px;
  font-size: 11px;
}
.admin-body .survey-store-counts b { color: var(--cc-ink); font-size: 12px; }

.admin-body .survey-breakdown { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.admin-body .survey-store-counts,
.admin-body .survey-breakdown > .empty { grid-column: 1 / -1; }
.admin-body .survey-question {
  padding: 14px 15px;
  background: #f9fafb;
  border: 1px solid var(--cc-line);
  border-radius: 5px;
}
.admin-body .survey-question-head { margin-bottom: 11px; }
.admin-body .survey-question-head span { display: block; color: var(--cc-blue); font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.admin-body .survey-question-head strong { display: block; margin-top: 5px; color: var(--cc-ink); font-size: 13px; line-height: 1.5; }
.admin-body .survey-question-head small { display: block; margin-top: 4px; color: var(--cc-muted); font-size: 10px; }
.admin-body .survey-option-list { display: grid; gap: 9px; }
.admin-body .survey-option > div:first-child { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 11px; }
.admin-body .survey-option span { min-width: 0; color: #4f5d6e; }
.admin-body .survey-option strong { flex: 0 0 auto; color: var(--cc-ink); font-size: 12px; }
.admin-body .survey-option strong small { margin-left: 5px; color: var(--cc-muted); font-size: 10px; font-weight: 700; }

.admin-body .survey-comment-list { display: grid; gap: 9px; }
.admin-body .survey-comment {
  padding: 12px 14px;
  background: var(--cc-surface);
  border: 1px solid var(--cc-line);
  border-radius: 5px;
}
.admin-body .survey-comment-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.admin-body .survey-comment-meta span { color: var(--cc-ink); font-size: 11px; font-weight: 750; }
.admin-body .survey-comment-meta time { color: var(--cc-subtle); font-size: 10px; }
.admin-body .survey-comment p { margin: 7px 0 0; color: #3f4b5b; font-size: 12px; line-height: 1.7; }
.admin-body #surveyRetentionNote { margin: 12px 0 0; }

@media (max-width: 1100px) {
  .admin-body #operationsMetricGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-body .action-bar { align-items: flex-start; flex-direction: column; }
  .admin-body .action-bar .operations-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .admin-body .action-bar .operations-actions .button { width: 100%; }
}

@media (max-width: 900px) {
  .admin-body .app-shell { display: block; }
  .admin-body .main-content { padding: 17px 15px 42px; }
  .admin-body .section-summary { align-items: flex-start; }
}

@media (max-width: 620px) {
  .admin-body .topbar { gap: 12px; }
  .admin-body .section-summary { flex-direction: column; }
  .admin-body .workflow-strip { flex-wrap: wrap; }
  .admin-body .action-bar .operations-actions { grid-template-columns: 1fr; }
  .admin-body .metric-card { min-height: 88px; padding: 12px; }
  .admin-body .metric-card strong { font-size: 24px; }
  .admin-body .entitlement-row > div { grid-template-columns: 68px minmax(100px, 1fr) auto; }
}

@media (max-width: 900px) {
  .admin-body .survey-breakdown { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .admin-body .filter-field { justify-content: space-between; width: 100%; }
  .admin-body .filter-field select { flex: 1 1 auto; min-width: 0; }
  .admin-body .survey-daily { gap: 1px; }
}
