:root {
  --bg: #0b0b0f;
  --bg-soft: #121219;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-light: #ffffff;
  --text: #f5f5f7;
  --text-dark: #101014;
  --muted: rgba(255, 255, 255, 0.7);
  --muted-dark: #5f6370;
  --line: rgba(255, 255, 255, 0.1);
  --accent: #ff335f;
  --accent-2: #25f4ee;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 20%, rgba(37, 244, 238, 0.16), transparent 24%),
    radial-gradient(circle at 85% 10%, rgba(255, 51, 95, 0.22), transparent 20%),
    radial-gradient(circle at 50% 80%, rgba(255, 255, 255, 0.04), transparent 30%),
    linear-gradient(180deg, #0a0a0f 0%, #12121a 100%);
  min-height: 100vh;
}

.site-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 40px;
}

.page-narrow {
  width: min(820px, calc(100% - 32px));
  margin: 48px auto;
}

.card {
  background: var(--panel-light);
  border: 1px solid rgba(16, 16, 20, 0.08);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 30px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 8px 0 28px;
}

.brand,
.nav a,
.footer a {
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 20px;
  font-weight: 700;
}

.brand-mark {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #fff 0 25%, transparent 26%),
    linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  box-shadow:
    4px 0 0 rgba(255, 51, 95, 0.45),
    -4px 0 0 rgba(37, 244, 238, 0.45);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.nav a {
  color: var(--muted);
  font-size: 14px;
}

.hero {
  min-height: 620px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 32px;
  padding: 28px 0 56px;
}

.hero-copy {
  max-width: 640px;
}

.hero-panel {
  position: relative;
  min-height: 420px;
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 30px;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--line);
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: auto -40px -80px auto;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 51, 95, 0.55), transparent 70%);
  filter: blur(12px);
}

.metric-card {
  position: relative;
  z-index: 1;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
}

.metric-label {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.metric-card strong {
  font-size: 24px;
  line-height: 1.35;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(44px, 8vw, 84px);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.05;
}

.lead {
  max-width: 560px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

.cta-primary,
.cta-secondary {
  min-height: 54px;
  padding: 0 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  text-decoration: none;
}

.cta-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, #ff6a5c 100%);
  box-shadow: 0 14px 32px rgba(255, 51, 95, 0.3);
}

.cta-secondary {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding-bottom: 28px;
}

.feature-card {
  padding: 28px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.feature-dark {
  background: linear-gradient(180deg, rgba(255, 51, 95, 0.16), rgba(255, 255, 255, 0.05));
}

.feature-card p {
  color: var(--muted);
  line-height: 1.7;
}

.compliance {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  align-items: start;
  padding: 36px 0 48px;
}

.compliance-copy p {
  color: var(--muted);
  line-height: 1.8;
  font-size: 17px;
}

.link-list {
  display: grid;
  gap: 16px;
}

.link-card {
  padding: 22px 24px;
  border-radius: 24px;
  background: var(--panel-light);
  color: var(--text-dark);
  box-shadow: var(--shadow);
  border: 1px solid rgba(16, 16, 20, 0.08);
  text-decoration: none;
}

.link-title {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 700;
}

.link-url {
  color: var(--muted-dark);
  font-size: 16px;
  word-break: break-all;
}

.article h1,
.article h2,
.article p,
.article a {
  color: var(--text-dark);
}

.article p {
  line-height: 1.8;
  color: #373b46;
}

.article h2 {
  margin-top: 24px;
}

.article a {
  font-weight: 700;
  text-decoration: none;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer a {
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 960px) {
  .hero,
  .compliance,
  .section-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(40px, 12vw, 72px);
  }
}

@media (max-width: 720px) {
  .site-shell {
    width: min(100% - 24px, 1180px);
  }

  .card {
    padding: 22px;
    border-radius: 22px;
  }

  .topbar,
  .footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-grid {
    grid-template-columns: 1fr;
  }
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding-bottom: 24px;
}

.status-card,
.publish-card,
.status-query-card {
  color: var(--text-dark);
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.card-header .eyebrow,
.status-card .eyebrow,
.publish-card .eyebrow,
.status-query-card .eyebrow {
  color: var(--accent);
}

.stack {
  display: grid;
  gap: 12px;
}

.publish-form {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 700;
}

.field input,
.field select,
.inline-form input {
  width: 100%;
  min-height: 52px;
  border-radius: 16px;
  border: 1px solid rgba(16, 16, 20, 0.12);
  background: #fff;
  padding: 0 16px;
  font: inherit;
  color: var(--text-dark);
}

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

.toggle-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(16, 16, 20, 0.1);
  border-radius: 16px;
  background: rgba(16, 16, 20, 0.03);
  color: var(--text-dark);
}

.inline-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  margin-bottom: 20px;
}

.result-panel {
  margin-top: 18px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(16, 16, 20, 0.04);
  border: 1px solid rgba(16, 16, 20, 0.08);
}

.kv-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(16, 16, 20, 0.08);
  color: var(--text-dark);
}

