:root {
  color-scheme: dark;
  --bg: #211b20;
  --panel: #241f24;
  --panel-2: #2b252d;
  --field: #38343a;
  --field-hover: #403a42;
  --line: #474047;
  --line-soft: #383239;
  --text: #f4eff4;
  --muted: #b5aeb6;
  --muted-2: #878088;
  --yellow: #ffbd55;
  --blue: #3d9bff;
  --green: #52d273;
  --purple: #bb66ff;
  --red: #ff6565;
}

* { box-sizing: border-box; }

html, body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }

.console-shell {
  height: 100dvh;
  min-height: 100vh;
  display: grid;
  grid-template-rows: 68px minmax(0, 1fr) 34px;
  overflow: hidden;
}

.ya-topbar {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 28px;
  padding: 0 24px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  background: #231e23;
}

.ya-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 198px;
}

.ya-brand-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 189, 85, .55);
  border-radius: 7px;
  background: var(--yellow);
  color: #171106;
  box-shadow: 0 0 22px rgba(255, 189, 85, .26);
  font-size: 20px;
  font-weight: 950;
}

.ya-brand strong {
  font-size: 20px;
  line-height: 1;
}

.ya-nav {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 1;
  gap: 24px;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  font-size: 13px;
  font-weight: 750;
}

.ya-nav::-webkit-scrollbar { display: none; }

.ya-nav a {
  height: 100%;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  color: #e8e1e8;
}

.ya-nav a.active {
  border-color: var(--yellow);
  color: white;
}

.ya-nav .audit-nav-link {
  height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(255, 189, 85, .55);
  border-radius: 7px;
  background: rgba(255, 189, 85, .11);
  color: var(--yellow);
  box-shadow: 0 0 18px rgba(255, 189, 85, .08);
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.ya-nav .audit-nav-link:hover {
  border-color: var(--yellow);
  background: rgba(255, 189, 85, .24);
  transform: translateY(-1px);
}

.ya-actions {
  flex: 0 0 auto;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.api-health {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted) !important;
}

.api-health i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px rgba(82, 210, 115, .65);
}

.api-health b { color: var(--green); }
.api-health.is-error i { background: var(--red); box-shadow: 0 0 12px rgba(255, 101, 101, .55); }
.api-health.is-error b { color: var(--red); }

.ya-actions a {
  color: #eee6ee;
  font-size: 13px;
}

.ya-actions .ai-link {
  color: var(--purple);
}

.drive-link {
  height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 0;
  border-radius: 7px;
  border: 1px solid rgba(187, 102, 255, .32);
  background: #332d35;
  color: #f2e7f2 !important;
  font-weight: 850;
}

.account-button {
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 12px;
  background: #332d35;
  color: #ece5ec;
}

.console-main {
  min-height: 0;
  overflow: auto;
  scrollbar-gutter: stable;
  padding: 14px 12px 8px;
}

.filter-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.35fr) repeat(3, minmax(150px, .72fr)) minmax(190px, .9fr) minmax(165px, .78fr) max-content;
  gap: 8px;
  align-items: end;
  margin-bottom: 10px;
}

label span {
  display: block;
  margin-bottom: 5px;
  color: #f1ebf1;
  font-size: 12px;
  font-weight: 850;
}

