:root {
  --ink: #0f2744;
  --ink-2: #1b3a5f;
  --ink-3: #2a4d73;
  --gold: #c4a35a;
  --gold-2: #e3c57a;
  --bg: #f5f6f8;
  --surface: #ffffff;
  --line: #e6e8ee;
  --text: #1a1d21;
  --muted: #6b7280;
  --subtle: #9aa3b2;
  --draft: #8b909a;
  --pending: #2f6fed;
  --reviewing: #0f9aa8;
  --approved: #1f8a4c;
  --distributing: #6d4bd6;
  --rejected: #c43c3c;
  --warn: #c47b14;
  --shadow: 0 10px 30px rgba(15, 39, 68, 0.08);
  --shadow-lg: 0 24px 60px rgba(8, 16, 28, 0.18);
  --radius: 14px;
  --sidebar: 244px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
}

button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.hidden { display: none !important; }

/* Prototype switcher */
.proto-bar {
  position: fixed;
  z-index: 80;
  right: 20px;
  bottom: 20px;
  display: flex;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(15, 39, 68, 0.92);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
}
.proto-bar button {
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  color: #d7deea;
  background: transparent;
}
.proto-bar button.active {
  background: #fff;
  color: var(--ink);
  font-weight: 600;
}
/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: .18s ease;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--ink-2); }
.btn-gold { background: var(--gold); color: #1a1408; }
.btn-gold:hover { background: var(--gold-2); }
.btn-ghost {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover { border-color: #c9d0dc; }
.btn-danger { background: var(--rejected); color: #fff; }
.btn-danger:hover { filter: brightness(1.05); }
.btn-pass { background: var(--approved); color: #fff; }
.btn:disabled, .btn.is-disabled {
  opacity: .45;
  cursor: not-allowed;
  pointer-events: none;
}
.btn-sm { min-height: 32px; padding: 0 10px; font-size: 13px; }
.btn-lg { min-height: 48px; padding: 0 22px; font-size: 15px; }

/* Tags */
.tag {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: #eef1f6;
  color: var(--ink-2);
}
.tag-draft { background: #eef0f3; color: #5c616b; }
.tag-pending { background: #e8f0ff; color: var(--pending); }
.tag-reviewing { background: #e6f7f8; color: var(--reviewing); }
.tag-intake_pending { background: #fff4d6; color: #9a6b00; }
.tag-intake_rejected { background: #fdecec; color: var(--rejected); }
.tag-in_library { background: #e7f7ee; color: var(--approved); }
.tag-release_pending { background: #e8f0ff; color: var(--pending); }
.tag-release_rejected { background: #fdecec; color: var(--rejected); }
.tag-approved { background: #e7f7ee; color: var(--approved); }
.tag-distributing { background: #efe9ff; color: var(--distributing); }
.tag-rejected { background: #fdecec; color: var(--rejected); }
.tag-round { background: #f4ead0; color: #8a6918; }
.tag-lock { background: #fdecec; color: #b42318; }
.tag-unread { background: #fff4d6; color: #9a6b00; }
.tag-signing { background: #e6f7f8; color: var(--reviewing); }
.tag-signed { background: #e7f7ee; color: var(--approved); }
.tag-expired { background: #eef0f3; color: #5c616b; box-shadow: inset 0 0 0 1px #d5d8de; }
.tag-disabled {
  background: #f4ecec;
  color: #9a4a4a;
  box-shadow: inset 0 0 0 1px #e6cfcf;
}

/* Public home */
.public {
  min-height: 100vh;
  background: #0a0a0a;
  color: #f5f5f5;
}
.public-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 48px;
  background: linear-gradient(180deg, rgba(9,11,15,.94), rgba(9,11,15,.62) 72%, transparent);
  backdrop-filter: blur(16px);
}
.public-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}
.public-nav button {
  border: 0;
  background: transparent;
  color: #cfc8bb;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .04em;
}
.public-nav button:hover { color: #fff; background: rgba(255,255,255,.06); }
.public-nav button.on { color: #fff; background: rgba(255,255,255,.1); }
.public-header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.brand { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(160deg, #2a1c08, #1a1408);
  box-shadow: inset 0 0 0 1px rgba(227, 197, 122, .45);
  position: relative;
}
.logo-mark::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 7px;
  bottom: 7px;
  width: 4px;
  background: repeating-linear-gradient(
    to bottom,
    var(--gold-2) 0 3px,
    transparent 3px 6px
  );
}
.logo-mark::after {
  content: "";
  position: absolute;
  left: 15px;
  top: 11px;
  border-style: solid;
  border-width: 7px 0 7px 12px;
  border-color: transparent transparent transparent var(--gold-2);
}
.brand-name { font-size: 18px; letter-spacing: .08em; font-weight: 700; }
.brand-sub { font-size: 12px; color: #b8b1a4; letter-spacing: .18em; }
.hero {
  position: relative;
  min-height: 620px;
  padding: 80px 48px 90px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 18%, rgba(101, 240, 208, .42), transparent 28%),
    radial-gradient(circle at 88% 62%, rgba(122, 92, 255, .38), transparent 32%),
    radial-gradient(circle at 30% 80%, rgba(196, 163, 90, .16), transparent 26%),
    linear-gradient(180deg, #12364d 0%, #07151f 58%, #090b0f 100%);
}
.hero-bg .poster { display: none; }
.hero-mask {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9,11,15,.78) 0%, rgba(9,11,15,.28) 58%, rgba(9,11,15,.12) 100%),
    linear-gradient(180deg, transparent 48%, #090b0f 100%);
}
.hero-copy { position: relative; max-width: 640px; z-index: 2; }
.hero-poster {
  position: absolute;
  right: 72px;
  bottom: 72px;
  width: 260px;
  z-index: 2;
  cursor: pointer;
}
.hero-poster .poster { box-shadow: 0 24px 60px rgba(0,0,0,.45); }
.hero-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.28);
}
.kicker {
  color: var(--gold-2);
  letter-spacing: .22em;
  font-size: 12px;
  margin-bottom: 16px;
}
.hero h1 { font-size: 52px; line-height: 1.12; margin: 0 0 18px; font-weight: 700; letter-spacing: -.02em; max-width: 12em; }
.hero p { color: #d5cfc4; font-size: 17px; line-height: 1.85; max-width: 560px; }
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.hero-facts span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(227,197,122,.28);
  border-radius: 999px;
  color: #e6d7a8;
  font-size: 12px;
  letter-spacing: .04em;
}
.hero-actions { display: flex; gap: 12px; margin-top: 28px; }
.hero-poster {
  width: 280px;
  right: 64px;
  bottom: 56px;
}
.hero-poster .poster {
  box-shadow: 0 30px 80px rgba(0,0,0,.55);
  transform: rotate(-2deg);
}
.hero-poster:hover .poster { transform: rotate(0deg) translateY(-6px); }
.section { padding: 28px 48px 28px; }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 22px;
}
.section-head .kicker { margin-bottom: 8px; }
.section h2 { margin: 0; font-size: 28px; letter-spacing: -.02em; }
.section-head span { color: #8f877a; font-size: 13px; }
.spotlight-row {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 16px;
}
.spotlight-card {
  position: relative;
  min-height: 320px;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
}
.spotlight-card .poster { height: 100%; aspect-ratio: auto; border-radius: 0; }
.spotlight-card .poster-title { display: none; }
.spotlight-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px 20px 18px;
  background: linear-gradient(180deg, transparent, rgba(8,10,14,.92));
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.spotlight-copy em { font-style: normal; font-size: 11px; letter-spacing: .18em; color: var(--gold-2); }
.spotlight-copy b { font-size: 22px; }
.spotlight-copy span { color: #c9c2b6; font-size: 13px; }
.spotlight-card:hover .poster { transform: scale(1.04); }
.home-spotlight { grid-template-columns: 1fr; }
.home-spotlight .spotlight-card.is-lead { min-height: 420px; }
.poster-rail, .poster-wall {
  display: grid;
  gap: 18px;
}
.poster-rail { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.poster-wall { grid-template-columns: repeat(6, 1fr); }
.poster-card { cursor: pointer; min-width: 0; }
.poster-card:hover .poster { transform: translateY(-8px); box-shadow: 0 22px 48px rgba(0,0,0,.4); }
.poster-meta { margin-top: 10px; }
.poster-meta .title { font-weight: 650; }
.poster-meta .sub { color: #9a9286; font-size: 12px; margin-top: 4px; }
.public-windows { padding-bottom: 56px; }
.public-plat-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}
.public-plat {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  background: rgba(255,255,255,.03);
  color: #efece6;
  font-weight: 650;
}
.public-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.public-kpis.is-3 { grid-template-columns: repeat(3, 1fr); }
.public-kpis article,
.public-kpi {
  display: block;
  width: 100%;
  text-align: left;
  padding: 26px 22px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.08);
  background:
    linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  color: inherit;
  cursor: pointer;
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.public-kpi:hover,
.public-kpi.on {
  border-color: rgba(227,197,122,.36);
  transform: translateY(-2px);
  background:
    linear-gradient(160deg, rgba(227,197,122,.12), rgba(255,255,255,.03));
}
.public-kpis b,
.public-kpi b { display: block; font-size: 34px; letter-spacing: -.03em; }
.public-kpis span,
.public-kpi span { color: #9a9286; font-size: 13px; }
.public-kpi em {
  display: block;
  margin-top: 14px;
  font-style: normal;
  color: #e6d7a8;
  font-size: 12px;
  letter-spacing: .06em;
}
.kpi-panel {
  margin-top: 14px;
  padding: 22px 24px 24px;
  border-radius: 20px;
  border: 1px solid rgba(227,197,122,.22);
  background:
    linear-gradient(160deg, rgba(227,197,122,.08), rgba(255,255,255,.02) 40%),
    rgba(16,18,22,.92);
}
.kpi-panel-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.kpi-panel-head .kicker { margin-bottom: 6px; }
.kpi-panel-head h3 { margin: 0; font-size: 22px; }
.kpi-plat-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.kpi-plat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}
.kpi-plat-item b { display: block; font-size: 15px; }
.kpi-plat-item span { color: #8f877a; font-size: 12px; }
.kpi-panel-foot { margin-top: 16px; }
.kpi-country-groups {
  display: grid;
  gap: 14px;
  max-height: 360px;
  overflow: auto;
  padding-right: 4px;
}
.kpi-country-group {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.025);
}
.kpi-country-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.kpi-country-head b { font-size: 14px; }
.kpi-country-head span {
  color: #e6d7a8;
  font-size: 12px;
  border: 1px solid rgba(227,197,122,.28);
  border-radius: 999px;
  padding: 2px 8px;
}
.kpi-country-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.kpi-country-chips span {
  font-size: 12px;
  color: #cfc8bb;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
}
.kpi-share-list { display: grid; gap: 12px; }
.kpi-share-list article {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}
.kpi-share-list em {
  font-style: normal;
  color: var(--gold-2);
  font-size: 18px;
  font-weight: 700;
}
.kpi-share-list b { display: block; margin-bottom: 6px; font-size: 16px; }
.kpi-share-list p { margin: 0; color: #b8b1a4; line-height: 1.7; font-size: 14px; }
.kpi-panel-note {
  margin: 14px 0 0;
  color: #8f877a;
  font-size: 13px;
  line-height: 1.6;
}
.public-intro {
  position: relative;
  overflow: hidden;
  padding: 56px 48px 48px;
  min-height: 220px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.public-intro-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 20%, rgba(101, 240, 208, .28), transparent 32%),
    radial-gradient(circle at 92% 70%, rgba(122, 92, 255, .26), transparent 34%),
    radial-gradient(circle at 18% 80%, rgba(196, 163, 90, .14), transparent 28%),
    linear-gradient(180deg, #12364d 0%, #0a1620 55%, #090b0f 100%);
}
.public-intro-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9,11,15,.55) 0%, rgba(9,11,15,.18) 62%, transparent 100%),
    linear-gradient(180deg, transparent 40%, rgba(9,11,15,.88) 100%);
}
.public-intro-copy,
.public-intro-meta { position: relative; z-index: 1; }
.public-intro-copy { max-width: 640px; }
.public-intro h1 {
  margin: 0 0 12px;
  font-size: 42px;
  letter-spacing: -.02em;
  line-height: 1.15;
}
.public-intro p {
  margin: 0;
  color: #d5cfc4;
  font-size: 15px;
  line-height: 1.8;
  max-width: 520px;
}
.public-intro-meta {
  flex-shrink: 0;
  align-self: center;
}
.public-intro-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(227,197,122,.3);
  color: #e6d7a8;
  font-size: 13px;
  letter-spacing: .04em;
  background: rgba(9,11,15,.35);
  backdrop-filter: blur(8px);
}
.public-page {
  position: relative;
  padding-top: 36px;
  padding-bottom: 48px;
  min-height: 52vh;
}
.public-page::before {
  content: "";
  position: absolute;
  left: 48px;
  right: 48px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(227,197,122,.22), transparent);
  pointer-events: none;
}
.public-lead { color: #cfc8bb; line-height: 1.8; max-width: 720px; margin: 0 0 24px; }
.public-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}
.public-filters .chip { background: transparent; color: #cfc8bb; border-color: rgba(255,255,255,.14); }
.public-filters .chip.on { background: #fff; color: var(--ink); border-color: #fff; }
.public-cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 28px;
  padding: 24px 26px;
  border-radius: 18px;
  border: 1px solid rgba(227,197,122,.24);
  background:
    linear-gradient(120deg, rgba(227,197,122,.12), rgba(101,240,208,.06) 48%, rgba(122,92,255,.08)),
    rgba(255,255,255,.03);
}
.public-cta-band b { display: block; font-size: 18px; margin-bottom: 6px; }
.public-cta-band p { margin: 0; color: #b8b1a4; font-size: 14px; }
.how-steps { display: grid; gap: 14px; }
.how-step {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 18px;
  align-items: start;
  padding: 24px 26px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.08);
  background:
    linear-gradient(135deg, rgba(227,197,122,.06), transparent 42%),
    rgba(255,255,255,.03);
  transition: border-color .2s ease, transform .2s ease;
}
.how-step:hover {
  border-color: rgba(227,197,122,.28);
  transform: translateY(-2px);
}
.how-step em {
  font-style: normal;
  color: var(--gold-2);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1;
  padding-top: 2px;
}
.how-step b { display: block; margin-bottom: 8px; font-size: 18px; }
.how-step p { margin: 0; color: #b8b1a4; line-height: 1.75; max-width: 720px; }
.partner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.partner-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 168px;
  padding: 28px 20px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.08);
  background:
    radial-gradient(circle at 50% 0%, rgba(227,197,122,.08), transparent 55%),
    rgba(255,255,255,.03);
  text-align: center;
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.partner-card:hover {
  border-color: rgba(227,197,122,.32);
  transform: translateY(-3px);
  background:
    radial-gradient(circle at 50% 0%, rgba(227,197,122,.14), transparent 55%),
    rgba(255,255,255,.045);
}
.partner-logo {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
}
.partner-logo .plat-logo,
.partner-logo img,
.partner-logo svg { width: 36px; height: 36px; object-fit: contain; }
.partner-card b { font-size: 17px; letter-spacing: .02em; }
.partner-card > span { color: #8f877a; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.partner-card p { margin: 12px 0 0; color: #b8b1a4; font-size: 13px; line-height: 1.6; }
.partner-tags { display: flex; gap: 8px; margin-top: 12px; }
.partner-tags span {
  font-size: 12px;
  color: #e6d7a8;
  border: 1px solid rgba(227,197,122,.28);
  border-radius: 999px;
  padding: 3px 8px;
}
.about-page { padding-bottom: 48px; }
.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}
.about-stats article {
  padding: 22px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
}
.about-stats b {
  display: block;
  font-size: 28px;
  letter-spacing: -.02em;
  margin-bottom: 6px;
}
.about-stats span { display: block; color: #efece6; font-size: 14px; font-weight: 650; }
.about-stats em {
  display: block;
  margin-top: 8px;
  font-style: normal;
  color: #8f877a;
  font-size: 12px;
  line-height: 1.5;
}
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 24px;
  align-items: start;
}
.about-points { display: grid; gap: 12px; }
.about-points article {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  padding: 20px 22px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}
.about-points em {
  font-style: normal;
  color: var(--gold-2);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .04em;
}
.about-points b { display: block; margin-bottom: 6px; font-size: 16px; }
.about-points p { margin: 0; color: #b8b1a4; line-height: 1.7; font-size: 14px; }
.contact-card {
  color: #efece6;
  padding: 28px 26px;
  border-radius: 20px;
  border: 1px solid rgba(227,197,122,.22);
  background:
    linear-gradient(160deg, rgba(227,197,122,.1), rgba(255,255,255,.03) 42%),
    #12151b;
  box-shadow: 0 18px 48px rgba(0,0,0,.28);
}
.contact-card .kicker { margin-bottom: 10px; }
.contact-card h3 { margin: 0 0 8px; font-size: 22px; }
.contact-card > p {
  margin: 0 0 18px;
  color: #b8b1a4;
  font-size: 13px;
  line-height: 1.7;
}
.contact-card .field { margin-top: 12px; }
.contact-card .field:first-of-type { margin-top: 0; }
.contact-card label { color: #cfc8bb; }
.contact-card input,
.contact-card textarea {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.12);
  color: #efece6;
}
.contact-card textarea { min-height: 96px; resize: vertical; }
.public-foot-nav { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.public-foot-nav button {
  border: 0;
  background: none;
  color: #9a9286;
  padding: 0;
  font-size: 13px;
}
.public-foot-nav button:hover { color: #efece6; }
.public-beats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}
.public-beats.is-5 { grid-template-columns: repeat(5, 1fr); }
.public-beats article {
  padding: 22px 20px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.06);
}
.public-beats em {
  display: block;
  font-style: normal;
  color: var(--gold-2);
  font-size: 12px;
  letter-spacing: .18em;
  margin-bottom: 10px;
}
.public-beats b { display: block; font-size: 16px; margin-bottom: 8px; }
.public-beats p { margin: 0; color: #b8b1a4; line-height: 1.7; font-size: 14px; }
.public-footer {
  display: flex;
  justify-content: space-between;
  align-items: end;
  padding: 36px 48px 88px;
  color: #7c756a;
  font-size: 13px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.public-footer .brand-name { color: #efece6; }

/* Posters */
.poster {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0,0,0,.22);
  transition: .25s ease;
}
.poster-art, .poster-grain, .poster-fade { position: absolute; inset: 0; overflow: hidden; }
.poster-art { background-size: cover; }
.poster-grain {
  opacity: .18;
  background-image: radial-gradient(rgba(255,255,255,.25) 0.6px, transparent 0.6px);
  background-size: 3px 3px;
  mix-blend-mode: overlay;
}
.poster-fade {
  background: linear-gradient(180deg, transparent 42%, rgba(0,0,0,.72) 100%);
}
.poster-emblem {
  position: absolute;
  inset: 18% 10% 38%;
  z-index: 2;
  display: grid;
  place-items: center;
  text-align: center;
  color: rgba(255,255,255,.88);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .16em;
  text-shadow: 0 8px 24px rgba(0,0,0,.35);
}
.poster-title {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 16px;
  z-index: 2;
  color: #fff;
}
.poster-title b { display: block; font-size: 18px; letter-spacing: .04em; }
.poster-title i { display: block; margin-top: 4px; font-style: normal; font-size: 10px; letter-spacing: .18em; color: rgba(255,255,255,.72); }
.poster-sm { width: 72px; height: 102px; aspect-ratio: auto; border-radius: 10px; flex: none; overflow: hidden; box-shadow: 0 8px 18px rgba(15, 39, 68, .18); }
.poster-sm .poster-title { display: none; }
.poster-sm .poster-emblem { inset: 16% 8% 28%; font-size: 9px; letter-spacing: .08em; }
.poster-lg { min-height: 100%; }

.theme-nanyang .poster-art { background: radial-gradient(circle at 20% 20%, #f0c36a, transparent 42%), linear-gradient(160deg, #7a2d14, #1b0d08 70%); }
.theme-nanyang .poster-art::after { content: ""; position: absolute; inset: 12% 18% auto; height: 38%; border: 2px solid rgba(240,195,106,.45); transform: rotate(-8deg); }
.theme-aurora .poster-art { background: linear-gradient(180deg, #12364d, #07151f 55%), radial-gradient(circle at 70% 20%, #65f0d0, transparent 35%), radial-gradient(circle at 30% 10%, #7a5cff, transparent 28%); }
.theme-harbor .poster-art { background: linear-gradient(180deg, #27445d, #0b1722); }
.theme-harbor .poster-art::before { content: ""; position: absolute; left: 0; right: 0; bottom: 28%; height: 18%; background: repeating-linear-gradient(90deg, transparent, transparent 18px, rgba(255,255,255,.06) 18px, rgba(255,255,255,.06) 19px); }
.theme-monsoon .poster-art { background: linear-gradient(160deg, #163328, #07140f); }
.theme-silk .poster-art { background: radial-gradient(circle at 70% 20%, #e8b25a, transparent 30%), linear-gradient(160deg, #8b1d2c, #2a0b12); }
.theme-midnight .poster-art { background: radial-gradient(circle at 50% 0%, #3d5d8a, #070b14 60%); }
.theme-desert .poster-art { background: linear-gradient(180deg, #e6b57a, #8a4b28 55%, #2b140c); }
.theme-snow .poster-art { background: linear-gradient(180deg, #dce8f4, #7ea0bc 50%, #1d2c3a); }
.theme-neon .poster-art { background: radial-gradient(circle at 20% 80%, #ff3d8e, transparent 36%), radial-gradient(circle at 80% 20%, #36e0ff, transparent 32%), #120616; }
.theme-temple .poster-art { background: linear-gradient(160deg, #c9b08a, #4a3424 60%, #1b120c); }
.theme-tide .poster-art { background: linear-gradient(180deg, #87c4d6, #1b4e6b 48%, #07161f); }
.theme-ember .poster-art { background: radial-gradient(circle at 50% 80%, #ff7a3d, transparent 36%), linear-gradient(180deg, #2b0d0d, #090404); }

/* Admin shell */
.shell { min-height: 100vh; display: flex; }
.sidebar {
  width: var(--sidebar);
  background:
    radial-gradient(circle at 0% 0%, rgba(227, 197, 122, .12), transparent 42%),
    linear-gradient(180deg, #163456 0%, #0c2038 42%, #0a1b30 100%);
  color: #d5deea;
  padding: 18px 12px 12px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  box-shadow: inset -1px 0 0 rgba(255,255,255,.06);
}
.side-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 10px 16px;
  margin: 0 2px 6px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  flex: none;
}
.sidebar .brand-name { color: #fff; font-size: 16px; letter-spacing: .06em; }
.sidebar .brand-sub { color: #9eb0c8; letter-spacing: .16em; }
.side-nav {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 4px 2px 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.2) transparent;
}
.side-nav::-webkit-scrollbar { width: 6px; }
.side-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.18); border-radius: 99px; }
.side-group + .side-group { margin-top: 10px; }
.side-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 0;
  border-radius: 11px;
  background: rgba(255,255,255,.04);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .12em;
  text-align: left;
}
.side-kicker:hover { background: rgba(255,255,255,.09); color: #fff; }
.side-kicker span:first-child { flex: 1; min-width: 0; }
.side-chevron {
  width: 16px;
  height: 16px;
  flex: none;
  color: #c5d4e6;
  transition: transform .18s ease;
}
.side-group.is-fold .side-chevron { transform: rotate(-90deg); }
.side-sub {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows .18s ease;
}
.side-sub > div { overflow: hidden; padding: 4px 0 2px 8px; }
.side-group.is-fold .side-sub { grid-template-rows: 0fr; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 8px 10px;
  border: 0;
  border-radius: 11px;
  color: #c9d5e4;
  background: transparent;
  width: 100%;
  text-align: left;
  font-weight: 600;
}
.nav-item + .nav-item { margin-top: 2px; }
.nav-ico {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  flex: none;
  color: #8ea2bb;
}
.nav-svg { width: 18px; height: 18px; display: block; }
.nav-label { flex: 1; min-width: 0; line-height: 1.2; }
.nav-item:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav-item:hover .nav-ico { color: #e3c57a; }
.nav-item.active {
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(8, 16, 28, .16);
}
.nav-item.active .nav-ico { color: var(--ink); }
.nav-item.active .nav-badge { background: #c43c3c; color: #fff; }
.nav-badge {
  margin-left: auto;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #c43c3c;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.main { flex: 1; min-width: 0; }
.topbar {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.topbar-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.topbar-left h1 { margin: 0; font-size: 18px; }
.topbar-right { display: flex; align-items: center; margin-left: auto; }
.user-menu { position: relative; }
.user-btn {
  display: flex;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 999px;
}
.user-btn:hover .user-avatar { box-shadow: 0 0 0 3px #e8eef6; }
.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
}
.user-pop {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 208px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 6px;
  z-index: 40;
}
.user-pop-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px 8px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  width: 100%;
  background: transparent;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  border-radius: 8px 8px 0 0;
}
button.user-pop-head:hover { background: #f3f6fa; }
.user-pop-head b { font-size: 14px; }
.user-pop-head span { color: var(--muted); font-size: 12px; }
.user-pop button {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: 0;
  background: transparent;
  border-radius: 8px;
  color: var(--text);
}
.user-pop button:hover { background: #f3f6fa; }
.user-pop button.on { background: #eef3f8; font-weight: 600; }
.file-pick.is-locked { pointer-events: none; opacity: .7; }
.account-title .tag { margin-left: 8px; vertical-align: middle; }
.user-avatar.lg { width: 52px; height: 52px; font-size: 20px; }
.account-mask {
  position: fixed;
  inset: 0;
  z-index: 98;
  display: flex;
  justify-content: flex-end;
}
.account-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 14, .4);
}
.account-drawer {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  height: 100%;
  background: #f4f6f9;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
}
.account-drawer.is-enter {
  animation: account-in .22s ease;
}
@keyframes account-in {
  from { transform: translateX(32px); opacity: .5; }
  to { transform: translateX(0); opacity: 1; }
}
.account-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 22px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.account-kicker { color: var(--muted); font-size: 12px; }
.account-drawer-head h2 { margin: 2px 0 0; font-size: 18px; }
.account-drawer-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 18px 20px 28px;
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.account-nav {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px;
}
.account-nav button {
  width: 100%;
  text-align: left;
  padding: 11px 12px;
  border: 0;
  background: transparent;
  border-radius: 10px;
  color: var(--text);
}
.account-nav button:hover { background: #f3f6fa; }
.account-nav button.on { background: #eef3f8; font-weight: 700; color: var(--ink); }
.account-pane {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 24px 24px;
}
.account-title { margin: 0 0 16px; font-size: 18px; }
.account-id {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.account-id b { display: block; font-size: 16px; }
.account-id div span { color: var(--muted); font-size: 13px; }
.back-btn { min-height: 34px; padding: 0 12px; flex: 0 0 auto; }
.content { padding: 18px 24px 64px; min-width: 0; overflow-x: hidden; }
.prior-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px 16px;
  margin-bottom: 12px;
  background: #fbfcfe;
}
.prior-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.prior-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.prior-grid input { width: 100%; min-width: 0; }

/* Cards / grids */
.grid-4, .grid-3, .grid-2 { display: grid; gap: 10px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: 1.4fr 1fr; }
.insight-kpis { grid-template-columns: 1fr 1fr; }
.insight-top .insight-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 0;
}
.card-pad { padding: 14px 16px; }
.kpi-card { padding: 10px 12px; }
.kpi-card .stat-num { font-size: 20px; margin: 2px 0 0; }
.kpi-card .subtle { line-height: 1.35; }
.card h3 { margin: 0 0 6px; font-size: 15px; }
.muted { color: var(--muted); }
.subtle { color: var(--subtle); font-size: 12px; }
.stat-num { font-size: 28px; font-weight: 720; letter-spacing: -.03em; margin: 10px 0 4px; }
.upload-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 26px;
  background:
    radial-gradient(circle at 88% 20%, rgba(196,163,90,.22), transparent 28%),
    linear-gradient(135deg, #102844, #1d4a75);
  color: #fff;
  border: 0;
}
.upload-hero p { color: #c9d6e6; margin: 8px 0 0; }
.todo { display: flex; flex-direction: column; gap: 10px; }
.todo-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.todo-item:hover { border-color: #c5cfdd; }
.is-link { cursor: pointer; }
.todo-item.is-link:hover, .card.is-link:hover { border-color: #8aa0bf; box-shadow: var(--shadow); }

.ops-home { display: flex; flex-direction: column; gap: 14px; }
.ops-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.ops-kpi {
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 112px;
  padding: 16px 18px;
  text-align: left;
  color: inherit;
  background: #fff;
  border: 1px solid var(--line);
}
.ops-kpi:hover { border-color: #8aa0bf; box-shadow: var(--shadow); }
.ops-kpi-label {
  font-size: 13px;
  font-weight: 650;
  color: #5c6573;
}
.ops-kpi b {
  display: block;
  margin-top: auto;
  padding-top: 12px;
  font-size: 26px;
  letter-spacing: -.04em;
  line-height: 1.1;
}
.ops-kpi em {
  display: block;
  margin-top: 6px;
  font-style: normal;
  color: var(--muted);
  font-size: 12px;
}
.ops-kpi.is-hot {
  border-color: #f3d2d2;
  background: #fff8f8;
}
.ops-kpi.is-hot b { color: #8a2222; }
.ops-kpi.is-gold {
  border-color: #e6d7b0;
  background: linear-gradient(180deg, #fffaf0, #fff);
}
.ops-kpi.is-gold b { color: #8a6a22; }
.ops-main, .ops-foot {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  gap: 12px;
  align-items: stretch;
}
.ops-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 16px 18px 14px;
}
.ops-todo-card,
.ops-settle {
  height: 428px;
  overflow: hidden;
}
.ops-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.ops-panel-head h3 { margin: 0; font-size: 16px; }
.ops-panel-head span { color: var(--muted); font-size: 12px; }
.ops-todo, .ops-sync-list { display: flex; flex-direction: column; }
.ops-todo {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  margin: 0 -6px;
  padding: 0 6px;
}
.ops-todo::-webkit-scrollbar { width: 6px; }
.ops-todo::-webkit-scrollbar-thumb { background: #d5dce6; border-radius: 99px; }
.ops-todo-item {
  appearance: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 12px 8px;
  border: 0;
  border-bottom: 1px solid #eef1f5;
  border-radius: 0;
  background: transparent;
  color: inherit;
}
.ops-todo-item:last-child { border-bottom: 0; }
.ops-todo-item:hover { background: #f7f9fc; border-radius: 10px; }
.ops-todo-item b { display: block; font-size: 14px; }
.ops-todo-item em {
  display: block;
  margin-top: 4px;
  font-style: normal;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.ops-todo-tag {
  flex: none;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef3fa;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}
.ops-todo-tag.is-hot { background: #fdecec; color: #8a2222; }
.ops-todo-tag.is-ok { background: #e8f6ee; color: #1f8a4c; }
.ops-settle-body {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 2px;
}
.ops-settle-body::-webkit-scrollbar { width: 6px; }
.ops-settle-body::-webkit-scrollbar-thumb { background: #d5dce6; border-radius: 99px; }
.grain-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 10px;
}
.grain-chips { gap: 6px; }
.grain-chips .chip { padding: 4px 10px; font-size: 12px; }
.grain-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.grain-nav b {
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}
.dt-arr:disabled { opacity: .32; pointer-events: none; }
.ops-spark {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 156px;
  padding: 52px 4px 0;
  margin: 4px 0 16px;
  overflow: visible;
  flex: none;
}
.ops-spark-col {
  appearance: none;
  position: relative;
  flex: 1;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.ops-spark-col i {
  display: block;
  width: 100%;
  min-height: 6px;
  background: #d7e3f0;
  border-radius: 6px 6px 2px 2px;
}
.ops-spark-col:hover i { background: #8aa7c4; }
.ops-spark-col i.is-on,
.ops-spark-col.is-on i,
.ops-spark-col.is-on:hover i { background: var(--ink); }
.ops-spark-col em {
  margin-top: 6px;
  font-style: normal;
  font-size: 11px;
  color: var(--subtle);
  text-align: center;
}
.ops-spark-col.is-on em { color: var(--ink); font-weight: 700; }
.ops-spark-tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% - 16px);
  transform: translateX(-50%);
  z-index: 8;
  min-width: 118px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #10233c;
  color: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  white-space: nowrap;
}
.ops-spark-col:first-child .ops-spark-tip { left: 0; transform: none; }
.ops-spark-col:last-child .ops-spark-tip { left: auto; right: 0; transform: none; }
.ops-spark-col:hover .ops-spark-tip,
.ops-spark-col:focus-within .ops-spark-tip {
  opacity: 1;
  visibility: visible;
}
.ops-spark-tip b { display: block; font-size: 12px; }
.ops-spark-tip span { display: block; margin-top: 3px; font-size: 11px; color: #c9d6e6; }
.ops-settle-cap {
  margin: 0 0 12px;
  font-size: 12px;
  color: var(--muted);
}
.ops-plats { display: flex; flex-direction: column; gap: 12px; flex: none; overflow: visible; }
.ops-plat { min-width: 0; }
.ops-plat-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}
.ops-plat-head b { display: block; font-size: 13px; }
.ops-plat-head em {
  display: block;
  margin-top: 2px;
  font-style: normal;
  color: var(--muted);
  font-size: 12px;
}
.ops-bar-track {
  height: 6px;
  background: #eef1f5;
  border-radius: 99px;
  overflow: hidden;
}
.ops-bar-track i { display: block; height: 100%; border-radius: 99px; }
.ops-plat-num { text-align: right; }
.ops-plat-num b { display: block; font-size: 14px; }
.ops-plat-num em { display: block; margin-top: 2px; font-style: normal; color: var(--muted); font-size: 11px; }
.ops-foot > .card {
  align-self: stretch;
  min-height: 100%;
}
.ops-live { display: flex; flex-direction: column; flex: 1; }
.ops-live-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #eef1f5;
}
.ops-live-item:last-child { border-bottom: 0; }
.ops-live-item b { display: block; font-size: 14px; }
.ops-live-item .subtle { display: block; margin-top: 3px; }
.ops-live-item .poster-xs { width: 40px; height: 56px; }
.ops-health {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.ops-sync-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 1fr;
  gap: 4px 12px;
  margin-top: 4px;
  flex: 1;
  min-height: 0;
  align-content: stretch;
}
.ops-sync-row {
  appearance: none;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 10px 8px;
  border: 0;
  border-bottom: 1px solid #eef1f5;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.ops-sync-row:hover { background: #f7f9fc; border-radius: 10px; }
.ops-sync-row .plat-logo { width: 28px; height: 28px; font-size: 10px; flex: none; }
.ops-sync-row b { display: block; font-size: 13px; }
.ops-sync-row em {
  display: block;
  margin-top: 2px;
  font-style: normal;
  color: var(--muted);
  font-size: 12px;
}
.ops-cover-num { text-align: right; }
.ops-cover-num b { font-size: 13px; font-variant-numeric: tabular-nums; }
.ops-cover-num em { color: var(--subtle); }
.ops-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 8px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f7f9fc;
  font-size: 12px;
}
.ops-chip .plat-logo { width: 22px; height: 22px; font-size: 9px; flex: none; }
.ops-kpi-main {
  border-color: #e6d7b0;
  background: linear-gradient(180deg, #fffaf0, #fff);
}
.insight-top {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, .85fr);
  gap: 10px;
  align-items: stretch;
  margin-bottom: 10px;
}
.insight-top .insight-kpis { gap: 8px; }
.insight-toolbar { margin: 0; flex: 1; min-width: 0; }
.insight-head .filters { flex-wrap: wrap; }
.ops-split.is-inline {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 10px 12px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}
.ops-split-bar {
  display: flex;
  height: 8px;
  border-radius: 99px;
  overflow: hidden;
  background: #eef1f5;
}
.ops-split-bar i { display: block; height: 100%; }
.ops-split-bar i.is-ops, .ops-split-legend i.is-ops { background: var(--gold); }
.ops-split-bar i.is-in, .ops-split-legend i.is-in { background: #3b6ea8; }
.ops-split-bar i.is-cus, .ops-split-legend i.is-cus { background: var(--ink-2); }
.ops-split-bar i.is-ott, .ops-split-legend i.is-ott { background: #cfd6e0; }
.ops-split-step {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 650;
  color: var(--ink-2);
  letter-spacing: .04em;
}
.ops-split-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}
.ops-split-legend i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 99px;
  margin-right: 6px;
  vertical-align: 1px;
}
.ops-split-legend b { color: var(--text); }
.ops-split-legend em { margin-left: auto; font-style: normal; color: var(--subtle); }
.ops-chip em { color: var(--muted); font-style: normal; }

/* Tables */
.toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filters select, .toolbar select { width: auto; min-width: 120px; }
.filters input[type="search"] { width: 180px; min-width: 140px; }
.contract-filters { align-items: end; }
.contract-filters .lib-filter-item { min-width: 160px; }
.contract-filters .lib-filter-item:first-child { min-width: 240px; }
.filters .insight-date { min-width: 168px; }
.filters .dt-pop { left: auto; right: 0; }
.lib-head {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}
.lib-filter { padding: 16px 18px; margin-bottom: 16px; }
.lib-filter-grid {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) 140px minmax(150px, 1fr) minmax(150px, 1.1fr) minmax(150px, 1.1fr) 168px;
  gap: 12px 14px;
  align-items: end;
}
.lib-filter-item { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lib-filter-item span { font-size: 12px; font-weight: 600; color: #4b5563; }
.lib-filter-item input,
.lib-filter-item select,
.lib-filter-item .dt-field {
  height: 40px;
  min-height: 40px;
  width: 100%;
}
.lib-filter-item .dt-field { padding-top: 0; padding-bottom: 0; }
.lib-filter-item .dt-wrap { width: 100%; }
.insight-dims { padding: 0 16px 8px; }
select,
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([type="submit"]):not([type="button"]),
textarea {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 40px;
  min-height: 40px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 0 12px;
  color: var(--text);
  outline: none;
  line-height: 38px;
  box-sizing: border-box;
  vertical-align: middle;
}
textarea {
  height: auto;
  min-height: 96px;
  padding: 10px 12px;
  line-height: 1.6;
  resize: vertical;
}
select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%236b7280' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M3 4.5 6 7.5 9 4.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
  cursor: pointer;
}
select:focus, input:focus, textarea:focus { border-color: #8aa0bf; box-shadow: 0 0 0 3px rgba(27,58,95,.08); }
input[readonly],
select:disabled,
input:disabled {
  background: #f3f5f8;
  color: var(--muted);
  cursor: default;
  opacity: 1;
}
input[type="number"] { -moz-appearance: textfield; }
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.insight-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 12px 8px;
  overflow: visible;
}
.insight-head h3 { margin: 0; font-size: 14px; }
.insight-head p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.insight-head .insight-dims { padding: 0; }
.insight-head .chip { padding: 4px 10px; font-size: 12px; }
.table { width: 100%; border-collapse: collapse; }
.table th {
  text-align: left;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  background: #fafbfc;
}
.table td { padding: 10px 12px; border-bottom: 1px solid #eef1f5; vertical-align: middle; }
.table tr:hover td { background: #fafcff; }
.table td.row-actions { justify-content: flex-end; }
.row-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.row-title b { display: block; }
.row-meta { display: flex; flex-direction: column; justify-content: center; gap: 4px; min-width: 0; }
.row-meta .subtle { display: block; line-height: 1.3; }
.row-actions { display: flex; gap: 8px; }

.lib-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
  gap: 18px;
}
.lib-card {
  cursor: pointer;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: .2s ease;
}
.lib-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #c5d0de; }
.lib-card .poster { border-radius: 0; box-shadow: none; }
.lib-card-body { padding: 12px 14px 14px; }
.lib-card-name { font-weight: 700; font-size: 15px; line-height: 1.35; }
.lib-card-sub { margin-top: 6px; color: var(--muted); font-size: 12px; }
.lib-card-flags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.lib-card-flags.is-spaced { margin-top: 14px; }
.drama-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.drama-player { padding: 14px 16px 16px; }
.drama-page .player-stage {
  width: 100%;
  height: min(52vh, 560px);
  aspect-ratio: unset;
}
.drama-info-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 24px 28px;
  align-items: start;
}
.drama-info-main { min-width: 0; }
.drama-info-side {
  min-width: 0;
  padding: 16px 18px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f7f9fc;
}
.drama-edit {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 12px;
}
.drama-edit-top {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.drama-edit-top .cover-pick { width: 96px; height: 134px; }
.drama-edit-main { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.drama-edit-names {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}
.drama-edit-nums {
  display: grid;
  grid-template-columns: 96px 148px 96px;
  gap: 10px;
}
.drama-edit-nums .field { min-width: 0; }
.drama-edit-nums label { line-height: 1.3; }
.drama-edit-files {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.drama-edit textarea { min-height: 88px; }
.drama-kv {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.drama-kv em { display: block; font-style: normal; color: var(--muted); font-size: 12px; }
.drama-kv b { display: block; margin-top: 4px; font-size: 14px; }

/* Upload */
.session-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 22px;
  margin-bottom: 16px;
}
.session-meta { flex: none; min-width: 108px; }
.session-kicker {
  display: block;
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--muted);
  margin-bottom: 4px;
}
.session-bar b { font-size: 20px; letter-spacing: -.03em; }
.session-remain { flex: none; color: var(--muted); font-size: 13px; min-width: 72px; text-align: right; }
.meter { flex: 1; height: 8px; background: #e6ebf1; border-radius: 999px; overflow: hidden; }
.meter > i { display: block; height: 100%; border-radius: inherit; }
.meter.ok > i { background: linear-gradient(90deg, #1a7a45, #3cb371); }
.meter.warn > i { background: linear-gradient(90deg, #c47b14, #e3b15a); }
.meter.danger > i { background: linear-gradient(90deg, #c43c3c, #e06b6b); }
.upload-card { padding: 28px 28px 24px; }
.upload-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.upload-cover .cover-pick { width: 100%; height: auto; aspect-ratio: 2 / 3; }
.upload-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 16px;
}
.upload-fields .field.full { grid-column: 1 / -1; }
.upload-fields textarea { min-height: 118px; }
.upload-video { margin-top: 28px; }
.upload-section-title {
  margin-top: 26px;
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--ink-2);
}
.upload-docs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 12px;
  padding-top: 0;
  border-top: 0;
}
.attach-list {
  display: grid;
  gap: 8px;
}
.attach-empty {
  padding: 12px 14px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  font-size: 13px;
}
.attach-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.attach-main {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 2px;
}
.attach-main b { font-size: 12px; color: var(--muted); font-weight: 650; }
.attach-main em {
  font-style: normal;
  font-size: 13px;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.attach-add { width: 100%; }
.upload-actions { display: flex; gap: 10px; margin-top: 24px; }
.sr-file {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
}
.up-svg { width: 22px; height: 22px; display: block; color: var(--ink-3); }
.pick-ico {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex: none;
  background: #fff;
  box-shadow: 0 4px 12px rgba(15, 39, 68, .08);
}
.dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 128px;
  border: 1.5px dashed #b4becb;
  border-radius: 16px;
  padding: 22px 20px;
  margin-top: 4px;
  text-align: center;
  background: linear-gradient(180deg, #f8fafc, #eef2f6);
  color: #4b5563;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.dropzone:hover { border-color: #6d7f96; background: #f4f7fb; box-shadow: inset 0 0 0 1px rgba(15,39,68,.04); }
.dropzone.has-file { border-style: solid; border-color: #1b3a5f; color: var(--ink); background: #eef4fb; }
.dropzone b { font-size: 14px; font-weight: 650; }
.dropzone em { font-style: normal; font-size: 12px; color: var(--muted); }
.cover-pick {
  position: relative;
  display: block;
  width: 132px;
  height: 176px;
  margin-top: 4px;
  border-radius: 14px;
  overflow: hidden;
  border: 1.5px dashed #b4becb;
  background: linear-gradient(180deg, #f8fafc, #eef2f6);
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.cover-pick:hover { border-color: #6d7f96; box-shadow: 0 10px 24px rgba(15, 39, 68, .08); }
.cover-pick img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover-pick > span:not(.cover-empty) {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 8px 12px;
  text-align: center;
  font-size: 12px;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.58));
}
.cover-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #4b5563;
}
.cover-empty b { font-size: 13px; font-weight: 650; }
.cover-empty .up-svg { width: 28px; height: 28px; }
.cover-pick.has-file { border-style: solid; border-color: #1b3a5f; }
.file-pick {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  margin-top: 4px;
  padding: 12px 14px;
  border: 1.5px dashed #b4becb;
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fafc, #eef2f6);
  color: #4b5563;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease;
}
.file-pick:hover { border-color: #6d7f96; background: #f4f7fb; }
.file-pick.has-file { border-style: solid; border-color: #1b3a5f; color: var(--ink); background: #eef4fb; }
.pick-thumb {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  flex: none;
  background: #e8edf3;
}
.pick-thumb.is-empty { display: none; }
.file-pick.is-image .pick-thumb.is-empty { display: block; }
.file-btn { position: relative; overflow: hidden; }
.doc-thumb { width: 72px; height: 72px; border-radius: 8px; object-fit: cover; display: block; margin-top: 6px; }
.plat-logo.has-img, .shot-logo.has-img { overflow: hidden; padding: 0; background: #eef1f5; }
.plat-logo.has-img img, .shot-logo.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.poster.has-cover .poster-art {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.poster.has-cover .poster-art::before,
.poster.has-cover .poster-art::after { display: none; }
.theme-custom .poster-art { background: #1a1d21; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px; align-items: start; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field label { font-size: 13px; color: #4b5563; font-weight: 600; }
.field.full { grid-column: 1 / -1; }
.help { color: var(--rejected); font-size: 12px; margin-top: 8px; }

/* Apply */
.apply-card { padding: 28px; }
.apply-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.apply-head h2 { margin: 4px 0 6px; font-size: 22px; }
.apply-kicker { font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.apply-head.is-empty { min-height: 64px; }
.apply-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px 20px;
  margin-bottom: 8px;
}
.apply-grid.is-locked input[readonly] { cursor: default; }
.apply-section { margin-top: 26px; }
.win-row {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  margin-top: 12px;
  background: #fff;
}
.win-row-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.win-row-grid {
  display: grid;
  grid-template-columns: 140px 120px minmax(160px, 1fr);
  gap: 12px;
}
.win-row .chip-list { margin-top: 2px; }
.win-row-grid .field.full { grid-column: 1 / -1; }
.win-row-custom {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}
.apply-label {
  font-size: 13px;
  font-weight: 600;
  color: #4b5563;
  margin-bottom: 12px;
}
.apply-terms {
  display: grid;
  grid-template-columns: 1fr 1fr minmax(160px, .8fr);
  gap: 12px;
  align-items: end;
}
.region-pick {
  width: 100%;
  min-height: 52px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  text-align: left;
}
.region-pick:hover { border-color: #8aa0bf; }
.region-placeholder { color: var(--muted); }
.region-tag {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef2f6;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}
.region-groups {
  max-height: 58vh;
  overflow: auto;
  margin-top: 16px;
  display: grid;
  gap: 16px;
}
.region-area {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 8px;
}
.region-area em {
  margin-left: 6px;
  font-style: normal;
  font-weight: 600;
  color: var(--subtle);
}
.region-area-ops { display: flex; gap: 6px; flex: 0 0 auto; }
.region-mini {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  min-height: 26px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 600;
}
.region-mini:hover { border-color: #8aa0bf; }
.region-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.region-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-weight: 600;
}
.region-chip em {
  font-style: normal;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
}
.region-chip.on { background: #102844; color: #fff; border-color: #102844; }
.region-chip.on em { color: rgba(255,255,255,.7); }
.region-chip.is-disabled {
  opacity: .45;
  cursor: not-allowed;
  pointer-events: none;
  background: #f3f5f8;
  color: var(--muted);
}
.term-card {
  text-align: left;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 14px 16px;
  min-height: 76px;
}
.term-card b { display: block; font-size: 15px; }
.term-card span { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; }
.term-card.on { border-color: var(--ink); background: #102844; color: #fff; }
.term-card.on span { color: rgba(255,255,255,.7); }
.seg {
  display: flex;
  padding: 4px;
  border-radius: 12px;
  background: #eef2f6;
  gap: 4px;
}
.seg button {
  flex: 1;
  border: 0;
  background: transparent;
  border-radius: 9px;
  min-height: 36px;
  color: #4b5563;
  font-weight: 600;
}
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 4px 12px rgba(15,39,68,.08); }
.round-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.round-card {
  text-align: left;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 14px 16px;
  min-height: 92px;
  cursor: pointer;
}
.round-card b {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
}
.round-card b em {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  background: #f4ead0;
  color: #8a6918;
  display: inline-flex;
  align-items: center;
}
.round-card span { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.round-card.on { border-color: var(--ink); background: #102844; color: #fff; }
.round-card.on span { color: rgba(255,255,255,.7); }
.round-card.on b em { background: rgba(255,255,255,.16); color: #fff; }
.round-card.is-disabled { opacity: .45; cursor: not-allowed; }
.round-input {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}
.round-input em { font-style: normal; font-size: 13px; }
.round-input input {
  width: 72px;
  height: 36px;
  min-height: 36px;
  line-height: 36px;
  text-align: center;
  font-weight: 700;
}
.round-card.on .round-input input {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.24);
  color: #fff;
}
.round-hint { margin: 10px 0 0; font-size: 12px; color: var(--muted); line-height: 1.5; }
.apply-actions { display: flex; gap: 10px; margin-top: 28px; }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
}
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip.is-static { cursor: default; }
.review-source {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f7f9fc;
}
.review-source b { display: block; margin-bottom: 4px; }
.review-source span { display: block; color: var(--muted); font-size: 12px; line-height: 1.5; }
.review-quote {
  margin: 10px 0 12px;
  padding: 10px 12px;
  background: #fff;
  border-left: 3px solid var(--ink);
  border-radius: 0 8px 8px 0;
  color: #2c3544;
  font-size: 13px;
  line-height: 1.7;
}
.clause-mark {
  background: #fff3bf;
  color: inherit;
  padding: 0 2px;
  border-radius: 2px;
}
.term-file {
  border: 0;
  padding: 0;
  background: none;
  color: var(--pending);
  font-weight: 600;
  cursor: pointer;
}
.term-file:hover { text-decoration: underline; }
.doc-sheet {
  padding: 8px 4px 4px;
}
.doc-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.doc-file {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}
.doc-file .up-svg { width: 18px; height: 18px; }
.doc-preview-img {
  display: block;
  width: 100%;
  max-height: calc(100vh - 240px);
  object-fit: contain;
  background: #111;
  border-radius: 10px;
}
.doc-preview-frame {
  width: 100%;
  height: calc(100vh - 240px);
  min-height: 480px;
  border: 0;
  border-radius: 10px;
  background: #f3f4f6;
}
.rules-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.rules-head h3 { margin: 0; font-size: 15px; }
.rules-head p { margin: 0; color: var(--muted); font-size: 12px; }
.rules-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.rules-grid.is-2 { grid-template-columns: 1fr 1fr; }
.sync-guard {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fafbfd;
}
.sync-guard.is-blocked {
  border-color: #f0c9c9;
  background: #fff6f6;
}
.sync-guard.is-wait {
  border-color: #d5e2f5;
  background: #f5f8fd;
}
.sync-guard.is-pass {
  border-color: #c6e6d2;
  background: #f3fbf6;
}
.sync-guard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.sync-guard-head b { font-size: 13px; }
.sync-path {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 12px;
}
.sync-path em {
  font-style: normal;
  color: var(--muted);
}
.sync-path code {
  font-family: inherit;
  font-size: 12px;
  color: var(--text);
  background: transparent;
}
.sync-checks {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sync-checks li {
  position: relative;
  padding-left: 14px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}
.sync-checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line);
}
.sync-checks li.is-ok { color: #1f6b3a; }
.sync-checks li.is-ok::before { background: var(--approved); }
.sync-checks li.is-todo { color: #3b5b84; }
.sync-checks li.is-todo::before { background: var(--pending); }
.sync-checks li.is-bad { color: #9f2d2d; }
.sync-checks li.is-bad::before { background: var(--rejected); }
.sync-checks li.is-warn { color: #8a5a12; }
.sync-checks li.is-warn::before { background: var(--warn); }
.share-rules .rule-card {
  display: flex;
  flex-direction: column;
  padding: 14px 16px 14px;
}
.share-rules .rule-card-head { margin-bottom: 10px; }
.share-rules .rule-scenes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.share-rules .rule-scene:first-child {
  grid-column: 1 / -1;
  background: #f0f4fa;
  border-color: #d7e0ec;
}
.rule-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px 10px;
  box-shadow: 0 8px 20px rgba(15, 39, 68, 0.04);
  min-width: 0;
}
.rule-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
}
.rule-card-head .rule-meta { margin-left: auto; }
.rule-block { margin-top: 8px; }
.rule-fields {
  display: grid;
  gap: 8px 10px;
  align-items: end;
}
.rule-fields.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rule-fields label {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  min-width: 0;
}
.rule-fields select,
.rule-fields input {
  width: 100%;
  min-width: 0;
  height: 36px;
  min-height: 36px;
  max-height: 36px;
  padding: 0 10px;
  line-height: 34px;
  border-radius: 8px;
  box-sizing: border-box;
}
.rule-fields select {
  padding-right: 28px;
  background-position: right 8px center;
}
.rule-row-2 {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.rule-step {
  display: block;
  font-size: 12px;
  font-weight: 650;
  color: var(--ink-2);
  margin-bottom: 4px;
}
.rule-note {
  margin-top: 8px;
  height: 32px;
  min-height: 32px;
}
.rule-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.rule-meta label {
  display: grid;
  gap: 4px;
  font-size: 12px;
  color: var(--muted);
}
.rule-meta select,
.rule-meta input {
  min-width: 96px;
  width: 112px;
  height: 34px;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 8px;
}
.rule-scenes {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1.15fr;
  gap: 8px;
}
.rule-scene {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f7f9fc;
}
.rule-scene em {
  display: block;
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 4px;
}
.rule-scene .field { margin-top: 4px; gap: 4px; }
.rule-scene .field label { font-size: 12px; font-weight: 500; }
.rule-scene input { height: 34px; min-height: 34px; }
.rule-scene.is-on {
  background: #102844;
  border-color: #102844;
  color: #fff;
}
.rule-scene.is-on em { color: rgba(255,255,255,.72); }
.rule-stat {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  font-size: 13px;
}
.rule-stat label { color: var(--muted); }
.rule-scene.is-on .rule-stat label { color: rgba(255,255,255,.7); }
.rule-stat b { font-size: 15px; }
.subtle a[data-action] {
  color: var(--pending);
  cursor: pointer;
}
.rule-card-foot {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  margin-top: 14px;
}
.rule-card-foot .btn { flex: none; white-space: nowrap; }
.chip.is-disabled, .platform.is-disabled, .seg button.is-disabled {
  opacity: .4;
  cursor: not-allowed;
  pointer-events: none;
}
.platform-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.platform {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.platform:hover { border-color: #8aa0bf; box-shadow: var(--shadow); }
.platform.on { border-color: var(--ink); background: #102844; color: #fff; }
.platform em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--muted); }
.platform.on em { color: rgba(255,255,255,.7); }
.other-plat { margin-top: 16px; }
.other-plat > label { display: block; font-size: 13px; font-weight: 600; color: #4b5563; margin-bottom: 8px; }
.other-plat-row { display: flex; gap: 8px; }
.other-plat-row input { flex: 1; min-width: 0; }
.other-plat-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.other-plat-list .region-tag { gap: 6px; }
.other-plat-list .region-tag button {
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 16px;
  line-height: 1;
  padding: 0 0 0 2px;
}
.plat-logo {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

/* Review */
.split { display: grid; grid-template-columns: 1.35fr .9fr; gap: 16px; }
.file-row {
  appearance: none;
  width: 100%;
  margin-top: 8px;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.file-row-main { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.file-row-main em { font-style: normal; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-row-go { color: var(--pending); font-size: 12px; flex-shrink: 0; }
.review-sep { height: 1px; background: var(--line); margin: 22px 0 18px; }
.review-deals { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.review-deal {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px 14px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f7f9fc;
}
.review-deal.is-custom { display: block; background: #fff; }
.review-deal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.review-deal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.file-mask {
  position: fixed;
  inset: 0;
  background: rgba(8, 10, 14, .62);
  z-index: 97;
  display: grid;
  place-items: center;
  padding: 28px;
}
.file-frame {
  width: min(760px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  padding: 20px 22px 22px;
  box-shadow: var(--shadow-lg);
}
.file-preview-img {
  display: block;
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  background: #111;
  border-radius: 10px;
}
.file-preview-frame {
  width: 100%;
  height: 70vh;
  border: 0;
  border-radius: 10px;
  background: #f3f4f6;
}
.paper-doc {
  position: relative;
  min-height: 380px;
  padding: 36px 40px;
  background: #faf7f0;
  border: 1px solid #e6dcc8;
  border-radius: 8px;
  line-height: 1.75;
}
.paper-stamp {
  position: absolute;
  right: 28px;
  top: 28px;
  border: 2px solid #c43c3c;
  color: #c43c3c;
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 700;
  opacity: .7;
}
.rev-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 16px;
}
.rev-kpis.is-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rev-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 18px;
  margin: 0 0 18px;
}
.review-facts {
  margin: 14px 0 4px;
  padding: 12px 14px;
  background: #f7f9fc;
  border-radius: 12px;
}
.rev-facts dt { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.rev-facts dd { margin: 0; font-weight: 600; word-break: break-all; }
.rev-link {
  border: 0;
  padding: 0;
  background: none;
  color: var(--ink-2);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.rev-recent { margin-top: 18px; }
.rev-recent h4 { margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.shot-card-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.shot-card-head h4 { margin: 0 0 4px; }
.lightbox-panel { width: min(860px, 100%); }
.lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  color: #fff;
}
.block { margin-bottom: 18px; }
.block h4 { margin: 0 0 10px; font-size: 13px; color: var(--muted); letter-spacing: .04em; }
.alert {
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 14px;
}
.alert-danger { background: #fdecec; color: #8a2222; }
.alert-ok { background: #e7f7ee; color: #146338; }
.shot {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #14161c;
  min-height: 280px;
  color: #d1d5db;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}
.shot-photo {
  display: block;
  width: 100%;
  min-height: 280px;
  max-height: 520px;
  object-fit: cover;
  background: #14161c;
}
.shot-chrome {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: #0d0f14;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.shot-dots {
  width: 34px;
  height: 8px;
  border-radius: 99px;
  background: radial-gradient(circle at 4px 50%, #ff5f57 3px, transparent 4px),
    radial-gradient(circle at 15px 50%, #febc2e 3px, transparent 4px),
    radial-gradient(circle at 26px 50%, #28c840 3px, transparent 4px);
}
.shot-url {
  flex: 1;
  height: 22px;
  border-radius: 6px;
  background: #1c212b;
  color: #8b93a7;
  font-size: 11px;
  display: flex;
  align-items: center;
  padding: 0 10px;
}
.shot-dash { padding: 12px 14px 14px; }
.shot-head { display: flex; align-items: center; gap: 10px; }
.shot-logo {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}
.shot-head b { display: block; color: #fff; font-size: 13px; }
.shot-sub { color: #8b93a7; font-size: 11px; margin-top: 2px; }
.shot-pill {
  margin-left: auto;
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 99px;
  background: rgba(255,255,255,.08);
  color: #c9d0dc;
}
.shot-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 12px 0 10px;
}
.shot-kpis div {
  background: #1a1f2a;
  border-radius: 8px;
  padding: 8px 10px;
}
.shot-kpis em { display: block; font-style: normal; color: #8b93a7; font-size: 10px; }
.shot-kpis b { display: block; color: #fff; margin-top: 4px; font-size: 15px; }
.shot-svg { width: 100%; height: 88px; display: block; background: #121722; border-radius: 8px; }
.shot-table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 11px; }
.shot-table th, .shot-table td { padding: 4px 6px; text-align: left; color: #b7becc; }
.shot-table th { color: #7d8698; font-weight: 600; }
.watermark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  transform: rotate(-18deg);
  color: rgba(255,255,255,.22);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .12em;
}

/* Drawer / toast / lightbox */
.drawer-mask {
  position: fixed;
  inset: 0;
  background: rgba(8,10,14,.55);
  z-index: 50;
  display: flex;
  justify-content: flex-end;
}
.drawer {
  width: 420px;
  background: #111318;
  color: #efece6;
  height: 100%;
  padding: 28px;
  box-shadow: var(--shadow-lg);
  overflow: auto;
}
.drawer-kicker {
  margin: 18px 0 6px;
  color: var(--gold-2);
  letter-spacing: .18em;
  font-size: 11px;
}
.drawer h2 { margin: 0 0 12px; }
.drawer-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.drawer-chips span {
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  color: #d8d3ca;
}
.drawer p { line-height: 1.8; color: #d8d3ca; }
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: 999px;
  z-index: 90;
  box-shadow: var(--shadow-lg);
}
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.72);
  z-index: 95;
  display: grid;
  place-items: center;
  padding: 40px;
}
.lightbox .shot { width: min(860px, 100%); min-height: 420px; }

.dt-wrap { position: relative; }
.dt-field {
  position: relative;
  width: 100%;
  height: 40px;
  min-height: 40px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 0 36px 0 12px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: var(--text);
  text-align: left;
  box-sizing: border-box;
}
.dt-field:hover { border-color: #c9d0dc; }
.dt-empty { display: block; min-height: 1em; color: var(--text); }
.dt-ico {
  position: absolute;
  right: 12px;
  top: 50%;
  width: 14px;
  height: 14px;
  transform: translateY(-50%);
  border: 1.5px solid #8aa0bf;
  border-radius: 3px;
  pointer-events: none;
}
.dt-ico::after {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  top: 3px;
  height: 1.5px;
  background: #8aa0bf;
}
.dt-pop {
  position: absolute;
  z-index: 40;
  top: calc(100% + 6px);
  left: 0;
  width: 292px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 12px;
}
.dt-wrap.is-up .dt-pop {
  top: auto;
  bottom: calc(100% + 6px);
}
.dt-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.dt-arr {
  width: 28px;
  height: 28px;
  border: 0;
  background: #f3f5f8;
  border-radius: 8px;
  color: var(--ink);
}
.dt-week, .dt-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.dt-week { color: var(--subtle); font-size: 11px; margin-bottom: 4px; }
.dt-day {
  height: 30px;
  border: 0;
  background: transparent;
  border-radius: 8px;
  color: var(--text);
}
.dt-day:hover { background: #eef2f7; }
.dt-day.on { background: var(--ink); color: #fff; }
.dt-day.is-disabled { opacity: .28; cursor: not-allowed; pointer-events: none; }
.dt-pop-time { width: 308px; }
.dt-time {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 10px 0 8px;
}
.dt-time label { font-size: 12px; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }
.dt-time select { width: 100%; }
.dt-actions { display: flex; justify-content: flex-end; gap: 8px; }

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c43c3c;
  display: inline-block;
  margin-right: 6px;
}

.player.is-eps-aside {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 176px;
  gap: 14px;
  align-items: stretch;
}
.player-main { min-width: 0; }
.player-eps.is-aside {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-content: start;
  gap: 6px;
  max-height: 100%;
  overflow: auto;
  padding: 4px 2px 4px 0;
  scrollbar-width: thin;
}
.player-eps-label {
  grid-column: 1 / -1;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: .06em;
  margin-bottom: 2px;
}
.player-eps.is-aside .chip {
  width: 100%;
  min-height: 30px;
  padding: 4px 6px;
  justify-content: center;
  border-radius: 8px;
  font-size: 12px;
}
@media (max-width: 900px) {
  .player.is-eps-aside {
    grid-template-columns: 1fr;
  }
  .player-eps.is-aside {
    max-height: none;
  }
}
.player-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #0b1220;
  cursor: pointer;
}
.player-scan {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.45));
  pointer-events: none;
}
.player.is-playing .player-scan {
  background:
    linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent),
    linear-gradient(180deg, transparent 40%, rgba(0,0,0,.45));
  animation: player-scan 2.6s linear infinite;
}
@keyframes player-scan {
  from { background-position: -40% 0, 0 0; }
  to { background-position: 140% 0, 0 0; }
}
.player-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 2;
}
.play-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,.94);
  color: #102844;
  display: grid;
  place-items: center;
  font-size: 22px;
  padding-left: 4px;
  box-shadow: var(--shadow-lg);
}
.player-caption {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 2;
  color: #fff;
  font-weight: 700;
  text-shadow: 0 6px 18px rgba(0,0,0,.45);
}
.player-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}
.player-prog {
  flex: 1;
  height: 6px;
  background: #eceff4;
  border-radius: 999px;
  overflow: hidden;
}
.player-prog > i { display: block; height: 100%; background: var(--ink); }
.player-mask {
  position: fixed;
  inset: 0;
  background: rgba(8,10,14,.82);
  z-index: 96;
  display: grid;
  place-items: center;
  padding: 28px;
}
.player-frame { width: min(1100px, 100%); }
.player-frame .player-bar, .player-frame .chip { background: #fff; }

.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(8,10,14,.55);
  z-index: 92;
  display: grid;
  place-items: center;
  padding: 24px;
}
.modal-card {
  width: min(520px, 100%);
  background: #fff;
  border-radius: 16px;
  padding: 22px 24px 20px;
  box-shadow: var(--shadow-lg);
}
.modal-card:has(.region-groups) { width: min(720px, 100%); }
.modal-card.window-modal { width: min(880px, 100%); }
.modal-card.invite-modal { width: min(640px, 100%); overflow: visible; }
.modal-card.platform-modal {
  width: min(760px, 100%);
  max-height: 88vh;
  overflow: auto;
  padding: 0;
}
.plat-modal-head {
  padding: 22px 24px 16px;
  border-bottom: 1px solid var(--line);
}
.plat-modal-head h3 { margin: 0; }
.plat-modal-head .subtle { margin: 8px 0 0; line-height: 1.55; }
.plat-modal-body { padding: 18px 24px 10px; }
.plat-modal-foot {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 24px 20px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.plat-ident {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 20px;
  align-items: start;
}
.plat-logo-box { display: flex; flex-direction: column; gap: 10px; }
.plat-logo-stage {
  width: 148px;
  height: 148px;
  border-radius: 22px;
  border: 1.5px dashed #b4becb;
  background: linear-gradient(180deg, #f8fafc, #eef2f6);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.plat-logo-stage img { width: 100%; height: 100%; object-fit: cover; display: block; }
.plat-logo-mark {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 28px;
  letter-spacing: 0.04em;
}
.plat-logo-box .file-pick { min-height: 44px; margin-top: 0; padding: 8px 10px; }
.plat-swatches { display: flex; flex-wrap: wrap; gap: 6px; }
.plat-swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #d5dbe3;
  padding: 0;
  cursor: pointer;
}
.plat-swatch.on { box-shadow: 0 0 0 2px var(--ink); }
.plat-auth-hint {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  font-weight: 400;
}
.plat-hint {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #eef4fb;
  color: #2c3544;
  font-size: 13px;
  line-height: 1.55;
}
.plat-table td { vertical-align: middle; }
.platform-modal textarea { min-height: 72px; }
@media (max-width: 720px) {
  .plat-ident { grid-template-columns: 1fr; }
  .plat-logo-stage { width: 100%; height: 120px; }
}
.modal-card.contract-issue { width: min(720px, 100%); max-height: 86vh; overflow: auto; }
.issue-block {
  margin-top: 18px;
  padding: 14px 16px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f7f9fc;
}
.issue-kicker {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 12px;
}
.issue-note {
  margin-top: 14px;
  padding: 10px 12px;
  border-left: 3px solid var(--ink);
  background: #fff8e8;
  border-radius: 0 8px 8px 0;
  font-size: 13px;
  line-height: 1.6;
  color: #2c3544;
}
.modal-card.ticket-modal { width: min(720px, 100%); max-height: 86vh; overflow: auto; }
.invite-code-row { display: flex; gap: 8px; align-items: stretch; }
.invite-code-row input { flex: 1; min-width: 0; }
.invite-code-row .btn { flex: none; white-space: nowrap; height: 40px; min-height: 40px; }
.invite-ops { white-space: nowrap; }
.invite-ops .btn { margin-left: 4px; }
.invite-modal textarea { min-height: 72px; }
.modal-card h3 { margin: 0; }
.modal-card .row-actions { flex-wrap: wrap; }
.window-log { margin-top: 16px; max-height: 62vh; overflow: auto; }
.window-log .table {
  margin: 0;
  width: 100%;
  table-layout: fixed;
}
.window-log .col-plat { width: 16%; }
.window-log .col-area { width: 34%; }
.window-log .col-end { width: 16%; }
.window-log .col-share { width: 18%; }
.window-log .col-ex { width: 16%; }
.window-log thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #fff;
}
.window-log .table th,
.window-log .table td {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.window-log .table td:nth-child(2) {
  white-space: normal;
  overflow: visible;
  line-height: 1.5;
}
.window-log .window-log-head td {
  padding: 12px 14px 8px;
  border-bottom: 0;
  background: transparent;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: visible;
}
.window-log .window-log-head em {
  margin-left: 8px;
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.window-log .window-log-head + tr td { border-top: 1px solid var(--line); }

.auth-page { min-height: 100vh; }
.auth-wrap { display: grid; place-items: center; padding: 80px 20px 120px; }
.auth-card { width: min(520px, 100%); background: #fff; color: var(--text); }
.auth-card a { color: var(--pending); cursor: pointer; }
.ops-roles-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.ops-role-list { overflow: hidden; }
.ops-role-items { display: flex; flex-direction: column; padding: 8px; gap: 4px; }
.ops-role-item {
  appearance: none;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  border-radius: 10px;
  padding: 10px 12px;
  color: inherit;
  cursor: pointer;
}
.ops-role-item:hover { background: #f3f6fa; }
.ops-role-item.on { background: #eef3f8; }
.ops-role-item b { display: block; font-size: 14px; }
.ops-role-item em {
  display: block;
  margin-top: 3px;
  font-style: normal;
  color: var(--muted);
  font-size: 12px;
}
@media (max-width: 900px) {
  .ops-roles-layout { grid-template-columns: 1fr; }
}

.rbac-shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-height: 620px;
}
.rbac-side {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 620px;
}
.rbac-side-top {
  padding: 14px 14px 10px;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 10px;
}
.rbac-side-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.rbac-side-title b { font-size: 14px; }
.rbac-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.rbac-scope-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 3px;
  border-radius: 10px;
  background: #f3f6fa;
}
.rbac-scope-tab {
  appearance: none;
  border: 0;
  background: transparent;
  border-radius: 8px;
  min-height: 30px;
  font: inherit;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
}
.rbac-scope-tab.on {
  background: #fff;
  color: var(--text);
  box-shadow: 0 1px 2px rgba(20, 40, 70, .08);
  font-weight: 600;
}
.rbac-side-search {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  background: #fff;
  font: inherit;
}
.rbac-role-scroll {
  flex: 1;
  overflow: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rbac-role-item {
  appearance: none;
  width: 100%;
  border: 0;
  background: transparent;
  border-radius: 12px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 16px;
  gap: 10px;
  align-items: center;
  text-align: left;
  color: inherit;
  cursor: pointer;
}
.rbac-role-item:hover { background: #f5f8fb; }
.rbac-role-item.on {
  background: linear-gradient(180deg, #f4f8fc, #eef4fa);
  box-shadow: inset 0 0 0 1px #d7e3ef;
}
.rbac-role-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.rbac-role-copy b {
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rbac-role-copy em {
  font-style: normal;
  color: var(--muted);
  font-size: 12px;
}
.rbac-role-check {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3b82a8;
}
.rbac-main {
  padding: 0;
  overflow: hidden;
}
.rbac-hero {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(70, 120, 180, .08), transparent 55%),
    linear-gradient(180deg, #fbfcfe, #fff);
}
.rbac-hero-main {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  min-width: 0;
}
.rbac-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}
.rbac-tag {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #eef3f8;
  color: var(--muted);
  font-size: 11px;
}
.rbac-tag.is-builtin { background: #eaf2ff; color: #3a5f8c; }
.rbac-tag.is-custom { background: #f4f1ea; color: #6d5b3e; }
.rbac-tag.is-on { background: #e7f7ee; color: #1f7a45; }
.rbac-tag.is-off { background: #f4ecec; color: #9a4a4a; }
.rbac-role-item.is-off {
  opacity: .62;
}
.rbac-role-item.is-off b {
  color: #6b7280;
  text-decoration: line-through;
  text-decoration-color: #c5cad3;
}
.dict-status-off {
  color: #9a4a4a;
  font-weight: 600;
}
.dict-row-off td {
  color: #8b919a;
  background: #fafbfc;
}
.dict-row-off td b {
  color: #8b919a;
  font-weight: 500;
}
.dict-row-off .rbac-code {
  color: #9aa1ab;
}
.rbac-hero h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
}
.rbac-hero p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  max-width: 42em;
}
.rbac-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-bottom: 1px solid var(--line);
}
.rbac-metrics > div {
  padding: 14px 22px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 6px;
}
.rbac-metrics > div:last-child { border-right: 0; }
.rbac-metrics em {
  width: 100%;
  font-style: normal;
  color: var(--muted);
  font-size: 12px;
}
.rbac-metrics b {
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.02em;
}
.rbac-metrics span {
  color: var(--muted);
  font-size: 12px;
}
.rbac-section {
  padding: 18px 22px 20px;
  border-bottom: 1px solid var(--line);
}
.rbac-section:last-child { border-bottom: 0; }
.rbac-section-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.rbac-section-head h3 {
  margin: 0;
  font-size: 15px;
}
.rbac-section-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.rbac-perm-groups {
  display: grid;
  gap: 12px;
}
.rbac-perm-group {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.rbac-perm-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
}
.rbac-perm-head b { display: block; font-size: 13px; }
.rbac-perm-head em {
  display: block;
  margin-top: 2px;
  font-style: normal;
  color: var(--muted);
  font-size: 12px;
}
.rbac-perm-head > span {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.rbac-perm-list { display: grid; }
.rbac-perm-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 11px 14px;
  border-top: 1px solid #eef2f6;
}
.rbac-perm-row:first-child { border-top: 0; }
.rbac-perm-level {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  padding: 0 6px;
  border-radius: 4px;
  background: #eef3f8;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}
.rbac-perm-name { font-size: 13px; }
.rbac-perm-state {
  font-size: 12px;
  color: var(--muted);
}
.rbac-perm-row.on .rbac-perm-state { color: #2f5f8f; }
.rbac-perm-list.is-check {
  display: grid;
  gap: 0;
}
.rbac-perm-check {
  display: grid;
  grid-template-columns: 18px 40px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 11px 14px;
  border-top: 1px solid #eef2f6;
  cursor: pointer;
  margin: 0;
}
.rbac-perm-check:first-child { border-top: 0; }
.rbac-perm-check.on { background: #f7fbff; }
.rbac-perm-check input { margin: 0; }
.rbac-user-list {
  display: grid;
  gap: 8px;
}
.rbac-user-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfcfe;
}
.rbac-user-row b { display: block; font-size: 13px; }
.rbac-user-row em {
  display: block;
  margin-top: 2px;
  font-style: normal;
  color: var(--muted);
  font-size: 12px;
}
.rbac-empty {
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  background: #fafbfd;
}
.sys-filter-card .dt-wrap { width: 100%; }
.sys-filter-card .dt-field {
  min-height: 36px;
  height: 36px;
  border-radius: 8px;
}
.menu-cfg-card { padding: 0; overflow: hidden; }
.menu-cfg-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--line);
}
.menu-cfg-head h3 { margin: 0; font-size: 16px; color: var(--text); }
.menu-cfg-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  max-width: 520px;
}
.menu-cfg-actions {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}
.menu-cfg-meta {
  padding: 10px 20px;
  color: var(--muted);
  font-size: 12px;
  border-bottom: 1px solid var(--line);
  background: #fafbfd;
}
.menu-cfg-card .menu-tree { padding: 0; }
.menu-cfg-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 16px 16px 20px;
}
.menu-cfg-scope-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  padding: 0 4px;
}
.menu-cfg-scope-head b {
  font-size: 14px;
  color: var(--text);
}
.menu-cfg-scope-head span {
  font-size: 12px;
  color: var(--muted);
}
.menu-form-tip {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}
.field-hint {
  display: block;
  margin-top: 6px;
  font-style: normal;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}
.field-hint.is-ok { color: #1f7a45; }
.field-hint.is-bad { color: #9f2d2d; }
.sys-modal-card.is-menu { width: min(720px, calc(100vw - 32px)); }
.icon-picker-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.icon-picker-search {
  flex: 1;
  min-width: 0;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font: inherit;
}
.icon-picker-cur {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  color: var(--muted);
  font-size: 12px;
}
.icon-picker-cur .nav-ico {
  width: 28px;
  height: 28px;
  color: var(--ink-2);
}
.icon-picker-cur .nav-svg { width: 18px; height: 18px; }
.icon-picker {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
  max-height: 220px;
  overflow: auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f7f9fc;
}
.icon-pick {
  appearance: none;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid transparent;
  border-radius: 10px;
  background: #fff;
  color: var(--ink-2);
  cursor: pointer;
  padding: 0;
}
.icon-pick .nav-svg,
.icon-pick > svg {
  width: 20px;
  height: 20px;
  display: block;
}
.icon-pick-none {
  font-size: 12px;
  color: var(--muted);
  font-weight: 650;
}
.icon-pick:hover { border-color: #b8c4d6; }
.icon-pick.on {
  border-color: var(--ink);
  background: #eef3fa;
  box-shadow: inset 0 0 0 1px var(--ink);
}

.menu-tree {
  display: grid;
  gap: 10px;
}
.menu-tree-group {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.menu-tree-group.is-off { opacity: .72; }
.menu-tree-l1 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  padding: 11px 14px;
  background: #f5f7fa;
  border-bottom: 1px solid var(--line);
}
.menu-tree-l1 strong {
  font-size: 14px;
  color: var(--text);
}
.menu-tree-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  color: var(--text);
  background: #eef2f6;
  padding: 2px 6px;
  border-radius: 4px;
}
.menu-tree-count {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
}
.menu-tree-ops {
  display: inline-flex;
  gap: 4px;
  flex: 0 0 auto;
}
.menu-tree-tags {
  display: inline-flex;
  gap: 6px;
  flex: 0 0 auto;
}
.menu-tree-l2 {
  list-style: none;
  margin: 0;
  padding: 4px 0;
}
.menu-tree-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 8px 14px 8px 36px;
  color: var(--text);
}
.menu-tree-item.is-off { opacity: .7; }
.menu-tree-item + .menu-tree-item {
  border-top: 1px solid #f0f3f7;
}
.menu-tree-main {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.menu-tree-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}
.menu-tree-meta {
  font-style: normal;
  font-size: 12px;
  color: var(--muted);
}
.menu-tree-empty {
  padding: 12px 14px 12px 36px;
  font-size: 12px;
  color: var(--muted);
}
.menu-tree-state {
  flex: 0 0 auto;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 22px;
  font-weight: 600;
  color: #8a94a3;
  background: #f1f3f6;
  border: 1px solid #e2e6ec;
}
.menu-tree-state.is-on {
  color: #1f7a45;
  background: #e8f7ee;
  border-color: #b7e0c5;
}
.menu-tree.is-edit .menu-tree-name { color: var(--text); }
.menu-tree-check .menu-tree-name { color: var(--text); }
.menu-tree-item.is-on .menu-tree-name { color: #1a5c34; font-weight: 600; }
.menu-tree-item:not(.is-on) .menu-tree-name { color: #8a94a3; }
.menu-tree-check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
  cursor: pointer;
  margin: 0;
  padding: 8px 0;
}
.menu-tree-check input { margin: 0; }
.menu-tree.is-edit .menu-tree-l1 .btn { margin-left: auto; }
@media (max-width: 1100px) {
  .rbac-shell { grid-template-columns: 1fr; }
  .rbac-side { min-height: 0; }
  .rbac-role-scroll { max-height: 280px; }
}
@media (max-width: 720px) {
  .rbac-hero { flex-direction: column; }
  .rbac-metrics { grid-template-columns: 1fr; }
  .rbac-metrics > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .rbac-metrics > div:last-child { border-bottom: 0; }
}

.sys-page { display: grid; gap: 12px; }
.sys-page-toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  min-height: 0;
}
.sys-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.sys-page-head h3 { margin: 0; font-size: 18px; }
.sys-page-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  max-width: 52em;
}
.sys-modal-card {
  width: min(640px, 100%);
  max-height: min(88vh, 860px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}
.sys-modal-card.is-role { width: min(720px, 100%); }
.sys-modal-head {
  flex: 0 0 auto;
  padding: 20px 24px 14px;
  border-bottom: 1px solid var(--line);
}
.sys-modal-head h3 { margin: 0; }
.sys-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 16px 24px;
  -webkit-overflow-scrolling: touch;
}
.sys-modal-foot {
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 24px 18px;
  border-top: 1px solid var(--line);
  background: #fff;
}
body.modal-open {
  overflow: hidden;
}
.rbac-code,
.rbac-tag.is-code,
.rbac-metric-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.02em;
}
.rbac-code {
  display: inline;
  color: #3a5f8c;
  background: transparent;
  padding: 0;
}
.rbac-tag.is-code {
  background: #eef3f8;
  color: #35506b;
}
.rbac-metric-code {
  font-size: 16px !important;
  font-weight: 700;
  word-break: break-all;
}
.sys-filter-card { padding: 14px 16px; }
.sys-filter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 14px;
  align-items: end;
}
.sys-filter-grid.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sys-filter-grid label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}
.sys-filter-grid select,
.sys-filter-grid input {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  background: #fff;
  color: var(--text);
  font: inherit;
}
.sys-filter-search { grid-column: span 1; }
.sys-filter-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}
.sys-table-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px 0;
  color: var(--muted);
  font-size: 12px;
}
.sys-role-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.sys-stat-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.sys-stat-row > div {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  background: #fafbfd;
}
.sys-stat-row em {
  display: block;
  font-style: normal;
  color: var(--muted);
  font-size: 12px;
}
.sys-stat-row b {
  display: block;
  margin-top: 4px;
  font-size: 20px;
}
.sys-builtin {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #eef3f8;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 500;
  vertical-align: middle;
}
.sys-menu-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sys-menu-grid.is-readonly { margin-top: 2px; }
.sys-menu-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #f7f9fc;
  color: var(--muted);
  font-size: 12px;
}
.sys-menu-pill.on {
  background: #eef6ff;
  border-color: #c9ddf5;
  color: #25527a;
}
.sys-menu-pick { margin-top: 14px; }
.sys-menu-pick-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.sys-menu-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
  cursor: pointer;
}
.sys-menu-check input { margin: 0; }
.sys-modal { width: min(640px, 100%); }
.sys-modal .term-list { margin: 0; display: grid; gap: 10px; }
.sys-modal .term-list > div {
  grid-template-columns: 88px minmax(0, 1fr);
  padding: 0;
  border-bottom: 0;
}
@media (max-width: 900px) {
  .sys-filter-grid,
  .sys-filter-grid.is-3 {
    grid-template-columns: 1fr 1fr;
  }
  .sys-filter-search { grid-column: span 2; }
  .sys-filter-actions { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .sys-page-head { flex-direction: column; }
  .sys-filter-grid,
  .sys-filter-grid.is-3 {
    grid-template-columns: 1fr;
  }
  .sys-filter-search { grid-column: auto; }
  .sys-role-detail-head { flex-direction: column; }
}
.join-card, .join-done { width: min(640px, 100%); margin: 0 auto; }
.join-gate {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-color: #e6d7b0;
  background: linear-gradient(180deg, #fffaf0, #fff);
}
.join-gate-copy { min-width: 0; }
.join-gate-copy b { display: block; margin-bottom: 4px; }
.join-gate-copy p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
@media (max-width: 800px) {
  .join-gate { flex-direction: column; }
}
.contract-split { grid-template-columns: 1.7fr .72fr; align-items: start; }
.contract-terms h3 { margin: 0 0 4px; }
.term-list { margin: 0; }
.term-list > div {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.term-list dt { margin: 0; color: var(--muted); font-size: 12px; }
.term-list dd { margin: 0; font-size: 14px; }
.term-list dd b { font-size: 16px; }
.contract-paper {
  padding: 28px 32px 36px;
  max-height: calc(100vh - 168px);
  overflow: auto;
}
.contract-paper h2 { margin: 6px 0 0; font-size: 22px; line-height: 1.35; }
.contract-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.contract-parties {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
  margin-bottom: 22px;
  padding: 14px 16px;
  background: #f7f8fb;
  border-radius: 12px;
}
.contract-parties em { display: block; font-style: normal; color: var(--muted); font-size: 12px; }
.contract-parties b { display: block; margin-top: 4px; font-size: 14px; }
.contract-article { margin: 0 0 18px; padding: 0; background: none; border: 0; }
.contract-article h5 { margin: 0 0 8px; font-size: 15px; font-weight: 650; color: var(--ink); }
.contract-article p { margin: 0; line-height: 1.85; color: #2c3544; }
.contract-paper .row-actions { flex-wrap: nowrap; }
.contract-signoff {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px dashed #d5dbe6;
}
.contract-signoff em { display: block; font-style: normal; color: var(--muted); font-size: 12px; }
.contract-signoff b { display: block; margin-top: 8px; }
.table tr.is-link { cursor: pointer; }
.table tr.is-on td { background: #eef3f8; }
.sign-embed {
  min-height: 160px;
  border: 1.5px dashed #c5cede;
  border-radius: 14px;
  background: #f7f8fb;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  margin-top: 12px;
}
.sign-mark {
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--muted);
  margin-bottom: 8px;
}
.sign-embed p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  max-width: 280px;
}
.matrix input.mini { width: 88px; height: 32px; min-height: 32px; line-height: 32px; padding: 0 8px; }
.check { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 14px; color: var(--text); }
.feishu-card {
  background: #fff;
  border: 1px solid #d5e3f7;
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: var(--shadow);
}
.feishu-kicker {
  color: #3370ff;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 8px;
}

.queue-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.queue-kind-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px 16px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.queue-kind-seg {
  display: inline-flex;
  gap: 4px;
  margin-bottom: -1px;
}
.queue-kind-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 4px 12px;
  margin: 0 14px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #7a8699;
  font-size: 15px;
  font-weight: 650;
  cursor: pointer;
  box-shadow: none;
}
.queue-kind-btn:hover {
  color: var(--ink);
  background: transparent;
}
.queue-kind-btn em {
  font-style: normal;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 5px;
  display: inline-grid;
  place-items: center;
  background: #eef1f6;
  color: #6b778c;
  font-size: 11px;
  font-weight: 700;
}
.queue-kind-btn.on {
  color: var(--ink);
  background: transparent;
  box-shadow: none;
}
.queue-kind-btn.on::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--ink);
  border-radius: 2px 2px 0 0;
}
.queue-kind-btn.on em {
  background: #e8f0ff;
  color: var(--pending);
}
.queue-kind-tip {
  color: var(--muted);
  font-size: 12px;
  padding-bottom: 12px;
}
.review-banner {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
}
.review-banner.is-intake {
  background: linear-gradient(135deg, #fff8e8, #fff);
  border-color: #f0d9a0;
}
.review-banner.is-release {
  background: linear-gradient(135deg, #eef4ff, #fff);
  border-color: #c5d4f0;
}
.review-banner .kicker { margin-bottom: 6px; }
.review-banner > span { color: var(--muted); font-size: 13px; max-width: 240px; text-align: right; line-height: 1.5; }
.review-checklist {
  margin: 0;
  padding-left: 18px;
  color: var(--ink-2);
  line-height: 1.8;
  font-size: 13px;
}
.review-check-list {
  display: grid;
  gap: 8px;
}
.review-check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}
.review-check-item input {
  margin-top: 3px;
  flex: none;
}
.review-check-item span { min-width: 0; }
.review-check-item b {
  display: block;
  font-size: 13px;
  color: var(--ink);
}
.review-check-item em {
  display: block;
  margin-top: 2px;
  font-style: normal;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}
.review-check-item.is-on {
  border-color: #b7e0c2;
  background: #f3faf5;
}
.review-check-item.is-required b::after {
  content: " · 必选";
  color: var(--danger, #c62828);
  font-weight: 650;
  font-size: 11px;
}
.review-rights-dl { margin-top: 4px; }
.review-materials-fold {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  background: #fafbfc;
}
.review-materials-fold summary {
  cursor: pointer;
  font-weight: 650;
  color: var(--ink-2);
}
.queue-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  flex: 1;
}
.queue-tab {
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
.queue-tab em {
  font-style: normal;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #eef1f6;
  color: var(--ink-2);
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.queue-tab:hover { border-color: #8aa0bf; }
.queue-tab.on {
  background: #102844;
  border-color: #102844;
  color: #fff;
}
.queue-tab.on em { background: rgba(255,255,255,.16); color: #fff; }
input.queue-search {
  width: 240px;
  flex: 0 0 240px;
  max-width: 240px;
  height: 40px;
}
.queue-board {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow-x: auto;
}
.queue-cols,
.queue-card {
  display: grid;
  grid-template-columns: minmax(220px, 1.6fr) 110px 72px minmax(120px, 1fr) minmax(120px, 1fr) 148px 108px;
  gap: 12px;
  align-items: center;
  min-width: 980px;
}
.queue-cols {
  padding: 10px 18px;
  background: #fafbfc;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.queue-group-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 12px 18px 8px;
  background: #f7f8fb;
  border-bottom: 1px solid #eef1f5;
}
.queue-group-head b { font-size: 13px; }
.queue-group-head span { color: var(--muted); font-size: 12px; }
.queue-card {
  padding: 14px 18px;
  border-bottom: 1px solid #eef1f5;
  background: #fff;
  cursor: pointer;
  text-align: left;
  width: 100%;
}
.queue-card:last-child { border-bottom: 0; }
.queue-card:hover { background: #fafcff; }
.queue-cols.is-intake,
.queue-card.is-intake {
  grid-template-columns: minmax(220px, 1.4fr) .9fr .9fr .7fr .7fr .9fr 140px;
}
.queue-drama {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.queue-drama b { display: block; font-size: 15px; }
.queue-drama .subtle { display: block; margin-top: 3px; }
.poster-xs { width: 48px; height: 68px; aspect-ratio: auto; border-radius: 8px; flex: none; overflow: hidden; box-shadow: 0 6px 14px rgba(15, 39, 68, .16); }
.poster-xs .poster-title { display: none; }
.poster-xs .poster-emblem { inset: 16% 8% 28%; font-size: 8px; letter-spacing: .06em; }
.queue-cell {
  min-width: 0;
  font-size: 13px;
  color: var(--text);
  line-height: 1.45;
}
.queue-cell em {
  display: block;
  margin-top: 2px;
  font-style: normal;
  color: var(--muted);
  font-size: 12px;
}
.queue-cell b { font-weight: 650; }
.queue-label { display: none; }
.queue-ex { color: var(--rejected); }
.queue-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
}
.queue-note {
  margin: 6px 0 0;
  color: #8a4b4b;
  font-size: 12px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.queue-empty { text-align: center; color: var(--muted); padding: 36px 22px; }

@media (max-width: 1200px) {
  .poster-wall, .poster-rail { grid-template-columns: repeat(4, 1fr); }
  .spotlight-row, .public-beats, .public-plat-row, .public-kpis, .public-kpis.is-3, .partner-grid, .about-grid, .about-stats, .kpi-plat-list { grid-template-columns: 1fr 1fr; }
  .public-beats.is-5 { grid-template-columns: 1fr 1fr; }
  .spotlight-card.is-lead { grid-column: 1 / -1; min-height: 360px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .ops-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ops-main, .ops-foot, .ops-board, .insight-top { grid-template-columns: 1fr; }
  .insight-top .insight-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .grid-2, .ops-cols, .ops-split.is-inline, .contract-split, .account-drawer-body { grid-template-columns: 1fr; }
  .rules-grid.is-2 { grid-template-columns: 1fr 1fr; }
  .rule-row-2 { grid-template-columns: 1fr; }
  .rule-step { padding-top: 0; }
  .rev-kpis { grid-template-columns: 1fr 1fr 1fr; }
  .rev-kpis.is-4 { grid-template-columns: 1fr 1fr; }
  .contract-paper { max-height: none; }
  .contract-parties, .contract-signoff { grid-template-columns: 1fr; }
  .upload-layout { grid-template-columns: 168px minmax(0, 1fr); gap: 20px; }
  .apply-grid, .apply-terms { grid-template-columns: 1fr 1fr; }
  .round-cards { grid-template-columns: 1fr 1fr; }
  .region-grid { grid-template-columns: repeat(2, 1fr); }
  .lib-filter-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .public-header, .hero, .section, .public-footer, .public-intro { padding-left: 20px; padding-right: 20px; }
  .public-intro { flex-direction: column; align-items: flex-start; min-height: 0; padding-top: 40px; padding-bottom: 36px; }
  .public-intro h1 { font-size: 32px; }
  .public-cta-band { flex-direction: column; align-items: flex-start; }
  .public-page::before { left: 20px; right: 20px; }
  .poster-wall, .poster-rail, .spotlight-row, .public-beats, .public-plat-row, .public-kpis, .public-kpis.is-3, .partner-grid, .about-grid, .about-stats, .kpi-plat-list { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; max-width: none; }
  .about-hero h2 { font-size: 28px; }
  .partner-card { min-height: 148px; }
  .public-beats.is-5 { grid-template-columns: 1fr; }
  .public-header { flex-wrap: wrap; }
  .public-nav { justify-content: flex-start; }
  .hero-poster { display: none; }
  .public-footer { flex-direction: column; gap: 12px; align-items: flex-start; }
  .sidebar { display: none; }
  .drama-info-layout, .drama-edit-top, .drama-edit-names, .drama-edit-nums, .drama-edit-files, .win-row-grid, .win-row-custom { grid-template-columns: 1fr; }
  .lib-filter-grid { grid-template-columns: 1fr 1fr; }
  .lib-grid { grid-template-columns: repeat(2, 1fr); }
  .upload-layout, .upload-fields, .upload-docs, .apply-grid, .apply-terms, .platform-grid, .round-cards, .review-deal, .review-deal-grid, .rule-scenes, .rule-card-head, .rule-meta, .rules-head, .rule-card-foot, .rules-grid.is-2 { grid-template-columns: 1fr; }
  .rule-card-foot { flex-direction: column; align-items: stretch; }
  .upload-cover .cover-pick { max-width: 200px; }
  .session-bar { flex-wrap: wrap; }
  .meter { min-width: 100%; order: 3; }
  .ops-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ops-plat-num { text-align: left; }
  .queue-head { flex-direction: column; align-items: stretch; }
  input.queue-search { width: 100%; flex: none; max-width: none; }
  .queue-cols { display: none; }
  .queue-cols, .queue-card { grid-template-columns: 1fr 1fr; }
  .queue-drama { grid-column: 1 / -1; }
  .queue-side { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .queue-label { display: block; color: var(--muted); font-size: 11px; margin-bottom: 2px; }
}