.kv-row:last-child {
  border-bottom: 0;
}

.kv-row span {
  color: var(--muted-dark);
}

.muted-text {
  color: var(--muted-dark);
}

.error-text {
  color: #c62853;
}

.ghost-button,
.inline-button,
.solid-dark {
  cursor: pointer;
}

.ghost-button {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(16, 16, 20, 0.12);
  background: transparent;
  color: var(--text-dark);
  font: inherit;
  font-weight: 700;
}

.inline-button {
  width: fit-content;
  margin-top: 8px;
}

.compact-actions {
  margin-top: 4px;
}

.solid-dark {
  color: #fff;
  background: #101014;
}

@media (max-width: 960px) {
  .dashboard-grid,
  .toggle-grid,
  .inline-form {
    grid-template-columns: 1fr;
  }
}

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

.publish-card code,
.status-card code {
  padding: 2px 8px;
  border-radius: 8px;
  background: rgba(16, 16, 20, 0.08);
  color: var(--text-dark);
}

@media (max-width: 1100px) {
  .dashboard-grid-triple {
    grid-template-columns: 1fr;
  }
}

.auth-card {
  align-self: start;
}

.auth-form {
  margin-top: 8px;
}

.inline-auth-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 28px;
}

.compact-panel {
  margin-top: 16px;
}

.hero-home {
  min-height: 560px;
}

.auth-card-single {
  grid-column: 1 / -1;
}

.auth-split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.auth-form h3 {
  margin: 0 0 8px;
  color: var(--text-dark);
  font-size: 20px;
}

@media (max-width: 960px) {
  .auth-split-grid {
    grid-template-columns: 1fr;
  }
}

.auth-switch-card {
  max-width: 720px;
  justify-self: center;
}

.auth-header-single {
  margin-bottom: 12px;
}

.auth-view-hidden {
  display: none;
}

.auth-view-active {
  display: block;
}

.auth-switch-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.auth-switch-row-end {
  justify-content: flex-end;
}

.auth-switch-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.ghost-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.accounts-card-wide {
  grid-column: span 2;
}

.account-list-item {
  padding: 18px;
  border: 1px solid rgba(16, 16, 20, 0.08);
  border-radius: 20px;
  background: rgba(16, 16, 20, 0.03);
}

.account-list-item-selected {
  border-color: rgba(255, 51, 95, 0.35);
  box-shadow: inset 0 0 0 1px rgba(255, 51, 95, 0.18);
}

.account-list-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.account-list-header h3 {
  margin: 0 0 6px;
  color: var(--text-dark);
  font-size: 20px;
}

.account-list-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.account-chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 51, 95, 0.12);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

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

.account-meta-item {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(16, 16, 20, 0.08);
}

.account-meta-item span,
.account-meta-item small {
  color: var(--muted-dark);
}

.account-meta-item strong {
  color: var(--text-dark);
  font-size: 16px;
}

.danger-button {
  color: #b3264b;
}

.status-form-grid {
  grid-template-columns: minmax(220px, 280px) 1fr auto;
}

#statusAccountSelect {
  width: 100%;
  min-height: 52px;
  border-radius: 16px;
  border: 1px solid rgba(16, 16, 20, 0.12);
  background: #fff;
  padding: 0 16px;
  font: inherit;
  color: var(--text-dark);
}