input, select {
  width: 100%;
  height: 40px;
  border: 1px solid #4a444c;
  border-radius: 8px;
  background: var(--field);
  padding: 0 12px;
  outline: none;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

input::placeholder { color: #796f7a; }

input:hover,
select:hover {
  background: var(--field-hover);
}

input:focus,
select:focus {
  border-color: rgba(255, 189, 85, .62);
  box-shadow: 0 0 0 2px rgba(255, 189, 85, .12);
}

.dots-button {
  height: 34px;
  border: 0;
  background: transparent;
  color: #d9d0d9;
  font-weight: 900;
}

.add-project-button {
  height: 40px;
  min-width: 132px;
  border: 0;
  border-radius: 7px;
  background: var(--yellow);
  color: #1f1a20;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 750;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.add-project-button:hover {
  background: #ffc66b;
}

.games-table {
  min-height: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.project-row {
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(320px, 1.45fr) minmax(150px, .72fr) 90px 120px 130px minmax(210px, .8fr);
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 0 64px;
}

.project-link {
  transition: background .16s ease, border-color .16s ease;
  border-radius: 8px;
}

.project-link:hover {
  color: white;
}

.project-row.head {
  min-height: 32px;
  color: #ede7ed;
  font-size: 13px;
  font-weight: 900;
}

.game-cell {
  display: flex;
  align-items: center;
  gap: 14px;
}

.game-cover {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #383139;
  color: #e9dee9;
  font-weight: 900;
}

.game-cover-wrapper {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  flex-shrink: 0;
  cursor: pointer;
}

.game-cover-wrapper .game-cover {
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

.game-cover.custom-icon {
  object-fit: cover;
}

.edit-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  opacity: 0;
  border-radius: 8px;
  transition: opacity 0.2s;
  pointer-events: none;
}

.game-cover-wrapper:hover .edit-overlay {
  opacity: 1;
}

.game-title-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.edit-pencil {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
  opacity: 0;
  transition: opacity 0.2s, color 0.2s;
}

.game-title-wrapper:hover .edit-pencil {
  opacity: 1;
}

.game-title-wrapper:hover .edit-pencil:hover {
  color: #fff;
}

.rename-input {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 4px;
  outline: none;
  font-family: inherit;
  min-width: 150px;
}

.rename-input:focus {
  border-color: var(--yellow);
  background: rgba(255, 255, 255, 0.15);
}

.game-cell small {
  display: block;
  margin-bottom: 3px;
  color: #f0e8f0;
  font-size: 11px;
}

.game-cell strong {
  display: block;
  font-size: 16px;
}

.audio-play-toggle {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: var(--yellow);
  box-shadow: 0 7px 20px rgba(255, 189, 85, .2);
  cursor: pointer;
  transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
}

.audio-play-toggle:hover {
  transform: translateY(-1px);
  background: #ffc66b;
  box-shadow: 0 9px 24px rgba(255, 189, 85, .28);
}

.audio-play-toggle span {
  width: 0;
  height: 0;
  display: block;
  margin-left: 3px;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid #151014;
}

.audio-play-toggle.is-playing {
  background: var(--yellow);
  box-shadow: inset 0 0 0 2px rgba(21, 16, 20, .16), 0 8px 22px rgba(255, 189, 85, .22);
}

.audio-play-toggle.is-playing span {
  width: 14px;
  height: 16px;
  margin-left: 0;
  border: 0;
  background: linear-gradient(90deg, #151014 0 5px, transparent 5px 9px, #151014 9px 14px);
}

.pill, .status {
  min-width: 72px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 850;
}

.pill.ready, .status.ready {
  background: #123f27;
  color: var(--green);
}

.pill.active, .status.active {
  background: #173a5c;
  color: var(--blue);
}

.pill.planned, .status.planned {
  background: #594017;
  color: var(--yellow);
}

.status.current {
  background: #4a3417;
  color: var(--yellow);
  box-shadow: inset 0 0 0 1px rgba(255, 189, 85, .28);
}

.source-cell {
  color: #f1e9f1;
  font-weight: 800;
}

.current-build-cell {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.current-build-cell strong {
  color: var(--yellow);
  font-size: 12px;
}

.current-build-cell em {
  max-width: 100%;
  overflow: hidden;
  color: var(--muted);
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.audit-cell {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
}

.audit-platform-links {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.audit-platform-link {
  width: 28px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 7px;
  color: #d9d3da;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

.audit-platform-link svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

.audit-platform-link:hover,
.audit-platform-link:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.audit-platform-link.is-yandex:hover,
.audit-platform-link.is-yandex:focus-visible { color: #ffe168; border-color: rgba(255, 225, 104, .65); background: rgba(255, 225, 104, .12); }
.audit-platform-link.is-playgama:hover,
.audit-platform-link.is-playgama:focus-visible { color: #b7a6ff; border-color: rgba(183, 166, 255, .65); background: rgba(123, 97, 255, .16); }
.audit-platform-link.is-googleplay:hover,
.audit-platform-link.is-googleplay:focus-visible { color: #8ab4f8; border-color: rgba(138, 180, 248, .65); background: rgba(66, 133, 244, .14); }

.audit-project-link {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid rgba(255, 189, 85, .42);
  border-radius: 7px;
  background: rgba(255, 189, 85, .09);
  color: var(--yellow);
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

.audit-project-link svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.audit-project-link:hover {
  border-color: var(--yellow);
  background: rgba(255, 189, 85, .18);
  transform: translateY(-1px);
}

.audit-project-link.is-disabled {
  border-color: rgba(255, 255, 255, .09);
  background: rgba(255, 255, 255, .035);
  color: var(--muted);
  cursor: default;
}

.audit-project-link.is-disabled:hover {
  border-color: rgba(255, 255, 255, .09);
  background: rgba(255, 255, 255, .035);
  transform: none;
}

.api-connect-shell {
  display: grid;
  gap: 14px;
}

.yandex-provider-panel {
  display: grid;
  gap: 14px;
  padding: 16px 18px;
  background: #241f24;
  box-shadow: inset 3px 0 0 rgba(255, 189, 85, .8), inset 0 1px 0 rgba(255, 255, 255, .06);
}

.yandex-provider-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.yandex-provider-head span,
.yandex-provider-grid span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.yandex-provider-head h2 {
  margin: 4px 0;
  font-size: 22px;
}

.yandex-provider-head p,
.yandex-provider-panel footer p,
.yandex-provider-drafts p {
  margin: 0;
  color: var(--muted);
}

.provider-state {
  height: 28px;
  display: inline-flex;
  align-items: center;
  border-radius: 7px;
  background: #4a3417;
  color: var(--yellow);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.provider-state.online {
  background: #123f27;
  color: var(--green);
}

.yandex-provider-grid {
  display: grid;
  grid-template-columns: minmax(340px, 1.65fr) repeat(3, minmax(150px, .45fr));
  gap: 8px;
}

.yandex-provider-grid label,
.yandex-provider-grid article {
  min-height: 72px;
  display: grid;
  align-content: center;
  gap: 7px;
  background: #2a252c;
  padding: 10px 12px;
}

.provider-url-field {
  min-width: 0;
}

.yandex-provider-grid b {
  color: #f4eff4;
  font-size: 16px;
}

.yandex-provider-drafts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 36px;
}

.yandex-provider-drafts a {
  min-height: 36px;
  display: inline-grid;
  grid-template-columns: auto auto auto;
  align-items: center;
  gap: 8px;
  border-radius: 7px;
  background: #2a252c;
  padding: 0 10px;
}

.yandex-provider-drafts span {
  color: var(--yellow);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 900;
}

.yandex-provider-drafts b {
  font-size: 13px;
}

.yandex-provider-drafts em {
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
}

.yandex-provider-panel footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, .07);
  padding-top: 12px;
}

.yandex-provider-panel footer a,
.yandex-provider-panel footer button {
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 7px;
  padding: 0 14px;
  font-weight: 900;
  white-space: nowrap;
}

.yandex-provider-panel footer a {
  background: #332d35;
  color: #f1eaf1;
}

.yandex-provider-panel footer button {
  background: var(--yellow);
  color: #1f1a20;
}

.api-connect-top {
  display: grid;
  grid-template-columns: minmax(360px, 1.7fr) repeat(3, minmax(170px, .7fr));
  gap: 10px;
}

.api-connect-top article {
  min-height: 76px;
  display: grid;
  align-content: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #241f24;
  padding: 13px 15px;
}

.api-connect-top span,
.api-project-card header span,
.api-key-box span,
.api-card-meta b,
.api-library-strip span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.api-connect-top code,
.api-key-box code {
  min-width: 0;
  overflow: hidden;
  color: #f4eff4;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.api-connect-top b {
  color: var(--yellow);
  font-size: 18px;
}

.api-project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.api-project-card {
  min-height: 365px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 189, 85, .04), transparent 48%),
    #241f24;
  padding: 15px;
}

.api-project-card.online {
  border-color: rgba(82, 210, 115, .38);
}

.api-project-card.prepared {
  border-color: rgba(255, 189, 85, .28);
}

.api-project-card.offline {
  border-color: rgba(255, 101, 101, .28);
}

.api-project-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.api-project-card h2 {
  margin: 4px 0 0;
  font-size: 20px;
  line-height: 1.15;
}

.api-connect-badge {
  min-width: 0;
  height: 24px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: transparent;
  color: #d9d0d9;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.api-connect-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 3px rgba(255, 189, 85, .1);
}

.api-project-card.online .api-connect-badge {
  color: var(--green);
}

.api-project-card.online .api-connect-badge::before {
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(82, 210, 115, .1);
}

.api-project-card.offline .api-connect-badge {
  color: #ff9a9a;
}

.api-project-card.offline .api-connect-badge::before {
  background: #ff9a9a;
  box-shadow: 0 0 0 3px rgba(255, 101, 101, .1);
}

.api-key-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 8px;
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  background: #201b21;
  padding: 10px;
}

.api-key-box span,
.api-key-box code {
  grid-column: 1;
}

.api-key-box button {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #2d2730;
  color: #f1eaf1;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 900;
}

.api-key-box button:hover {
  border-color: rgba(255, 189, 85, .45);
  color: var(--yellow);
}

.api-card-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.api-card-meta span {
  min-width: 0;
  display: grid;
  gap: 3px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #29242b;
  padding: 9px;
  color: #eee8ee;
  font-weight: 750;
}

.api-module-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.api-module-pill {
  min-height: 76px;
  display: grid;
  gap: 3px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #29242b;
  padding: 9px;
}

.api-module-pill.is-ready {
  border-color: rgba(82, 210, 115, .28);
  background: #1f2a23;
}

.api-module-pill.is-planned {
  opacity: .74;
}

.api-module-pill b {
  color: #f4eff4;
}

.api-module-pill span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.api-module-pill span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.api-module-pill.is-planned span {
  color: var(--yellow);
}

.api-module-pill em {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.api-library-strip {
  min-height: 42px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
  border-top: 1px solid var(--line-soft);
  padding-top: 12px;
}

.api-library-strip b {
  height: 26px;
  display: inline-flex;
  align-items: center;
  border-radius: 7px;
  background: #173a5c;
  color: var(--blue);
  padding: 0 10px;
  font-size: 12px;
}

.api-library-strip em {
  color: var(--muted);
  font-style: normal;
  font-weight: 750;
}

.pagination {
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.pagination.compact {
  height: 48px;
}

.pagination button,
.pagination select {
  width: 34px;
  height: 30px;
  border: 0;
  border-radius: 7px;
  background: #3a333b;
  color: #d9d1da;
}

.pagination .current {
  background: #674b27;
  color: white;
}

.pagination select {
  width: 58px;
  border: 1px solid var(--line);
}

.console-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 10px;
}

.console-summary article,
.cards-grid article,
.review-list article,
.analytics-grid article,
.pipeline-line,
.section-title {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #241f24;
}

.console-summary article {
  padding: 16px;
}

.console-summary span,
.section-title p,
.cards-grid p,
.review-list p {
  color: var(--muted);
}

.console-summary strong {
  display: block;
  margin: 6px 0;
  font-size: 18px;
}

.ya-footer {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 16px;
  border-top: 1px solid var(--line);
  color: #ddd5dd;
  background: #211b20;
  font-size: 12px;
  font-weight: 700;
}

.ya-footer strong {
  margin-left: auto;
}

.is-hidden { display: none !important; }

.page-view {
  min-height: 0;
}

.section-title {
  margin-bottom: 16px;
  padding: 22px;
}

.section-title h1 {
  margin: 0 0 8px;
  font-size: 30px;
}

.section-title p {
  margin: 0;
}

.game-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.game-toolbar button {
  height: 34px;
  border: 0;
  border-radius: 7px;
  background: #332d35;
  padding: 0 14px;
  font-weight: 850;
}

.game-toolbar span {
  color: var(--muted);
  font-weight: 800;
}

.game-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 12px;
  padding: 18px 22px 20px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  border-radius: 0;
  background: transparent;
}

.actual-build-panel {
  min-height: 78px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  column-gap: 12px;
  row-gap: 8px;
  margin: 0 0 14px;
  padding: 15px 18px;
  border: 0;
  border-radius: 0;
  background: #292116;
  box-shadow: inset 3px 0 0 rgba(255, 189, 85, .9);
}

.actual-build-panel span {
  color: var(--yellow);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.actual-build-panel b {
  display: block;
  max-width: 100%;
  overflow: hidden;
  margin: 4px 0;
  font-size: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.actual-build-panel p {
  margin: 0;
  color: var(--muted);
}

.actual-build-panel a {
  height: 36px;
  display: inline-flex;
  align-items: center;
  border: 0;
  border-radius: 7px;
  padding: 0 16px;
  background: var(--yellow);
  color: #1f1a20;
  font-weight: 900;
}

.project-settings-panel,
.yandex-draft-panel {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  align-items: start;
  gap: 28px;
  margin: 0 0 14px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #241f24;
}

.console-form-aside,
.project-settings-info,
.yandex-draft-info {
  min-width: 0;
}

.console-form-aside span,
.project-settings-info span,
.yandex-draft-info span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.console-form-aside b,
.project-settings-info b,
.yandex-draft-info b {
  display: block;
  margin-bottom: 5px;
  font-size: 19px;
}

.console-form-aside p,
.project-settings-info p,
.yandex-draft-info p {
  margin: 0;
  color: var(--muted);
  line-height: 1.35;
}

.console-form-body {
  display: grid;
  grid-template-columns: minmax(220px, .64fr) minmax(280px, 1fr);
  gap: 14px 18px;
}

.console-form-row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.console-form-row.is-wide,
.connection-key-row {
  grid-column: 1 / -1;
}

.console-form-row span {
  display: block;
  margin: 0;
  color: #f0e9f0;
  font-size: 14px;
  font-weight: 800;
}

.connection-key-row code {
  min-width: 0;
  min-height: 40px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: #211d22;
  padding: 0 12px;
  color: var(--yellow);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.console-form-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.project-settings-panel button,
.yandex-draft-panel a,
.yandex-draft-panel button {
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #2d2730;
  padding: 0 13px;
  font-weight: 900;
}

.project-settings-panel button,
.yandex-draft-panel button {
  border: 0;
  background: var(--yellow);
  color: #1f1a20;
}

.yandex-draft-panel a {
  background: #302930;
  color: #f1eaf1;
}

.build-live {
  width: max-content;
  min-width: 0;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: #123f27;
  color: var(--green);
  padding: 0 12px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.build-live.planned {
  background: #594017;
  color: var(--yellow);
}

.game-admin-grid {
  display: grid;
  grid-template-columns: minmax(320px, .85fr) minmax(520px, 1.4fr);
  gap: 14px;
}

.api-modules {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.module-card,
.resource-panel {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #241f24;
}

.module-card {
  min-height: 112px;
  padding: 16px;
}

.module-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.module-card b {
  display: block;
  margin: 7px 0;
  font-size: 18px;
}

.module-card p {
  margin: 0 0 12px;
  color: var(--muted);
}

.module-card i {
  font-style: normal;
  font-weight: 900;
}

.module-card.ready i { color: var(--green); }
.module-card.planned i { color: var(--yellow); }

.game-roadmap {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #241f24;
  overflow: hidden;
}

.roadmap-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.roadmap-head span,
.roadmap-subhead span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.roadmap-head h2 {
  margin: 4px 0;
  font-size: 24px;
}

.roadmap-head p {
  margin: 0;
  color: var(--muted);
}

.roadmap-head button {
  height: 34px;
  border: 1px solid rgba(255, 189, 85, .4);
  border-radius: 8px;
  background: #332817;
  color: var(--yellow);
  padding: 0 14px;
  font-weight: 900;
  white-space: nowrap;
}

.roadmap-track {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0;
  padding: 18px;
}

.roadmap-step {
  position: relative;
  min-height: 168px;
  display: grid;
  grid-template-rows: 34px minmax(0, 1fr);
  gap: 10px;
  border-right: 1px solid var(--line-soft);
  padding: 0 12px;
}

.roadmap-step:last-child {
  border-right: 0;
}

.roadmap-step::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 46px;
  right: -18px;
  height: 2px;
  background: var(--line);
}

.roadmap-step:last-child::before {
  display: none;
}

.roadmap-step i {
  position: relative;
  z-index: 1;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #2a242d;
  color: var(--muted);
  font-style: normal;
  font-weight: 900;
}

.roadmap-step.is-done i {
  border-color: rgba(82, 210, 115, .42);
  background: #123f27;
  color: var(--green);
}

.roadmap-step.is-active i {
  border-color: rgba(255, 189, 85, .55);
  background: #4a3417;
  color: var(--yellow);
  box-shadow: 0 0 0 4px rgba(255, 189, 85, .08);
}

.roadmap-step b {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
}

.roadmap-step p {
  margin: 0 0 8px;
  color: var(--muted);
  line-height: 1.35;
}

.roadmap-step em {
  color: #f1e9f1;
  font-style: normal;
  font-weight: 850;
}

.roadmap-step.is-planned {
  opacity: .72;
}

.roadmap-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, .65fr);
  gap: 14px;
  padding: 0 18px 18px;
}

.roadmap-history,
.roadmap-notes {
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  background: #211d22;
  overflow: hidden;
}

.roadmap-subhead {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line-soft);
  padding: 0 14px;
}

.roadmap-subhead b {
  color: var(--yellow);
  font-size: 13px;
}

.roadmap-history article {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 14px;
  border-bottom: 1px solid var(--line-soft);
  padding: 13px 14px;
}

.roadmap-history article:last-child {
  border-bottom: 0;
}

.roadmap-history time {
  color: var(--muted);
  font-weight: 850;
}

.roadmap-history b {
  display: block;
  margin-bottom: 4px;
}

.roadmap-history p,
.roadmap-notes p {
  margin: 0;
  color: var(--muted);
}

.roadmap-notes {
  display: grid;
  align-content: start;
}

.roadmap-notes article {
  display: grid;
  gap: 5px;
  border-bottom: 1px solid var(--line-soft);
  padding: 13px 14px;
}

.roadmap-notes article:last-child {
  border-bottom: 0;
}

.roadmap-notes article span {
  color: #f1e9f1;
  font-weight: 900;
}

.roadmap-notes article.accent span {
  color: var(--yellow);
}

.roadmap-notes article.ready span {
  color: var(--green);
}

.roadmap-notes article.manual span {
  color: var(--blue);
}

.game-policy-docs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  margin: 14px 0 0;
  padding: 16px;
  border: 1px solid rgba(255, 205, 43, .24);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255, 205, 43, .08), rgba(255, 255, 255, .025));
}

.game-policy-docs span {
  color: var(--yellow);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.game-policy-docs h3 {
  margin: 5px 0 6px;
  font-size: 20px;
}

.game-policy-docs p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  line-height: 1.35;
}

.game-policy-links,
.game-policy-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.game-policy-links a {
  min-width: 74px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(255, 255, 255, .04);
  color: #f3edf3;
  font-weight: 900;
  text-decoration: none;
}

.game-policy-actions button,
.game-policy-actions a {
  height: 36px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 205, 43, .36);
  border-radius: 8px;
  background: #332817;
  color: var(--yellow);
  padding: 0 14px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.game-policy-actions button:first-child {
  background: var(--yellow);
  color: #1b171b;
}

.resource-panel {
  min-height: 560px;
  padding: 18px;
  overflow: hidden;
}

.resource-panel.is-disabled {
  opacity: .72;
}

.resource-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.resource-head span {
  color: var(--muted);
  font-weight: 850;
}

.resource-head h2 {
  margin: 4px 0 0;
  font-size: 23px;
}

.resource-head select {
  max-width: 240px;
}

.resource-head button,
.library-create button,
.library-card button {
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #332c34;
  padding: 0 12px;
  font-weight: 850;
}

.library-create {
  display: grid;
  grid-template-columns: minmax(180px, .9fr) minmax(220px, 1fr) 140px auto;
  gap: 8px;
  margin-bottom: 12px;
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #211d22;
}

.library-tools {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 132px 150px;
  gap: 8px;
  margin-bottom: 10px;
}

.library-list {
  margin-bottom: 12px;
}

.library-section-label {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.library-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.library-card {
  min-height: 124px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #211d22;
  padding: 12px;
  cursor: pointer;
}

.library-card.is-selected {
  border-color: rgba(255, 189, 85, .55);
  background: #282119;
}

.library-card span,
.library-current span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.library-card b,
.library-current b {
  display: block;
  margin: 3px 0;
  font-size: 16px;
}

.library-card em,
.library-current em {
  color: var(--yellow);
  font-style: normal;
  font-weight: 850;
}

.library-card p {
  margin: 0;
  color: var(--muted);
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.library-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.library-card footer strong {
  color: var(--muted);
}

.drop-zone {
  min-height: 76px;
  display: grid;
  place-items: center;
  gap: 5px;
  padding: 14px;
  border: 1px dashed #6d606d;
  border-radius: 8px;
  background: #2a242b;
  text-align: center;
  cursor: pointer;
  margin-bottom: 12px;
}

.drop-zone.is-dragging {
  border-color: var(--yellow);
  background: #322832;
}

.drop-zone strong {
  color: var(--yellow);
  font-size: 15px;
}

.drop-zone span {
  max-width: 720px;
  color: var(--muted);
  font-size: 13px;
}

.drop-zone input {
  display: none;
}

.music-connected {
  display: grid;
  gap: 5px;
  margin: 14px 0;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #211d22;
}

.music-connected b {
  color: var(--yellow);
  font-size: 17px;
}

.music-connected span,
.music-connected em {
  color: var(--muted);
  font-style: normal;
}

.music-list {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.library-assets {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.library-current {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .8fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  background: #211d22;
}

.library-current p {
  margin: 0;
  color: var(--muted);
}

.library-current strong {
  color: var(--muted);
  text-align: right;
}

.library-current dl {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 4px 10px;
  margin: 0;
  color: var(--muted);
}

.library-current dt {
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.library-current dd {
  min-width: 0;
  overflow: hidden;
  margin: 0;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.library-current button {
  height: 34px;
  border: 1px solid rgba(255, 189, 85, .35);
  border-radius: 7px;
  background: #332817;
  color: var(--yellow);
  padding: 0 14px;
  font-weight: 900;
}

.music-row {
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 90px 120px 220px;
  align-items: center;
  gap: 14px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
}

.asset-row {
  min-height: 50px;
  display: grid;
  grid-template-columns: 86px minmax(220px, 1fr) 210px 150px 160px 136px;
  align-items: center;
  gap: 14px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
}

.asset-row.head {
  min-height: 34px;
  color: #ede7ed;
  font-size: 13px;
  font-weight: 900;
}

.asset-tools {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 130px 160px;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: #241f24;
}

.asset-icon {
  width: 34px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 7px;
  background: #342e35;
  color: var(--yellow);
  font-weight: 900;
}

.asset-thumb {
  width: 38px;
  height: 38px;
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #342e35;
  object-fit: cover;
}

.asset-name-cell {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.asset-name-cell b,
.asset-name-cell em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asset-name-cell b {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.asset-name-cell em,
.asset-cover-note {
  color: var(--muted);
  font-style: normal;
}

.asset-cover-select {
  height: 32px;
}

.audio-leading {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.audio-play-cover {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #342e35;
  object-fit: cover;
  color: var(--yellow);
  font-style: normal;
  font-weight: 900;
}

.cover-picker-button {
  width: 100%;
  height: 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #2c2630;
  padding: 0 8px 0 10px;
  text-align: left;
}

.cover-picker-button span {
  min-width: 0;
  overflow: hidden;
  color: #efe8ef;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cover-picker-button b {
  color: var(--yellow);
  font-size: 12px;
}

.audio-preview {
  display: flex;
  align-items: center;
  gap: 8px;
}

.audio-preview-label {
  color: var(--muted);
  font-weight: 850;
}

.asset-cover {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #342e35;
  object-fit: cover;
  color: var(--yellow);
  font-weight: 900;
}

.asset-row audio {
  width: 100%;
  height: 32px;
}

.asset-row a {
  color: var(--yellow);
  font-weight: 900;
}

.asset-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.asset-actions button,
.asset-delete {
  width: 64px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #312b32;
  padding: 0;
  color: #efe9ef;
  font-size: 11px;
  font-weight: 900;
}

.asset-delete {
  border: 1px solid rgba(255, 101, 101, .32);
  background: #3a2428;
  color: #ff9a9a;
}

.content-db-layout {
  display: grid;
  grid-template-columns: 320px 300px minmax(0, 1fr);
  gap: 14px;
}

.policies-layout {
  width: min(1480px, calc(100vw - 32px));
  grid-template-columns: minmax(340px, 420px) minmax(680px, 1fr);
  align-items: stretch;
  gap: 18px;
  margin: 0 auto;
}

.content-hub-sidebar,
.content-db-sidebar,
.content-db-main {
  min-height: 620px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #211d22;
  overflow: hidden;
}

.content-hub-sidebar,
.content-db-sidebar {
  padding: 14px;
}

.content-db-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.content-db-head span {
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
}

.content-db-head button,
.content-db-toolbar button {
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #312b32;
  padding: 0 13px;
  font-weight: 900;
}

.content-db-library-list {
  display: grid;
  gap: 8px;
}

.content-db-library {
  display: grid;
  gap: 4px;
  width: 100%;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #262127;
  padding: 12px;
  text-align: left;
}

.content-db-library.is-selected {
  border-color: rgba(255, 189, 85, .55);
  background: #2b241b;
}

.content-db-library.is-drop-target {
  border-color: var(--yellow);
  background: #342814;
  box-shadow: inset 0 0 0 1px rgba(255, 189, 85, .42);
}

.content-db-library span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.content-db-library b {
  font-size: 16px;
}

.content-db-library em,
.content-db-library small {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-style: normal;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.policies-layout .content-db-sidebar,
.policies-layout .content-db-main {
  min-height: calc(100vh - 150px);
}

.policies-layout .content-db-sidebar {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.policies-layout .content-db-library-list {
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
}

.policies-layout .content-db-library {
  min-height: 86px;
  border-radius: 10px;
  padding: 14px;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}

.policies-layout .content-db-library:hover {
  border-color: rgba(255, 205, 43, .55);
  background: #2c252b;
  transform: translateY(-1px);
}

.policies-layout .content-db-library b {
  display: -webkit-box;
  max-width: 270px;
  overflow: hidden;
  line-height: 1.12;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.copy-policy-btn,
.delete-policy-btn {
  width: 32px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #332e35;
  color: #efe9ef;
  padding: 0;
}

.copy-policy-btn:hover {
  border-color: rgba(255, 205, 43, .5);
  color: var(--yellow);
}

.delete-policy-btn:hover {
  border-color: rgba(255, 83, 83, .55);
  color: #ff8d8d;
}

.content-db-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 120px 190px 150px auto;
  align-items: end;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  background: #241f24;
}

.content-db-toolbar label {
  display: grid;
  gap: 5px;
}

.content-db-toolbar span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.content-db-toolbar button {
  min-width: 104px;
}

.content-db-drop {
  min-height: 64px;
  display: grid;
  place-items: center;
  gap: 4px;
  margin: 12px;
  border: 1px dashed #655a65;
  border-radius: 8px;
  background: #29242b;
  cursor: pointer;
  text-align: center;
}

.library-settings-panel {
  border-bottom: 1px solid var(--line);
  background: #221e24;
  padding: 14px;
}

.library-settings-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.library-settings-head span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.library-settings-head b {
  display: block;
  margin: 2px 0;
  font-size: 16px;
}

.library-settings-head em {
  color: var(--muted);
  font-style: normal;
  font-weight: 750;
}

.library-settings-head button {
  height: 34px;
  border: 1px solid rgba(255, 189, 85, .4);
  border-radius: 8px;
  background: #332817;
  color: var(--yellow);
  padding: 0 14px;
  font-weight: 900;
}

.format-formula {
  min-height: 46px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  background: #1f1a20;
}

.format-token {
  height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255, 189, 85, .28);
  border-radius: 8px;
  background: #302614;
  padding: 0 9px;
}

.format-token b {
  color: var(--yellow);
}

.format-token em {
  color: #efe8ef;
  font-style: normal;
  font-weight: 850;
}

.format-formula i {
  color: var(--muted);
  font-style: normal;
  font-weight: 900;
}

.format-builder,
.library-pairings {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.format-builder {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 10px;
  margin-bottom: 10px;
}

.format-component {
  width: 100%;
  min-height: 172px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 189, 85, .045), transparent 56%),
    #2a242d;
  padding: 11px;
}

.format-component header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.format-component strong {
  height: 26px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 189, 85, .3);
  border-radius: 8px;
  background: rgba(255, 189, 85, .1);
  padding: 0 9px;
  color: var(--yellow);
  font-size: 15px;
}

.format-fields {
  display: grid;
  grid-template-columns: minmax(76px, .8fr) minmax(116px, 1.2fr);
  gap: 8px;
}

.format-fields label:last-child {
  grid-column: 1 / -1;
}

.format-component label {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.format-component label span {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.format-component input,
.format-component select {
  height: 31px;
  border-radius: 7px;
  padding: 0 8px;
}

.format-required {
  height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.format-required input {
  width: 14px;
  height: 14px;
  accent-color: var(--yellow);
}

.format-add {
  width: 100%;
  min-height: 172px;
  display: grid;
  place-content: center;
  gap: 5px;
  border: 1px dashed rgba(255, 189, 85, .38);
  border-radius: 10px;
  background: #2a242d;
  color: var(--yellow);
  padding: 12px;
  text-align: center;
  font-weight: 900;
}

.format-component button {
  position: relative;
  width: 24px;
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #302a31;
  color: #d7cbd7;
  opacity: .72;
  transition: border-color .15s ease, color .15s ease, opacity .15s ease;
}

.format-component button:hover {
  border-color: rgba(255, 101, 101, .5);
  color: #ff9a9a;
  opacity: 1;
}

.format-component button::before,
.format-component button::after {
  content: "";
  position: absolute;
  top: 11px;
  left: 6px;
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.format-component button::before {
  transform: rotate(45deg);
}

.format-component button::after {
  transform: rotate(-45deg);
}

.format-add span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  justify-self: center;
  border-radius: 9px;
  background: var(--yellow);
  color: #1f1a20;
  font-size: 23px;
  line-height: 1;
}

.format-add b {
  color: #f7edf7;
}

.format-add em {
  max-width: 170px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 750;
}

@media (max-width: 1680px) {
  .api-project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .format-builder {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1360px) {
  .api-connect-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content-db-toolbar {
    grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(130px, .5fr)) auto;
  }

  .format-builder {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.setting-check {
  height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #2c2630;
  padding: 0 10px;
  font-weight: 850;
}

.setting-check input {
  width: 15px;
  height: 15px;
  accent-color: var(--yellow);
}

.setting-check.wide {
  min-width: 160px;
}

.library-pairings select {
  width: 150px;
}

.content-hub-drop {
  min-height: 82px;
  display: grid;
  place-items: center;
  gap: 5px;
  margin-bottom: 12px;
  border: 1px dashed #655a65;
  border-radius: 8px;
  background: #29242b;
  cursor: pointer;
  padding: 12px;
  text-align: center;
}

.content-hub-drop.is-dragging {
  border-color: var(--yellow);
  background: #322832;
}

.content-hub-drop strong {
  color: var(--yellow);
}

.content-hub-drop span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.content-hub-list {
  display: grid;
  gap: 8px;
}

.hub-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 0 4px;
  color: var(--muted);
  font-weight: 850;
}

.hub-summary b {
  color: var(--yellow);
  font-size: 16px;
}

.hub-file-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #262127;
  padding: 9px;
  cursor: grab;
}

.hub-file-card.is-dragging {
  opacity: .58;
}

.hub-file-card b,
.hub-file-card em {
  min-width: 0;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hub-file-card b {
  font-size: 13px;
}

.hub-file-card em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.hub-file-card a {
  color: var(--yellow);
  font-size: 12px;
  font-weight: 900;
}

.content-db-drop.is-dragging {
  border-color: var(--yellow);
  background: #322832;
}

.content-db-drop strong {
  color: var(--yellow);
}

.content-db-drop span {
  color: var(--muted);
  font-size: 13px;
}

.hidden-file-input {
  display: none;
}

.content-db-table {
  margin: 0 12px 12px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}

.content-db-summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  background: #241f26;
}

.content-db-summary b {
  color: var(--yellow);
  font-size: 18px;
}

.content-db-summary span {
  color: var(--muted);
  font-weight: 750;
}

.content-asset-row {
  min-height: 54px;
  display: grid;
  grid-template-columns: 86px minmax(170px, 1fr) 150px minmax(120px, .55fr) 138px 76px 136px;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
}

.content-asset-row.head {
  min-height: 36px;
  color: #ede7ed;
  font-size: 13px;
  font-weight: 900;
}

.content-library-ref {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.content-library-ref b,
.content-library-ref em,
.content-projects {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.content-library-ref em,
.content-projects {
  color: var(--muted);
  font-style: normal;
}

.content-asset-row a {
  color: var(--yellow);
  font-weight: 900;
}

.cover-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
}

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: rgba(12, 9, 12, .72);
  padding: 24px;
}

.project-modal-card {
  width: min(560px, 100%);
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #241f24;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .36);
  padding: 18px;
}

.project-modal-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 14px;
}

.project-modal-card header span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.project-modal-card h2 {
  margin: 4px 0 0;
  font-size: 26px;
}

.project-modal-card header button {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #302a31;
  color: #d7cbd7;
  font-weight: 900;
}

.connect-key-preview {
  display: grid;
  gap: 7px;
  border: 1px solid rgba(255, 189, 85, .28);
  border-radius: 10px;
  background: #211b18;
  padding: 13px;
}

.connect-key-preview span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.connect-key-preview code {
  color: var(--yellow);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 16px;
  font-weight: 900;
}

.project-modal-submit {
  width: 100%;
  height: 44px;
  border: 1px solid rgba(255, 189, 85, .52);
  border-radius: 9px;
  background: var(--yellow);
  color: #1f1a20;
  font-size: 16px;
  font-weight: 950;
}

.policy-modal-card {
  width: min(620px, calc(100vw - 32px));
  max-height: min(760px, calc(100vh - 32px));
  overflow-y: auto;
  gap: 16px;
  padding: 20px;
}

.policy-modal-card > label,
.policy-modal-grid label {
  display: grid;
  gap: 8px;
}

.policy-modal-card label span {
  color: #efe7ef;
  font-size: 13px;
  font-weight: 900;
}

.policy-modal-card input[type="text"],
.policy-modal-card input:not([type]) {
  width: 100%;
  min-width: 0;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 9px;
  background: #332d35;
  color: #fff;
  padding: 0 14px;
  font: inherit;
  font-weight: 750;
  outline: none;
}

.policy-modal-card input:focus {
  border-color: rgba(255, 189, 85, .75);
  box-shadow: 0 0 0 3px rgba(255, 189, 85, .1);
}

.policy-modal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.policy-options {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: rgba(0, 0, 0, .14);
  padding: 12px;
}

.policy-options .ya-checkbox {
  min-height: 42px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  border-radius: 8px;
  padding: 0 8px;
  cursor: pointer;
}

.policy-options .ya-checkbox:hover {
  background: rgba(255, 255, 255, .04);
}

.policy-options .ya-checkbox input {
  appearance: none;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 5px;
  background: #332d35;
  margin: 0;
  cursor: pointer;
}

.policy-options .ya-checkbox input:checked {
  border-color: rgba(255, 189, 85, .85);
  background: var(--yellow);
}

.policy-options .ya-checkbox input:checked::before {
  content: "";
  width: 9px;
  height: 5px;
  border-left: 2px solid #211b18;
  border-bottom: 2px solid #211b18;
  transform: rotate(-45deg) translateY(-1px);
}

.policy-options .ya-checkbox span {
  min-width: 0;
  color: #eee8ee;
  line-height: 1.25;
}

.policy-modal-actions {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 10px;
}

.policy-modal-actions .project-modal-submit {
  margin: 0;
  white-space: normal;
  line-height: 1.05;
}

.policy-secondary-action {
  border-color: var(--line);
  background: #302a31;
  color: var(--muted);
}

.cover-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 8, 12, .72);
}

.cover-modal-panel {
  position: absolute;
  top: 7vh;
  left: 50%;
  width: min(920px, calc(100vw - 32px));
  max-height: 84vh;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  transform: translateX(-50%);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #211d22;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .45);
  overflow: hidden;
}

.cover-modal-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: #241f24;
}

.cover-modal-panel header span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.cover-modal-panel h2 {
  margin: 3px 0 0;
  font-size: 22px;
}

.cover-modal-panel header button,
.cover-modal-search button {
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #312b32;
  padding: 0 13px;
  font-weight: 900;
}

.cover-modal-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
}

.cover-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 18px;
  overflow: auto;
}

.cover-choice {
  min-width: 0;
  display: grid;
  gap: 8px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #262127;
  padding: 10px;
  text-align: left;
}

.cover-choice:hover {
  border-color: rgba(255, 189, 85, .58);
  background: #2d251d;
}

.cover-choice img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 7px;
  background: #342e35;
  object-fit: cover;
}

.cover-choice b,
.cover-choice span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cover-choice span {
  color: var(--muted);
  font-size: 12px;
}

.music-row.head {
  min-height: 38px;
  color: #ede7ed;
  font-size: 13px;
  font-weight: 900;
}

.music-row audio {
  width: 100%;
  height: 34px;
}

.cards-grid,
.analytics-grid,
.review-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.cards-grid article,
.review-list article,
.analytics-grid article {
  position: relative;
  min-height: 150px;
  padding: 18px;
}

.cards-grid b,
.review-list b,
.analytics-grid b {
  display: block;
  margin-bottom: 12px;
  font-size: 18px;
}

.review-list {
  grid-template-columns: repeat(3, 1fr);
}

.pipeline-line {
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 24px;
}

.drive-card {
  max-width: 520px;
  min-height: 94px;
  display: grid;
  align-content: center;
  gap: 6px;
  margin-top: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #241f24;
}

.drive-card b {
  color: var(--yellow);
  font-size: 18px;
}

.drive-card span {
  font-weight: 850;
}

.drive-card em {
  color: var(--muted);
  font-style: normal;
}

.build-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0 4px;
}

.build-actions button,
.build-actions a {
  height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #2b252d;
  padding: 0 14px;
  font-weight: 850;
}

.build-actions a {
  color: var(--yellow);
}

.builds-table {
  margin-top: 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.build-summary {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  background: #241f26;
}

.build-summary b {
  color: var(--yellow);
  font-size: 18px;
}

.build-summary span {
  color: var(--muted);
  font-weight: 750;
}

.build-row {
  min-height: 54px;
  display: grid;
  grid-template-columns: 180px minmax(320px, 1fr) 150px 210px 90px;
  align-items: center;
  gap: 14px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
}

.build-row.is-current-build {
  background: #282119;
  box-shadow: inset 3px 0 0 var(--yellow);
}

.build-row.head {
  min-height: 38px;
  color: #ede7ed;
  font-size: 13px;
  font-weight: 900;
}

.build-name {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.build-project {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.build-row a {
  color: var(--yellow);
  font-weight: 900;
}

.build-empty {
  padding: 22px 18px;
  color: var(--muted);
}

.pipeline-line span {
  height: 44px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0 16px;
  background: #2b252d;
  font-weight: 850;
}

.pipeline-line i {
  color: var(--blue);
  font-style: normal;
}

.analytics-grid article b {
  color: var(--yellow);
  font-size: 28px;
}

.smm-dashboard {
  display: grid;
  gap: 14px;
}

.smm-radar-top {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.smm-radar-top article,
.smm-main-panel,
.smm-side-panel,
.smm-ideas-panel {
  background: #241f24;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}

.smm-radar-top article {
  min-height: 88px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 14px 16px;
}

.smm-radar-top span,
.smm-panel-head span,
.smm-source-card em,
.smm-ideas-grid article span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.smm-radar-top b {
  color: var(--yellow);
  font-size: 22px;
}

.smm-radar-top p,
.smm-panel-head p,
.smm-source-list p,
.smm-ideas-grid p {
  margin: 0;
  color: var(--muted);
}

.smm-radar-layout {
  display: grid;
  grid-template-columns: minmax(620px, 1fr) 360px;
  gap: 14px;
}

.smm-radar-layout.sources-only {
  grid-template-columns: 1fr;
}

.smm-radar-layout.sources-only .smm-main-panel {
  display: none;
}

.smm-dashboard-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 20px;
  align-items: start;
}

.smm-sidebar {
  background: #241f24;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}

.smm-sidebar-logo {
  font-size: 16px;
  font-weight: 900;
  color: var(--yellow);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0 8px;
}

.smm-page-tabs {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.smm-page-tabs button {
  height: 44px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #efe8ef;
  padding: 0 16px;
  font-weight: 850;
  text-align: left;
  transition: all 0.2s ease;
}

.smm-page-tabs button:hover {
  background: rgba(255, 255, 255, 0.05);
}

.smm-page-tabs button.active {
  background: var(--yellow);
  color: #221a14;
}

.smm-content-area {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.smm-live-panel {
  background: #241f24;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}

.smm-live-controls {
  display: grid;
  grid-template-columns: 180px 140px repeat(2, minmax(120px, 1fr));
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.smm-live-controls label,
.smm-live-controls div {
  display: grid;
  gap: 6px;
}

.smm-live-controls span,
.smm-analysis-card span,
.smm-global-evidence span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.smm-live-controls select {
  height: 38px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 7px;
  background: #302b31;
  color: #f4eef4;
  padding: 0 10px;
  font: inherit;
  font-weight: 850;
}

.smm-live-controls b {
  color: var(--yellow);
  font-size: 20px;
}

.smm-global-list {
  display: grid;
}

.smm-global-card {
  min-height: 96px;
  display: grid;
  grid-template-columns: 44px minmax(260px, 1fr) 132px minmax(170px, .42fr);
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.smm-global-card.rising {
  box-shadow: inset 3px 0 0 rgba(82, 210, 115, .7);
}

.smm-rank {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #3a3125;
  color: var(--yellow);
  font-weight: 950;
}

.smm-global-main {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.smm-global-main header {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.smm-global-main header span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.smm-global-main b,
.smm-global-main p {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.smm-global-main p {
  margin: 0;
  color: var(--muted);
}

.smm-global-score {
  display: grid;
  justify-items: start;
  gap: 3px;
}

.smm-global-score strong {
  color: var(--yellow);
  font-size: 28px;
  line-height: 1;
}

.smm-global-score span,
.smm-global-score em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}

.smm-global-evidence {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.smm-global-evidence a,
.smm-global-evidence em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #bd77ff;
  font-style: normal;
  font-weight: 850;
  text-decoration: none;
}

.smm-live-pages {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.smm-live-pages button,
.smm-live-pages strong {
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 7px;
  background: #302b31;
  color: #efe8ef;
  font-weight: 950;
}

.smm-live-pages strong {
  background: #6a4a17;
  color: #fff1d5;
}

.smm-live-pages button:disabled {
  opacity: .45;
}

.smm-search-panel {
  display: grid;
  gap: 12px;
  background: #241f24;
  padding: 14px 16px 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}

.smm-search-panel > div:first-child span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.smm-search-panel h2 {
  margin: 4px 0 0;
  font-size: 22px;
}

.smm-search-controls {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 220px auto;
  gap: 10px;
}

.smm-search-controls input,
.smm-search-controls select {
  width: 100%;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 7px;
  background: #302b31;
  color: #f4eef4;
  padding: 0 12px;
  font: inherit;
  font-weight: 800;
}

.smm-search-controls button,
.smm-source-card footer button,
.smm-provider-dialog footer .primary {
  height: 40px;
  border: 0;
  border-radius: 7px;
  background: var(--yellow);
  color: #211a16;
  padding: 0 16px;
  font-weight: 950;
  cursor: pointer;
  transition: all 0.2s;
}
.smm-search-controls button:hover,
.smm-source-card footer button:hover,
.smm-provider-dialog footer .primary:hover {
  background: #ffdb4d;
}

.smm-tag-results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.smm-tag-card,
.smm-tag-empty {
  min-height: 86px;
  display: grid;
  gap: 6px;
  align-content: start;
  background: #2b252c;
  padding: 12px;
}

.smm-tag-card {
  grid-template-columns: minmax(0, 1fr) auto;
  box-shadow: inset 3px 0 0 rgba(52, 140, 255, .55);
}

.smm-tag-card.rising {
  box-shadow: inset 3px 0 0 rgba(82, 210, 115, .75);
}

.smm-tag-card.falling {
  box-shadow: inset 3px 0 0 rgba(255, 189, 85, .75);
}

.smm-tag-card b,
.smm-tag-card p {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.smm-tag-card p,
.smm-tag-card em,
.smm-tag-empty {
  margin: 0;
  color: var(--muted);
}

.smm-tag-card span,
.smm-tag-card strong {
  color: var(--yellow);
  font-size: 12px;
  font-weight: 950;
  text-align: right;
}

.smm-tag-card em {
  grid-column: 1 / -1;
  font-style: normal;
}

.smm-analysis-card {
  display: grid;
  gap: 12px;
  background: #2b252c;
  padding: 14px;
  box-shadow: inset 3px 0 0 rgba(255, 189, 85, .75);
}

.smm-analysis-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.smm-analysis-card h3 {
  margin: 4px 0 0;
  font-size: 22px;
}

.smm-analysis-card header strong {
  color: var(--yellow);
  font-size: 30px;
}

.smm-analysis-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.smm-analysis-grid article,
.smm-analysis-columns > div {
  display: grid;
  gap: 5px;
  background: #241f24;
  padding: 11px;
}

.smm-analysis-grid b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.smm-analysis-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.smm-analysis-columns p {
  margin: 0;
  color: #e8dee8;
}

.smm-analysis-card footer {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.smm-analysis-card footer em {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  border-radius: 7px;
  background: #3a3125;
  color: var(--yellow);
  padding: 0 8px;
  font-style: normal;
  font-weight: 850;
}

.smm-main-panel,
.smm-side-panel,
.smm-ideas-panel {
  min-width: 0;
}

.smm-panel-head {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.smm-panel-head.compact {
  min-height: 58px;
}

.smm-panel-head h2 {
  margin: 4px 0 0;
  font-size: 22px;
}

.smm-panel-head button {
  height: 36px;
  border: 0;
  border-radius: 7px;
  background: var(--yellow);
  color: #1f1a20;
  padding: 0 14px;
  font-weight: 900;
}

.smm-trend-row {
  min-height: 62px;
  display: grid;
  grid-template-columns: minmax(220px, 1.1fr) 120px 180px minmax(150px, .7fr) minmax(260px, 1fr);
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  padding: 0 16px;
}

.smm-trend-row.rising {
  box-shadow: inset 3px 0 0 rgba(82, 210, 115, .72);
}

.smm-trend-row.falling {
  box-shadow: inset 3px 0 0 rgba(255, 189, 85, .62);
}

.smm-trend-row.head {
  min-height: 36px;
  color: #efe8ef;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.smm-trend-title,
.smm-score {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.smm-trend-title b,
.smm-trend-title em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.smm-trend-title em {
  color: var(--muted);
  font-style: normal;
}

.smm-score {
  grid-template-columns: auto auto;
  align-items: center;
  justify-content: start;
  gap: 5px 8px;
}

.smm-score b {
  color: var(--yellow);
  font-size: 18px;
}

.smm-score i {
  font-style: normal;
  font-weight: 900;
}

.smm-score i.up { color: var(--green); }
.smm-score i.down { color: #ff9a9a; }
.smm-score .status { grid-column: 1 / -1; justify-self: start; }

.smm-fit {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.smm-fit em {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  border-radius: 7px;
  background: #302a31;
  color: #efe8ef;
  padding: 0 8px;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.smm-source-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  padding: 0;
}

.smm-source-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(145deg, #2a252c, #1f1b22);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
}

.smm-source-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: var(--yellow);
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.smm-source-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.1);
}

.smm-source-card:hover::before {
  opacity: 1;
}

.smm-source-card-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
}

.smm-source-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.smm-source-card header b {
  font-size: 16px;
  color: #fff;
}

.smm-source-card p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  line-height: 1.5;
}

.smm-source-card em {
  color: var(--yellow);
  font-style: normal;
  font-size: 12px;
  padding: 4px 8px;
  background: rgba(255, 192, 0, 0.1);
  border-radius: 6px;
  display: inline-block;
  align-self: flex-start;
  font-weight: 700;
}

.smm-source-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.smm-source-card footer a {
  color: #bd77ff;
  font-weight: 850;
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s ease;
}

.smm-source-card footer a:hover {
  color: #d19eff;
}

.smm-source-card footer button {
  height: 36px;
  padding: 0 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.smm-source-card footer button.primary {
  background: var(--yellow);
  color: #1a1a1a;
}

.smm-source-card footer button.primary:hover {
  background: #ffcc33;
  transform: scale(1.03);
}

.smm-source-card footer button.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.smm-source-card footer button.secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.smm-provider-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  background: rgba(14, 11, 15, .72);
  padding: 24px;
}

.smm-provider-modal.is-hidden {
  display: none;
}

.smm-provider-dialog {
  width: min(720px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: #241f24;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .42);
}

.smm-provider-dialog header,
.smm-provider-dialog footer {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.smm-provider-dialog footer {
  border-top: 1px solid rgba(255, 255, 255, .08);
  border-bottom: 0;
}

.smm-provider-dialog header span,
.smm-provider-form label span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.smm-provider-dialog h2 {
  margin: 3px 0 5px;
  font-size: 24px;
}

.smm-provider-dialog p {
  margin: 0;
  color: var(--muted);
}

.smm-provider-dialog .icon-close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #343039;
  color: #efe8ef;
  font-size: 22px;
  line-height: 1;
}

.smm-provider-instructions {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin: 16px 20px 0;
  overflow: hidden;
}

.smm-provider-instructions summary {
  padding: 12px 16px;
  cursor: pointer;
  font-weight: 600;
  color: var(--yellow);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.smm-provider-instructions summary::-webkit-details-marker {
  display: none;
}

.smm-provider-instructions summary::after {
  content: "▼";
  font-size: 10px;
  transition: transform 0.2s;
}

.smm-provider-instructions[open] summary::after {
  transform: rotate(180deg);
}

.smm-provider-instructions-content {
  padding: 0 16px 16px 16px;
  font-size: 13px;
  line-height: 1.5;
  color: #ccc;
}

.smm-provider-instructions-content ol {
  margin: 0 0 12px 0;
  padding-left: 20px;
}

.smm-provider-instructions-content li {
  margin-bottom: 8px;
}

.smm-provider-instructions-content li:last-child {
  margin-bottom: 0;
}

.smm-provider-instructions-content a {
  color: #c988ed;
  text-decoration: none;
  font-weight: 500;
}
.smm-provider-instructions-content a:hover {
  text-decoration: underline;
}

.smm-provider-instructions-content code {
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 4px;
  border-radius: 4px;
  color: #fff;
  font-family: monospace;
}

.smm-provider-status {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.smm-provider-status span {
  color: var(--muted);
}

.smm-provider-status a {
  color: #bd77ff;
  font-weight: 850;
  text-decoration: none;
}

.smm-provider-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 16px 18px;
}

.smm-provider-form label {
  display: grid;
  gap: 7px;
}

.smm-provider-form input {
  width: 100%;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 7px;
  background: #302b31;
  color: #f4eef4;
  padding: 0 12px;
  font: inherit;
  font-weight: 800;
}

.smm-provider-form label em {
  color: var(--green);
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}

.smm-provider-dialog footer button {
  height: 40px;
  border: 0;
  border-radius: 7px;
  background: #343039;
  color: #efe8ef;
  padding: 0 16px;
  font-weight: 950;
}

.smm-ideas-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 16px 16px;
}

.smm-ideas-grid article {
  min-height: 126px;
  display: grid;
  align-content: start;
  gap: 8px;
  background: #2a252c;
  padding: 13px;
  box-shadow: inset 3px 0 0 rgba(255, 189, 85, .7);
}

.smm-ideas-grid b {
  font-size: 18px;
}

.smm-ideas-grid em {
  color: var(--yellow);
  font-style: normal;
  font-weight: 900;
}

/* Shared console visual language: fewer boxes, clearer working surfaces. */
.page-view > .section-title {
  margin: 0 0 14px;
  padding: 18px 22px 20px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  border-radius: 0;
  background: transparent;
}

.page-view > .section-title h1 {
  font-size: 30px;
}

.console-summary article,
.cards-grid article,
.review-list article,
.analytics-grid article,
.pipeline-line,
.drive-card,
.api-connect-top article,
.content-hub-sidebar,
.content-db-sidebar,
.content-db-main,
.resource-panel,
.module-card,
.game-roadmap {
  border: 0;
  border-radius: 0;
  background: #241f24;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}

.content-hub-sidebar,
.content-db-sidebar {
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, .07);
}

.content-db-main,
.resource-panel {
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, .07);
}

.api-connect-top article {
  box-shadow: inset 3px 0 0 rgba(255, 189, 85, .65);
}

.api-project-card {
  border: 0;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .025), transparent 42%),
    #241f24;
  box-shadow: inset 3px 0 0 rgba(255, 189, 85, .7);
}

.api-project-card.online {
  border-color: transparent;
  box-shadow: inset 3px 0 0 rgba(82, 210, 115, .78);
}

.api-project-card.prepared {
  border-color: transparent;
  box-shadow: inset 3px 0 0 rgba(255, 189, 85, .76);
}

.api-project-card.offline {
  border-color: transparent;
  box-shadow: inset 3px 0 0 rgba(255, 101, 101, .72);
}

.api-connect-badge,
.api-key-box,
.api-card-meta span,
.api-module-pill,
.content-db-library,
.hub-file-card,
.library-card,
.music-connected,
.format-formula,
.format-component,
.cover-choice,
.project-modal-card,
.cover-modal-panel {
  border: 0;
  background: #2a252c;
}

.api-connect-badge {
  background: #302a31;
}

.api-module-pill.is-ready {
  border-color: transparent;
  background: #202b24;
  box-shadow: inset 3px 0 0 rgba(82, 210, 115, .58);
}

.library-card.is-selected,
.content-db-library.is-selected {
  border-color: transparent;
  background: #2b241b;
  box-shadow: inset 3px 0 0 rgba(255, 189, 85, .85);
}

.content-db-library.is-drop-target {
  border-color: transparent;
  background: #342814;
  box-shadow: inset 3px 0 0 var(--yellow);
}

.format-component {
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 189, 85, .04), transparent 56%),
    #2a252c;
}

.format-add {
  border-color: rgba(255, 189, 85, .28);
  background: #28232a;
}

.format-component button,
.api-key-box button,
.resource-head button,
.library-create button,
.library-card button,
.library-current button,
.content-db-head button,
.content-db-toolbar button,
.library-settings-head button,
.cover-modal-panel header button,
.cover-modal-search button,
.asset-actions button,
.asset-delete,
.project-modal-card header button {
  border: 0;
}

.resource-head button,
.library-create button,
.library-card button,
.content-db-head button,
.content-db-toolbar button,
.cover-modal-panel header button,
.cover-modal-search button,
.api-key-box button,
.asset-actions button {
  background: #332d35;
}

.library-current button,
.library-settings-head button {
  background: var(--yellow);
  color: #1f1a20;
}

.asset-delete {
  background: #3a2428;
}

/* --- SMM STUDIO TAGS --- */
.smm-tags-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
  max-width: 100%;
}

.smm-add-tag-form {
  display: flex;
  gap: 12px;
}
.smm-add-tag-form input {
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  font-size: 14px;
  width: 250px;
}

.smm-action-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.smm-action-btn:hover {
  background: rgba(255, 204, 0, 0.1);
  border-color: #ffcc00;
  color: #fff;
  transform: translateY(-1px);
}
.smm-action-btn svg {
  width: 16px;
  height: 16px;
  stroke: #fff;
}

.smm-tags-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.smm-tag-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: 0.2s;
}
.smm-tag-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}
.smm-tag-card header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.smm-tag-card header b {
  font-size: 18px;
  color: #fff;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.smm-tag-card .delete-btn {
  color: rgba(255, 255, 255, 0.4);
  font-size: 16px;
  cursor: pointer;
  background: transparent;
  padding: 4px;
}
.smm-tag-card .delete-btn:hover {
  color: #ff4a4a;
}
.smm-tag-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

/* --- PREMIUM ASO --- */
.smm-aso-panel.premium .smm-select-wrapper select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 8px;
  padding: 8px 16px;
  outline: none;
}
.premium-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}
.glass {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
}
.premium-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.input-glow-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.input-glow-wrap input,
.input-glow-wrap textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 12px 16px;
  color: #fff;
  font-size: 14px;
  transition: 0.3s;
}
.input-glow-wrap input:focus,
.input-glow-wrap textarea:focus {
  border-color: rgba(255, 189, 85, 0.5);
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 0 4px rgba(255, 189, 85, 0.1);
  outline: none;
}
.input-glow-wrap .aso-counter {
  position: absolute;
  right: 12px;
  bottom: 12px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  pointer-events: none;
}
.glow-btn {
  background: linear-gradient(135deg, var(--yellow), #ff9900);
  color: #000;
  border: none;
  border-radius: 8px;
  padding: 0 24px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(255, 189, 85, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.glow-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 189, 85, 0.4);
}
.premium-analyzer {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.store-preview {
  padding: 20px;
}
.store-preview-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.store-dots {
  display: flex;
  gap: 4px;
}
.store-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}
.store-dots i:nth-child(1) { background: #ff5f56; }
.store-dots i:nth-child(2) { background: #ffbd2e; }
.store-dots i:nth-child(3) { background: #27c93f; }
.aso-snippet-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.02));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.3);
}
.aso-snippet-icon svg {
  width: 32px;
  height: 32px;
}
.aso-snippet {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}
.aso-snippet-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.aso-snippet-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}
.aso-snippet-dev {
  font-size: 13px;
  color: var(--yellow);
  margin-bottom: 4px;
}
.aso-snippet-rating {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}
.aso-snippet-rating span {
  color: rgba(255, 255, 255, 0.3);
}
.aso-snippet-short {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
  margin-bottom: 20px;
}
.store-install-btn {
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--yellow);
  border: none;
  border-radius: 24px;
  padding: 10px;
  font-weight: 600;
  font-size: 14px;
}
.premium-analyzer .aso-card {
  padding: 20px;
}
.premium-analyzer .aso-card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  margin-bottom: 4px;
}
.premium-analyzer .subtitle {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 16px;
}
.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hype-card {
  border-color: rgba(255, 74, 74, 0.2);
  background: linear-gradient(180deg, rgba(255, 74, 74, 0.05), rgba(255, 255, 255, 0.02));
}
.hype-card h3 {
  color: #ff4a4a;
}

@media (max-width: 1200px) {
  .ya-actions a { display: none; }
  .filter-grid { grid-template-columns: repeat(2, 1fr); }
  .project-row { padding: 0 24px; grid-template-columns: minmax(260px, 1fr) 130px 90px 110px 120px 180px; }
  .cards-grid, .analytics-grid, .review-list, .console-summary { grid-template-columns: repeat(2, 1fr); }
  .smm-radar-top, .smm-ideas-grid, .smm-tag-results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .smm-radar-layout { grid-template-columns: 1fr; }
  .smm-search-controls { grid-template-columns: 1fr; }
  .smm-live-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .smm-global-card { grid-template-columns: 44px minmax(220px, 1fr) 120px; }
  .smm-global-evidence { grid-column: 2 / -1; }
  .game-admin-grid { grid-template-columns: 1fr; }
  .yandex-provider-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .provider-url-field { grid-column: 1 / -1; }
  .project-settings-panel,
  .yandex-draft-panel { grid-template-columns: 220px minmax(0, 1fr); }
  .console-form-body { grid-template-columns: 1fr; }
  .roadmap-track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .roadmap-step:nth-child(2n) { border-right: 0; }
  .roadmap-step:nth-child(2n)::before { display: none; }
  .roadmap-bottom { grid-template-columns: 1fr; }
  .library-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content-db-layout { grid-template-columns: 1fr; }
  .content-hub-sidebar, .content-db-sidebar, .content-db-main { min-height: auto; }
  .content-db-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1380px) {
  .ya-topbar { gap: 20px; }
  .ya-brand { min-width: 160px; }
  .ya-nav { gap: 20px; }
  .ya-actions { gap: 8px; }
  .ya-actions a:not(.drive-link),
  .account-button { display: none; }
}

@media (max-width: 760px) {
  .console-shell { grid-template-rows: auto minmax(0, 1fr) auto; }
  .ya-topbar { flex-wrap: wrap; padding: 12px; }
  .ya-brand { min-width: 0; }
  .ya-nav { flex-wrap: wrap; gap: 14px; }
  .ya-actions { flex-wrap: wrap; margin-left: 0; }
  .filter-grid, .cards-grid, .analytics-grid, .review-list, .console-summary { grid-template-columns: 1fr; }
  .smm-radar-top, .smm-ideas-grid, .smm-tag-results, .smm-provider-form, .smm-live-controls, .smm-analysis-grid, .smm-analysis-columns { grid-template-columns: 1fr; }
  .smm-main-panel { overflow-x: auto; }
  .smm-trend-row { min-width: 980px; }
  .smm-provider-status { grid-template-columns: 1fr; }
  .smm-page-tabs { overflow-x: auto; }
  .smm-global-card { grid-template-columns: 34px minmax(0, 1fr); }
  .smm-global-score, .smm-global-evidence { grid-column: 2 / -1; }
  .api-connect-top, .api-project-grid, .api-module-grid, .api-card-meta { grid-template-columns: 1fr; }
  .yandex-provider-head,
  .yandex-provider-panel footer { grid-template-columns: 1fr; flex-direction: column; align-items: stretch; }
  .yandex-provider-grid { grid-template-columns: 1fr; }
  .games-table { overflow-x: auto; }
  .project-row { min-width: 980px; padding: 0 12px; }
  .game-hero { align-items: flex-start; flex-direction: column; }
  .actual-build-panel { grid-template-columns: 1fr; }
  .project-settings-panel,
  .yandex-draft-panel { grid-template-columns: 1fr; padding: 16px; }
  .console-form-row { grid-template-columns: 1fr; gap: 7px; }
  .console-form-actions { justify-content: stretch; }
  .console-form-actions > * { flex: 1; }
  .roadmap-head { flex-direction: column; }
  .roadmap-track { grid-template-columns: 1fr; }
  .roadmap-step { border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .roadmap-step::before { display: none; }
  .roadmap-step:last-child { border-bottom: 0; }
  .roadmap-history article { grid-template-columns: 1fr; gap: 6px; }
  .library-create, .library-tools, .library-list, .library-current { grid-template-columns: 1fr; }
  .asset-row, .music-row, .content-asset-row { min-width: 1040px; }
  .library-assets, .music-list, .content-db-table { overflow-x: auto; }
  .content-db-toolbar { grid-template-columns: 1fr; }
  .ya-footer { flex-wrap: wrap; padding: 14px; }
}

/* Compact project workspace for desktop: keep the page in one calm working frame. */
@media (min-width: 1201px) {
  .page-view[data-view="game"]:not(.is-hidden) {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(390px, .92fr);
    grid-auto-rows: max-content;
    align-content: start;
    gap: 10px 12px;
    height: 100%;
    min-height: 0;
    overflow-y: auto;
    scrollbar-gutter: stable;
    overscroll-behavior: contain;
  }

  .page-view[data-view="game"] > .game-toolbar,
  .page-view[data-view="game"] > .game-hero,
  .page-view[data-view="game"] > .actual-build-panel,
  .page-view[data-view="game"] > .game-admin-grid,
  .page-view[data-view="game"] > .game-roadmap,
  .page-view[data-view="game"] > [data-game-policy-docs] {
    grid-column: 1 / -1;
  }

  .page-view[data-view="game"] > .game-toolbar {
    margin: 0;
    min-height: 30px;
  }

  .page-view[data-view="game"] > .game-hero {
    min-height: 64px;
    margin: 0;
    padding: 8px 4px 10px;
  }

  .page-view[data-view="game"] > .game-hero h1 {
    margin-bottom: 3px;
    font-size: 25px;
  }

  .page-view[data-view="game"] > .actual-build-panel {
    min-height: 58px;
    margin: 0;
    padding: 10px 14px;
  }

  .page-view[data-view="game"] > .project-settings-panel,
  .page-view[data-view="game"] > .yandex-draft-panel {
    min-width: 0;
    margin: 0;
    padding: 13px 15px;
    grid-template-columns: minmax(140px, .38fr) minmax(0, 1fr);
    gap: 12px;
  }

  .page-view[data-view="game"] > .project-settings-panel .project-settings-info,
  .page-view[data-view="game"] > .yandex-draft-panel .yandex-draft-info {
    position: sticky;
    top: 0;
    align-self: start;
  }

  .page-view[data-view="game"] > .project-settings-panel .project-settings-info b,
  .page-view[data-view="game"] > .yandex-draft-panel .yandex-draft-info b {
    font-size: 16px;
    line-height: 1.15;
  }

  .page-view[data-view="game"] > .project-settings-panel .project-settings-info p,
  .page-view[data-view="game"] > .yandex-draft-panel .yandex-draft-info p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    font-size: 11px;
    line-height: 1.25;
  }

  .page-view[data-view="game"] > .project-settings-panel .console-form-body,
  .page-view[data-view="game"] > .yandex-draft-panel .console-form-body {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .page-view[data-view="game"] > .project-settings-panel .console-form-row,
  .page-view[data-view="game"] > .yandex-draft-panel .console-form-row {
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 8px;
  }

  .page-view[data-view="game"] > .project-settings-panel .console-form-row span,
  .page-view[data-view="game"] > .yandex-draft-panel .console-form-row span {
    font-size: 11px;
  }

  .page-view[data-view="game"] > .project-settings-panel input,
  .page-view[data-view="game"] > .project-settings-panel select,
  .page-view[data-view="game"] > .yandex-draft-panel input,
  .page-view[data-view="game"] > .yandex-draft-panel select {
    min-height: 34px;
    height: 34px;
    padding: 0 9px;
    font-size: 12px;
  }

  .page-view[data-view="game"] > .project-settings-panel .connection-key-row code {
    min-height: 34px;
    font-size: 11px;
  }

  .page-view[data-view="game"] > .project-settings-panel .console-form-actions,
  .page-view[data-view="game"] > .yandex-draft-panel .console-form-actions {
    gap: 7px;
  }

  .page-view[data-view="game"] > .project-settings-panel button,
  .page-view[data-view="game"] > .yandex-draft-panel a,
  .page-view[data-view="game"] > .yandex-draft-panel button {
    height: 32px;
    padding: 0 10px;
    font-size: 11px;
  }

  .page-view[data-view="game"] > .game-admin-grid {
    grid-template-columns: minmax(250px, .62fr) minmax(0, 1.38fr);
    height: 238px;
    min-height: 0;
    gap: 10px;
  }

  .page-view[data-view="game"] > .game-admin-grid .api-modules {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: 0;
    overflow-y: auto;
    align-content: start;
    scrollbar-gutter: stable;
  }

  .page-view[data-view="game"] > .game-admin-grid .module-card {
    min-height: 0;
    padding: 10px;
  }

  .page-view[data-view="game"] > .game-admin-grid .module-card b {
    margin: 4px 0;
    font-size: 13px;
  }

  .page-view[data-view="game"] > .game-admin-grid .module-card p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    margin-bottom: 6px;
    font-size: 11px;
    line-height: 1.25;
  }

  .page-view[data-view="game"] > .game-admin-grid .resource-panel {
    min-height: 0;
    height: 238px;
    padding: 12px;
    overflow: hidden;
  }

  .page-view[data-view="game"] > .game-admin-grid .resource-head {
    margin-bottom: 8px;
  }

  .page-view[data-view="game"] > .game-admin-grid .resource-head h2 {
    font-size: 17px;
  }

  .page-view[data-view="game"] > .game-admin-grid .library-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-view[data-view="game"] > .game-admin-grid .library-card {
    min-height: 84px;
    padding: 8px;
    gap: 4px;
  }

  .page-view[data-view="game"] > .game-admin-grid .library-card b {
    font-size: 12px;
  }

  .page-view[data-view="game"] > .game-admin-grid .library-card p,
  .page-view[data-view="game"] > .game-admin-grid .library-card footer strong {
    font-size: 10px;
  }

  .page-view[data-view="game"] > .game-admin-grid .library-tools,
  .page-view[data-view="game"] > .game-admin-grid .drop-zone,
  .page-view[data-view="game"] > .game-admin-grid .library-assets {
    display: none;
  }

  .page-view[data-view="game"] > .game-roadmap {
    max-height: 168px;
    margin: 0;
    overflow: auto;
    scrollbar-gutter: stable;
  }

  .page-view[data-view="game"] > .game-roadmap .roadmap-head {
    padding: 10px 14px;
  }

  .page-view[data-view="game"] > .game-roadmap .roadmap-head h2 {
    font-size: 18px;
  }

  .page-view[data-view="game"] > .game-roadmap .roadmap-track {
    grid-template-columns: repeat(8, minmax(130px, 1fr));
    padding: 12px;
  }

  .page-view[data-view="game"] > .game-roadmap .roadmap-step {
    min-height: 100px;
    padding: 0 8px;
  }

  .page-view[data-view="game"] > .game-roadmap .roadmap-step b {
    font-size: 12px;
  }

  .page-view[data-view="game"] > .game-roadmap .roadmap-step p,
  .page-view[data-view="game"] > .game-roadmap .roadmap-step em {
    font-size: 10px;
    line-height: 1.2;
  }

  .page-view[data-view="game"] > .game-roadmap .roadmap-bottom {
    padding: 0 12px 12px;
  }

  .page-view[data-view="game"] > [data-game-policy-docs] .game-policy-docs {
    margin: 0;
    padding: 10px 14px;
  }

  .page-view[data-view="game"] > [data-game-policy-docs] .game-policy-docs h3 {
    font-size: 15px;
  }

  .page-view[data-view="game"] > [data-game-policy-docs] .game-policy-docs p {
    font-size: 11px;
  }
}

/* Project detail workspace v2 */
.project-config-grid,
.publication-drafts {
  display: grid;
  min-width: 0;
  gap: 8px;
}

.game-workspace-tabs {
  min-height: 34px;
  display: flex;
  align-items: end;
  gap: 4px;
  border-bottom: 1px solid var(--line-soft);
  padding-inline: 4px;
}

.game-workspace-tabs button {
  height: 33px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  padding: 0 14px;
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.game-workspace-tabs button:hover {
  color: var(--text);
  background: rgba(255, 255, 255, .035);
}

.game-workspace-tabs button.active {
  border-bottom-color: var(--yellow);
  color: var(--yellow);
}

.game-workspace-panels,
.game-workspace-panel {
  min-width: 0;
  min-height: 0;
}

.game-workspace-panel[hidden] {
  display: none !important;
}

.api-modules.is-empty {
  display: grid;
  place-items: center;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: #211d22;
}

.module-empty-state {
  max-width: 240px;
  padding: 20px;
  color: var(--muted);
  text-align: center;
}

.module-empty-state span {
  display: inline-grid;
  width: 32px;
  height: 32px;
  margin-bottom: 8px;
  place-items: center;
  border-radius: 6px;
  background: rgba(255, 189, 85, .12);
  color: var(--yellow);
  font-size: 10px;
  font-weight: 900;
}

.module-empty-state b {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-size: 12px;
}

.module-empty-state p {
  margin: 0;
  font-size: 10px;
  line-height: 1.35;
}

@media (min-width: 1201px) {
  .page-view[data-view="game"]:not(.is-hidden) {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 30px 54px 50px 190px 34px minmax(0, 1fr);
    gap: 6px;
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  .page-view[data-view="game"] > * {
    grid-column: 1;
    min-width: 0;
  }

  .page-view[data-view="game"] > .game-toolbar {
    min-height: 30px;
    margin: 0;
  }

  .page-view[data-view="game"] > .game-toolbar button {
    height: 28px;
    padding-inline: 10px;
    font-size: 11px;
  }

  .page-view[data-view="game"] > .game-toolbar span {
    font-size: 11px;
  }

  .page-view[data-view="game"] > .game-hero {
    min-height: 0;
    margin: 0;
    padding: 5px 4px 7px;
  }

  .page-view[data-view="game"] > .game-hero h1 {
    margin: 0 0 2px;
    font-size: 22px;
    line-height: 1.1;
  }

  .page-view[data-view="game"] > .game-hero p {
    overflow: hidden;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .page-view[data-view="game"] > .actual-build-panel {
    min-height: 0;
    margin: 0;
    padding: 7px 12px;
  }

  .page-view[data-view="game"] > .actual-build-panel span {
    font-size: 9px;
  }

  .page-view[data-view="game"] > .actual-build-panel b {
    margin: 1px 0;
    font-size: 14px;
  }

  .page-view[data-view="game"] > .actual-build-panel p {
    font-size: 10px;
  }

  .page-view[data-view="game"] > .project-config-grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(500px, .88fr);
    height: 190px;
    overflow: visible;
  }

  .page-view[data-view="game"] .publication-drafts {
    grid-template-rows: repeat(2, minmax(0, 1fr));
    height: 190px;
  }

  .page-view[data-view="game"] .publication-drafts > .yandex-draft-panel {
    height: auto;
  }

  .page-view[data-view="game"] .project-settings-panel,
  .page-view[data-view="game"] .yandex-draft-panel {
    min-width: 0;
    min-height: 0;
    height: 100%;
    margin: 0;
    border-color: var(--line-soft);
    border-radius: 6px;
    background: #241f24;
    box-shadow: none;
  }

  .page-view[data-view="game"] .project-settings-panel {
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 10px;
    padding: 10px 12px;
  }

  .page-view[data-view="game"] .project-settings-info span,
  .page-view[data-view="game"] .yandex-draft-info span,
  .page-view[data-view="game"] .google-draft-info span {
    margin-bottom: 3px;
    font-size: 9px;
  }

  .page-view[data-view="game"] .project-settings-info b {
    margin-bottom: 4px;
    font-size: 15px;
  }

  .page-view[data-view="game"] .project-settings-info p {
    font-size: 10px;
    line-height: 1.25;
  }

  .page-view[data-view="game"] .project-settings-panel .console-form-body {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: minmax(0, auto);
    align-content: start;
    gap: 6px 8px;
  }

  .page-view[data-view="game"] .project-settings-panel .console-form-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 3px;
  }

  .page-view[data-view="game"] .project-settings-panel .connection-key-row,
  .page-view[data-view="game"] .project-settings-panel .project-field-title {
    grid-column: span 2;
  }

  .page-view[data-view="game"] .project-settings-panel .project-field-stage,
  .page-view[data-view="game"] .project-settings-panel .project-field-platform,
  .page-view[data-view="game"] .project-settings-panel .project-field-roadmap,
  .page-view[data-view="game"] .project-settings-panel .project-field-next {
    grid-column: span 1;
  }

  .page-view[data-view="game"] .project-settings-panel .console-form-row span,
  .page-view[data-view="game"] .yandex-draft-panel .console-form-row span {
    color: var(--muted);
    font-size: 9px;
    line-height: 1.1;
  }

  .page-view[data-view="game"] .project-settings-panel input,
  .page-view[data-view="game"] .project-settings-panel select,
  .page-view[data-view="game"] .project-settings-panel .connection-key-row code {
    width: 100%;
    min-height: 30px;
    height: 30px;
    padding: 0 8px;
    border-radius: 5px;
    font-size: 10px;
  }

  .page-view[data-view="game"] .project-settings-panel .console-form-actions {
    grid-column: 1 / -1;
    align-self: end;
    gap: 6px;
  }

  .page-view[data-view="game"] .project-settings-panel button {
    height: 28px;
    padding-inline: 10px;
    border-radius: 5px;
    font-size: 10px;
  }

  .page-view[data-view="game"] .yandex-draft-panel {
    grid-template-columns: 142px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
  }

  .page-view[data-view="game"] .yandex-draft-info b,
  .page-view[data-view="game"] .google-draft-info b {
    margin: 0 0 2px;
    overflow: hidden;
    font-size: 11px;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .page-view[data-view="game"] .yandex-draft-info p,
  .page-view[data-view="game"] .google-draft-info p {
    display: none;
  }

  .page-view[data-view="game"] .yandex-draft-panel .console-form-body {
    grid-template-columns: minmax(0, 1fr) 112px auto;
    align-items: end;
    gap: 6px;
  }

  .page-view[data-view="game"] .yandex-draft-panel .console-form-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
  }

  .page-view[data-view="game"] .yandex-draft-panel .draft-link-row,
  .page-view[data-view="game"] .yandex-draft-panel .draft-status-row,
  .page-view[data-view="game"] .yandex-draft-panel .console-form-actions {
    grid-column: auto;
  }

  .page-view[data-view="game"] .yandex-draft-panel input,
  .page-view[data-view="game"] .yandex-draft-panel select {
    width: 100%;
    min-height: 30px;
    height: 30px;
    padding: 0 8px;
    border-radius: 5px;
    font-size: 10px;
  }

  .page-view[data-view="game"] .yandex-draft-panel .console-form-actions {
    align-self: end;
    gap: 4px;
  }

  .page-view[data-view="game"] .yandex-draft-panel a,
  .page-view[data-view="game"] .yandex-draft-panel button {
    height: 30px;
    padding-inline: 8px;
    border-radius: 5px;
    font-size: 9px;
  }

  .page-view[data-view="game"] > .game-workspace-tabs {
    min-height: 34px;
  }

  .page-view[data-view="game"] > .game-workspace-panels {
    display: grid;
    grid-template-rows: minmax(0, 1fr);
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  .page-view[data-view="game"] .game-workspace-panel {
    height: auto;
    min-height: 0;
    max-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-gutter: stable;
    scrollbar-color: #625a63 transparent;
    overscroll-behavior-y: auto;
    touch-action: pan-y;
  }

  .page-view[data-view="game"] .game-workspace-panel::-webkit-scrollbar {
    width: 8px;
  }

  .page-view[data-view="game"] .game-workspace-panel::-webkit-scrollbar-thumb {
    border: 2px solid transparent;
    border-radius: 999px;
    background: #625a63;
    background-clip: padding-box;
  }

  .page-view[data-view="game"] .game-admin-grid {
    grid-template-columns: minmax(270px, .52fr) minmax(0, 1.48fr);
    height: auto;
    min-height: 100%;
    align-items: start;
    gap: 8px;
  }

  .page-view[data-view="game"] .api-modules {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
    min-height: 0;
    overflow: visible;
  }

  .page-view[data-view="game"] .module-card {
    min-height: 82px;
    padding: 9px;
  }

  .page-view[data-view="game"] .module-card span {
    font-size: 9px;
  }

  .page-view[data-view="game"] .module-card b {
    margin: 3px 0;
    font-size: 12px;
  }

  .page-view[data-view="game"] .module-card p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    margin: 0 0 4px;
    font-size: 9px;
    line-height: 1.2;
  }

  .page-view[data-view="game"] .module-card i {
    font-size: 9px;
  }

  .page-view[data-view="game"] .resource-panel {
    min-height: 0;
    height: auto;
    padding: 10px;
    overflow: visible;
  }

  .page-view[data-view="game"] .resource-head {
    margin-bottom: 8px;
  }

  .page-view[data-view="game"] .resource-head h2 {
    font-size: 16px;
  }

  .page-view[data-view="game"] .library-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-view[data-view="game"] .library-card {
    min-height: 78px;
    padding: 8px;
    gap: 3px;
  }

  .page-view[data-view="game"] .library-card b {
    font-size: 11px;
  }

  .page-view[data-view="game"] .library-card p,
  .page-view[data-view="game"] .library-card footer {
    font-size: 9px;
  }

  .page-view[data-view="game"] .game-roadmap {
    min-height: 100%;
    margin: 0;
    overflow: visible;
  }

  .page-view[data-view="game"] [data-game-workspace-panel="documents"] .game-policy-docs {
    margin: 0;
  }
}

@media (max-width: 1200px) {
  .project-config-grid,
  .publication-drafts {
    grid-template-columns: 1fr;
  }

  .game-workspace-tabs {
    margin-top: 12px;
  }
}

/* --- SMM PLANET CANVAS --- */
.smm-planet-container {
  position: relative;
  width: 100%;
  height: 750px;
  background: transparent;
  margin-top: 16px;
  cursor: none !important;
}

#rocket-cursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  font-size: 24px;
  z-index: 99999;
  opacity: 0;
  transition: opacity 0.2s ease; 
  margin-top: -12px;
  margin-left: -12px;
}

.smm-planet-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.smm-planet-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.planet-tag-node {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.planet-tag-node .tag-name {
  display: inline-block;
  background: rgba(25, 20, 25, 0.9); /* Opaque background instead of expensive blur */
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 3px 6px;
  border-radius: 8px; /* Simpler geometry */
  color: #fff;
  font-weight: 600;
  font-size: 9px;
  white-space: nowrap;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: none !important;
  /* Optimization: Removed backdrop-filter and box-shadow */
}

.planet-tag-node.expanded {
  z-index: 99999 !important;
}

.planet-tag-node.expanded .tag-name {
  font-size: 13px;
  padding: 6px 12px;
  background: rgba(40, 30, 40, 0.95);
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.planet-tag-node.good .tag-name {
  background: rgba(20, 50, 25, 0.9);
  border-color: rgba(74, 222, 128, 0.4);
  color: #4ade80;
}

.planet-tag-node.fire .tag-name {
  background: rgba(60, 20, 20, 0.9);
  border-color: rgba(255, 74, 74, 0.6);
  color: #ff4a4a;
  /* Optimization: Removed continuous fire-pulse animation */
}

.planet-tag-node.fire .tag-name::before {
  content: '🔥 ';
}

.planet-tag-node.bad .tag-name {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.3);
  opacity: 0.5;
  filter: grayscale(100%);
}

.planet-tag-node.world .tag-name {
  background: rgba(20, 40, 60, 0.5) !important;
  border: 1px dashed rgba(56, 189, 248, 0.6) !important;
  color: rgba(56, 189, 248, 0.8) !important;
  backdrop-filter: blur(2px);
}

@keyframes fire-pulse {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); box-shadow: 0 0 20px rgba(255, 74, 74, 0.6); }
}

.planet-tag-node .tag-actions {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(20, 15, 20, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 8px;
  display: flex;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
  z-index: 10;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  align-items: center;
}

.planet-tag-node.expanded .tag-actions {
  opacity: 1;
  transform: translateX(-50%) translateY(5px);
  pointer-events: auto;
}

.planet-tag-node.expanded .tag-name {
  transform: scale(1.1);
}
.planet-tag-node.good.expanded .tag-name {
  box-shadow: 0 0 20px rgba(74, 222, 128, 0.4);
}
.planet-tag-node.fire.expanded .tag-name {
  animation: fire-pulse 1s infinite alternate;
  transform: scale(1.2);
}

/* --- Low Perf Mode --- */
body.smm-low-perf .smm-planet-container {
  box-shadow: none;
}
body.smm-low-perf .planet-tag-node.expanded .tag-name {
  box-shadow: none !important;
  animation: none !important;
}

.planet-tag-node .tag-rating {
  font-size: 11px;
  color: #ffbd55;
  font-weight: 700;
  white-space: nowrap;
}

.planet-tag-node .tag-actions button {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  padding: 4px 8px;
  font-size: 11px;
  border-radius: 4px;
  cursor: pointer;
  transition: 0.2s;
}

.planet-tag-node .tag-actions button:hover {
  background: rgba(255, 255, 255, 0.2);
}

.planet-tag-node .tag-actions button.del {
  color: #ff4a4a;
  background: transparent;
  padding: 4px;
}
.planet-tag-node .tag-actions button.del:hover {
  background: rgba(255, 74, 74, 0.4);
  color: #fff;
}

.planet-tag-node .tag-actions button.save {
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.4);
}
.planet-tag-node .tag-actions button.save:hover {
  background: rgba(56, 189, 248, 0.4);
  color: #fff;
}

/* --- HYPE TRAIN (Хайповоз) --- */
.hype-train-wrapper {
  margin-top: 20px;
  background: rgba(20, 15, 20, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 16px;
  overflow-x: auto;
  box-shadow: inset 0 2px 10px rgba(0,0,0,0.3);
}

.hype-train-track {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 8px; /* for scrollbar */
}

.train-locomotive {
  font-size: 20px;
  font-weight: 800;
  color: var(--yellow);
  padding: 12px 24px;
  background: rgba(255, 189, 85, 0.1);
  border: 2px solid rgba(255, 189, 85, 0.5);
  border-radius: 12px 24px 24px 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 0 20px rgba(255, 189, 85, 0.2);
  white-space: nowrap;
}

.train-wagon {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  min-width: 120px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

/* Track coupling (сцепка) */
.train-wagon::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}
.train-locomotive + .train-wagon::before {
  display: none;
}

.wagon-tag {
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  white-space: nowrap;
}

.wagon-rating {
  font-size: 12px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
}

.wagon-stats {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.wagon-decision {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  max-width: 160px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.train-wagon.fire {
  background: rgba(255, 74, 74, 0.1);
  border-color: rgba(255, 74, 74, 0.4);
  box-shadow: 0 0 15px rgba(255, 74, 74, 0.2);
}
.train-wagon.fire .wagon-tag {
  color: #ff4a4a;
}
.train-wagon.fire .wagon-tag::before {
  content: '🔥 ';
}

.train-wagon.good {
  background: rgba(74, 222, 128, 0.05);
  border-color: rgba(74, 222, 128, 0.3);
}
.train-wagon.good .wagon-tag {
  color: #4ade80;
}

.train-wagon.bad {
  opacity: 0.6;
  filter: grayscale(80%);
}
.train-wagon.bad .wagon-tag {
  color: #999;
}

.wagon-uncouple {
  margin-top: 8px;
  background: rgba(255, 74, 74, 0.2);
  color: #ff4a4a;
  border: 1px solid rgba(255, 74, 74, 0.4);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.wagon-uncouple:hover {
  background: rgba(255, 74, 74, 0.8);
  color: #fff;
}

/* Analytics Premium Redesign */
.analytics-grid article.analytics-glass-card,
.analytics-glass-card {
  background: rgba(30, 30, 35, 0.4) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}
.analytics-glass-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
}
.analytics-glass-card::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
  transform: skewX(-20deg);
  transition: 0.5s;
}
.analytics-glass-card:hover::before {
  left: 200%;
}

.analytics-grid article.analytics-glass-card b,
.analytics-glass-card b {
  font-size: 32px !important;
  font-weight: 800;
  margin: 0 0 4px 0;
  background: linear-gradient(135deg, #fff 0%, #aaa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  line-height: 1.2;
}

.analytics-grid article.analytics-glass-card span,
.analytics-glass-card span {
  font-size: 13px !important;
  color: var(--muted) !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.trend-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.trend-badge.up {
  background: rgba(76, 175, 80, 0.15);
  color: #4CAF50;
  border: 1px solid rgba(76, 175, 80, 0.3);
}
.trend-badge.down {
  background: rgba(244, 67, 54, 0.15);
  color: #F44336;
  border: 1px solid rgba(244, 67, 54, 0.3);
}
.trend-badge.neutral {
  background: rgba(255, 255, 255, 0.1);
  color: #aaa;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent);
  box-shadow: 0 0 0 rgba(var(--accent-rgb, 126, 87, 194), 0.4);
  animation: pulse-ring 2s infinite;
  margin-right: 8px;
}
@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(126, 87, 194, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(126, 87, 194, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(126, 87, 194, 0); }
}

.timeline-bar-wrapper {
  flex: 1;
  min-width: 8px;
  height: 100%;
  display: flex;
  align-items: flex-end;
  position: relative;
  cursor: pointer;
  padding: 0 2px;
}
.timeline-bar-wrapper:hover .timeline-bar {
  background: linear-gradient(180deg, #b084f4 0%, #7e57c2 100%);
  box-shadow: 0 0 10px rgba(176, 132, 244, 0.5);
}
.timeline-bar {
  width: 100%;
  background: linear-gradient(180deg, var(--accent) 0%, rgba(126, 87, 194, 0.3) 100%);
  border-radius: 4px 4px 0 0;
  transition: all 0.3s ease;
  min-height: 4px;
}
.timeline-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(20, 20, 25, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  color: #fff;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  z-index: 10;
}
.timeline-bar-wrapper:hover .timeline-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.json-payload {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  padding: 8px;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 11px;
  color: #c9d1d9;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.json-key { color: #7ee787; }
.json-string { color: #a5d6ff; }
.json-number { color: #79c0ff; }
.json-boolean { color: #ff7b72; }

.data-table tr {
  transition: background-color 0.2s;
}
.data-table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.03);
}

/* Policy Editor Styles */
.policy-editor-panel {
  min-height: 100%;
  padding: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .025), rgba(0, 0, 0, .08)), var(--bg-dark);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.policy-editor-header {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 12px;
}
.policy-editor-header input {
  flex: 1;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
}
.policy-editor-header button {
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}
.policy-editor-header button:hover {
  background: rgba(255, 255, 255, 0.15);
}

.generator-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.generator-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.generator-group label {
  font-size: 13px;
  color: #aaa;
  font-weight: 600;
}
.generator-group input {
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
}

.generator-toggles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
  background: rgba(255, 255, 255, 0.02);
  padding: 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.generator-toggles label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #ddd;
  cursor: pointer;
}
.generator-toggles input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--yellow);
  cursor: pointer;
}

.generator-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.generator-actions button {
  flex: 1;
  padding: 12px;
  background: #332817;
  color: var(--yellow);
  border: 1px solid rgba(255, 205, 43, .32);
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
}
.generator-actions button:hover {
  background: rgba(255, 205, 43, .16);
}

.policy-textarea {
  flex: 1;
  min-height: 460px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ddd;
  border-radius: 8px;
  font-family: monospace;
  font-size: 13px;
  line-height: 1.5;
  resize: vertical;
  margin-top: 0;
}

.policy-preview-link {
  margin-top: 10px;
  padding: 12px;
  background: rgba(0, 255, 100, 0.05);
  border: 1px solid rgba(0, 255, 100, 0.2);
  color: #fff;
  border-radius: 6px;
  font-size: 14px;
}
.policy-preview-link a {
  color: #52d273;
  text-decoration: none;
  font-weight: 600;
}
.policy-preview-link a:hover {
  text-decoration: underline;
}

@media (max-width: 1200px) {
  .game-policy-docs {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .game-policy-links,
  .game-policy-actions {
    flex-wrap: wrap;
  }

  .generator-row,
  .generator-toggles {
    grid-template-columns: 1fr;
  }
}

/* Overview dashboard */
.overview-view {
  min-height: calc(100dvh - 102px);
  margin: -14px -12px -8px;
  background: var(--bg);
}

.overview-layout {
  min-height: inherit;
  display: grid;
  grid-template-columns: 226px minmax(0, 1fr);
}

.overview-sidebar {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px 16px;
  border-right: 1px solid var(--line-soft);
  background: #211b20;
}

.overview-sidebar-title {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-inline: 10px;
  border-left: 2px solid var(--yellow);
  color: var(--yellow);
  font-size: 13px;
}

.overview-shield,
.overview-heading-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: var(--yellow);
  font-size: 24px;
  font-weight: 900;
}

.overview-segments {
  display: grid;
  gap: 5px;
}

.overview-segment {
  min-width: 0;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 12px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  text-align: left;
  cursor: pointer;
  transition: background .2s ease-in-out, color .2s ease-in-out, transform .2s ease-in-out;
}

.overview-segment span {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
}

.overview-segment i {
  width: 16px;
  color: var(--muted);
  font-style: normal;
  text-align: center;
}

.overview-segment b {
  color: #d7dde5;
  font-size: 12px;
}

.overview-segment:hover,
.overview-segment.active {
  background: var(--panel-2);
  color: #f5f7fa;
}

.overview-segment:hover { transform: translateX(2px); }

.overview-segment.active b,
.overview-segment.active i { color: var(--yellow); }

.overview-segment.attention:not(.active) b,
.overview-segment.attention:not(.active) i { color: #f48b8b; }

.overview-segment.published:not(.active) b,
.overview-segment.published:not(.active) i { color: var(--green); }

.overview-sidebar-stats {
  margin-top: 8px;
  padding: 16px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, .035);
}

.overview-sidebar-stats h2 {
  margin: 0 0 14px;
  font-size: 13px;
}

.overview-sidebar-stats dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.overview-sidebar-stats dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 11px;
}

.overview-sidebar-stats dd {
  margin: 0;
  color: var(--text);
  font-weight: 850;
}

.overview-sidebar-stats p {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 0;
  color: var(--muted-2);
  font-size: 10px;
  line-height: 1.5;
  text-align: center;
}

.overview-content {
  min-width: 0;
  padding: 20px 24px 24px;
  background: var(--bg);
}

.overview-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.overview-heading h1 {
  margin: 0 0 3px;
  font-size: 22px;
  line-height: 1.1;
}

.overview-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.overview-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.overview-metric {
  --metric-rgb: 181, 174, 182;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-width: 0;
  min-height: 100px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, .035);
  box-shadow: none;
  transition: background-color .24s ease-in-out, transform .24s ease-in-out;
}

.overview-metric::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -54px;
  left: -38px;
  width: 126px;
  height: 126px;
  border-radius: 50%;
  background: rgb(var(--metric-rgb));
  filter: blur(34px);
  opacity: .055;
  pointer-events: none;
}

.overview-metric:hover {
  background: rgba(255, 255, 255, .052);
  transform: translateY(-1px);
}

.metric-icon {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(var(--metric-rgb), .22), rgba(var(--metric-rgb), .075));
  color: rgb(var(--metric-rgb));
  box-shadow: 0 10px 26px rgba(var(--metric-rgb), .07), inset 0 1px 0 rgba(255, 255, 255, .07);
  transition: transform .24s ease-in-out, box-shadow .24s ease-in-out;
}

.metric-icon svg {
  width: 24px;
  height: 24px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.overview-metric:hover .metric-icon {
  box-shadow: 0 12px 30px rgba(var(--metric-rgb), .13), inset 0 1px 0 rgba(255, 255, 255, .09);
  transform: translateY(-2px) scale(1.025);
}

.overview-metric div { min-width: 0; }
.overview-metric small,
.overview-metric em { display: block; }
.overview-metric small { color: var(--text); font-size: 11px; }
.overview-metric strong { display: block; margin: 3px 0; font-size: 27px; line-height: 1; }
.overview-metric em { overflow: hidden; color: var(--muted); font-size: 10px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }

.metric-total { --metric-rgb: 187, 102, 255; }
.metric-connected { --metric-rgb: 82, 210, 115; }
.metric-moderation { --metric-rgb: 255, 189, 85; }
.metric-ready { --metric-rgb: 82, 210, 115; }
.metric-outdated { --metric-rgb: 255, 101, 101; }

@media (prefers-reduced-motion: reduce) {
  .overview-metric,
  .metric-icon {
    transition: none;
  }
}

.overview-workspace {
  min-width: 0;
  overflow: hidden;
  padding: 16px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, .025);
}

.overview-view .filter-grid {
  grid-template-columns: minmax(240px, 1.35fr) repeat(3, minmax(132px, .65fr)) minmax(180px, .9fr) minmax(184px, .9fr) max-content;
  gap: 10px;
  margin-bottom: 14px;
}

.overview-view .filter-grid label > span {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}

.overview-view input,
.overview-view select {
  height: 40px;
  border: 0;
  border-radius: 7px;
  background: var(--field);
  font-size: 12px;
}

.overview-view input:focus-visible,
.overview-view select:focus-visible,
.overview-view button:focus-visible,
.overview-view [role="link"]:focus-visible {
  outline: 2px solid rgba(255, 205, 105, .9);
  outline-offset: 2px;
  box-shadow: none;
}

.overview-view .add-project-button {
  height: 40px;
  gap: 7px;
  border: 0;
  background: var(--yellow);
  color: #151006;
  box-shadow: 0 8px 18px rgba(255, 189, 85, .14);
  font-size: 12px;
  font-weight: 900;
}

.overview-view .add-project-button span { font-size: 18px; line-height: 1; }

.overview-view .games-table {
  --overview-table-min: 1100px;
  display: grid;
  grid-template-columns: minmax(var(--overview-table-min), 1fr);
  gap: 0;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-gutter: stable;
  border: 0;
}

.overview-view .project-row {
  min-height: 50px;
  grid-template-columns: minmax(230px, 1.2fr) 130px 112px minmax(160px, .78fr) 125px minmax(245px, 1.08fr);
  gap: 12px;
  margin-top: 0;
  padding: 0 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: inset 0 -1px rgba(255, 255, 255, .055);
}

.overview-view .project-row.head {
  min-height: 38px;
  margin: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #ede7ed;
  font-size: 11px;
}

.project-group {
  --project-group-accent: #7f8b9b;
  display: grid;
  gap: 0;
  overflow: hidden;
  margin-top: 10px;
  border-radius: 9px;
  background: rgba(255, 255, 255, .018);
}

.project-group > header {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 14px;
  border: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, .035);
  box-shadow: inset 3px 0 var(--project-group-accent);
}

.project-group > header span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.project-group > header strong {
  color: #f2edf2;
  font-size: 12px;
  font-weight: 850;
}

.project-group > header em {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-group > header b {
  min-width: 25px;
  height: 25px;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .055);
  color: #d6d0d6;
  font-size: 11px;
}

.project-group .project-row {
  border-radius: 0;
}

.project-group-attention { --project-group-accent: var(--red); }
.project-group-attention > header b { color: #f48b8b; }
.project-group-active { --project-group-accent: var(--yellow); }
.project-group-active > header b { color: var(--yellow); }
.project-group-published { --project-group-accent: var(--green); }
.project-group-published > header b { color: var(--green); }
.project-group-backlog { --project-group-accent: #7f8b9b; }

.publication-cell {
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.publication-platform-icons {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.publication-platform-icon {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 6px;
  color: #b4afb5;
  background: rgba(255, 255, 255, .025);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.publication-platform-icon svg {
  width: 11px;
  height: 11px;
  fill: currentColor;
}

.publication-platform-icon:hover { transform: translateY(-1px); }
.publication-platform-icon.is-published { color: var(--green); border-color: rgba(67, 210, 135, .55); background: rgba(67, 210, 135, .11); }
.publication-platform-icon.is-rejected { color: #f48b8b; border-color: rgba(244, 139, 139, .6); background: rgba(244, 92, 92, .11); }
.publication-platform-icon.is-moderation { color: #ba9aff; border-color: rgba(186, 154, 255, .58); background: rgba(154, 113, 255, .12); }
.publication-platform-icon.is-preparing_release { color: #8ab4f8; border-color: rgba(138, 180, 248, .55); background: rgba(66, 133, 244, .12); }
.publication-platform-icon.is-uploaded,
.publication-platform-icon.is-waiting_publication { color: var(--yellow); border-color: rgba(255, 189, 85, .55); background: rgba(255, 189, 85, .1); }

.overview-view .project-link:hover {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, .045);
}

.overview-view .game-cell { gap: 10px; }
.overview-view .game-cover,
.overview-view .game-cover-wrapper { width: 36px; height: 36px; border-radius: 7px; }
.overview-view .game-info { min-width: 0; display: grid; gap: 2px; }
.overview-view .game-platforms { min-height: 11px; display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 9px; }
.overview-view .platform-badge { display: inline-flex; align-items: center; color: #ded5de; font-size: 9px; line-height: 1; }
.overview-view .platform-badge.is-icon svg { width: 12px; height: 12px; fill: currentColor; }
.overview-view .platform-badge.pg-badge { color: #b7a6ff; }
.overview-view .draft-badge { color: var(--muted); }
.overview-view .game-title-wrapper { min-width: 0; }
.overview-view .game-cell strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.overview-view .project-date { color: #ddd5dd; font-size: 11px; white-space: nowrap; }

.table-state {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #ddd5dd;
  font-size: 11px;
}

.table-state i {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

.state-success i { color: var(--green); }
.state-warning i { color: var(--yellow); }
.state-info i { color: var(--blue); }
.state-purple i { color: var(--purple); }
.state-danger i { color: var(--red); }

.overview-view .pill {
  width: fit-content;
  min-width: 100px;
  height: 28px;
  border-radius: 6px;
  padding-inline: 10px;
  font-size: 11px;
}

.overview-view .audit-project-link {
  min-width: 142px;
  min-height: 30px;
  justify-content: center;
  border: 0;
  background: rgba(255, 189, 85, .1);
  color: var(--yellow);
}

.overview-view .audit-platform-link {
  border: 0;
  background: rgba(255, 255, 255, .055);
}

.overview-view .project-empty {
  padding: 44px 16px;
  color: var(--muted);
  text-align: center;
}

.overview-view .pagination.compact {
  margin-top: 10px;
  justify-content: center;
}

.overview-view .pagination button,
.overview-view .pagination select {
  height: 32px;
  border: 0;
  background: var(--panel-2);
  color: #ece5ec;
}

.overview-view .pagination select {
  width: 126px;
  padding-inline: 10px;
}

.overview-view .pagination .current {
  border: 0;
  background: var(--yellow);
  color: #171106;
}

.ya-footer {
  border-color: var(--line-soft);
  background: #211b20;
  color: #ddd5dd;
}

@media (max-width: 1500px) {
  .overview-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .overview-view .filter-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .overview-view .add-project-button { width: 100%; }
}

@media (max-width: 1380px) {
  .overview-layout { grid-template-columns: 1fr; }
  .overview-sidebar { display: none; }
}

@media (max-width: 760px) {
  .ya-topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
    padding: 10px 12px 0;
  }
  .ya-brand { min-width: 0; }
  .ya-actions { display: none; }
  .ya-nav {
    grid-column: 1 / -1;
    width: 100%;
    height: 44px;
    gap: 18px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }
  .ya-nav::-webkit-scrollbar { display: none; }
  .ya-nav a { height: 44px; flex: 0 0 auto; }
  .ya-nav .audit-nav-link { height: 34px; margin-block: 5px; }
  .overview-view { margin: -14px -12px -8px; }
  .overview-content { padding: 16px 12px; }
  .overview-heading h1 { font-size: 19px; }
  .overview-metrics { grid-template-columns: 1fr; }
  .overview-metric { min-height: 84px; }
  .overview-view .filter-grid { grid-template-columns: 1fr; }
  .overview-workspace { padding: 10px; }
}

@media (max-width: 760px) {
  .policies-layout {
    width: calc(100vw - 24px);
  }

  .policy-editor-panel {
    padding: 16px;
  }

  .policy-editor-header {
    grid-template-columns: 1fr;
  }

  .generator-actions,
  .game-policy-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .game-policy-actions button,
  .game-policy-actions a,
  .game-policy-links a {
    width: 100%;
  }
}
