/* Compliance calendar — product dashboard on kapps.store tokens.
   CapEx$0: CSS motion only. P0 accent is amber and used sparingly. */

.cc-page,
.cc-home {
  max-width: 1300px;
  margin: 0 auto;
  padding: 28px max(20px, 5%) 10px;
  color: #e7ebf8;
}

.cc-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
  gap: 22px;
  align-items: stretch;
  margin-bottom: 18px;
}

.cc-hero-copy h1 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.15;
  font-weight: 750;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.cc-kicker {
  color: var(--brand-blue-text, #4d94ff);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.cc-updated,
.cc-hero-note {
  color: var(--text-gray, #888fb1);
  font-size: 0.88rem;
  margin: 0;
}

.cc-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.cc-stat {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px 12px 10px;
  min-width: 0;
}

.cc-stat b {
  display: block;
  font-size: 1.55rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  font-weight: 720;
}

.cc-stat span {
  display: block;
  margin-top: 4px;
  color: var(--text-gray, #888fb1);
  font-size: 0.75rem;
  line-height: 1.35;
}

.cc-stat.is-p0 b { color: #f0c14a; }

.cc-hero-side {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.cc-ranges,
.cc-chiprow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cc-search {
  width: 100%;
  background: rgba(5, 9, 20, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 0.92rem;
  min-height: 44px;
}

.cc-search:focus-visible,
.cc-chip:focus-visible,
.cc-iconbtn:focus-visible,
.cc-day:focus-visible,
.cc-agenda-item:focus-visible {
  outline: 2px solid #4d94ff;
  outline-offset: 2px;
}

.cc-chip,
.cc-iconbtn {
  appearance: none;
  background: rgba(255, 255, 255, 0.04);
  color: #d5d9ee;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 6px 12px;
  min-height: 36px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.2;
}

.cc-chip[aria-pressed="true"] {
  color: #fff;
  border-color: rgba(77, 148, 255, 0.85);
  background: rgba(0, 102, 255, 0.22);
}

.cc-chip.is-p0[aria-pressed="true"] {
  color: #ffe3a3;
  border-color: rgba(240, 193, 74, 0.9);
  background: rgba(240, 193, 74, 0.16);
}

.cc-bento {
  display: grid;
  gap: 12px;
  margin: 8px 0 18px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.cc-filter-label {
  display: block;
  color: var(--text-gray, #888fb1);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.cc-layout {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.cc-cal-panel,
.cc-table-panel,
.cc-agenda {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  padding: 12px;
  min-width: 0;
}

.cc-cal-head,
.cc-table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.cc-cal-head h2,
.cc-table-head h2,
.cc-home-head h2 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
}

.cc-iconbtn {
  width: 36px;
  padding: 0;
  border-radius: 10px;
}

.cc-dow,
.cc-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.cc-dow span {
  text-align: center;
  color: var(--text-gray, #888fb1);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.cc-day {
  appearance: none;
  position: relative;
  min-height: 52px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.025);
  color: #d7dbed;
  cursor: pointer;
  padding: 4px 2px 6px;
  font-variant-numeric: tabular-nums;
  font-size: 0.78rem;
}

.cc-day.is-out { opacity: 0.35; }
.cc-day.is-today { border-color: rgba(77, 148, 255, 0.7); }
.cc-day.is-on { background: rgba(240, 193, 74, 0.14); border-color: rgba(240, 193, 74, 0.55); }
.cc-day:hover { border-color: rgba(255, 255, 255, 0.2); }

.cc-dots {
  display: flex;
  justify-content: center;
  gap: 3px;
  min-height: 8px;
  margin-top: 4px;
}

.cc-dot {
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: #8d93ad;
}

.cc-dot.google_play { background: #7dcea0; }
.cc-dot.app_store { background: #8eb6ff; }
.cc-dot.admob { background: #e6b35a; }
.cc-dot.adsense { background: #f0c674; }
.cc-dot.applovin_max { background: #7ec8c3; }
.cc-dot.ironsource { background: #c3a6e0; }
.cc-dot.mintegral { background: #8fd0e8; }
.cc-dot.unity_ads { background: #b7c0d4; }
.cc-dot.meta_ads { background: #8eb6ff; }
.cc-dot.other_monetization { background: #a0a6c0; }

.cc-day[data-tip]:hover::after,
.cc-day[data-tip]:focus-visible::after {
  content: attr(data-tip);
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: calc(100% + 6px);
  transform: translateX(-50%);
  width: max-content;
  max-width: 220px;
  white-space: normal;
  text-align: left;
  background: #12182b;
  color: #f2f4ff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 0.72rem;
  line-height: 1.35;
  pointer-events: none;
}

.cc-agenda { display: none; }
.cc-agenda-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 10px;
  width: 100%;
  text-align: left;
  background: transparent;
  color: inherit;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 10px 4px;
  cursor: pointer;
  min-height: 44px;
}

.cc-agenda-item:first-of-type { border-top: 0; }
.cc-agenda-item.is-hit { background: rgba(240, 193, 74, 0.1); }
.cc-agenda-due {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
  color: #c9d0ea;
  font-variant-numeric: tabular-nums;
}

.cc-banner {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(240, 193, 74, 0.1);
  border: 1px solid rgba(240, 193, 74, 0.35);
  color: #ffe3a3;
  font-size: 0.86rem;
}

.cc-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.cc-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.86rem;
  min-width: 880px;
}
.cc-table td:nth-child(2) { min-width: 16rem; }
.cc-table td:nth-child(3),
.cc-table td:nth-child(4) { min-width: 6.5rem; }

.cc-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  text-align: left;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #c5cbe2;
  font-weight: 700;
  padding: 10px 10px 12px;
  white-space: nowrap;
  background: #12182a;
}

.cc-table td {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 14px 10px;
  vertical-align: top;
  line-height: 1.45;
  overflow-wrap: anywhere;
  background: rgba(8, 12, 24, 0.35);
}

.cc-table tbody tr { scroll-margin-top: 88px; transition: background 0.2s ease; }
.cc-table tbody tr:hover td { background: rgba(255, 255, 255, 0.035); }
.cc-row.is-p0 td:first-child { box-shadow: inset 3px 0 0 rgba(240, 193, 74, 0.9); }
.cc-row.is-hit td { background: rgba(240, 193, 74, 0.1); }

.cc-date {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-variant-numeric: tabular-nums;
  font-size: 0.78rem;
  color: #d5dcf3;
  white-space: nowrap;
}

.cc-urg,
.cc-plat,
.cc-status {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #d5d9ee;
  background: rgba(255, 255, 255, 0.04);
  white-space: nowrap;
}

.cc-urg-P0 { color: #ffe3a3; border-color: rgba(240, 193, 74, 0.55); background: rgba(240, 193, 74, 0.12); }
.cc-urg-P1 { color: #c9dcff; }
.cc-urg-P2 { color: #b7c0d4; }
.cc-status-due_soon { color: #ffe3a3; border-color: rgba(240, 193, 74, 0.55); }
.cc-plat.google_play { color: #b7ebc9; }
.cc-plat.app_store { color: #c5d7ff; }
.cc-plat.meta_ads { color: #c5d7ff; }
.cc-plat.admob,
.cc-plat.adsense { color: #ffe3a3; }
.cc-plat.ironsource,
.cc-plat.unity_ads { color: #d7c6f0; }

.cc-title { color: #f4f6ff; font-weight: 680; min-width: 0; overflow-wrap: break-word; letter-spacing: -0.01em; }
.cc-sub { color: #c5cbe0; margin-top: 4px; font-size: 0.8rem; }
.cc-note { color: var(--text-body, #a0a6c0); margin-top: 4px; font-size: 0.78rem; }
.cc-muted { color: var(--text-body, #a0a6c0); overflow-wrap: break-word; }
.cc-dash { color: #6d7490; }
.cc-urg-cell { white-space: nowrap; }
.cc-urg-cell .cc-status { margin-left: 6px; }
.cc-row.is-watch td { background: rgba(255, 255, 255, 0.015); }
.cc-status-watch { color: #c5d7ff; border-color: rgba(142, 182, 255, 0.45); }
.cc-play {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.78rem;
  background: rgba(77, 148, 255, 0.18);
  border: 1px solid rgba(77, 148, 255, 0.55);
}
.cc-play:hover { background: rgba(77, 148, 255, 0.32); }
.cc-src {
  color: var(--brand-blue-text, #4d94ff);
  font-weight: 650;
  text-decoration: none;
}
.cc-src:hover { text-decoration: underline; }

.cc-footnote {
  color: var(--text-gray, #888fb1);
  font-size: 0.8rem;
  margin: 14px 0 8px;
  line-height: 1.5;
}

.cc-footnote a { color: var(--brand-blue-text, #4d94ff); }

.cc-count { color: var(--text-gray, #888fb1); font-size: 0.8rem; font-variant-numeric: tabular-nums; }

.cc-home { padding-top: 10px; padding-bottom: 24px; }
.cc-home-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 10px 18px;
  margin-bottom: 12px;
}
.cc-home-head p { margin: 6px 0 0; color: var(--text-gray, #888fb1); font-size: 0.9rem; max-width: 46rem; }
.cc-home-all {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  border-bottom: 1px solid rgba(77, 148, 255, 0.7);
  padding-bottom: 2px;
}
.cc-home-all:hover { color: var(--brand-blue-text, #4d94ff); }

.cc-strip {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.cc-strip-row {
  display: grid;
  /* t2542u #1：第二列原来是固定 72px，装不下 "Google Play" / "App Store"，
     文字溢出色块。改为按内容宽度，标签自己撑开。 */
  grid-template-columns: 42px auto minmax(0, 1fr) auto auto;
  gap: 8px 12px;
  align-items: center;
  padding: 11px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  min-width: 0;
}
.cc-strip-row:first-child { border-top: 0; }
.cc-strip-title {
  color: #f2f4ff;
  text-decoration: none;
  font-weight: 650;
  min-width: 0;
  overflow-wrap: anywhere;
}
.cc-strip-title:hover { color: var(--brand-blue-text, #4d94ff); }

.cc-empty { color: var(--text-gray, #888fb1); padding: 14px; margin: 0; }

@media (max-width: 980px) {
  .cc-hero,
  .cc-layout { grid-template-columns: 1fr; }
  .cc-cal-panel { display: none; }
  .cc-agenda { display: block; }
  .cc-table { min-width: 960px; }
}

@media (max-width: 700px) {
  .cc-stats { grid-template-columns: 1fr 1fr 1fr; }
  .cc-strip-row {
    grid-template-columns: auto auto minmax(0, 1fr);
    grid-template-areas:
      "urg plat date"
      "title title title"
      "src src src";
  }
  .cc-strip-row .cc-urg { grid-area: urg; }
  .cc-strip-row .cc-plat { grid-area: plat; }
  .cc-strip-row .cc-date { grid-area: date; justify-self: end; }
  .cc-strip-row .cc-strip-title { grid-area: title; }
  .cc-strip-row .cc-srcs { grid-area: src; white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  .cc-table tbody tr,
  .cc-chip,
  .cc-day { transition: none; }
}

/* Playbook — dark one-glance table, same family as the calendar. */
.pb-page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 36px max(20px, 5%) 48px;
  color: #e7ebf8;
}
.pb-kicker {
  color: #8eb6ff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.pb-page h1 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-weight: 720;
  margin: 0 0 8px;
}
.pb-sub {
  color: #9aa3c4;
  margin: 0 0 22px;
  font-size: 0.95rem;
}
.pb-card {
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  overflow: auto;
}
.pb-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.pb-table th {
  text-align: left;
  font-weight: 700;
  color: #f4f6ff;
  padding: 16px 16px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap;
}
.pb-table tbody th {
  white-space: normal;
  width: 18%;
  border-bottom: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  vertical-align: top;
  line-height: 1.55;
}
.pb-table td {
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  vertical-align: top;
  line-height: 1.55;
  color: #d7dced;
}
.pb-table td:first-child {
  color: #fff;
  font-weight: 700;
  width: 18%;
}
.pb-table ol {
  margin: 0;
  padding-left: 1.15rem;
}
.pb-table ol li + li { margin-top: 4px; }
.pb-table a { color: #8eb6ff; font-weight: 650; }
.pb-split { margin: 22px 0 8px; }
.pb-split h2,
.pb-close h2 {
  font-size: 1.02rem;
  margin: 0 0 8px;
}
.pb-split ul { margin: 0; padding-left: 1.2rem; color: #d7dced; }
.pb-split li + li { margin-top: 8px; }
.pb-close {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.pb-close p { margin: 0; line-height: 1.55; }
.pb-foot {
  color: #8b93b0;
  font-size: 0.82rem;
  margin-top: 18px;
  line-height: 1.5;
}
.pb-foot a { color: #8eb6ff; }
.pb-back {
  display: inline-block;
  margin-bottom: 16px;
  color: #8eb6ff;
  text-decoration: none;
  font-weight: 650;
}
.pb-back:hover { text-decoration: underline; }