@media (max-width: 1100px) {
  .accounts-card-wide {
    grid-column: auto;
  }

  .account-meta-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .status-form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .account-list-header,
  .account-list-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

.workspace-shell {
  width: min(1280px, calc(100% - 40px));
}

.workspace-topbar {
  align-items: center;
}

.workspace-topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.topbar-utility-button {
  min-height: 42px;
}

.local-service-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.local-service-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font: inherit;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
}

.status-dot-online {
  background: #27c46b;
  box-shadow: 0 0 0 6px rgba(39, 196, 107, 0.16);
}

.status-dot-offline {
  background: #c94a56;
}

.status-dot-neutral {
  background: rgba(255, 255, 255, 0.3);
}

.icon-button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font: inherit;
  font-size: 18px;
  cursor: pointer;
}

.user-menu {
  position: relative;
}

.avatar-button {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, #ff6a5c 100%);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.user-menu-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 220px;
  padding: 16px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
  border: 1px solid rgba(16, 16, 20, 0.08);
  display: none;
  z-index: 10;
}

.user-menu:hover .user-menu-panel,
.user-menu:focus-within .user-menu-panel {
  display: block;
}

.user-menu-email {
  margin-bottom: 12px;
  color: var(--text-dark);
  word-break: break-all;
}

.menu-action-button {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(16, 16, 20, 0.12);
  border-radius: 14px;
  background: transparent;
  color: var(--text-dark);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.workspace-header-row {
  padding: 8px 0 24px;
}

.workspace-title {
  margin-bottom: 10px;
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1;
}

.workspace-subtitle {
  max-width: 680px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.accounts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding-bottom: 24px;
}

.account-card {
  padding: 24px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(16, 16, 20, 0.08);
  box-shadow: var(--shadow);
  color: var(--text-dark);
}

.account-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.account-card-top h3 {
  margin: 0 0 6px;
  font-size: 22px;
  color: var(--text-dark);
}

.account-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255, 51, 95, 0.14), rgba(37, 244, 238, 0.14));
  color: var(--accent);
  font-size: 20px;
  font-weight: 700;
}

.account-meta-grid-dual {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.account-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.compact-cta {
  min-height: 44px;
  padding: 0 18px;
}

.workspace-single-card {
  max-width: 920px;
}

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

@media (max-width: 960px) {
  .workspace-topbar {
    align-items: flex-start;
  }

  .workspace-topbar-actions {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .accounts-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .local-service-inline {
    width: 100%;
  }

  .local-service-pill {
    flex: 1;
  }

  .account-meta-grid-dual {
    grid-template-columns: 1fr;
  }
}

.workspace-topbar .ghost-button,
.workspace-topbar .ghost-link-button,
.workspace-topbar .local-service-pill,
.workspace-topbar .icon-button {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.18);
}

.workspace-topbar .ghost-button:hover,
.workspace-topbar .ghost-link-button:hover,
.workspace-topbar .local-service-pill:hover,
.workspace-topbar .icon-button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.group-dashboard-grid {
  grid-template-columns: 1fr;
}

.group-create-form {
  grid-template-columns: 1fr auto;
}

.group-assign-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin-top: 16px;
}

.group-select {
  width: 100%;
  min-height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(16, 16, 20, 0.12);
  background: #fff;
  padding: 0 14px;
  font: inherit;
  color: var(--text-dark);
}

@media (max-width: 720px) {
  .group-create-form,
  .group-assign-row {
    grid-template-columns: 1fr;
  }
}

.group-page-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 18px 0 24px;
}

.groups-grid {
  display: grid;
  gap: 18px;
}

.group-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 24px;
  background: rgba(10, 12, 18, 0.72);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.16);
}

.group-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.group-members-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.group-member-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #f5f7fb;
  font-size: 14px;
}

.group-member-select {
  min-height: 180px;
}

.group-card-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.checkbox-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #f5f7fb;
}

.danger-button {
  border-color: rgba(255, 89, 105, 0.45);
  color: #ff8d98;
}

.danger-button:hover {
  border-color: rgba(255, 89, 105, 0.8);
  color: #fff1f2;
}

.group-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.group-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.group-table-shell {
  padding: 0;
  overflow: hidden;
}

.group-table-wrap {
  overflow-x: auto;
}

.group-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
}

.group-table th,
.group-table td {
  padding: 18px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  vertical-align: top;
}

.group-table thead th {
  color: rgba(245, 247, 251, 0.82);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.03);
}

.group-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.checkbox-cell {
  width: 44px;
}

.group-name-cell {
  display: grid;
  gap: 6px;
}

.group-name-cell span {
  color: rgba(245, 247, 251, 0.55);
  font-size: 13px;
}

.related-accounts-cell {
  max-width: 520px;
  color: rgba(245, 247, 251, 0.82);
  line-height: 1.6;
  word-break: break-word;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.table-action-link {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
  color: #9fd0ff;
  cursor: pointer;
  font: inherit;
  text-decoration: none;
}

.table-action-link:hover {
  color: #ffffff;
}

.danger-link {
  color: #ff9098;
}

.publish-target-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.batch-result-list {
  display: grid;
  gap: 12px;
}

.batch-result-item {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
}

.modal-shell {
  position: fixed;
  inset: 0;
  z-index: 50;
}

.modal-hidden {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
}

.modal-card {
  position: relative;
  width: min(760px, calc(100vw - 32px));
  margin: 6vh auto 0;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(17, 20, 29, 0.98), rgba(10, 12, 18, 0.98));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  padding: 28px;
}

.modal-header {
  margin-bottom: 10px;
}

.group-editor-actions {
  margin: 18px 0 14px;
}

.group-editor-list {
  max-height: 420px;
  overflow: auto;
  display: grid;
  gap: 10px;
}

.group-editor-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.group-editor-item small {
  grid-column: 2;
  color: rgba(245, 247, 251, 0.55);
}

.group-editor-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}

@media (max-width: 900px) {
  .group-toolbar,
  .group-toolbar-actions,
  .publish-target-grid {
    grid-template-columns: 1fr;
    display: grid;
  }

  .modal-card {
    margin-top: 2vh;
    width: calc(100vw - 18px);
    padding: 20px;
  }
}

.group-toolbar,
.group-table-shell {
  max-width: none;
  width: 100%;
}

.group-toolbar.card,
.group-table-shell.card {
  background: rgba(14, 17, 24, 0.94);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.group-toolbar {
  padding: 18px 20px;
  margin-bottom: 14px;
}

.group-toolbar .inline-form input,
.group-toolbar .checkbox-inline,
.group-toolbar .ghost-button {
  color: #f4f7fb;
}

.group-toolbar .inline-form input {
  min-width: 240px;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.group-toolbar .inline-form input::placeholder {
  color: rgba(244, 247, 251, 0.45);
}

#groupResult {
  max-width: none;
  margin: 0 0 14px;
  padding: 0 4px;
  color: rgba(244, 247, 251, 0.82);
}

.group-table-shell {
  padding: 8px 0 0;
}

.group-table-wrap {
  overflow-x: visible;
}

.group-table {
  min-width: 0;
  table-layout: fixed;
}

.group-table th,
.group-table td {
  padding: 14px 12px;
}

.group-table th:nth-child(1),
.group-table td:nth-child(1) {
  width: 44px;
}

.group-table th:nth-child(2),
.group-table td:nth-child(2) {
  width: 56px;
}

.group-table th:nth-child(3),
.group-table td:nth-child(3) {
  width: 190px;
}

.group-table th:nth-child(4),
.group-table td:nth-child(4) {
  width: 110px;
}

.group-table th:nth-child(6),
.group-table td:nth-child(6) {
  width: 220px;
}

.group-table td {
  color: rgba(244, 247, 251, 0.9);
}

.group-table thead th {
  color: rgba(244, 247, 251, 0.64);
  background: rgba(255, 255, 255, 0.02);
}

.group-name-cell strong {
  color: #ffffff;
}

.group-name-cell span {
  color: rgba(244, 247, 251, 0.46);
}

.related-accounts-cell {
  max-width: none;
  color: rgba(244, 247, 251, 0.78);
  font-size: 14px;
  line-height: 1.5;
  white-space: normal;
  overflow-wrap: anywhere;
}

.table-actions {
  gap: 8px 12px;
}

.table-action-link {
  font-size: 14px;
}

@media (max-width: 1100px) {
  .group-toolbar {
    grid-template-columns: 1fr;
    display: grid;
    align-items: stretch;
  }

  .group-toolbar-actions {
    justify-content: space-between;
  }

  .group-table {
    table-layout: auto;
  }

  .group-table-wrap {
    overflow-x: auto;
  }
}

.workspace-shell .group-toolbar.card,
.workspace-shell .group-table-shell.card {
  background: #ffffff;
  border-color: rgba(16, 16, 20, 0.08);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
}

.workspace-shell .group-toolbar .inline-form input,
.workspace-shell .group-toolbar .checkbox-inline,
.workspace-shell .group-toolbar .ghost-button {
  color: #11131a;
}

.workspace-shell .group-toolbar .inline-form input {
  background: #ffffff;
  border-color: rgba(16, 16, 20, 0.12);
}

.workspace-shell .group-toolbar .inline-form input::placeholder {
  color: rgba(17, 19, 26, 0.38);
}

.workspace-shell .group-table td {
  color: rgba(17, 19, 26, 0.92);
}

.workspace-shell .group-table thead th {
  color: rgba(17, 19, 26, 0.55);
  background: rgba(16, 16, 20, 0.03);
}

.workspace-shell .group-name-cell strong {
  color: #11131a;
}

.workspace-shell .group-name-cell span {
  color: rgba(17, 19, 26, 0.48);
}

.workspace-shell .related-accounts-cell {
  color: rgba(17, 19, 26, 0.76);
}

.workspace-shell .group-table tbody tr:hover {
  background: rgba(16, 16, 20, 0.03);
}

.workspace-shell .group-table thead th {
  color: rgba(17, 19, 26, 0.72);
}

.workspace-shell .table-action-link {
  color: #2a5da8;
}

.workspace-shell .table-action-link:hover {
  color: #163b73;
}

.workspace-shell .danger-link {
  color: #c83a45;
}

.workspace-shell .danger-link:hover {
  color: #94252e;
}

.workspace-shell .status-record-table {
  table-layout: fixed;
}

.workspace-shell .status-record-table th,
.workspace-shell .status-record-table td {
  padding: 16px 16px;
  vertical-align: top;
}

.workspace-shell .status-record-table th:nth-child(1),
.workspace-shell .status-record-table td:nth-child(1) {
  width: 54px;
}

.workspace-shell .status-record-table th:nth-child(2),
.workspace-shell .status-record-table td:nth-child(2) {
  width: 180px;
}

.workspace-shell .status-record-table th:nth-child(3),
.workspace-shell .status-record-table td:nth-child(3) {
  width: 280px;
}

.workspace-shell .status-record-table th:nth-child(4),
.workspace-shell .status-record-table td:nth-child(4) {
  width: 168px;
}

.workspace-shell .status-record-table th:nth-child(5),
.workspace-shell .status-record-table td:nth-child(5) {
  width: 198px;
}

.workspace-shell .status-record-table th:nth-child(6),
.workspace-shell .status-record-table td:nth-child(6) {
  width: 180px;
}

.workspace-shell .status-record-table th:nth-child(7),
.workspace-shell .status-record-table td:nth-child(7) {
  width: 110px;
}

.workspace-shell .status-record-table th:nth-child(8),
.workspace-shell .status-record-table td:nth-child(8) {
  width: 96px;
}

.workspace-shell .status-record-table td code {
  display: inline-block;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.5;
}

.workspace-shell .status-record-table .group-name-cell {
  gap: 6px;
}

.workspace-shell .status-record-table .group-name-cell strong,
.workspace-shell .status-record-table .group-name-cell span {
  line-height: 1.5;
}



.publish-target-card {
  width: 100%;
  max-width: none;
  margin-bottom: 24px;
}

.publish-target-card #selectedAccountBanner {
  margin-top: 0;
}

.publish-target-card #creatorInfoPanel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
  margin-top: 16px;
}

.publish-target-card #creatorInfoPanel .kv-row {
  margin: 0;
}

@media (max-width: 900px) {
  .publish-target-card #creatorInfoPanel {
    grid-template-columns: 1fr;
  }
}

.publish-parallel-toggle {
  justify-content: flex-start;
}


.pagination-shell {
  margin: 18px 0 8px;
}

.pagination-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.pagination-meta {
  color: #ffffff;
  font-size: 14px;
}

.pagination-shell .ghost-button,
.pagination-shell .pagination-button {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
}

.pagination-shell .ghost-button:hover,
.pagination-shell .pagination-button:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.08);
}

.pagination-button[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}
