.lovable-badge-hidden,
#lovable-badge {
  display: none !important;
}

.auth-home {
  min-height: 100vh;
  color: #0f172a;
  background:
    linear-gradient(180deg, rgba(240, 246, 255, 0.95) 0%, rgba(248, 250, 253, 0.98) 39%, #ffffff 40%, #ffffff 72%, #eef6ff 72%, #eef6ff 86%, #0f172a 86%),
    radial-gradient(circle at 50% 19%, rgba(37, 99, 235, 0.13), transparent 24%);
}

.auth-topbar {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  background: rgba(255, 255, 255, 0.74);
}

.auth-brand,
.auth-nav,
.auth-stats,
.auth-entry-grid,
.auth-login-shell,
.auth-login-brand {
  display: flex;
  align-items: center;
}

.auth-brand {
  gap: 0.75rem;
  font-size: 1.08rem;
  font-weight: 700;
}

.auth-brand.qzy-brand {
  width: min(230px, 28vw);
  min-width: 150px;
  min-height: 36px;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.qzy-brand-logo,
.qzy-auth-logo {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.qzy-brand-logo {
  max-height: 34px;
  filter:
    drop-shadow(0 1px 1px rgba(0, 0, 0, 0.72))
    drop-shadow(0 8px 18px rgba(0, 0, 0, 0.24));
}

.auth-logo {
  width: 38px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.72rem;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.22);
}

.auth-nav {
  gap: 2.1rem;
  margin-left: auto;
  color: #64748b;
  font-size: 0.92rem;
}

.auth-login-button,
.auth-primary-button,
.auth-secondary-button,
.auth-logout-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.auth-login-button,
.auth-primary-button {
  padding: 0.75rem 1.1rem;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.2);
}

.auth-secondary-button,
.auth-logout-button {
  padding: 0.68rem 1rem;
  color: #2563eb;
  background: #ffffff;
  border-color: #dbe7f6;
}

.auth-login-button:hover,
.auth-primary-button:hover,
.auth-secondary-button:hover,
.auth-logout-button:hover,
.auth-entry-card:hover {
  transform: translateY(-2px);
}

.auth-hero {
  position: relative;
  max-width: 1120px;
  min-height: 704px;
  margin: 0 auto;
  padding: 6rem 2rem 3.5rem;
  text-align: center;
  overflow: hidden;
}

.auth-hero:before {
  content: "";
  position: absolute;
  inset: 86px 40px auto;
  height: 330px;
  background:
    radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.13), transparent 50%),
    radial-gradient(circle at 52% 42%, rgba(37, 99, 235, 0.11), transparent 57%);
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.9;
  pointer-events: none;
}

.auth-hero > * {
  position: relative;
  z-index: 1;
}

.auth-badge {
  width: max-content;
  max-width: 100%;
  margin: 0 auto 1.5rem;
  padding: 0.45rem 0.86rem;
  border-radius: 999px;
  color: #2563eb;
  background: #dbeafe;
  font-size: 0.88rem;
  font-weight: 700;
}

.auth-hero h1 {
  margin: 0;
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: 0;
}

.auth-gradient-title {
  display: block;
  margin-top: 0.15em;
  color: transparent;
  background: linear-gradient(90deg, #2563eb, #06b6d4);
  -webkit-background-clip: text;
  background-clip: text;
}

.auth-hero-copy {
  max-width: 680px;
  margin: 1.7rem auto 0;
  color: #64748b;
  font-size: 1.12rem;
  line-height: 1.85;
}

.auth-stats {
  justify-content: center;
  gap: clamp(1.2rem, 5vw, 4rem);
  margin-top: 2rem;
}

.auth-stat strong {
  display: block;
  color: #2563eb;
  font-size: 2rem;
  font-weight: 800;
}

.auth-stat span {
  color: #64748b;
  font-size: 0.92rem;
}

.is-immersive-home {
  background: #050505;
}

.is-immersive-home .auth-topbar {
  display: none;
}

.brain-landing {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0;
  isolation: isolate;
  color: #ffffff;
  background: #050505;
}

.brain-landing::before {
  display: none;
}

.brain-particle-canvas,
.brain-fallback-field {
  position: absolute;
  inset: -16vh -14vw;
  width: 128vw;
  height: 132vh;
  pointer-events: none;
}

.brain-particle-canvas {
  z-index: 0;
  opacity: 0;
  animation: brainParticlesIn 0.75s ease forwards;
}

.brain-fallback-field {
  z-index: -1;
  background:
    radial-gradient(circle at 36% 57%, rgba(255, 98, 54, 0.28), transparent 13%),
    radial-gradient(circle at 62% 43%, rgba(217, 70, 239, 0.22), transparent 14%),
    radial-gradient(circle at 52% 52%, rgba(244, 63, 94, 0.18), transparent 22%);
  filter: blur(18px);
  opacity: 0.75;
}

.brain-title-lockup {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  text-align: center;
  width: min(100%, 980px);
  padding: 0 1.25rem;
  opacity: 0;
  animation: brainTitleIn 0.7s ease 0.28s forwards;
}

.brain-title-lockup h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.1rem, 5.4vw, 4.6rem);
  line-height: 1;
  font-weight: 650;
  letter-spacing: 0;
  text-shadow: 0 18px 46px rgba(0, 0, 0, 0.45);
}

.brain-slogan {
  margin: 0.72rem 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1rem, 1.9vw, 1.35rem);
  font-weight: 650;
  letter-spacing: 0;
  text-shadow: 0 12px 30px rgba(0, 0, 0, 0.42);
}

.brain-entry-inline {
  width: 100%;
  display: grid;
  place-items: center;
  margin-top: 1.25rem;
}

.brain-entry-inline .auth-gate {
  margin-top: 0;
}

.brain-entry-inline .auth-primary-button {
  min-height: 44px;
  border-color: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(16px);
}

.brain-entry-inline .auth-entry-grid {
  width: min(100%, 760px);
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.82rem;
  margin-top: 0;
}

.brain-entry-inline .auth-entry-card {
  width: min(100%, 232px);
  min-height: 98px;
  align-items: center;
  justify-content: center;
  padding: 0.92rem 1rem;
  border-color: rgba(255, 255, 255, 0.15);
  border-radius: 1rem;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.075);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
}

.brain-entry-inline .auth-entry-card div {
  display: grid;
  place-items: center;
}

.brain-entry-inline .auth-entry-icon {
  width: 36px;
  height: 36px;
  border-radius: 0.82rem;
  font-size: 1rem;
}

.brain-entry-inline .auth-entry-card h2 {
  margin: 0.64rem 0 0;
  color: #ffffff;
  font-size: 0.98rem;
  line-height: 1.2;
}

.brain-entry-inline .auth-entry-card p,
.brain-entry-inline .auth-entry-card span {
  display: none;
}

.home-entry-section {
  min-height: 34vh;
  display: grid;
  place-items: center;
  padding: 2.4rem 1.5rem 4.6rem;
  background: #050505;
}

.home-entry-section .auth-entry-grid {
  margin-top: 0;
}

.home-entry-section .auth-entry-card {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.home-entry-section .auth-entry-card h2 {
  color: #ffffff;
}

.home-entry-section .auth-entry-card p {
  color: rgba(255, 255, 255, 0.64);
}

.home-entry-section .auth-entry-card span {
  color: #ff7a59;
}

.is-immersive-home .auth-feature-section {
  background: #ffffff;
}

@keyframes brainParticlesIn {
  to {
    opacity: 1;
  }
}

@keyframes brainTitleIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .brain-particle-canvas,
  .brain-title-lockup {
    animation-duration: 0.01ms;
    animation-delay: 0ms;
  }
}

.auth-gate {
  margin-top: 2.7rem;
}

.auth-gate-note {
  margin-top: 0.8rem;
  color: #64748b;
  font-size: 0.92rem;
}

.auth-entry-grid {
  justify-content: center;
  align-items: stretch;
  gap: 1.5rem;
  margin-top: 3.4rem;
}

.auth-entry-card {
  width: min(100%, 320px);
  min-height: 232px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1.8rem;
  border: 1px solid #dbe7f6;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 22px 44px rgba(15, 23, 42, 0.08);
  text-align: left;
}

.auth-entry-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 0.85rem;
  color: #ffffff;
  font-size: 1.3rem;
  font-weight: 900;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
}

.auth-entry-card:nth-child(2) .auth-entry-icon {
  background: linear-gradient(135deg, #06b6d4, #22d3ee);
}

.auth-entry-card:nth-child(3) .auth-entry-icon {
  background: linear-gradient(135deg, #8b5cf6, #2563eb);
}

.auth-entry-card h2 {
  margin: 1.05rem 0 0.55rem;
  color: #0f172a;
  font-size: 1.3rem;
  font-weight: 800;
}

.auth-entry-card p {
  margin: 0;
  color: #64748b;
  line-height: 1.75;
  font-size: 0.93rem;
}

.auth-entry-card span {
  margin-top: 1.2rem;
  color: #2563eb;
  font-size: 0.92rem;
  font-weight: 800;
}

.auth-feature-section {
  min-height: 620px;
  padding: 5.2rem 1.5rem;
  text-align: center;
}

.auth-feature-section small {
  color: #2563eb;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.auth-feature-section h2 {
  margin: 0.8rem 0 0.7rem;
  color: #0f172a;
  font-size: 2.2rem;
  font-weight: 900;
}

.auth-feature-section p {
  max-width: 620px;
  margin: 0 auto;
  color: #64748b;
  line-height: 1.75;
}

.home-service-grid {
  width: min(1080px, calc(100% - 32px));
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 2.2rem auto 0;
  text-align: left;
}

.home-service-grid article,
.home-insight-board article {
  border: 1px solid #dbe7f6;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.06);
}

.home-service-grid article {
  min-height: 190px;
  padding: 1.2rem;
}

.home-service-grid span {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 0.9rem;
  border-radius: 0.75rem;
  color: #1463f3;
  background: #eaf2ff;
  font-weight: 900;
}

.home-service-grid strong {
  display: block;
  color: #0f172a;
  font-size: 1.02rem;
  font-weight: 900;
}

.home-service-grid p,
.home-insight-board p {
  max-width: none;
  margin-top: 0.55rem;
  font-size: 0.9rem;
  line-height: 1.7;
}

.home-opc-strip {
  width: min(1080px, calc(100% - 32px));
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 1.2rem auto 0;
}

.home-opc-strip a {
  min-height: 96px;
  display: grid;
  gap: 0.2rem;
  place-items: center;
  padding: 0.8rem;
  border: 1px solid #dbe7f6;
  border-radius: 0.85rem;
  color: #334155;
  background: #ffffff;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.045);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.home-opc-strip a:hover {
  transform: translateY(-2px);
  border-color: #9cc0ff;
}

.home-opc-strip span {
  color: #1463f3;
  font-size: 1.25rem;
}

.home-opc-strip strong {
  color: #0f172a;
  font-size: 0.92rem;
  font-weight: 900;
}

.home-opc-strip small {
  color: #64748b;
  font-size: 0.74rem;
  letter-spacing: 0;
  text-transform: none;
}

.home-insight-board {
  width: min(1080px, calc(100% - 32px));
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.2rem auto 0;
  text-align: left;
}

.home-insight-board article {
  padding: 1.25rem;
}

.home-insight-board h3 {
  margin: 0.45rem 0 0;
  color: #0f172a;
  font-size: 1.18rem;
}

.home-insight-board a {
  display: inline-flex;
  margin-top: 0.9rem;
  color: #1463f3;
  font-weight: 900;
}

.auth-gradient-band {
  height: 320px;
  background: linear-gradient(90deg, #2563eb, #06b6d4);
}

.auth-footer {
  display: grid;
  place-items: center;
  gap: 0.55rem;
  min-height: 130px;
  color: #64748b;
  background: #0f172a;
  font-size: 0.82rem;
}

.auth-footer strong {
  color: #8ba4c7;
}

.auth-login-shell {
  min-height: calc(100vh - 64px);
  justify-content: center;
  padding: 4rem 1.5rem;
  background:
    linear-gradient(180deg, rgba(240, 246, 255, 0.96), rgba(248, 250, 253, 0.98)),
    radial-gradient(circle at 50% 18%, rgba(6, 182, 212, 0.16), transparent 30%);
}

.auth-login-card {
  width: min(100%, 430px);
  padding: 2rem;
  border: 1px solid #dbe7f6;
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.12);
}

.auth-login-brand {
  gap: 0.75rem;
  margin-bottom: 1.6rem;
  color: #0f172a;
  font-weight: 800;
}

.auth-login-card h1 {
  margin: 0;
  font-size: 2rem;
  font-weight: 900;
}

.auth-login-card p {
  margin: 0.65rem 0 1.5rem;
  color: #64748b;
  line-height: 1.72;
}

.auth-form {
  display: grid;
  gap: 1rem;
}

.auth-form label {
  display: grid;
  gap: 0.5rem;
  color: #334155;
  font-weight: 700;
}

.auth-form input {
  width: 100%;
  height: 46px;
  padding: 0 0.9rem;
  border: 1px solid #dbe7f6;
  border-radius: 0.75rem;
  color: #0f172a;
  background: #f8fafd;
  outline: none;
}

.auth-form input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.auth-error {
  display: none;
  padding: 0.78rem 0.9rem;
  border-radius: 0.75rem;
  color: #b42318;
  background: #fee4e2;
  line-height: 1.5;
}

.auth-error.is-visible {
  display: block;
}

.auth-tech-page {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: clamp(1.25rem, 4vw, 3.5rem);
  color: #f8fafc;
  background: #07090c;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.auth-tech-page::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 14%;
  width: 1px;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.auth-static-layout {
  position: relative;
  z-index: 2;
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 430px);
  align-items: center;
  gap: clamp(3rem, 8vw, 8rem);
}

.auth-static-brand-panel {
  min-height: 540px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 0 3rem clamp(1.5rem, 5vw, 4rem);
  border-left: 3px solid #f59e0b;
}

.auth-static-logo {
  width: min(330px, 78%);
  display: block;
  margin-bottom: 3rem;
}

.auth-static-logo img {
  width: 100%;
  display: block;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.32));
}

.auth-static-title {
  display: flex;
  align-items: baseline;
  gap: 1.15rem;
}

.auth-static-title span {
  color: #ffffff;
  font-size: clamp(4.8rem, 9vw, 8rem);
  line-height: 0.82;
  font-weight: 900;
}

.auth-static-title strong {
  color: #f59e0b;
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  font-weight: 800;
}

.auth-static-brand-panel > p {
  margin: 1.4rem 0 0;
  color: #94a3b8;
  font-size: 0.92rem;
}

.auth-static-rails {
  width: min(410px, 82%);
  display: grid;
  gap: 8px;
  margin-top: 2.2rem;
}

.auth-static-rails i {
  height: 2px;
  display: block;
  background: #f59e0b;
}

.auth-static-rails i:nth-child(2) {
  width: 74%;
  background: #22d3ee;
}

.auth-static-rails i:nth-child(3) {
  width: 48%;
  background: #64748b;
}

.auth-tech-card {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: 1.5rem;
  border: 1px solid #273140;
  border-top: 3px solid #f59e0b;
  border-radius: 8px;
  background: #0c1118;
  box-shadow: 18px 18px 0 #030507;
}

.auth-tech-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: #ffffff;
  text-decoration: none;
  margin-bottom: 1.25rem;
}

.auth-tech-brand.qzy-auth-logo-link {
  width: min(100%, 210px);
  min-height: 44px;
  padding: 0.3rem 0;
}

.qzy-auth-logo {
  max-height: 50px;
  filter:
    drop-shadow(0 1px 1px rgba(0, 0, 0, 0.72))
    drop-shadow(0 8px 18px rgba(0, 0, 0, 0.24));
}

.auth-tech-brand span {
  width: 38px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #1d4ed8, #0f766e);
  font-size: 0.72rem;
  font-weight: 900;
  box-shadow: 0 0 32px rgba(20, 184, 166, 0.22);
}

.auth-tech-brand strong {
  font-size: 0.98rem;
  letter-spacing: 0;
}

.auth-tech-tabs,
.auth-login-mode-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0.24rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.82rem;
  background: rgba(255, 255, 255, 0.045);
}

.auth-tech-tabs button,
.auth-login-mode-tabs button {
  min-height: 38px;
  border: 0;
  border-radius: 0.62rem;
  color: rgba(226, 232, 240, 0.62);
  background: transparent;
  font-weight: 800;
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease;
}

.auth-tech-tabs button:hover,
.auth-login-mode-tabs button:hover {
  color: #ffffff;
}

.auth-tech-tabs button.is-active,
.auth-login-mode-tabs button.is-active {
  color: #050505;
  background: #ffffff;
  box-shadow: 0 0 34px rgba(255, 255, 255, 0.16);
}

.auth-tab-panel,
.auth-tech-form {
  display: none;
}

.auth-tab-panel.is-active,
.auth-tech-form.is-active {
  display: block;
}

.auth-tech-heading {
  margin: 1.4rem 0 1rem;
}

.auth-tech-heading h1 {
  margin: 0;
  color: #ffffff;
  font-size: 1.72rem;
  line-height: 1.15;
  font-weight: 850;
}

.auth-tech-heading p {
  margin: 0.52rem 0 0;
  color: rgba(203, 213, 225, 0.72);
  font-size: 0.9rem;
  line-height: 1.65;
}

.auth-tech-form {
  margin-top: 1rem;
}

.auth-tech-form label {
  color: rgba(226, 232, 240, 0.82);
  font-size: 0.82rem;
}

.auth-tech-form input {
  height: 44px;
  border-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.055);
}

.auth-tech-form input::placeholder {
  color: rgba(148, 163, 184, 0.66);
}

.auth-tech-form input:focus {
  border-color: rgba(45, 212, 191, 0.72);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.13), 0 0 28px rgba(20, 184, 166, 0.12);
}

.auth-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 108px;
  gap: 0.58rem;
}

.auth-code-row button,
.auth-helper-row button,
.auth-helper-row a {
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.75rem;
  color: rgba(248, 250, 252, 0.86);
  background: rgba(255, 255, 255, 0.065);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.auth-code-row button:hover,
.auth-helper-row button:hover,
.auth-helper-row a:hover {
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.1);
}

.auth-tech-primary {
  width: 100%;
  min-height: 46px;
  margin-top: 0.2rem;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 0.78rem;
  color: #050505;
  background: #ffffff;
  box-shadow: 0 0 36px rgba(255, 255, 255, 0.18), 0 18px 46px rgba(0, 0, 0, 0.38);
  font-weight: 900;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.auth-tech-primary:hover {
  border-color: #f59e0b;
  background: #fff7e6;
}

.auth-tech-primary.is-loading,
.auth-code-row button.is-loading {
  opacity: 0.68;
  cursor: wait;
}

.auth-code-row button.is-counting {
  color: rgba(226, 232, 240, 0.72);
  background: rgba(255, 255, 255, 0.045);
  cursor: not-allowed;
}

.auth-code-row button.is-counting:hover {
  transform: none;
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.045);
}

.auth-helper-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

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

.auth-helper-row button,
.auth-helper-row a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.82rem;
  font-size: 0.78rem;
}

.auth-tech-form .auth-error {
  margin-top: 0.9rem;
  border: 1px solid rgba(248, 113, 113, 0.22);
  color: #fecaca;
  background: rgba(127, 29, 29, 0.32);
}

.auth-tech-form .auth-error button {
  margin: 0.6rem 0.45rem 0 0;
  min-height: 32px;
  padding: 0 0.74rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.09);
  cursor: pointer;
}

.auth-tech-form .auth-error.is-success {
  border-color: rgba(45, 212, 191, 0.28);
  color: #ccfbf1;
  background: rgba(19, 78, 74, 0.34);
}

@media (max-width: 760px) {
  .auth-tech-page {
    padding: 1rem;
  }

  .auth-tech-page::before {
    display: none;
  }

  .auth-static-layout {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .auth-static-brand-panel {
    min-height: 0;
    padding: 1rem 0 1rem 1.25rem;
  }

  .auth-static-logo {
    width: min(240px, 72%);
    margin: 0;
  }

  .auth-static-title,
  .auth-static-brand-panel > p,
  .auth-static-rails {
    display: none;
  }

  .auth-tech-card {
    margin: 0 auto;
    box-shadow: 8px 8px 0 #030507;
  }

  .auth-code-row {
    grid-template-columns: 1fr;
  }
}

.opc-extension-page {
  min-height: 100vh;
  color: #0f172a;
  background: #f8fafd;
}

.opc-extension-page:has(.project-card-page) {
  background:
    linear-gradient(180deg, rgba(29, 79, 145, 0.12), rgba(244, 247, 251, 0) 360px),
    #f4f7fb;
}

.opc-extension-header {
  height: 64px;
  border-bottom: 1px solid #e8edf5;
  background: #ffffff;
}

.opc-extension-header-inner {
  height: 64px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.opc-extension-header-inner.has-opc-nav {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
  gap: 1.5rem;
}

.opc-extension-brand-group {
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
  min-width: 0;
}

.opc-extension-header-inner .auth-logout-button {
  margin-left: auto;
}

.opc-extension-header-inner.has-opc-nav .user-account-tools {
  justify-self: end;
  margin-left: 0;
}

.opc-extension-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem 4rem;
}

.opc-extension-page:has(.qzy-home-main) {
  background:
    radial-gradient(circle at 18% 8%, rgba(215, 154, 50, 0.12), transparent 28%),
    radial-gradient(circle at 74% 18%, rgba(40, 92, 72, 0.24), transparent 32%),
    linear-gradient(180deg, #070b10 0, #0b1118 92px, #111c21 420px, #eff3ee 680px, #f7f8f4 100%);
}

.qzy-home-main {
  position: relative;
  max-width: 1480px;
  padding-top: 2.35rem;
}

.qzy-home-main::before {
  content: "";
  position: absolute;
  inset: 0 1.5rem auto;
  height: 220px;
  border-radius: 0 0 1.2rem 1.2rem;
  background:
    linear-gradient(180deg, rgba(7, 11, 16, 0.42), rgba(17, 28, 33, 0.12), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.qzy-home-main > * {
  position: relative;
  z-index: 1;
}

.qzy-home-banner-carousel {
  position: relative;
  overflow: hidden;
  min-height: clamp(280px, 27vw, 380px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.5rem;
  color: #ffffff;
  background:
    linear-gradient(120deg, rgba(8, 12, 18, 0.96), rgba(18, 31, 38, 0.92)),
    #070b10;
  box-shadow: 0 28px 72px rgba(2, 6, 23, 0.34), 0 -16px 44px rgba(7, 11, 16, 0.2);
}

.qzy-home-banner-track {
  position: relative;
  min-height: clamp(280px, 27vw, 380px);
}

.qzy-home-banner-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.2rem;
  align-items: end;
  padding: clamp(1.35rem, 3vw, 2.6rem);
  opacity: 0;
  transform: translateX(16px);
  transition: opacity 420ms ease, transform 420ms ease;
  pointer-events: none;
}

.qzy-home-banner-slide.is-active {
  position: relative;
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.qzy-banner-media,
.qzy-banner-shade {
  position: absolute;
  inset: 0;
}

.qzy-banner-media {
  background-position: center;
  background-size: cover;
  opacity: 0.48;
  filter: saturate(0.98);
}

.qzy-banner-shade {
  background:
    linear-gradient(90deg, rgba(7, 11, 16, 0.95) 0, rgba(7, 11, 16, 0.78) 42%, rgba(7, 11, 16, 0.28) 100%),
    linear-gradient(180deg, rgba(215, 154, 50, 0.08), transparent 54%);
}

.qzy-banner-content,
.qzy-banner-stats,
.qzy-banner-dots,
.qzy-banner-arrow {
  position: relative;
  z-index: 1;
}

.qzy-banner-content {
  display: grid;
  align-content: end;
  gap: 0.85rem;
  max-width: 780px;
}

.qzy-banner-content > span {
  width: max-content;
  max-width: 100%;
  padding: 0.28rem 0.56rem;
  border: 1px solid rgba(242, 189, 99, 0.48);
  border-radius: 0.35rem;
  color: #f8d28c;
  background: rgba(242, 189, 99, 0.1);
  font-size: 0.75rem;
  font-weight: 900;
}

.qzy-banner-content h1 {
  max-width: 760px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1.05;
  font-weight: 950;
}

.qzy-banner-content p,
.qzy-banner-rich {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1rem;
  line-height: 1.75;
}

.qzy-banner-rich :is(p, h2, h3, ul, ol, blockquote) {
  margin: 0.25rem 0;
}

.qzy-banner-rich img {
  max-width: min(520px, 100%);
  max-height: 160px;
  border-radius: 0.5rem;
  object-fit: cover;
}

.qzy-banner-stats {
  align-self: end;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.58rem;
}

.qzy-banner-stats article {
  min-width: 150px;
  padding: 0.78rem 0.86rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 0.45rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.qzy-banner-stats strong,
.qzy-banner-stats span {
  display: block;
}

.qzy-banner-stats strong {
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 950;
}

.qzy-banner-stats span {
  margin-top: 0.16rem;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.76rem;
  font-weight: 760;
}

.qzy-banner-arrow {
  position: absolute;
  top: 50%;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-50%);
}

.qzy-banner-arrow.prev {
  left: 1rem;
}

.qzy-banner-arrow.next {
  right: 1rem;
}

.qzy-banner-dots {
  position: absolute;
  left: clamp(1.35rem, 3vw, 2.6rem);
  bottom: 1rem;
  display: flex;
  gap: 0.4rem;
}

.qzy-banner-dots button {
  width: 20px;
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
}

.qzy-banner-dots button.is-active {
  width: 34px;
  background: #f2bd63;
}

@media (max-width: 760px) {
  .qzy-home-banner-slide {
    grid-template-columns: 1fr;
    padding: 1.15rem;
  }

  .qzy-banner-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .qzy-banner-stats article {
    min-width: 0;
    padding: 0.64rem;
  }

}

@media (max-width: 520px) {
  .qzy-banner-stats {
    grid-template-columns: 1fr;
  }

  .qzy-banner-arrow {
    display: none;
  }
}

.qzy-home-hero {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.72fr);
  gap: 2rem;
  align-items: stretch;
  padding: clamp(2rem, 4.4vw, 4.5rem);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.5rem;
  color: #ffffff;
  background:
    linear-gradient(115deg, rgba(12, 17, 24, 0.96), rgba(21, 34, 45, 0.92) 52%, rgba(56, 75, 62, 0.86)),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.075) 0 1px, transparent 1px 84px);
  box-shadow: 0 30px 80px rgba(2, 6, 23, 0.34), 0 -18px 52px rgba(7, 11, 16, 0.22);
  animation: qzyHomeRise 420ms ease both;
}

.qzy-home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0 34%, rgba(215, 154, 50, 0.12) 34% 35%, transparent 35% 100%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 72px);
  mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent);
  animation: qzyGridDrift 10s linear infinite;
  pointer-events: none;
}

.qzy-home-hero::after {
  content: "";
  position: absolute;
  width: 44%;
  height: 1px;
  right: 8%;
  top: 23%;
  background: linear-gradient(90deg, transparent, rgba(215, 154, 50, 0.78), transparent);
  box-shadow:
    0 72px 0 rgba(16, 185, 129, 0.42),
    0 144px 0 rgba(37, 99, 235, 0.38);
  animation: qzySignalSweep 3.8s ease-in-out infinite;
  pointer-events: none;
}

.qzy-home-hero-copy,
.qzy-home-command-panel {
  position: relative;
  z-index: 1;
}

.qzy-home-hero-copy {
  display: grid;
  align-content: center;
  gap: 1.35rem;
  max-width: 780px;
}

.qzy-home-kicker {
  width: max-content;
  max-width: 100%;
  padding: 0.38rem 0.62rem;
  border: 1px solid rgba(215, 154, 50, 0.42);
  border-radius: 0.35rem;
  color: #f8d28c;
  background: rgba(215, 154, 50, 0.1);
  font-size: 0.78rem;
  font-weight: 850;
}

.qzy-home-hero h1 {
  max-width: 820px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.35rem, 4.8vw, 4.65rem);
  line-height: 1.02;
  font-weight: 920;
  letter-spacing: 0;
}

.qzy-home-hero h1 span {
  display: block;
}

.qzy-home-hero p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1rem, 1.5vw, 1.16rem);
  line-height: 1.85;
}

.qzy-home-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.4rem;
}

.qzy-home-primary-action,
.qzy-home-secondary-action {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.1rem;
  border-radius: 0.45rem;
  font-size: 0.94rem;
  font-weight: 900;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.qzy-home-primary-action {
  color: #101820;
  background: #f2bd63;
}

.qzy-home-secondary-action {
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.qzy-home-primary-action:hover,
.qzy-home-secondary-action:hover,
.qzy-apply-card:hover,
.qzy-home-service-tile:hover {
  transform: translateY(-2px);
}

.qzy-home-stat-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 142px));
  gap: 0.7rem;
  margin-top: 0.5rem;
}

.qzy-home-stat-strip article {
  padding: 0.8rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.45rem;
  background: rgba(255, 255, 255, 0.07);
}

.qzy-home-stat-strip strong {
  display: block;
  color: #ffffff;
  font-size: 1.42rem;
  font-weight: 950;
}

.qzy-home-stat-strip span {
  display: block;
  margin-top: 0.18rem;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.78rem;
  font-weight: 760;
}

.qzy-home-command-panel {
  align-self: center;
  min-height: 420px;
  display: grid;
  align-content: start;
  gap: 1rem;
  padding: 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(22px);
}

.qzy-home-panel-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.86rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.qzy-home-panel-head span {
  color: #f2bd63;
  font-size: 0.76rem;
  font-weight: 900;
}

.qzy-home-panel-head strong {
  color: #ffffff;
  font-size: 0.98rem;
}

.qzy-home-service-map {
  display: grid;
  gap: 0.62rem;
}

.qzy-home-service-tile {
  position: relative;
  min-height: 54px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.74rem;
  padding: 0.55rem 0.62rem;
  border-radius: 0.45rem;
  color: inherit;
  background: rgba(255, 255, 255, 0.055);
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease;
}

.qzy-home-service-tile span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 0.4rem;
  color: #0f172a;
  background: #ffffff;
  font-weight: 950;
}

.qzy-home-service-tile strong {
  min-width: 0;
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 900;
}

.qzy-home-service-tile em {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.72rem;
  font-style: normal;
  white-space: nowrap;
}

.qzy-home-service-tile:hover {
  background: rgba(255, 255, 255, 0.12);
}

.qzy-apply-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.95rem;
  margin-top: 1.2rem;
}

.qzy-apply-card {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 210px;
  aspect-ratio: 16 / 9;
  display: block;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 0.5rem;
  color: #ffffff;
  background: #111820;
  text-decoration: none;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  isolation: isolate;
  animation: qzyApplyCardEnter 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.qzy-apply-card:nth-child(2) {
  animation-delay: 70ms;
}

.qzy-apply-card:nth-child(3) {
  animation-delay: 140ms;
}

.qzy-apply-card:nth-child(4) {
  animation-delay: 210ms;
}

.qzy-apply-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(4, 8, 12, 0.02) 34%, rgba(4, 8, 12, 0.88) 100%);
  transition: background 220ms ease;
}

.qzy-apply-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border: 1px solid rgba(245, 182, 66, 0);
  border-radius: inherit;
  pointer-events: none;
  transition: border-color 220ms ease;
}

.qzy-apply-card-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border: 0;
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1), filter 220ms ease;
}

.qzy-apply-card:hover .qzy-apply-card-image {
  transform: scale(1.055);
  filter: saturate(1.06) contrast(1.02);
}

.qzy-apply-card-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.2rem;
}

.qzy-apply-card-body::before {
  content: "";
  position: absolute;
  left: 1.2rem;
  bottom: 0.88rem;
  width: 28px;
  height: 2px;
  background: #f5b642;
  transform-origin: left center;
  transition: width 240ms ease;
}

.qzy-apply-card-body::after {
  content: "→";
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.2rem;
  line-height: 1;
  transform: translateX(-4px);
  opacity: 0;
  transition: transform 220ms ease, opacity 220ms ease;
}

.qzy-apply-card:hover,
.qzy-apply-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(245, 182, 66, 0.72);
  box-shadow: 0 28px 58px rgba(15, 23, 42, 0.2);
}

.qzy-apply-card:hover::before,
.qzy-apply-card:focus-visible::before {
  background: linear-gradient(180deg, rgba(4, 8, 12, 0) 26%, rgba(4, 8, 12, 0.94) 100%);
}

.qzy-apply-card:hover::after,
.qzy-apply-card:focus-visible::after {
  border-color: rgba(245, 182, 66, 0.72);
}

.qzy-apply-card strong {
  color: #ffffff;
  font-size: 1.25rem;
  line-height: 1.25;
  font-weight: 950;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.72);
  transform: translateY(-4px);
  transition: transform 220ms ease;
}

.qzy-apply-card:hover .qzy-apply-card-body::before,
.qzy-apply-card:focus-visible .qzy-apply-card-body::before {
  width: 54px;
}

.qzy-apply-card:hover .qzy-apply-card-body::after,
.qzy-apply-card:focus-visible .qzy-apply-card-body::after {
  transform: translateX(0);
  opacity: 1;
}

.qzy-apply-card:hover strong,
.qzy-apply-card:focus-visible strong {
  transform: translate(5px, -4px);
}

.qzy-apply-card:focus-visible {
  outline: 2px solid #f5b642;
  outline-offset: 3px;
}

@keyframes qzyApplyCardEnter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.qzy-home-board {
  display: grid;
  grid-template-columns: minmax(0, 1.36fr) minmax(360px, 0.7fr);
  gap: 1rem;
  margin-top: 1.2rem;
  align-items: start;
}

.qzy-home-board .opc-home-community,
.qzy-home-primary-stack .opc-home-news-section,
.qzy-home-side-stack .opc-home-case-section {
  margin-top: 0;
}

.qzy-home-board .opc-home-community {
  grid-template-columns: minmax(0, 1fr);
}

.qzy-home-board .opc-home-feed-panel,
.qzy-home-board .opc-home-recommend-panel section,
.qzy-home-primary-stack .opc-home-news-section,
.qzy-home-side-stack .opc-home-case-section,
.qzy-home-stars {
  border: 1px solid #dfe6df;
  border-radius: 0.5rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.055);
}

.qzy-home-board .opc-home-feed-panel,
.qzy-home-primary-stack .opc-home-news-section,
.qzy-home-side-stack .opc-home-case-section,
.qzy-home-stars {
  padding: 1rem;
}

.qzy-home-board .opc-home-recommend-panel {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: none;
}

.qzy-home-primary-stack,
.qzy-home-side-stack {
  display: grid;
  gap: 1rem;
}

.qzy-home-primary-stack .opc-home-news-grid {
  grid-template-columns: 1fr;
}

.qzy-home-primary-stack .opc-home-news-card {
  grid-template-columns: 168px minmax(0, 1fr);
  min-height: 132px;
}

.qzy-home-primary-stack .opc-home-news-image {
  min-height: 116px;
}

.qzy-home-side-stack .opc-home-case-grid {
  grid-template-columns: 1fr;
}

.qzy-home-side-stack .opc-home-case-card {
  min-height: 132px;
}

.qzy-home-stars {
  margin-top: 1.2rem;
  background: #ffffff;
}

.qzy-home-stars .star-company-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@keyframes qzyHomeRise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes qzyGridDrift {
  from {
    transform: translate3d(-24px, 0, 0);
  }
  to {
    transform: translate3d(24px, 0, 0);
  }
}

@keyframes qzySignalSweep {
  0%,
  100% {
    opacity: 0.3;
    transform: translateX(-18px);
  }
  50% {
    opacity: 0.9;
    transform: translateX(18px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .qzy-home-hero,
  .qzy-home-hero::before,
  .qzy-home-hero::after,
  .qzy-apply-card {
    animation: none;
  }

  .qzy-apply-card,
  .qzy-apply-card::before,
  .qzy-apply-card::after,
  .qzy-apply-card-image,
  .qzy-apply-card-body::before,
  .qzy-apply-card-body::after,
  .qzy-apply-card strong {
    transition: none;
  }
}

@media (max-width: 1180px) {
  .qzy-home-hero,
  .qzy-home-board {
    grid-template-columns: 1fr;
  }

  .qzy-home-command-panel {
    min-height: 0;
  }

  .qzy-home-service-map {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .qzy-home-service-tile {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .qzy-home-service-tile em {
    grid-column: 2;
  }

  .qzy-apply-grid,
  .qzy-home-stars .star-company-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .qzy-home-main {
    padding: 1rem 1rem 3rem;
  }

  .qzy-home-hero {
    min-height: auto;
    padding: 1.35rem;
  }

  .qzy-home-stat-strip,
  .qzy-home-service-map,
  .qzy-apply-grid,
  .qzy-home-stars .star-company-grid,
  .qzy-home-board .opc-home-recommend-panel {
    grid-template-columns: 1fr;
  }

  .qzy-home-service-tile {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .qzy-home-primary-stack .opc-home-news-card {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .qzy-home-primary-stack .opc-home-news-image {
    min-height: 92px;
  }
}

@media (max-width: 560px) {
  .qzy-home-hero h1 {
    font-size: 2.25rem;
  }

  .qzy-home-cta-row,
  .qzy-home-primary-action,
  .qzy-home-secondary-action {
    width: 100%;
  }

  .qzy-home-service-tile em {
    white-space: normal;
  }
}

.tokenhub-authorization-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10020;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(9, 18, 31, 0.58);
  backdrop-filter: blur(8px);
}

.tokenhub-authorization-modal {
  position: relative;
  width: min(640px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 34px;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  background: #ffffff;
  color: #14213a;
  box-shadow: 0 28px 72px rgba(6, 16, 31, 0.28);
}

.tokenhub-authorization-modal > header {
  padding: 0 38px;
  text-align: center;
}

.tokenhub-authorization-modal h2 {
  margin: 0;
  font-size: 28px;
  letter-spacing: 0;
}

.tokenhub-authorization-modal > header p {
  margin: 12px auto 0;
  max-width: 500px;
  color: #60708a;
  line-height: 1.75;
}

.tokenhub-authorization-close {
  position: absolute;
  top: 15px;
  right: 16px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  background: transparent;
  color: #71809a;
  font-size: 28px;
  line-height: 1;
}

.tokenhub-brand-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin: 26px 0;
}

.tokenhub-brand-flow > span {
  color: #276df1;
  font-size: 32px;
  text-align: center;
}

.tokenhub-brand-source,
.tokenhub-brand-target {
  display: flex;
  min-height: 100px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px;
  border: 1px solid #d7e3f5;
  border-radius: 6px;
  background: #f8fbff;
}

.tokenhub-brand-source {
  border-color: #26384d;
  background: #0b1119;
}

.tokenhub-brand-source img {
  width: min(190px, 100%);
  height: auto;
}

.tokenhub-brand-target img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.tokenhub-brand-target strong {
  font-size: 17px;
}

.tokenhub-authorization-modal form {
  display: grid;
  gap: 16px;
}

.tokenhub-authorized-field {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 16px;
  border: 1px solid #d8e2f0;
  border-radius: 6px;
  background: #f7f9fc;
}

.tokenhub-authorized-field span,
.tokenhub-authorization-modal > small {
  color: #687991;
}

.tokenhub-organization-field {
  display: grid;
  gap: 8px;
  color: #24324a;
  font-weight: 700;
}

.tokenhub-organization-field b {
  color: #e5484d;
}

.tokenhub-organization-field input {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid #cbd9ec;
  border-radius: 6px;
  background: #ffffff;
  color: #17243d;
}

.tokenhub-organization-field input:focus {
  border-color: #276df1;
  outline: 2px solid rgba(39, 109, 241, 0.16);
  outline-offset: 0;
}

.tokenhub-agreement {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 6px;
  background: #f3f6fb;
  color: #34445e;
  line-height: 1.55;
}

.tokenhub-agreement input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-top: 2px;
  accent-color: #276df1;
}

.tokenhub-agreement a {
  color: #185cc8;
  font-weight: 700;
  text-decoration: none;
}

.tokenhub-agreement a:hover {
  text-decoration: underline;
}

.tokenhub-authorization-message {
  min-height: 20px;
  margin: 0;
  color: #c53c43;
  font-size: 13px;
}

.tokenhub-authorization-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.tokenhub-authorization-actions button {
  min-height: 48px;
  border: 1px solid #cbd8ea;
  border-radius: 6px;
  background: #ffffff;
  color: #263650;
  font-weight: 700;
}

.tokenhub-authorization-actions button[type="submit"] {
  border-color: #276df1;
  background: #276df1;
  color: #ffffff;
}

.tokenhub-authorization-actions button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.tokenhub-authorization-modal > small {
  display: block;
  margin-top: 18px;
  text-align: center;
}

@media (max-width: 640px) {
  .tokenhub-authorization-backdrop {
    align-items: end;
    padding: 12px;
  }

  .tokenhub-authorization-modal {
    max-height: calc(100vh - 24px);
    padding: 26px 18px 22px;
  }

  .tokenhub-authorization-modal > header {
    padding: 0 24px;
  }

  .tokenhub-authorization-modal h2 {
    font-size: 23px;
  }

  .tokenhub-brand-flow {
    grid-template-columns: 1fr 28px 1fr;
    gap: 8px;
  }

  .tokenhub-brand-source,
  .tokenhub-brand-target {
    min-height: 82px;
    padding: 10px;
  }

  .tokenhub-brand-target {
    display: grid;
    justify-items: center;
    gap: 5px;
  }

  .tokenhub-brand-target img {
    width: 38px;
    height: 38px;
  }

  .tokenhub-brand-target strong {
    font-size: 12px;
  }
}

.opc-extension-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.opc-extension-title h1 {
  margin: 0;
  color: #0f172a;
  font-size: 2rem;
  font-weight: 850;
}

.opc-extension-title p {
  margin: 0.45rem 0 0;
  color: #64748b;
  line-height: 1.7;
}

.opc-extension-title span {
  color: #64748b;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
}

/* Page title modules keep only the functional title. */
.opc-extension-title p,
.opc-extension-title > span,
.project-submit-hero > small,
.project-submit-hero > p,
.dashboard-section-head > div > span,
.dashboard-section-head > div > p,
.operation-toolbar .operation-subtitle {
  display: none !important;
}

.project-submit-hero.title-only {
  min-height: 84px;
  display: flex;
  align-items: center;
  padding: 1.2rem 1.35rem;
}

.project-submit-hero.title-only h1 {
  margin: 0;
}

.opc-extension-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.95rem, 3.2vw, 2.65rem);
  min-height: 64px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  overflow-x: auto;
}

.opc-extension-tab {
  display: inline-flex;
  align-items: center;
  min-height: 64px;
  padding: 0 0.1rem;
  border: 0;
  border-radius: 0;
  color: #64748b;
  background: transparent;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: none;
}

.opc-extension-tab.is-active {
  color: #020617;
  background: transparent;
  box-shadow: none;
}

.opc-extension-tab-icon {
  grid-row: 1 / span 2;
  font-size: 1.35rem;
  text-align: center;
}

.opc-extension-tab strong {
  color: inherit;
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1;
}

.opc-extension-tab small {
  color: inherit;
  opacity: 0.78;
}

.operations-empty {
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.operations-empty p {
  margin: 0;
  color: #64748b;
  line-height: 1.7;
}

.operations-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(170px, 1fr));
  gap: 0.75rem;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  overflow-x: auto;
}

.operations-tabs button {
  min-height: 58px;
  border: 1px solid #e8edf5;
  border-radius: 0.85rem;
  color: #64748b;
  background: #ffffff;
  font-weight: 850;
}

.operations-tabs button.is-active {
  color: #ffffff;
  border-color: #1463f3;
  background: #1463f3;
  box-shadow: 0 10px 26px rgba(20, 99, 243, 0.2);
}

.operations-empty {
  min-height: 240px;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 2rem;
  text-align: center;
}

.operations-empty h3 {
  margin: 0 0 0.65rem;
  color: #0f172a;
  font-size: 1.35rem;
  font-weight: 850;
}

.auth-user-name,
.opc-extension-user {
  color: #64748b;
  font-size: 0.9rem;
}

.auth-user-name {
  flex: 0 1 auto;
  white-space: nowrap;
}

.user-menu-shell {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-left: auto;
  flex: 0 0 auto;
}

.user-account-tools {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  min-width: 0;
  margin-left: auto;
}

.user-menu-unread {
  position: absolute;
  top: -8px;
  right: -8px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 2px solid #0b1119;
  color: #ffffff;
  font-size: 0.66rem;
  font-style: normal;
  line-height: 1;
  text-align: center;
  border-radius: 50%;
  background: #dc2626;
  box-sizing: border-box;
}
.user-menu-unread[hidden] {
  display: none;
}

.user-menu-shell::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 39;
  width: 100%;
  min-width: 190px;
  height: 12px;
}

.user-menu-trigger {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 42px;
  padding: 0.25rem 0.7rem 0.25rem 0.28rem;
  border: 1px solid #c8d2df;
  width: max-content;
  border-radius: 22px 18px 18px 22px;
  border-top-right-radius: 18px;
  border-bottom-right-radius: 18px;
  clip-path: inset(0 round 22px 18px 18px 22px);
  overflow: hidden;
  color: #1f2937;
  background: #edf2f7;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76), 0 7px 18px rgba(31, 41, 55, 0.1);
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.user-menu-trigger:hover {
  border-color: #9eafc2;
  background: #e3eaf2;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 9px 22px rgba(31, 41, 55, 0.15);
  transform: translateY(-1px);
}

.user-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  font-size: 0.86rem;
  font-weight: 900;
}

.user-avatar.large {
  width: 82px;
  height: 82px;
  font-size: 1.45rem;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.18);
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  min-width: 178px;
  max-height: min(68vh, 360px);
  display: none;
  padding: 0.45rem;
  border: 1px solid #dbe7f6;
  border-radius: 0.78rem;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  overflow: auto;
}

.user-menu-shell:hover .user-menu-panel,
.user-menu-shell:focus-within .user-menu-panel {
  display: grid;
  gap: 0.2rem;
}

.user-menu-panel a,
.user-menu-panel button {
  width: 100%;
  min-height: 34px;
  display: flex;
  align-items: center;
  padding: 0 0.65rem;
  border: 0;
  border-radius: 0.52rem;
  color: #334155;
  background: transparent;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.user-menu-panel a:hover,
.user-menu-panel button:hover {
  color: #1463f3;
  background: #eff6ff;
}

.lovable-primary {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  border: 0;
  border-radius: 0.8rem;
  color: #ffffff;
  background: #1463f3;
  box-shadow: 0 12px 26px rgba(20, 99, 243, 0.22);
  font-weight: 850;
}

.lovable-primary.small {
  min-height: 38px;
  font-size: 0.88rem;
}

.project-submit-banner,
.project-form-layout,
.project-detail-hero,
.operations-panel {
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.project-submit-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
  padding: 1.35rem 1.5rem;
}

.project-submit-banner small,
.project-detail-hero small,
.form-section-title small {
  color: #2563eb;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.project-submit-banner h2,
.form-section-title h2 {
  margin: 0.35rem 0 0.45rem;
  color: #0f172a;
  font-size: 1.45rem;
  font-weight: 900;
}

.project-submit-banner p,
.project-form-side p,
.detail-card p,
.detail-side-card p,
.directory-card p {
  margin: 0;
  color: #64748b;
  line-height: 1.7;
}

.operation-subtitle {
  margin: 0.25rem 0 0;
  color: #64748b;
  line-height: 1.6;
}

.expert-filter-bar {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(240px, 1fr) auto;
  gap: 0.85rem;
  align-items: end;
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid #e8edf5;
  border-radius: 0.9rem;
  background: #f8fafd;
}

.expert-filter-bar label {
  display: grid;
  gap: 0.45rem;
  color: #334155;
  font-weight: 850;
}

.expert-filter-bar select,
.expert-filter-bar input {
  width: 100%;
  height: 42px;
  padding: 0 0.85rem;
  border: 1px solid #dbe7f6;
  border-radius: 0.75rem;
  color: #0f172a;
  background: #ffffff;
  outline: none;
  font: inherit;
}

.expert-filter-bar select:focus,
.expert-filter-bar input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.expert-reset-button {
  height: 42px;
}

.expert-application-list {
  display: grid;
  gap: 0.72rem;
  margin-top: 0.85rem;
}

.expert-application-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.35fr) minmax(118px, 0.58fr) minmax(118px, 0.58fr) 92px auto auto auto;
  gap: 0.72rem;
  align-items: center;
  min-height: 74px;
  padding: 0.82rem 0.95rem;
  border: 1px solid #cfe0f5;
  border-radius: 0.75rem;
  background:
    linear-gradient(180deg, rgba(248, 251, 255, 0.86), #ffffff),
    #ffffff;
}

.expert-application-row strong {
  display: block;
  color: #0f172a;
  font-size: 0.95rem;
  font-weight: 950;
}

.expert-application-row p {
  margin: 0.28rem 0 0;
  color: #486284;
  font-size: 0.82rem;
  line-height: 1.45;
}

.expert-application-row span {
  color: #486284;
  font-size: 0.84rem;
  font-weight: 780;
}

.expert-application-form {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(360px, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.expert-application-card,
.expert-application-status {
  padding: 1rem;
  border: 1px solid #dbe7f6;
  border-radius: 0.85rem;
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.055);
}

.expert-application-card.wide {
  display: grid;
  gap: 0.85rem;
}

.expert-application-card label,
.expert-application-form label {
  display: grid;
  gap: 0.42rem;
  color: #334155;
  font-size: 0.86rem;
  font-weight: 880;
}

.expert-application-card input,
.expert-application-card textarea,
.expert-application-form input,
.expert-application-form textarea {
  width: 100%;
  border: 1px solid #dbe7f6;
  border-radius: 0.68rem;
  background: #fbfdff;
  color: #0f172a;
  font: inherit;
  outline: none;
}

.expert-application-card input,
.expert-application-form input {
  min-height: 42px;
  padding: 0 0.78rem;
}

.expert-application-card textarea,
.expert-application-form textarea {
  min-height: 108px;
  padding: 0.72rem 0.78rem;
  resize: vertical;
}

.expert-application-card input:focus,
.expert-application-card textarea:focus,
.expert-application-form input:focus,
.expert-application-form textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.expert-parse-hint {
  margin: 0;
  padding: 0.72rem 0.82rem;
  border: 1px solid #cfe0f5;
  border-radius: 0.68rem;
  color: #1e4f8f;
  background: #f1f7ff;
  font-size: 0.84rem;
  line-height: 1.55;
}

.expert-application-status {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.expert-application-status h2 {
  margin: 0;
  color: #0f172a;
  font-size: 1.15rem;
}

.expert-application-status p {
  margin: 0;
  color: #486284;
  line-height: 1.65;
}

.apply-hero {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.2rem 1.35rem;
  border: 1px solid #dbe7f6;
  border-radius: 1rem;
  background:
    linear-gradient(105deg, #ffffff 0%, #f6faff 48%, #eaf3ff 100%),
    #ffffff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.06);
}

.apply-hero small {
  color: #1463f3;
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.14em;
}

.apply-hero h1 {
  margin: 0;
  color: #071832;
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  line-height: 1.1;
  font-weight: 950;
}

.apply-hero p {
  max-width: 720px;
  margin: 0;
  color: #526684;
  line-height: 1.75;
}

.apply-hero-mark {
  min-width: 132px;
  min-height: 86px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(20, 99, 243, 0.16);
  border-radius: 1rem;
  color: #1463f3;
  background: rgba(255, 255, 255, 0.74);
  font-weight: 950;
  letter-spacing: 0.12em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

.apply-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.apply-card {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  border: 1px solid #dbe7f6;
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.045);
}

.apply-card.full-row {
  grid-column: 1 / -1;
}

.apply-card header {
  display: flex;
  align-items: center;
  gap: 0.56rem;
}

.apply-card header span {
  width: 0.22rem;
  height: 1.1rem;
  border-radius: 999px;
  background: #1463f3;
}

.apply-card header span:not(:empty) {
  width: 1.32rem;
  height: 1.32rem;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: #1463f3;
  font-size: 0.75rem;
  font-weight: 950;
}

.apply-card h2 {
  margin: 0;
  color: #071832;
  font-size: 1.05rem;
  font-weight: 950;
}

.apply-card p {
  margin: 0;
  color: #64748b;
  line-height: 1.65;
}

.apply-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.82rem;
}

.apply-field-grid .full,
.apply-card label.full {
  grid-column: 1 / -1;
}

.apply-card label,
.apply-file-inline {
  display: grid;
  gap: 0.42rem;
  color: #22314a;
  font-size: 0.86rem;
  font-weight: 880;
}

.apply-card input,
.apply-card textarea {
  width: 100%;
  border: 1px solid #d5e2f4;
  border-radius: 0.7rem;
  background: #fbfdff;
  color: #071832;
  font: inherit;
  outline: none;
}

.apply-card input {
  min-height: 42px;
  padding: 0 0.78rem;
}

.apply-card textarea {
  min-height: 112px;
  padding: 0.72rem 0.78rem;
  resize: vertical;
}

.apply-card input:focus,
.apply-card textarea:focus {
  border-color: #1463f3;
  box-shadow: 0 0 0 3px rgba(20, 99, 243, 0.12);
}

.apply-drop-zone {
  min-height: 104px;
  place-items: center;
  padding: 1rem;
  border: 1px dashed #a9c6ef;
  border-radius: 0.9rem;
  background: #f7fbff;
  text-align: center;
  cursor: pointer;
}

.apply-drop-zone input {
  max-width: 420px;
  background: #ffffff;
}

.apply-resume-card {
  gap: 1rem;
}

.apply-resume-workflow {
  display: grid;
  grid-template-columns: minmax(320px, 1.12fr) minmax(280px, 0.88fr);
  gap: 1rem;
  align-items: stretch;
}

.apply-resume-workflow .apply-drop-zone {
  min-height: 124px;
}

.apply-resume-workflow .apply-drop-zone strong {
  color: #10213a;
  font-size: 0.94rem;
}

.apply-resume-action {
  display: grid;
  align-content: center;
  gap: 0.8rem;
}

.apply-resume-action .lovable-primary {
  width: 100%;
  min-height: 46px;
}

.apply-progress-wrap {
  display: grid;
  gap: 0.45rem;
}

.apply-progress-wrap[hidden] {
  display: none;
}

.apply-progress {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9f1ff;
}

.apply-progress i {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1463f3, #06b6d4, #1463f3);
  background-size: 200% 100%;
  transition: width 0.22s ease;
  animation: applyProgressFlow 1s linear infinite;
}

.apply-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: #64748b;
  font-size: 0.76rem;
}

.apply-progress-meta strong {
  color: #155eef;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 760px) {
  .apply-resume-workflow {
    grid-template-columns: 1fr;
  }
}

.apply-submit {
  width: min(100%, 420px);
  justify-self: center;
}

.apply-process-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.apply-process-steps span {
  min-height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid #dbe7f6;
  border-radius: 0.76rem;
  color: #1e4f8f;
  background: #f7fbff;
  font-weight: 850;
}

.partner-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.partner-detail-grid p {
  display: grid;
  gap: 0.2rem;
  padding: 0.68rem;
  border: 1px solid #e8edf5;
  border-radius: 0.65rem;
  background: #f8fafd;
}

.partner-detail-grid strong {
  color: #64748b;
  font-size: 0.78rem;
}

@keyframes applyProgressFlow {
  from { background-position: 0 0; }
  to { background-position: 200% 0; }
}

.expert-application-modal {
  max-width: 760px;
}

.expert-application-modal-body {
  display: grid;
  gap: 1rem;
}

.expert-application-modal-body section {
  padding: 0.9rem;
  border: 1px solid #dbe7f6;
  border-radius: 0.75rem;
  background: #fbfdff;
}

.expert-application-profile {
  display: flex;
  gap: 0.85rem;
  align-items: center;
}

.expert-application-profile img,
.expert-application-avatar {
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
  border-radius: 0.75rem;
  object-fit: cover;
  background: #eaf1ff;
}

.expert-application-avatar {
  display: grid;
  place-items: center;
  color: #155eef;
  font-size: 1.45rem;
  font-weight: 950;
}

.expert-application-profile strong,
.expert-application-modal-body h4 {
  display: block;
  margin: 0 0 0.35rem;
  color: #0f172a;
  font-weight: 950;
}

.expert-application-profile span {
  display: block;
  color: #486284;
  font-size: 0.86rem;
  line-height: 1.6;
}

.expert-application-modal-body p {
  margin: 0;
  color: #334155;
  line-height: 1.72;
  white-space: pre-wrap;
}

.text-link-button.danger.compact {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.expert-dimension-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  max-height: 270px;
  overflow: auto;
  margin-bottom: 1rem;
}

.expert-dimension-strip article {
  min-height: 128px;
  padding: 0.95rem;
  border: 1px solid #e8edf5;
  border-radius: 0.85rem;
  background: #ffffff;
}

.expert-dimension-strip strong,
.expert-card-head strong {
  display: block;
  color: #0f172a;
  font-weight: 900;
}

.expert-dimension-strip span,
.expert-card-head span {
  display: block;
  margin-top: 0.22rem;
  color: #2563eb;
  font-size: 0.86rem;
  font-weight: 800;
}

.expert-dimension-strip p {
  margin: 0.55rem 0 0;
  color: #64748b;
  font-size: 0.88rem;
  line-height: 1.6;
}

.expert-result-meta {
  margin: 0.6rem 0;
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 800;
}

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

.expert-card,
.expert-empty-state {
  border: 1px solid #e8edf5;
  border-radius: 0.9rem;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.expert-card {
  display: grid;
  align-content: start;
  gap: 0.65rem;
  min-height: 286px;
  padding: 1.1rem;
}

.expert-card-head {
  display: flex;
  justify-content: space-between;
  gap: 0.85rem;
}

.expert-card-head small {
  color: #94a3b8;
  font-weight: 800;
}

.expert-title,
.expert-org,
.expert-bio {
  margin: 0;
  color: #64748b;
  line-height: 1.65;
}

.expert-title {
  color: #334155;
  font-weight: 800;
}

.expert-bio {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

.expert-card-actions,
.partner-actions {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  margin-top: auto;
}

.partner-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  margin: 1rem 0;
}

.partner-toolbar input {
  min-height: 40px;
  flex: 1;
  padding: 0 0.85rem;
  border: 1px solid #dbe7f6;
  border-radius: 0.72rem;
  color: #0f172a;
  background: #fff;
  font: inherit;
  outline: none;
}

.partner-toolbar input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.partner-application-list,
.partner-grid,
.partner-list {
  display: grid;
  gap: 0.85rem;
}

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

.partner-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 1rem;
  min-height: 168px;
  padding: 0.9rem;
  border: 1px solid #dbe7f6;
  border-radius: 0.9rem;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.045);
}

.partner-card img,
.partner-card-cover {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 0.72rem;
  object-fit: cover;
  background: linear-gradient(135deg, #ecfdf5, #dbeafe);
}

.partner-card-cover {
  display: grid;
  place-items: center;
  color: #0f766e;
  font-weight: 950;
}

.partner-card strong,
.partner-list-row strong {
  display: block;
  color: #0f172a;
  font-weight: 950;
}

.partner-card span,
.partner-list-row span {
  display: block;
  margin-top: 0.24rem;
  color: #2563eb;
  font-size: 0.84rem;
  font-weight: 850;
}

.partner-card p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  margin: 0.6rem 0 0;
  color: #486284;
  line-height: 1.6;
}

.partner-list-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(220px, 1.3fr) 90px auto;
  gap: 0.8rem;
  align-items: center;
  min-height: 58px;
  padding: 0.75rem 0.9rem;
  border: 1px solid #dbe7f6;
  border-radius: 0.75rem;
  background: #fff;
}

.partner-modal-images {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

.partner-modal-images img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 0.65rem;
  object-fit: cover;
}

.entity-edit-modal {
  max-width: 760px;
}

.user-edit-modal {
  max-width: 720px;
}

.user-edit-modal > header p {
  margin: 0.2rem 0 0;
  color: #64748b;
  font-size: 0.84rem;
  font-weight: 760;
}

.user-edit-modal-form {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
}

.user-edit-modal-form label {
  display: grid;
  gap: 0.42rem;
  color: #334155;
  font-size: 0.86rem;
  font-weight: 900;
}

.user-edit-modal-form input,
.user-edit-modal-form select {
  width: 100%;
  min-height: 42px;
  border: 1.5px solid #d6e4f6;
  border-radius: 0.7rem;
  padding: 0 0.8rem;
  color: #0f172a;
  background: #f8fbff;
  font: inherit;
  font-weight: 760;
  outline: none;
}

.user-edit-modal-form input:focus,
.user-edit-modal-form select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.user-edit-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.7rem;
  padding-top: 0.2rem;
}

.entity-edit-form {
  display: grid;
  gap: 0.8rem;
}

.entity-edit-form label {
  display: grid;
  gap: 0.4rem;
  color: #334155;
  font-size: 0.86rem;
  font-weight: 880;
}

.entity-edit-form input,
.entity-edit-form textarea {
  width: 100%;
  border: 1px solid #dbe7f6;
  border-radius: 0.68rem;
  color: #0f172a;
  background: #fbfdff;
  font: inherit;
  outline: none;
}

.entity-edit-form input {
  min-height: 40px;
  padding: 0 0.75rem;
}

.entity-edit-form textarea {
  min-height: 92px;
  padding: 0.7rem 0.75rem;
  resize: vertical;
}

.expert-empty-state {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  min-height: 220px;
  padding: 2rem;
  text-align: center;
}

.expert-empty-state h3 {
  margin: 0 0 0.5rem;
  color: #0f172a;
  font-size: 1.25rem;
  font-weight: 900;
}

.expert-empty-state p {
  margin: 0;
  color: #64748b;
}

.ops-total-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 0.85rem;
  border-radius: 999px;
  color: #155eef;
  background: #eaf1ff;
  font-size: 0.84rem;
  font-weight: 850;
}

.score-standard-board,
.permission-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.score-standard-card,
.score-standard-form,
.permission-card,
.push-settings-form,
.push-log-panel {
  border: 1px solid #e7edf6;
  border-radius: 0.9rem;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.055);
}

.score-standard-card {
  overflow: hidden;
}

.score-standard-card header,
.permission-card header,
.score-form-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.05rem;
  border-bottom: 1px solid #eef3f9;
}

.score-standard-card header span,
.permission-card header span,
.score-form-head p,
.initial-review-title span {
  color: #64748b;
  font-size: 0.78rem;
  line-height: 1.5;
}

.score-standard-card h3,
.permission-card h3,
.score-form-head h3,
.push-log-panel h3 {
  margin: 0.18rem 0 0;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 900;
}

.score-standard-card header strong {
  flex: none;
  color: #155eef;
  font-size: 1.1rem;
}

.score-standard-rows {
  display: grid;
}

.score-standard-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px;
  gap: 0.8rem;
  align-items: center;
  padding: 0.85rem 1.05rem;
  border-bottom: 1px solid #f1f5f9;
}

.score-standard-row p {
  margin: 0;
  color: #334155;
  font-size: 0.88rem;
  line-height: 1.65;
}

.score-standard-row em,
.score-standard-card footer {
  color: #155eef;
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 850;
}

.score-standard-card footer {
  padding: 0.75rem 1.05rem;
  background: #f8fbff;
}

.score-standard-form {
  display: grid;
  gap: 0.9rem;
  padding-bottom: 1rem;
}

.score-form-grid,
.score-form-items {
  display: grid;
  gap: 0.8rem;
  padding: 0 1.05rem;
}

.score-form-grid {
  grid-template-columns: minmax(0, 1fr) 170px;
}

.score-form-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px 58px;
  gap: 0.8rem;
  align-items: end;
}

.score-add-item {
  width: fit-content;
  margin-left: 1.05rem;
}

.score-remove-item[disabled] {
  opacity: 0.35;
  cursor: not-allowed;
}

.score-standard-form label,
.permission-card label,
.initial-review-form label,
.push-setting-row label {
  display: grid;
  gap: 0.38rem;
  color: #334155;
  font-size: 0.84rem;
  font-weight: 800;
}

.score-standard-form input,
.score-standard-form textarea,
.initial-review-form input,
.initial-review-form textarea,
.push-setting-row textarea {
  width: 100%;
  border: 1px solid #dbe7f6;
  border-radius: 0.68rem;
  background: #f8fafd;
  color: #0f172a;
  font: inherit;
  outline: none;
}

.score-standard-form input,
.initial-review-form input {
  height: 38px;
  padding: 0 0.7rem;
}

.score-standard-form textarea,
.initial-review-form textarea,
.push-setting-row textarea {
  min-height: 76px;
  padding: 0.7rem;
  resize: vertical;
}

.score-standard-form > p,
.permission-card > p,
.push-settings-form > p,
.project-admin-actions > p {
  margin: 0 1.05rem;
  color: #155eef;
  font-size: 0.84rem;
}

.permission-card {
  overflow: hidden;
}

.role-create-form {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1.5px solid #d5e1f1;
  border-radius: 0.9rem;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.045);
}

.role-create-form > label {
  display: grid;
  gap: 0.4rem;
  color: #334155;
  font-weight: 850;
}

.role-create-form input {
  height: 40px;
  padding: 0 0.75rem;
  border: 1px solid #dbe7f6;
  border-radius: 0.68rem;
  background: #f8fafd;
}

.role-create-permissions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  max-height: 280px;
  overflow: auto;
}

.role-create-permissions label {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 0.4rem;
  padding: 0.65rem;
  border: 1px solid #edf2f8;
  border-radius: 0.7rem;
  background: #fbfdff;
}

.role-create-permissions em {
  grid-column: 2;
  color: #94a3b8;
  font-size: 0.72rem;
  font-style: normal;
}

.permission-board.is-list {
  grid-template-columns: 1fr;
}

.permission-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  max-height: 420px;
  overflow: auto;
  padding: 1rem;
}

.permission-checks label {
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  padding: 0.72rem;
  border: 1px solid #edf2f8;
  border-radius: 0.72rem;
  background: #fbfdff;
}

.permission-checks input {
  margin-top: 0.18rem;
}

.permission-checks span {
  color: #0f172a;
  font-size: 0.84rem;
}

.permission-checks em {
  grid-column: 2;
  color: #94a3b8;
  font-size: 0.72rem;
  font-style: normal;
}

.permission-super-note {
  grid-column: 1 / -1;
  margin: 0;
  padding: 1rem;
  color: #155eef;
  background: #edf4ff;
  border-radius: 0.8rem;
}

.permission-tab-switch {
  display: inline-flex;
  gap: 0.35rem;
  padding: 0.25rem;
  border: 1px solid #dbe7f6;
  border-radius: 0.75rem;
  background: #f8fafd;
}

.permission-tab-switch button {
  min-height: 32px;
  padding: 0 0.9rem;
  border: 0;
  border-radius: 0.58rem;
  color: #64748b;
  font-size: 0.84rem;
  font-weight: 850;
  background: transparent;
}

.permission-tab-switch button.is-active {
  color: #155eef;
  background: #eaf1ff;
}

.permission-category-board,
.permission-checks {
  display: grid;
  gap: 0.75rem;
  max-height: none;
  overflow: visible;
}

.permission-category {
  border: 1px solid #dbe7f6;
  border-radius: 0.78rem;
  background: #fbfdff;
}

.permission-category summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.72rem 0.85rem;
  cursor: pointer;
  list-style: none;
}

.permission-category summary::-webkit-details-marker {
  display: none;
}

.permission-category summary::after {
  content: "展开";
  color: #2563eb;
  font-size: 0.74rem;
  font-weight: 900;
}

.permission-category[open] summary::after {
  content: "收起";
}

.permission-category summary label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #0f172a;
  font-weight: 900;
}

.permission-category summary em {
  margin-left: auto;
  color: #94a3b8;
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 850;
}

.permission-category-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  padding: 0 0.85rem 0.85rem;
}

.permission-category-items label {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 0.4rem;
  align-items: start;
  padding: 0.68rem;
  border: 1px solid #edf2f8;
  border-radius: 0.68rem;
  background: #ffffff;
}

.permission-category-items input {
  margin-top: 0.18rem;
}

.permission-category-items span {
  color: #0f172a;
  font-size: 0.84rem;
  font-weight: 820;
}

.permission-category-items em {
  grid-column: 2;
  color: #94a3b8;
  font-size: 0.72rem;
  font-style: normal;
}

.permission-role-list {
  overflow: hidden;
  border: 1px solid #dbe7f6;
  border-radius: 0.75rem;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.045);
}

.permission-role-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid #e8eef7;
}

.permission-role-list-head > div {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
}

.permission-role-list-head strong {
  color: #0f172a;
  font-size: 1rem;
  font-weight: 920;
}

.permission-role-list-head span,
.permission-role-name span,
.permission-role-count {
  color: #64748b;
  font-size: 0.78rem;
}

.permission-role-list-columns,
.permission-role-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) 120px 120px 170px;
  gap: 1rem;
  align-items: center;
}

.permission-role-list-columns {
  min-height: 34px;
  padding: 0 1rem;
  color: #94a3b8;
  background: #f8fafc;
  font-size: 0.72rem;
  font-weight: 850;
}

.permission-role-row {
  min-height: 62px;
  padding: 0.65rem 1rem;
  border-top: 1px solid #eef2f7;
}

.permission-role-row:first-of-type {
  border-top: 0;
}

.permission-role-name {
  display: grid;
  gap: 0.16rem;
  min-width: 0;
}

.permission-role-name strong {
  overflow: hidden;
  color: #0f172a;
  font-size: 0.9rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.permission-role-type {
  width: fit-content;
  padding: 0.28rem 0.52rem;
  border-radius: 0.42rem;
  color: #475569;
  background: #f1f5f9;
  font-size: 0.74rem;
  font-weight: 850;
}

.permission-role-type.is-system {
  color: #8a4b08;
  background: #fff4df;
}

.permission-role-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.45rem;
}

.permission-role-actions button {
  min-height: 32px;
  padding: 0 0.72rem;
  border: 1px solid #cfdbea;
  border-radius: 0.52rem;
  color: #1d4ed8;
  background: #ffffff;
  font-size: 0.78rem;
  font-weight: 850;
}

.permission-role-actions button.is-danger {
  color: #b42318;
  border-color: #f2c6c2;
  background: #fffafa;
}

.permission-role-protected {
  color: #94a3b8;
  font-size: 0.76rem;
  font-weight: 800;
}

.review-modal.role-permission-modal {
  width: min(900px, 100%);
  overflow: hidden;
}

.role-permission-modal > header p {
  margin: 0.2rem 0 0;
  color: #64748b;
  font-size: 0.8rem;
}

.role-permission-modal-form {
  display: grid;
}

.role-permission-name {
  display: grid;
  gap: 0.42rem;
  padding: 1rem;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 850;
}

.role-permission-name input {
  width: 100%;
  height: 40px;
  padding: 0 0.75rem;
  border: 1px solid #dbe7f6;
  border-radius: 0.55rem;
  color: #0f172a;
  background: #f8fafc;
  font: inherit;
  outline: none;
}

.role-permission-category-scroll {
  max-height: min(52vh, 520px);
  overflow: auto;
  padding: 0 1rem 1rem;
}

.role-permission-modal .permission-category-board {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.role-permission-modal .permission-category-items {
  grid-template-columns: 1fr;
}

.role-permission-modal-form > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
  padding: 0.75rem 1rem;
  border-top: 1px solid #e8eef7;
  background: #ffffff;
}

.role-permission-modal-form > footer > div {
  display: flex;
  gap: 0.55rem;
  margin-left: auto;
}

.role-permission-modal-form > footer p {
  margin: 0;
  color: #b42318;
  font-size: 0.8rem;
}

.user-management-board {
  display: grid;
  gap: 0.85rem;
}

.permission-audit-board {
  display: grid;
  gap: 0.85rem;
}

.permission-audit-board > header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1rem;
  border: 1px solid #dbe7f6;
  border-radius: 0.85rem;
  background: #f8fafd;
}

.permission-audit-board > header strong {
  color: #0f172a;
  font-size: 0.98rem;
  font-weight: 920;
}

.permission-audit-board > header span {
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 850;
}

.permission-audit-list {
  display: grid;
  gap: 0.65rem;
}

.permission-audit-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.9fr) minmax(220px, 1.2fr) minmax(120px, 0.7fr) 170px;
  gap: 0.8rem;
  align-items: center;
  padding: 0.85rem;
  border: 1px solid #dbe7f6;
  border-radius: 0.85rem;
  background: #ffffff;
}

.permission-audit-row strong {
  color: #0f172a;
  font-size: 0.88rem;
  font-weight: 920;
}

.permission-audit-row span,
.permission-audit-row time {
  color: #64748b;
  font-size: 0.8rem;
  line-height: 1.45;
}

.user-management-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1rem;
  border: 1px solid #dbe7f6;
  border-radius: 0.85rem;
  background: #f8fafd;
}

.user-management-head > div {
  display: grid;
  gap: 0.2rem;
}

.permission-user-search {
  width: min(360px, 48vw);
  min-height: 2.5rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid #cbdaf0;
  border-radius: 0.5rem;
  background: #ffffff;
  color: #0f172a;
  font: inherit;
}

.permission-user-search:focus {
  outline: 2px solid rgba(37, 99, 235, 0.18);
  border-color: #2563eb;
}

.user-management-head strong {
  color: #0f172a;
  font-size: 0.98rem;
  font-weight: 920;
}

.user-management-head span {
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 850;
}

.user-table {
  display: grid;
  gap: 0.65rem;
}

.user-table-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.1fr) 130px minmax(180px, 0.9fr) 78px auto;
  gap: 0.8rem;
  align-items: center;
  padding: 0.85rem;
  border: 1px solid #dbe7f6;
  border-radius: 0.85rem;
  background: #ffffff;
}

.user-table-row strong {
  display: block;
  color: #0f172a;
  font-size: 0.9rem;
  font-weight: 920;
}

.user-table-row span,
.user-table-row em {
  color: #64748b;
  font-size: 0.8rem;
  font-style: normal;
  line-height: 1.45;
}

.user-row-actions {
  display: inline-flex;
  justify-content: flex-end;
  gap: 0.35rem;
}

.user-row-actions button {
  min-height: 30px;
  padding: 0 0.62rem;
  border: 1px solid #dbe7f6;
  border-radius: 0.56rem;
  color: #155eef;
  background: #ffffff;
  font-size: 0.78rem;
  font-weight: 860;
}

.user-row-actions button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.user-inline-form {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 0.35rem;
  padding: 0.85rem;
  border: 1px solid #edf2f8;
  border-radius: 0.75rem;
  background: #f8fafd;
}

.user-inline-form[hidden] {
  display: none;
}

.user-inline-form label {
  display: grid;
  gap: 0.35rem;
  color: #334155;
  font-size: 0.8rem;
  font-weight: 850;
}

.user-inline-form input,
.user-inline-form select {
  height: 36px;
  padding: 0 0.65rem;
  border: 1px solid #dbe7f6;
  border-radius: 0.58rem;
  background: #ffffff;
}

.role-assign-form {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.role-assign-form label {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 0.38rem;
  padding: 0.58rem;
  border: 1px solid #dbe7f6;
  border-radius: 0.58rem;
  background: #ffffff;
}

.role-assign-note {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0.68rem;
  border: 1px solid #c7daf6;
  border-radius: 0.58rem;
  color: #155eef;
  background: #eef6ff;
  font-size: 0.8rem;
  font-weight: 850;
}

.user-inline-form button,
.user-inline-form p {
  align-self: end;
}

.push-settings-form {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  margin-bottom: 1rem;
}

.push-setting-row {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 0.85rem;
  align-items: center;
  padding: 0.9rem;
  border: 1px solid #edf2f8;
  border-radius: 0.8rem;
  background: #fbfdff;
}

.push-toggle {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 0.55rem !important;
}

.push-log-panel {
  padding: 1rem;
}

.push-log-panel article {
  display: grid;
  grid-template-columns: 140px 120px minmax(0, 1fr) 90px;
  gap: 0.8rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #eef3f9;
  color: #334155;
  font-size: 0.84rem;
}

.push-log-panel article:last-child {
  border-bottom: 0;
}

.push-log-panel p {
  margin: 0;
  color: #64748b;
}

.push-log-panel em {
  color: #94a3b8;
  font-style: normal;
}

.project-admin-actions {
  display: grid;
  gap: 0.85rem;
}

.admin-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.initial-review-form {
  display: grid;
  gap: 0.75rem;
}

.review-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: rgba(15, 23, 42, 0.38);
}

.review-modal {
  width: min(960px, 100%);
  max-height: min(86vh, 900px);
  overflow: auto;
  border: 1.5px solid #cbdaf0;
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.22);
}

.review-modal > header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid #dbe7f6;
  background: rgba(255, 255, 255, 0.96);
}

.review-modal > header span {
  color: #2563eb;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.review-modal > header h3 {
  margin: 0.2rem 0 0;
  color: #0f172a;
  font-size: 1.05rem;
}

.review-modal > header button {
  min-height: 34px;
  padding: 0 0.8rem;
  border: 1px solid #dbe7f6;
  border-radius: 0.65rem;
  color: #334155;
  background: #f8fbff;
  font-weight: 850;
}

.review-modal .initial-review-form {
  padding: 1rem;
}

body.has-open-dialog {
  overflow: hidden;
}

.project-card-view-backdrop {
  z-index: 120;
  padding: 1rem;
}

.project-card-view-modal {
  width: min(1320px, 100%);
  max-height: calc(100vh - 2rem);
}

.project-card-view-body {
  padding: 0 1rem 1rem;
  background: #f4f7fb;
}

.project-card-view-body .project-card-page {
  width: 100%;
  margin: 0;
  padding: 1rem 0 0;
}

.review-detail-modal,
.ai-suggestion-modal {
  width: min(760px, 100%);
}

.review-detail-summary,
.ai-suggestion-detail {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
}

.review-detail-summary {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  border-bottom: 1px solid #e5edf7;
}

.review-detail-summary strong,
.ai-suggestion-score strong {
  color: #1d4ed8;
  font-size: 1.45rem;
  font-weight: 950;
}

.review-detail-summary span,
.review-detail-summary p,
.ai-suggestion-detail p,
.ai-suggestion-detail dd {
  margin: 0;
  color: #52627a;
  font-size: 0.84rem;
  line-height: 1.6;
}

.review-detail-summary p {
  grid-column: 1 / -1;
}

.review-detail-dimensions {
  display: grid;
  gap: 0.78rem;
  padding: 1rem;
}

.review-detail-dimensions article {
  display: grid;
  gap: 0.62rem;
  padding: 0.85rem;
  border: 1px solid #dbe7f6;
  border-radius: 0.78rem;
  background: #fbfdff;
}

.review-detail-dimensions article header {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
}

.review-detail-dimensions article header strong {
  color: #0f172a;
  font-size: 0.9rem;
}

.review-detail-dimensions article header span,
.ai-suggestion-score span {
  color: #2563eb;
  font-size: 0.82rem;
  font-weight: 900;
}

.review-detail-dimensions article p {
  margin: 0;
  color: #52627a;
  font-size: 0.82rem;
  line-height: 1.6;
}

.review-detail-dimensions article div {
  display: grid;
  gap: 0.45rem;
}

.review-detail-dimensions article div span {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 0.55rem;
  align-items: start;
  color: #334155;
  font-size: 0.8rem;
  line-height: 1.45;
}

.review-detail-dimensions article div em {
  color: #1d4ed8;
  font-style: normal;
  font-weight: 900;
}

.ai-suggestion-score {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
}

.ai-suggestion-detail dl {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 0.62rem 0.85rem;
  margin: 0;
}

.ai-suggestion-detail dt {
  color: #0f172a;
  font-size: 0.82rem;
  font-weight: 900;
}

.initial-review-title {
  display: grid;
  gap: 0.2rem;
}

.initial-review-title strong {
  color: #0f172a;
  font-size: 0.95rem;
}

.initial-review-form fieldset {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0.75rem;
  border: 1px solid #e7edf6;
  border-radius: 0.75rem;
  background: #fbfdff;
}

.initial-dimension-comment textarea {
  min-height: 64px;
}

.initial-review-form legend {
  padding: 0 0.35rem;
  color: #0f172a;
  font-size: 0.84rem;
  font-weight: 900;
}

.initial-review-form legend em {
  color: #155eef;
  font-style: normal;
}

.initial-review-item {
  grid-template-columns: minmax(0, 1fr) 70px 34px;
  align-items: center;
  gap: 0.45rem !important;
  font-weight: 650 !important;
}

.initial-review-item span {
  color: #475569;
  font-size: 0.8rem;
  line-height: 1.45;
}

.initial-review-item em {
  color: #94a3b8;
  font-size: 0.78rem;
  font-style: normal;
}

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

.migrated-project-card,
.detail-card,
.detail-side-card,
.project-submit-form,
.project-form-side article,
.operation-stat-grid article,
.directory-card {
  border: 1px solid #e8edf5;
  border-radius: 0.9rem;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.migrated-project-card {
  min-height: 268px;
  display: flex;
  flex-direction: column;
  padding: 1.2rem;
}

.project-card-topline,
.project-card-meta,
.operation-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.project-card-topline span,
.tag-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 0.62rem;
  border-radius: 999px;
  color: #2563eb;
  background: #dbeafe;
  font-size: 0.82rem;
  font-weight: 800;
}

.project-card-topline small,
.project-card-meta,
.muted {
  color: #94a3b8;
  font-size: 0.86rem;
}

.migrated-project-card h3 {
  margin: 1rem 0 0.55rem;
  color: #0f172a;
  font-size: 1.18rem;
  font-weight: 900;
}

.migrated-project-card p {
  flex: 1;
  margin: 0 0 1rem;
  color: #64748b;
  line-height: 1.68;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-list.compact {
  margin-bottom: 1rem;
}

.project-card-link {
  margin-top: 1rem;
  color: #1463f3;
  font-weight: 850;
}

button.project-card-link {
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.project-form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 1rem;
  padding: 1rem;
}

.project-submit-form {
  display: grid;
  gap: 1rem;
  padding: 1.4rem;
}

.project-submit-form label {
  display: grid;
  gap: 0.45rem;
  color: #334155;
  font-weight: 800;
}

.project-submit-form input,
.project-submit-form textarea {
  width: 100%;
  border: 1px solid #dbe7f6;
  border-radius: 0.75rem;
  color: #0f172a;
  background: #f8fafd;
  outline: none;
  font: inherit;
}

.project-submit-form input {
  height: 44px;
  padding: 0 0.85rem;
}

.project-submit-form textarea {
  padding: 0.8rem 0.85rem;
  resize: vertical;
}

.project-submit-form input:focus,
.project-submit-form textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.upload-drop {
  min-height: 88px;
  align-content: center;
  padding: 1rem;
  border: 1px dashed #bcd4f6;
  border-radius: 0.9rem;
  background: #f0f6ff;
}

.project-form-side {
  display: grid;
  align-content: start;
  gap: 1rem;
}

.project-form-side article {
  padding: 1.1rem;
}

.project-form-side strong {
  display: block;
  margin-bottom: 0.4rem;
  color: #0f172a;
  font-size: 1rem;
}

.form-message {
  display: none;
  padding: 0.8rem 0.9rem;
  border-radius: 0.75rem;
  color: #1d4ed8;
  background: #dbeafe;
  line-height: 1.5;
}

.form-message.is-visible {
  display: block;
}

.form-message.is-error {
  color: #b42318;
  background: #fee4e2;
}

.project-detail-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1.5rem;
}

.project-detail-hero h1 {
  margin: 0.35rem 0 0.5rem;
  color: #0f172a;
  font-size: 2rem;
  font-weight: 900;
}

.project-detail-hero p {
  max-width: 760px;
  margin: 0;
  color: #64748b;
  line-height: 1.72;
}

.project-status-box {
  min-width: 190px;
  display: grid;
  gap: 0.4rem;
  padding: 1rem;
  border-radius: 0.9rem;
  background: #f0f6ff;
  text-align: right;
}

.project-status-box strong {
  color: #1463f3;
  font-size: 1.1rem;
}

.project-status-box span {
  color: #64748b;
  font-size: 0.86rem;
}

.project-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 1rem;
}

.project-detail-main,
.project-detail-side {
  display: grid;
  align-content: start;
  gap: 1rem;
}

.detail-card,
.detail-side-card {
  padding: 1.15rem;
}

.detail-card h2,
.detail-side-card h3,
.operation-toolbar h2 {
  margin: 0 0 0.8rem;
  color: #0f172a;
  font-size: 1.08rem;
  font-weight: 900;
}

.competitor-list {
  display: grid;
  gap: 0.78rem;
}

.competitor-item {
  display: grid;
  gap: 0.58rem;
  padding: 0.9rem;
  border: 1px solid #e8edf5;
  border-radius: 0.78rem;
  background: #f8fafd;
}

.competitor-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.competitor-item-head strong {
  color: #0f172a;
  font-size: 0.98rem;
  font-weight: 900;
}

.competitor-item-head span {
  flex: none;
  color: #2563eb;
  font-size: 0.8rem;
  font-weight: 850;
}

.competitor-item p {
  margin: 0;
  color: #64748b;
  line-height: 1.62;
}

.competitor-item .competitor-difference {
  color: #334155;
}

.competitor-item a {
  width: fit-content;
  color: #1463f3;
  font-weight: 850;
}

.project-card-page {
  --card-bg: #f4f7fb;
  --card-panel: #ffffff;
  --card-ink: #172033;
  --card-muted: #5d6b82;
  --card-line: #d9e1ec;
  --card-blue: #1d4f91;
  --card-blue-2: #0f6f8f;
  --card-green: #16835e;
  --card-amber: #b06b16;
  --card-chip: #edf4fb;
  --card-shadow: 0 18px 45px rgba(23, 32, 51, 0.11);
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  padding: 32px 0 56px;
  color: var(--card-ink);
  letter-spacing: 0;
}

.project-card-page .topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  color: var(--card-muted);
  font-size: 13px;
}

.project-card-page .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--card-blue);
  font-weight: 700;
}

.project-card-page .mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(29, 79, 145, 0.24);
  background: #fff;
  color: var(--card-blue);
  font-size: 15px;
  font-weight: 800;
}

.project-card-page .shell {
  overflow: hidden;
  border: 1px solid var(--card-line);
  background: var(--card-panel);
  box-shadow: var(--card-shadow);
}

.project-card-page .card-edit-deadline-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  border: 1px solid #f0c36a;
  border-left: 4px solid #d97706;
  border-radius: 6px;
  background: #fffaf0;
  color: #713f12;
  padding: 12px 16px;
}

.project-card-page .card-edit-deadline-icon {
  display: inline-grid;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  place-items: center;
  border-radius: 50%;
  background: #d97706;
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
}

.project-card-page .card-edit-deadline-notice p {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin: 0;
  line-height: 1.6;
}

.project-card-page .card-edit-deadline-notice strong {
  color: #92400e;
}

.project-card-page .card-edit-deadline-notice p > span {
  color: #713f12;
}

.project-card-page .hero {
  display: grid;
  grid-template-columns: 1.6fr 0.9fr;
  gap: 26px;
  padding: 30px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(12, 42, 82, 0.96), rgba(18, 94, 118, 0.93)),
    linear-gradient(90deg, #113d73, #0f6f8f);
}

.project-card-page .eyebrow {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 700;
}

.project-card-page h1 {
  margin: 0;
  color: #fff;
  font-size: 34px;
  line-height: 1.2;
  font-weight: 800;
}

.project-card-page .summary {
  max-width: 760px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 15px;
  line-height: 1.8;
}

.project-card-page .card-edit-wrap {
  position: relative;
  width: fit-content;
  margin-top: 18px;
}

.project-card-page .card-edit-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.project-card-page .card-edit-button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.project-card-page .card-edit-icon {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #fff;
  color: var(--card-blue);
  font-weight: 900;
}

.project-card-page .card-edit-tooltip {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  z-index: 5;
  min-width: 260px;
  padding: 9px 11px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  background: rgba(10, 23, 40, 0.92);
  color: #fff;
  font-size: 12px;
  line-height: 1.5;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-3px);
  transition: opacity 0.16s ease 0s, transform 0.16s ease 0s;
}

.project-card-page .card-edit-wrap:hover .card-edit-tooltip,
.project-card-page .card-edit-wrap:focus-within .card-edit-tooltip {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.5s;
}

.project-card-page .hero-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-content: start;
}

.project-card-page .meta-tile {
  min-height: 86px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.09);
}

.project-card-page .meta-label {
  margin: 0 0 7px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
}

.project-card-page .meta-value {
  margin: 0;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
}

.project-card-page .status-strip {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  padding: 18px 30px;
  border-bottom: 1px solid var(--card-line);
  background: #fbfdff;
}

.project-card-page .status-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.project-card-page .badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid rgba(22, 131, 94, 0.22);
  background: #e9f7f1;
  color: var(--card-green);
  font-size: 13px;
  font-weight: 800;
}

.project-card-page .badge.warn {
  border-color: rgba(176, 107, 22, 0.24);
  background: #fff4df;
  color: var(--card-amber);
}

.project-card-page .badge.blue {
  border-color: rgba(29, 79, 145, 0.24);
  background: #edf4ff;
  color: var(--card-blue);
}

.project-card-page .lock-note {
  margin-top: 8px;
  color: var(--card-muted);
  font-size: 13px;
  line-height: 1.6;
}

.project-card-page .confidence {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--card-muted);
  font-size: 13px;
  white-space: nowrap;
}

.project-card-page .bar {
  width: 120px;
  height: 8px;
  overflow: hidden;
  background: #e5ebf3;
}

.project-card-page .bar span {
  display: block;
  width: 86%;
  height: 100%;
  background: linear-gradient(90deg, var(--card-green), var(--card-blue-2));
}

.project-card-page .content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 0;
}

.project-card-page .main {
  padding: 28px 30px 34px;
  border-right: 1px solid var(--card-line);
}

.project-card-page .side {
  padding: 28px 24px 34px;
  background: #f8fbff;
}

.project-card-page .section {
  padding: 0 0 26px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--card-line);
}

.project-card-page .section:last-child {
  margin-bottom: 0;
  border-bottom: 0;
}

.project-card-page .section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.project-card-page h2 {
  margin: 0;
  color: var(--card-blue);
  font-size: 19px;
  line-height: 1.35;
}

.project-card-page .section-sub {
  margin: 6px 0 0;
  color: var(--card-muted);
  font-size: 13px;
}

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

.project-card-page .field {
  min-height: 84px;
  padding: 13px 14px;
  border: 1px solid var(--card-line);
  background: #fff;
}

.project-card-page .field.wide {
  grid-column: span 2;
}

.project-card-page .field.full {
  grid-column: 1 / -1;
}

.project-card-page .label {
  margin: 0 0 7px;
  color: var(--card-muted);
  font-size: 12px;
}

.project-card-page .value {
  margin: 0;
  color: var(--card-ink);
  font-size: 15px;
  line-height: 1.55;
  font-weight: 700;
}

.project-card-page .text {
  margin: 0;
  color: #314057;
  font-size: 14px;
  line-height: 1.8;
}

.project-card-page .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-card-page .chip {
  padding: 6px 9px;
  border: 1px solid #d5e2f0;
  background: var(--card-chip);
  color: #28445f;
  font-size: 12px;
  font-weight: 700;
}

.project-card-page .two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.project-card-page .mini-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--card-line);
  background: #fff;
  font-size: 13px;
}

.project-card-page .mini-table th,
.project-card-page .mini-table td {
  padding: 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--card-line);
}

.project-card-page .mini-table th {
  color: #46566f;
  background: #f3f7fc;
  font-weight: 800;
}

.project-card-page .mini-table tr:last-child td {
  border-bottom: 0;
}

.project-card-page .timeline {
  display: grid;
  gap: 12px;
}

.project-card-page .event {
  position: relative;
  padding: 14px 14px 14px 42px;
  border: 1px solid var(--card-line);
  background: #fff;
}

.project-card-page .event::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 18px;
  width: 10px;
  height: 10px;
  background: var(--card-blue-2);
}

.project-card-page .event h3 {
  margin: 0 0 6px;
  color: var(--card-ink);
  font-size: 15px;
}

.project-card-page .event p {
  margin: 0;
  color: var(--card-muted);
  font-size: 13px;
  line-height: 1.7;
}

.project-card-page .score-box {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 16px;
  align-items: center;
  padding: 18px;
  margin-bottom: 18px;
  border: 1px solid rgba(29, 79, 145, 0.18);
  background: #fff;
}

.project-card-page .score {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border: 8px solid #dbeef0;
  color: var(--card-blue);
  font-size: 28px;
  font-weight: 900;
}

.project-card-page .project-current-status-box {
  display: grid;
  gap: 0.4rem;
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 0.85rem;
  background: linear-gradient(135deg, #f8fbff 0%, #edf5ff 100%);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.08);
}

.project-card-page .project-current-status-box span {
  color: #2563eb;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.project-card-page .project-current-status-box strong {
  color: #0f172a;
  font-size: 1.08rem;
  line-height: 1.35;
}

.project-card-page .side-block {
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid #d8e6f5;
  border-radius: 0.85rem;
  background: #fff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.04);
}

.project-card-page .side-block h3 {
  margin: 0 0 0.75rem;
  color: var(--card-blue);
  font-size: 0.98rem;
  letter-spacing: 0;
}

.project-card-page .review {
  display: grid;
  gap: 11px;
}

.project-card-page .review-item {
  position: relative;
  overflow: hidden;
  padding: 0.9rem 0.95rem 0.9rem 1rem;
  border: 1px solid #e2edf8;
  border-left: 4px solid var(--card-blue-2);
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #f7fbff 0%, #eff7fa 100%);
}

.project-card-page .review-item.is-passed {
  border-left-color: #0f8aa3;
  background: linear-gradient(135deg, #f4fbfd 0%, #edf8fb 100%);
}

.project-card-page .review-item.is-rejected {
  border-left-color: #dc2626;
  background: linear-gradient(135deg, #fff7f7 0%, #fff1f2 100%);
}

.project-card-page .review-item.is-empty {
  border-left-color: #94a3b8;
  background: #f8fafc;
}

.project-card-page .review-item strong {
  display: block;
  margin-bottom: 5px;
  color: var(--card-ink);
  font-size: 14px;
}

.project-card-page .review-item span {
  color: var(--card-muted);
  font-size: 13px;
  line-height: 1.65;
}

.project-card-page details {
  margin-bottom: 16px;
  border: 1px solid var(--card-line);
  background: #fff;
}

.project-card-page summary {
  cursor: pointer;
  padding: 13px 14px;
  color: var(--card-blue);
  font-size: 14px;
  font-weight: 800;
}

.project-card-page .detail-body {
  padding: 0 14px 14px;
  color: var(--card-muted);
  font-size: 13px;
  line-height: 1.7;
}

.project-card-page .footer-note {
  margin: 18px 0 0;
  color: var(--card-muted);
  font-size: 12px;
  line-height: 1.7;
}

.project-card-page .competitor-summary {
  display: grid;
  gap: 0.55rem;
}

.project-card-page .competitor-summary-item {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid #dce6f2;
  background: #f8fbff;
}

.project-card-page .competitor-summary-item header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.project-card-page .competitor-summary-item dl {
  display: grid;
  gap: 5px;
  margin: 0;
}

.project-card-page .competitor-summary-item dl div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 8px;
}

.project-card-page .competitor-summary-item dt {
  color: #73839a;
  font-size: 12px;
  font-weight: 800;
}

.project-card-page .competitor-summary-item dd {
  margin: 0;
  color: var(--card-ink);
  font-size: 13px;
  line-height: 1.6;
}

.project-card-page .competitor-summary-item nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.project-card-page .competitor-summary p {
  margin: 0;
  color: var(--card-ink);
  line-height: 1.6;
}

.project-card-page .competitor-summary em {
  margin-left: 8px;
  color: var(--card-blue-2);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.project-card-page .competitor-summary span {
  color: var(--card-muted);
  font-size: 13px;
  line-height: 1.65;
}

.project-card-page .competitor-summary a {
  display: inline-flex;
  margin-right: 0;
  color: var(--card-blue-2);
  font-size: 13px;
  font-weight: 800;
}

.project-card-edit-modal {
  width: min(1040px, calc(100vw - 48px));
  max-height: calc(100vh - 54px);
  overflow: auto;
}

.project-card-edit-modal form {
  display: grid;
  gap: 18px;
}

.card-edit-lock-note {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #dbe7f6;
  background: #f7fbff;
  color: #51617a;
  font-size: 13px;
  line-height: 1.6;
}

.card-edit-section {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #dbe4ef;
  background: #fff;
}

.card-edit-section h4 {
  margin: 0;
  color: #123d73;
  font-size: 15px;
  font-weight: 900;
}

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

.card-edit-grid label,
.card-edit-row label {
  display: grid;
  gap: 6px;
  color: #52627a;
  font-size: 12px;
  font-weight: 700;
}

.card-edit-grid label.wide,
.card-edit-row label.wide {
  grid-column: 1 / -1;
}

.card-edit-grid input,
.card-edit-grid textarea,
.card-edit-row input,
.card-edit-row textarea {
  width: 100%;
  border: 1px solid #d7e1ee;
  background: #fbfdff;
  color: #142036;
  font-size: 13px;
  line-height: 1.55;
  padding: 9px 10px;
  outline: none;
}

.card-edit-grid textarea,
.card-edit-row textarea {
  resize: vertical;
}

.card-edit-list {
  display: grid;
  gap: 10px;
}

.card-edit-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 10px;
  align-items: end;
  padding: 10px;
  border: 1px solid #dfe8f3;
  background: #f9fbfe;
}

.competitor-edit-row,
.milestone-edit-row {
  align-items: start;
}

.card-edit-row button[data-remove-card-row] {
  height: 36px;
  border: 1px solid #ffd5d5;
  background: #fff6f6;
  color: #c33a3a;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.card-edit-actions {
  position: sticky;
  bottom: -1px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0 0;
  background: #fff;
}

.card-edit-actions p {
  margin: 0;
  color: #2563eb;
  font-size: 13px;
}

@media (max-width: 980px) {
  .project-card-page {
    width: min(100% - 24px, 760px);
    padding-top: 18px;
  }

  .project-card-page .hero,
  .project-card-page .content {
    grid-template-columns: 1fr;
  }

  .project-card-page .main {
    border-right: 0;
    border-bottom: 1px solid var(--card-line);
  }

  .project-card-page .grid,
  .project-card-page .two-col {
    grid-template-columns: 1fr;
  }

  .project-card-page .field.wide,
  .project-card-page .field.full {
    grid-column: auto;
  }

  .project-card-page .status-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .opc-extension-page:has(.project-card-page) .opc-extension-header {
    height: auto;
  }

  .opc-extension-page:has(.project-card-page) .opc-extension-header-inner {
    height: auto;
    flex-wrap: wrap;
    padding: 0.75rem 1rem;
  }

  .opc-extension-page:has(.project-card-page) .auth-brand {
    flex: 1 1 calc(100% - 48px);
  }

  .opc-extension-page:has(.project-card-page) .opc-extension-user {
    order: 3;
    max-width: calc(100% - 92px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .opc-extension-page:has(.project-card-page) .opc-extension-header-inner .auth-logout-button {
    order: 4;
    margin-left: auto;
  }

  .project-card-page .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-card-page .hero,
  .project-card-page .main,
  .project-card-page .side,
  .project-card-page .status-strip {
    padding: 20px;
  }

  .project-card-page h1 {
    font-size: 26px;
  }

  .project-card-page .hero-meta {
    grid-template-columns: 1fr;
  }

  .project-card-page .score-box {
    grid-template-columns: 1fr;
  }
}

.detail-side-card dl {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 0.6rem;
  margin: 0;
}

.detail-side-card dt {
  color: #94a3b8;
}

.detail-side-card dd {
  margin: 0;
  color: #334155;
  font-weight: 750;
}

.timeline-item {
  display: grid;
  gap: 0.28rem;
  padding: 0.85rem 0;
  border-top: 1px solid #e8edf5;
}

.timeline-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.timeline-item strong {
  color: #0f172a;
}

.timeline-item span {
  color: #94a3b8;
  font-size: 0.84rem;
}

.operations-panel {
  min-height: 340px;
  padding: 1rem;
}

.operations-workbench {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.operations-sidebar {
  position: sticky;
  top: 84px;
  display: grid;
  gap: 0.45rem;
  padding: 0.85rem;
  border: 1px solid #e8edf5;
  border-radius: 0.95rem;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.operation-nav-group {
  display: grid;
  gap: 0.35rem;
}

.operation-nav-item,
.operation-nav-child {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  border: 0;
  border-radius: 0.75rem;
  color: #475569;
  background: transparent;
  text-align: left;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.operation-nav-notice {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 50%;
  color: #ffffff;
  background: #dc2626;
  font-size: 0.64rem;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
}

.operation-nav-notice[hidden] {
  display: none;
}

.operation-nav-item {
  padding: 0 0.85rem;
}

.operation-nav-child {
  padding: 0 0.85rem 0 1.4rem;
  color: #64748b;
  font-size: 0.9rem;
}

.operation-nav-item.is-active,
.operation-nav-child.is-active,
.operation-nav-item.is-active-parent {
  color: #1463f3;
  background: #eaf2ff;
}

.operation-nav-children {
  display: grid;
  gap: 0.25rem;
  padding-left: 0.3rem;
}

.operation-dashboard {
  display: grid;
  gap: 1rem;
}

.operation-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.operation-summary-card,
.operation-permission-band,
.cycle-card {
  border: 1px solid #e8edf5;
  border-radius: 0.9rem;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.operation-summary-card button {
  width: 100%;
  min-height: 146px;
  display: grid;
  gap: 0.35rem;
  justify-items: start;
  padding: 1rem;
  border: 0;
  color: #0f172a;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.operation-summary-card span {
  color: #64748b;
  font-weight: 850;
}

.operation-summary-card strong {
  color: #0f172a;
  font-size: 2.2rem;
  font-weight: 950;
}

.operation-summary-card em {
  color: #1463f3;
  font-style: normal;
  font-weight: 850;
}

.operation-summary-card.is-locked {
  opacity: 0.58;
}

.operation-permission-band {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1rem;
}

.operation-permission-button {
  min-height: 40px;
  padding: 0 1rem;
  border: 1px solid #bfdbfe;
  border-radius: 0.75rem;
  color: #1463f3;
  background: #eff6ff;
  font-weight: 850;
  cursor: pointer;
}

.operation-permission-button.is-disabled {
  color: #94a3b8;
  background: #f8fafc;
  border-color: #e2e8f0;
  cursor: not-allowed;
}

.operation-batch-tabs,
.operation-project-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.operation-batch-tabs button,
.operation-status-filter button,
.project-view-switch button {
  min-height: 38px;
  padding: 0 0.9rem;
  border: 1px solid #dbe7f6;
  border-radius: 0.75rem;
  color: #64748b;
  background: #ffffff;
  font-weight: 850;
  cursor: pointer;
}

.operation-batch-tabs button.is-active,
.operation-status-filter button.is-active,
.project-view-switch button.is-active {
  color: #ffffff;
  border-color: #1463f3;
  background: #1463f3;
}

.operation-status-filter {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.operation-status-filter strong {
  margin-left: 0.28rem;
}

.active-batch-note {
  margin: -0.45rem 0 1rem;
  color: #64748b;
  font-size: 0.86rem;
  font-weight: 750;
}

.operation-batch-tabs small {
  margin-left: 0.4rem;
  padding: 0.12rem 0.34rem;
  border-radius: 999px;
  color: #1463f3;
  background: #ffffff;
  font-size: 0.68rem;
}

.project-view-switch {
  display: flex;
  gap: 0.45rem;
}

.library-review-filter {
  display: flex;
  gap: 0.5rem;
  margin: -0.35rem 0 1rem;
}

.library-review-filter button {
  min-height: 34px;
  padding: 0 0.8rem;
  border: 1px solid #bfd4f8;
  border-radius: 0.7rem;
  color: #2563eb;
  background: #f8fbff;
  font-weight: 850;
}

.library-review-filter button.is-active {
  color: #ffffff;
  border-color: #1d4ed8;
  background: #1d4ed8;
}

.project-pool-list,
.project-pool-grid {
  display: none;
}

[hidden] {
  display: none !important;
}

.project-pool-list.is-active {
  display: grid;
  gap: 0.6rem;
}

.project-pool-grid.is-active {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.project-pool-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 88px 120px 96px 96px 96px;
  gap: 0.8rem;
  align-items: center;
  padding: 1.05rem 1rem;
  border: 1.5px solid #d5e1f1;
  border-radius: 0.85rem;
  background: #ffffff;
}

.project-pool-row > div {
  display: grid;
  gap: 0.25rem;
}

.project-pool-row strong,
.project-pool-card strong {
  color: #0f172a;
  font-weight: 950;
}

.project-pool-row span,
.project-pool-row em,
.project-pool-card dd,
.project-pool-card dt {
  color: #64748b;
  font-style: normal;
  line-height: 1.45;
}

.project-pool-row a {
  color: #1463f3;
  font-weight: 850;
}

.project-status-pill {
  width: fit-content;
  padding: 0.32rem 0.58rem;
  border-radius: 999px;
  color: #1463f3 !important;
  background: #eaf2ff;
  font-weight: 850;
}

.project-overview-list {
  display: grid;
  gap: 0.7rem;
}

.project-overview-head,
.project-overview-row {
  display: grid;
  grid-template-columns: minmax(280px, 1.6fr) minmax(120px, 0.7fr) minmax(130px, 0.7fr) minmax(180px, 0.8fr);
  gap: 0.9rem;
  align-items: center;
}

.project-overview-head {
  padding: 0 1rem;
  color: #64748b !important;
  font-size: 0.86rem;
  font-weight: 850;
}

.project-overview-row {
  padding: 0.95rem 1rem;
  border: 1.5px solid #d5e1f1;
  border-radius: 0.9rem;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.project-overview-row strong {
  display: block;
  margin-bottom: 0.2rem;
  color: #0f172a !important;
  font-weight: 900;
}

.project-overview-row p {
  margin: 0;
  color: #64748b !important;
  font-size: 0.88rem;
}

.project-overview-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
}

.project-overview-actions .text-link-button,
.project-overview-actions .project-card-link {
  min-width: 76px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.42rem 0.7rem;
  border-radius: 0.72rem;
  line-height: 1;
  white-space: nowrap;
}

.project-overview-actions .project-card-link {
  margin-top: 0;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  background: #eff6ff;
}

.is-action-loading {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  cursor: progress !important;
  opacity: 0.78;
}

.button-loading-spinner {
  width: 0.9rem;
  height: 0.9rem;
  flex: 0 0 auto;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: buttonLoadingSpin 0.7s linear infinite;
}

@keyframes buttonLoadingSpin {
  to { transform: rotate(360deg); }
}

@media (max-width: 720px) {
  .project-card-view-backdrop {
    place-items: stretch;
    padding: 0;
  }

  .project-card-view-modal {
    width: 100%;
    max-height: 100vh;
    border-radius: 0;
  }

  .project-card-view-body {
    padding: 0 0.65rem 0.65rem;
  }
}

.project-pool-card {
  position: relative;
  min-height: 268px;
  display: grid;
  align-content: start;
  gap: 0.9rem;
  padding: 1rem;
  border: 1.5px solid #d5e1f1;
  border-radius: 0.9rem;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.batch-corner {
  position: absolute;
  top: -1px;
  right: -1px;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 0.62rem;
  border-radius: 0 0.85rem 0 0.72rem;
  color: #ffffff !important;
  background: #1d4ed8;
  font-size: 0.76rem;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(29, 78, 216, 0.22);
}

.project-muted-state {
  color: #64748b !important;
  font-size: 0.84rem;
  font-weight: 850;
}

.project-row-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.ai-suggestion-wrap,
.initial-review-hover {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.ai-suggestion-popover,
.initial-review-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 60;
  width: min(340px, 82vw);
  display: grid;
  gap: 0.42rem;
  padding: 0.82rem 0.9rem;
  border: 1.5px solid #c8d8ee;
  border-radius: 0.78rem;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.14s ease 1s, transform 0.14s ease 1s, visibility 0s linear 1.14s;
  pointer-events: none;
}

.ai-suggestion-popover::before,
.initial-review-popover::before {
  content: "";
  position: absolute;
  inset: -10px 0 auto 0;
  height: 10px;
}

.ai-suggestion-wrap:hover .ai-suggestion-popover,
.ai-suggestion-wrap:focus-within .ai-suggestion-popover,
.initial-review-hover:hover .initial-review-popover,
.initial-review-hover:focus-within .initial-review-popover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 1s, 1s, 0s;
  pointer-events: auto;
}

.ai-suggestion-popover strong,
.initial-review-popover strong {
  color: #0f172a;
  font-size: 0.86rem;
  font-weight: 950;
}

.ai-suggestion-popover em,
.ai-suggestion-popover span,
.initial-review-popover em {
  color: #52627a;
  font-size: 0.76rem;
  font-style: normal;
  line-height: 1.5;
}

.initial-review-popover button {
  display: grid;
  gap: 0.14rem;
  width: 100%;
  padding: 0.52rem 0.58rem;
  border: 1px solid #e0e8f4;
  border-radius: 0.58rem;
  background: #f8fbff;
  text-align: left;
  cursor: pointer;
}

.initial-review-popover button:hover {
  border-color: #93b7f5;
  background: #eef6ff;
}

.initial-review-popover button span {
  color: #0f172a;
  font-size: 0.8rem;
  font-weight: 900;
}

.project-muted-state.as-button {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.text-link-button.strong {
  color: #0f5bf0;
  font-weight: 950;
}

.project-pool-card-head {
  display: grid;
  gap: 0.55rem;
}

.project-pool-card-head span {
  width: fit-content;
  padding: 0.32rem 0.58rem;
  border-radius: 999px;
  color: #1463f3;
  background: #eaf2ff;
  font-size: 0.86rem;
  font-weight: 850;
}

.project-pool-card dl {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 0.5rem;
  margin: 0;
}

.project-pool-card dd {
  margin: 0;
  word-break: break-word;
}

.cycle-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.cycle-create-form {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 0.75rem;
  align-items: end;
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid #e8edf5;
  border-radius: 0.9rem;
  background: #ffffff;
}

.cycle-card form {
  display: grid;
  gap: 0.55rem;
}

.cycle-card form label {
  display: grid;
  gap: 0.35rem;
  color: #334155;
  font-size: 0.84rem;
  font-weight: 850;
}

.cycle-card form input {
  height: 38px;
  padding: 0 0.75rem;
  border: 1px solid #cbdaf0;
  border-radius: 0.68rem;
  background: #ffffff;
}

.cycle-create-form label {
  display: grid;
  gap: 0.4rem;
  color: #334155;
  font-weight: 850;
}

.cycle-create-form input {
  height: 42px;
  padding: 0 0.8rem;
  border: 1px solid #dbe7f6;
  border-radius: 0.7rem;
  outline: none;
}

.cycle-create-form p {
  grid-column: 1 / -1;
  margin: 0;
  color: #b42318;
}

.cycle-card {
  display: grid;
  gap: 0.55rem;
  padding: 1.1rem;
}

.cycle-card span {
  color: #64748b;
  font-weight: 850;
}

.cycle-card strong {
  color: #0f172a;
  font-size: 1.2rem;
}

.cycle-card p {
  margin: 0;
  color: #64748b;
  line-height: 1.65;
}

.cycle-card.is-active {
  border-color: #bfdbfe;
  background: #eff6ff;
}

.operation-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.operation-stat-grid article {
  display: grid;
  gap: 0.25rem;
  padding: 1rem;
}

.operation-stat-grid span {
  color: #64748b;
  font-size: 0.88rem;
}

.operation-stat-grid strong {
  color: #0f172a;
  font-size: 1.8rem;
  font-weight: 900;
}

.project-table {
  display: grid;
  gap: 0.55rem;
}

.project-table-row {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 120px 140px 90px;
  gap: 1rem;
  align-items: center;
  padding: 0.9rem 1rem;
  border: 1px solid #e8edf5;
  border-radius: 0.8rem;
  color: #334155;
  background: #f8fafd;
}

.project-table-row strong {
  color: #0f172a;
}

.project-table-row span {
  color: #64748b;
}

.project-table-row em {
  color: #94a3b8;
  font-style: normal;
  text-align: right;
}

.directory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.directory-card {
  min-height: 148px;
  display: grid;
  gap: 0.45rem;
  align-content: start;
  padding: 1.1rem;
}

.directory-card strong {
  color: #0f172a;
  font-size: 1.06rem;
  font-weight: 900;
}

.ops-refined-dashboard,
.opc-home-grid,
.public-project-strip,
.dashboard-public-hero,
.project-submit-form,
.success-hero,
.project-flow,
.expert-task-list {
  animation: softRise 0.35s ease both;
}

@keyframes softRise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ops-kanban-row,
.opc-home-grid,
.public-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.ops-kanban-row article,
.opc-home-hero,
.opc-news-panel,
.opc-activity-panel,
.dashboard-public-hero,
.public-detail-card,
.review-assign-layout,
.assignment-table article,
.expert-task-card,
.success-hero,
.project-submit-hero {
  border: 1px solid #e6edf7;
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.06);
}

.ops-kanban-row article {
  padding: 1rem;
}

.ops-kanban-row span,
.opc-home-hero small,
.dashboard-public-hero small,
.project-submit-hero small,
.success-hero small {
  color: #1463f3;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ops-kanban-row strong {
  display: block;
  margin-top: 0.35rem;
  color: #0f172a;
  font-size: 1.45rem;
  font-weight: 950;
}

.ops-kanban-row p,
.opc-news-panel p,
.opc-activity-panel p,
.public-detail-card p,
.project-submit-hero p,
.success-hero p {
  margin: 0;
  color: #64748b;
  line-height: 1.7;
}

.ops-chart-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 1rem;
  margin-top: 1rem;
}

.ops-chart-card {
  min-height: 310px;
  padding: 1rem;
  border: 1px solid #dbe7f6;
  border-radius: 0.9rem;
  background:
    linear-gradient(180deg, rgba(248, 250, 253, 0.95), #ffffff 42%),
    #ffffff;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.055);
}

.ops-chart-card header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.ops-chart-card header span {
  color: #2563eb;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ops-chart-card h3 {
  margin: 0.25rem 0 0;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 920;
}

.ops-chart-card header em {
  color: #64748b;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 800;
}

.ops-line-chart,
.ops-scatter-chart {
  width: 100%;
  height: auto;
  overflow: visible;
}

.ops-line-chart line,
.ops-scatter-chart line {
  stroke: #e2e8f0;
  stroke-width: 1;
}

.ops-line-chart text,
.ops-scatter-chart text {
  fill: #64748b;
  font-size: 11px;
  font-weight: 750;
}

.ops-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.55rem;
  color: #475569;
  font-size: 0.78rem;
  font-weight: 800;
}

.ops-chart-legend span,
.ops-pie-list p {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.ops-chart-legend i,
.ops-pie-list i {
  width: 0.58rem;
  height: 0.58rem;
  flex: 0 0 auto;
  border-radius: 999px;
}

.ops-pie-wrap {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  min-height: 220px;
}

.ops-pie {
  width: 132px;
  height: 132px;
  display: grid;
  place-items: center;
  position: relative;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.04);
}

.ops-pie::after {
  content: "";
  position: absolute;
  inset: 26px;
  border-radius: inherit;
  background: #ffffff;
}

.ops-pie strong,
.ops-pie span {
  position: relative;
  z-index: 1;
  grid-area: 1 / 1;
}

.ops-pie strong {
  align-self: center;
  color: #0f172a;
  font-size: 1.7rem;
  font-weight: 950;
}

.ops-pie span {
  align-self: end;
  margin-bottom: 32px;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 850;
}

.ops-pie-list {
  display: grid;
  gap: 0.45rem;
}

.ops-pie-list p {
  justify-content: space-between;
  margin: 0;
  padding: 0.48rem 0.56rem;
  border: 1px solid #e8edf5;
  border-radius: 0.65rem;
  color: #334155;
  background: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
}

.ops-pie-list span {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-chart-empty {
  min-height: 220px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.45rem;
  border: 1px dashed #cbd5e1;
  border-radius: 0.85rem;
  color: #64748b;
  background: #f8fafd;
  text-align: center;
}

.ops-chart-empty strong {
  color: #0f172a;
  font-size: 0.95rem;
  font-weight: 920;
}

.ops-chart-empty p {
  max-width: 420px;
  margin: 0;
  line-height: 1.65;
  font-size: 0.82rem;
}

.opc-home-grid {
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr) minmax(260px, 0.75fr);
  margin-bottom: 1.2rem;
}

.opc-apply-matrix {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.9fr);
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.opc-apply-primary {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  display: grid;
  align-content: end;
  gap: 1.25rem;
  padding: 1.45rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 0.9rem;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(7, 22, 52, 0.96), rgba(23, 96, 239, 0.72)),
    radial-gradient(circle at 76% 18%, rgba(91, 141, 255, 0.55), transparent 34%),
    url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=1600&q=80") center / cover;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
  text-decoration: none;
}

.opc-apply-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000);
  opacity: 0.55;
}

.opc-apply-primary::after {
  content: "";
  position: absolute;
  right: -12%;
  bottom: -38%;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.42), transparent 66%);
}

.opc-apply-primary > * {
  position: relative;
  z-index: 1;
}

.opc-apply-primary small,
.opc-apply-mini span {
  color: #8dc2ff;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.14em;
}

.opc-apply-primary h2 {
  margin: 0.35rem 0 0;
  color: #fff;
  font-size: 2.15rem;
  line-height: 1.05;
  font-weight: 950;
}

.opc-apply-primary p {
  max-width: 620px;
  margin: 0.75rem 0 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.75;
}

.opc-apply-cta {
  display: inline-flex;
  width: min(100%, 360px);
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 0.72rem;
  color: #fff;
  background: linear-gradient(135deg, #1d65f4, #0ea5e9);
  font-weight: 900;
  box-shadow: 0 18px 34px rgba(20, 99, 243, 0.28);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.opc-apply-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 42px rgba(20, 99, 243, 0.34);
}

.opc-apply-side {
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.opc-apply-mini {
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: center;
  gap: 0.24rem;
  min-height: 112px;
  padding: 1.05rem 1.15rem;
  border: 1px solid #dce8f6;
  border-radius: 0.82rem;
  text-align: left;
  background: #fff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.055);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.opc-apply-mini::after {
  content: "";
  position: absolute;
  right: -34px;
  top: -42px;
  width: 132px;
  height: 132px;
  border-radius: 999px;
  opacity: 0.2;
}

.opc-apply-mini strong {
  position: relative;
  z-index: 1;
  color: #10213a;
  font-size: 1rem;
  font-weight: 950;
}

.opc-apply-mini em {
  position: relative;
  z-index: 1;
  color: #64748b;
  font-style: normal;
  font-size: 0.82rem;
}

.opc-apply-mini:hover {
  transform: translateY(-1px);
  border-color: #bcd3f1;
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.09);
}

.opc-apply-mini.expert::after {
  background: #2563eb;
}

.opc-apply-mini.partner::after {
  background: #10b981;
}

.opc-apply-mini.vendor::after {
  background: #f59e0b;
}

.opc-home-community,
.opc-home-news-section,
.opc-home-case-section,
.opc-home-stars {
  margin-top: 2.6rem;
}

.opc-home-community {
  display: grid;
  grid-template-columns: minmax(0, 1.72fr) minmax(300px, 0.72fr);
  gap: 1.15rem;
  align-items: stretch;
}

.opc-home-feed-panel,
.opc-home-recommend-panel section,
.opc-home-news-section,
.opc-home-case-section,
.opc-home-stars {
  border: 1px solid #e2eaf5;
  border-radius: 0.9rem;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.055);
}

.opc-home-feed-panel,
.opc-home-news-section,
.opc-home-case-section,
.opc-home-stars {
  padding: 1.1rem;
}

.opc-home-section-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.opc-home-section-title h2 {
  margin: 0;
  color: #0f172a;
  font-size: 1.08rem;
  line-height: 1.25;
  font-weight: 950;
}

.opc-home-section-title p {
  margin: 0.28rem 0 0;
  color: #64748b;
  font-size: 0.84rem;
  line-height: 1.55;
}

.opc-home-section-title a {
  flex: 0 0 auto;
  color: #1463f3;
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
}

.opc-home-activity-list {
  display: grid;
}

.opc-home-activity {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) minmax(112px, 0.22fr);
  gap: 0.9rem;
  min-height: 104px;
  padding: 0.98rem 0;
  border-top: 1px solid #edf2f8;
}

.opc-home-activity:first-child {
  border-top: 0;
  padding-top: 0.2rem;
}

.opc-home-activity-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 0.78rem;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  font-size: 1rem;
  font-weight: 900;
}

.opc-home-activity.policy .opc-home-activity-icon {
  background: linear-gradient(135deg, #0f766e, #14b8a6);
}

.opc-home-activity.bounty .opc-home-activity-icon {
  background: linear-gradient(135deg, #d97706, #f59e0b);
}

.opc-home-activity.service .opc-home-activity-icon,
.opc-home-activity.partner .opc-home-activity-icon {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
}

.opc-home-activity-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.42rem;
  margin-bottom: 0.34rem;
}

.opc-home-activity-head em,
.opc-home-activity-head small,
.opc-home-case-card span,
.opc-home-case-card em,
.opc-home-news-body em,
.opc-home-star-filters span {
  display: inline-flex;
  align-items: center;
  width: max-content;
  border-radius: 999px;
  font-style: normal;
  font-weight: 900;
}

.opc-home-activity-head em {
  padding: 0.16rem 0.48rem;
  color: #155eef;
  background: #eaf2ff;
  font-size: 0.68rem;
}

.opc-home-activity-head small {
  padding: 0.14rem 0.42rem;
  color: #64748b;
  background: #f4f7fb;
  font-size: 0.66rem;
}

.opc-home-activity h3 {
  margin: 0;
  color: #10213a;
  font-size: 0.94rem;
  line-height: 1.38;
  font-weight: 930;
}

.opc-home-activity p {
  margin: 0.38rem 0 0;
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.62;
}

.opc-home-activity-meta {
  display: grid;
  align-content: center;
  justify-items: end;
  gap: 0.28rem;
  color: #64748b;
  font-size: 0.78rem;
  text-align: right;
}

.opc-home-activity-meta strong {
  color: #334155;
  font-size: 0.8rem;
  font-weight: 900;
}

.opc-home-activity-meta span {
  color: #64748b;
  white-space: nowrap;
}

.opc-home-recommend-panel {
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  min-height: 0;
}

.opc-home-recommend-panel section {
  min-height: 0;
  overflow: hidden;
  padding: 0.88rem 1rem;
}

.opc-home-recommend-panel h3 {
  margin: 0 0 0.58rem;
  color: #0f172a;
  font-size: 0.98rem;
  font-weight: 950;
}

.opc-home-person-row {
  display: block;
  padding: 0.52rem 0;
  border-top: 1px solid #edf2f8;
}

.opc-home-person-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.opc-home-person-row strong {
  display: block;
  color: #0f172a;
  font-size: 0.88rem;
  line-height: 1.3;
  font-weight: 920;
}

.opc-home-person-row p {
  margin: 0.2rem 0 0;
  color: #2563eb;
  font-size: 0.76rem;
  line-height: 1.35;
  font-weight: 850;
}

.opc-home-person-row em {
  display: -webkit-box;
  margin-top: 0.28rem;
  overflow: hidden;
  color: #64748b;
  font-size: 0.74rem;
  line-height: 1.45;
  font-style: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.opc-home-empty-note {
  margin: 0;
  color: #94a3b8;
  font-size: 0.82rem;
}

.opc-home-news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.opc-home-news-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 0.9rem;
  min-height: 132px;
  padding: 0.72rem;
  border: 1px solid #e4ebf5;
  border-radius: 0.82rem;
  color: inherit;
  background: #fbfdff;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.opc-home-news-card:hover {
  transform: translateY(-1px);
  border-color: #bfd4f2;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.08);
}

.opc-home-news-card.list {
  min-height: 168px;
}

.opc-home-news-image {
  min-height: 112px;
  border-radius: 0.68rem;
  background: linear-gradient(135deg, #15356e, #2563eb);
  background-size: cover;
  background-position: center;
}

.opc-home-news-body {
  display: grid;
  align-content: start;
  gap: 0.38rem;
  min-width: 0;
}

.opc-home-news-body em {
  padding: 0.14rem 0.42rem;
  color: #155eef;
  background: #eaf2ff;
  font-size: 0.66rem;
}

.opc-home-news-body strong {
  color: #10213a;
  font-size: 0.9rem;
  line-height: 1.42;
  font-weight: 930;
}

.opc-home-news-body p {
  margin: 0;
  color: #64748b;
  font-size: 0.78rem;
  line-height: 1.55;
}

.opc-home-news-body small {
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 800;
}

.opc-home-case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.opc-home-case-card {
  min-height: 150px;
  padding: 1rem;
  border: 1px solid #e4ebf5;
  border-radius: 0.82rem;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.07), rgba(20, 184, 166, 0.04)),
    #ffffff;
}

.opc-home-case-card span {
  padding: 0.16rem 0.48rem;
  color: #155eef;
  background: #eaf2ff;
  font-size: 0.68rem;
}

.opc-home-case-card h3 {
  margin: 0.7rem 0 0.45rem;
  color: #0f172a;
  font-size: 1rem;
  line-height: 1.38;
  font-weight: 950;
}

.opc-home-case-card p {
  margin: 0;
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.62;
}

.opc-home-case-card div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  margin-top: 0.8rem;
}

.opc-home-case-card em {
  padding: 0.16rem 0.44rem;
  color: #475569;
  background: #f4f7fb;
  font-size: 0.68rem;
}

.opc-news-title {
  margin-bottom: 1rem;
}

.opc-news-list-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.opc-news-loadbar {
  display: flex;
  justify-content: center;
  margin-top: 1.2rem;
}

@media (max-width: 1120px) {
  .opc-home-community {
    grid-template-columns: 1fr;
  }

  .opc-home-recommend-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .opc-home-news-grid,
  .opc-news-list-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .opc-home-community,
  .opc-home-news-section,
  .opc-home-case-section,
  .opc-home-stars {
    margin-top: 1.4rem;
  }

  .opc-home-activity {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .opc-home-activity-meta {
    grid-column: 2;
    justify-items: start;
    text-align: left;
  }

  .opc-home-recommend-panel,
  .opc-home-case-grid {
    grid-template-columns: 1fr;
  }

  .opc-home-news-card {
    grid-template-columns: 1fr;
  }

  .opc-home-news-image {
    min-height: 150px;
  }
}

.opc-home-hero,
.opc-news-panel,
.opc-activity-panel {
  padding: 1.15rem;
}

.opc-home-hero {
  min-height: 230px;
  display: grid;
  align-content: center;
  gap: 0.75rem;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(8, 32, 77, 0.92), rgba(20, 99, 243, 0.78)),
    url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=1400&q=80") center / cover;
}

.opc-home-hero h2 {
  margin: 0;
  color: #fff;
  font-size: 1.55rem;
  line-height: 1.3;
}

.opc-home-hero p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.84);
}

.opc-news-panel,
.opc-activity-panel {
  display: grid;
  gap: 0.8rem;
}

.opc-news-panel h3,
.opc-activity-panel h3,
.public-detail-card h3,
.expert-review-panel h2 {
  margin: 0;
  color: #0f172a;
  font-size: 1rem;
}

.opc-news-panel p,
.opc-activity-panel p {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid #edf2f7;
  font-size: 0.92rem;
}

.opc-activity-panel a,
.public-project-strip a,
.operation-toolbar a {
  color: #1463f3;
  font-weight: 850;
}

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

.public-project-card {
  overflow: hidden;
  display: grid;
  min-height: 260px;
  border: 1px solid #e6edf7;
  border-radius: 0.75rem;
  color: inherit;
  background: #fff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
  text-decoration: none;
}

.public-project-cover {
  min-height: 120px;
  background:
    linear-gradient(135deg, rgba(20, 99, 243, 0.8), rgba(14, 165, 233, 0.58)),
    url("https://images.unsplash.com/photo-1517048676732-d65bc937f952?auto=format&fit=crop&w=1200&q=80") center / cover;
}

.public-project-card > div:last-child {
  display: grid;
  gap: 0.45rem;
  padding: 1rem;
}

.public-project-card span {
  color: #1463f3;
  font-size: 0.78rem;
  font-weight: 900;
}

.public-project-card strong {
  color: #0f172a;
  font-size: 1.05rem;
  line-height: 1.35;
}

.public-project-card p {
  margin: 0;
  color: #64748b;
  line-height: 1.55;
}

.dashboard-public-hero,
.success-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1.25rem;
}

.dashboard-visual-panel {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

.dashboard-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.dashboard-metric-grid article {
  display: grid;
  gap: 0.35rem;
  min-height: 108px;
  padding: 1rem;
  border: 1px solid #dbe7f6;
  border-radius: 0.85rem;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.052);
}

.dashboard-metric-grid span {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 850;
}

.dashboard-metric-grid strong {
  color: #0f172a;
  font-size: 1.85rem;
  font-weight: 950;
}

.dashboard-metric-grid em {
  color: #94a3b8;
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 800;
}

.dashboard-chart-grid {
  margin-top: 0;
}

.dashboard-echarts-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 0.85rem;
}

.dashboard-echart-card {
  min-height: 360px;
  padding: 1rem;
  border: 1px solid #dbe7f6;
  border-radius: 0.85rem;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.052);
}

.dashboard-echart-card:first-child {
  grid-row: span 2;
}

.dashboard-echart-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.6rem;
}

.dashboard-echart-card header span {
  display: block;
  color: #2563eb;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.dashboard-echart-card header h3 {
  margin: 0.22rem 0 0;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 950;
}

.dashboard-echart {
  width: 100%;
  height: 292px;
}

.dashboard-echart-card:first-child .dashboard-echart {
  height: 650px;
}

.dashboard-chart-fallback {
  display: grid;
  place-items: center;
  height: 100%;
  margin: 0;
  color: #64748b;
  font-weight: 800;
}

.dashboard-token-center,
.dashboard-library-list {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid #e5edf8;
  border-radius: 0.85rem;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.055);
}

.dashboard-token-center {
  border-radius: 0.65rem;
  box-shadow: none;
}

.dashboard-token-center-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.dashboard-token-center-head h2 {
  margin: 0;
  color: #0f172a;
  font-size: 1.55rem;
  font-weight: 950;
}

.dashboard-token-center-head p {
  margin: 0.35rem 0 0;
  color: #475569;
  line-height: 1.55;
}

.dashboard-token-center-head button {
  min-height: 38px;
  padding: 0 0.8rem;
  border: 1px solid #0f172a;
  border-radius: 0.45rem;
  color: #0f172a;
  font-weight: 850;
  background: #fff;
  cursor: pointer;
}

.dashboard-token-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.dashboard-token-kpis article {
  position: relative;
  min-height: 112px;
  display: grid;
  align-content: start;
  gap: 0.45rem;
  padding: 0.95rem 4rem 0.95rem 0.95rem;
  border: 1px solid #dbe3ee;
  border-radius: 0.45rem;
  background: #ffffff;
}

.dashboard-token-kpis span {
  color: #334155;
  font-size: 0.82rem;
  font-weight: 850;
}

.dashboard-token-kpis strong {
  color: #020617;
  font-size: 1.85rem;
  font-weight: 950;
  line-height: 1.1;
}

.dashboard-token-kpis em {
  color: #64748b;
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 750;
}

.dashboard-token-kpis i {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 0.65rem;
  color: #2563eb;
  font-style: normal;
  font-weight: 950;
  background: #eef4ff;
}

.dashboard-token-kpis article:nth-child(2) i,
.dashboard-token-kpis article:nth-child(4) i,
.dashboard-token-kpis article:nth-child(8) i {
  color: #0891b2;
  background: #ecfeff;
}

.dashboard-token-kpis article:nth-child(3) i,
.dashboard-token-kpis article:nth-child(7) i {
  color: #7c3aed;
  background: #f3e8ff;
}

.dashboard-token-board {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  gap: 0.85rem;
}

.dashboard-token-line-card,
.dashboard-token-donut-card,
.dashboard-token-board .ops-chart-card {
  min-height: 300px;
  padding: 1rem;
  border: 1px solid #dbe3ee;
  border-radius: 0.45rem;
  background: #ffffff;
  box-shadow: none;
}

.dashboard-token-line-card {
  grid-row: span 1;
}

.dashboard-token-line-card header,
.dashboard-token-donut-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.dashboard-token-line-card h3,
.dashboard-token-donut-card h3 {
  margin: 0;
  color: #0f172a;
  font-size: 0.98rem;
  font-weight: 950;
}

.dashboard-token-line-card em,
.dashboard-token-donut-card em {
  color: #64748b;
  font-style: normal;
  font-weight: 800;
}

.dashboard-token-line-card svg {
  width: 100%;
  height: 220px;
  display: block;
  border-bottom: 1px solid #e5e7eb;
  background: repeating-linear-gradient(to bottom, transparent 0 43px, #eef2f7 44px);
}

.dashboard-token-line-card footer {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.55rem;
  color: #64748b;
  font-size: 0.72rem;
}

.dashboard-token-donut-card div {
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: center;
  gap: 1rem;
}

.dashboard-token-donut-card svg {
  width: 180px;
  transform: rotate(-90deg);
}

.dashboard-token-donut-card ul {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dashboard-token-donut-card li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  color: #475569;
  font-size: 0.78rem;
  font-weight: 800;
}

.dashboard-token-donut-card li span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-token-donut-card li i {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 999px;
}

.dashboard-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.dashboard-section-head span {
  display: block;
  margin-bottom: 0.25rem;
  color: #2563eb;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.dashboard-section-head h2 {
  margin: 0;
  color: #0f172a;
  font-size: 1.25rem;
  font-weight: 950;
}

.dashboard-section-head p {
  margin: 0.35rem 0 0;
  color: #64748b;
  line-height: 1.55;
}

.dashboard-section-head em,
.dashboard-section-head > strong {
  flex: 0 0 auto;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  color: #2563eb;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 950;
  background: #eff6ff;
}

.dashboard-token-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.dashboard-token-recent-list {
  display: grid;
  gap: 0.6rem;
}

.dashboard-token-recent-list p {
  display: grid;
  gap: 0.2rem;
  margin: 0;
  padding: 0.7rem;
  border: 1px solid #e8edf5;
  border-radius: 0.7rem;
  background: #f8fafc;
}

.dashboard-token-recent-list strong {
  color: #0f172a;
  font-weight: 950;
}

.dashboard-token-recent-list span {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 750;
}

.dashboard-mini-bars {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: end;
  min-height: 190px;
  gap: 0.45rem;
  padding: 0.5rem 0 0;
}

.dashboard-mini-bars span {
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: end;
  gap: 0.45rem;
  height: 100%;
  min-width: 0;
}

.dashboard-mini-bars i {
  display: block;
  width: 100%;
  min-height: 6px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, #2563eb, #38bdf8);
}

.dashboard-mini-bars em {
  overflow: hidden;
  color: #94a3b8;
  font-size: 0.66rem;
  font-style: normal;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
}

.dashboard-library-table {
  overflow: hidden;
  border: 1px solid #dbe7f6;
  border-radius: 0.85rem;
}

.dashboard-library-table header,
.dashboard-library-table article {
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) minmax(96px, 0.45fr) minmax(110px, 0.45fr) 100px;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1rem;
}

.dashboard-library-table header {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 950;
  background: #f8fafc;
}

.dashboard-library-table article {
  border-top: 1px solid #edf2f8;
  color: #334155;
}

.dashboard-library-table article strong {
  min-width: 0;
  color: #0f172a;
  font-weight: 950;
}

.dashboard-library-table article span {
  min-width: 0;
  overflow: hidden;
  color: #475569;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-library-table .project-card-link {
  justify-self: start;
  padding: 0.45rem 0.75rem;
  border: 1px solid #bfdbfe;
  border-radius: 0.65rem;
  color: #2563eb;
  font-weight: 950;
  text-decoration: none;
  background: #eff6ff;
}

.dashboard-library-table .project-card-link:hover {
  border-color: #2563eb;
  background: #dbeafe;
}

.dashboard-status-list {
  display: grid;
  gap: 0.75rem;
  padding-top: 0.3rem;
}

.dashboard-status-list p {
  position: relative;
  overflow: hidden;
  min-height: 42px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  padding: 0 0.7rem;
  border: 1px solid #e8edf5;
  border-radius: 0.7rem;
  color: #334155;
  background: #ffffff;
}

.dashboard-status-list p > span,
.dashboard-status-list strong {
  position: relative;
  z-index: 1;
}

.dashboard-status-list strong {
  color: #0f172a;
  font-weight: 950;
}

.dashboard-status-list i {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.16), rgba(6, 182, 212, 0.08));
}

.dashboard-public-insert {
  width: min(1160px, calc(100% - 32px));
  margin: 1.2rem auto 2rem;
  padding: 1rem;
  border: 1px solid #e6edf7;
  border-radius: 0.75rem;
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.06);
}

.dashboard-public-insert-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.dashboard-public-insert-head span {
  color: #1463f3;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.dashboard-public-insert-head h2 {
  margin: 0.25rem 0;
  color: #0f172a;
  font-size: 1.25rem;
}

.dashboard-public-insert-head p {
  margin: 0;
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.6;
}

.dashboard-public-insert-head strong {
  display: grid;
  place-items: center;
  min-width: 54px;
  height: 54px;
  border-radius: 999px;
  color: #1463f3;
  background: #eaf2ff;
  font-size: 1.1rem;
}

.dashboard-public-hero h2,
.success-hero h1,
.project-submit-hero h1 {
  margin: 0.25rem 0;
  color: #0f172a;
  font-size: 1.55rem;
}

.dashboard-public-hero strong,
.success-hero > strong {
  display: grid;
  place-items: center;
  min-width: 82px;
  height: 82px;
  border-radius: 999px;
  color: #1463f3;
  background: #eaf2ff;
  font-size: 1.55rem;
}

.public-detail-hero,
.project-card-hero {
  min-height: 300px;
  display: grid;
  align-items: end;
  margin-bottom: 1rem;
  padding: 1.3rem;
  border-radius: 0.85rem;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.15), rgba(15, 23, 42, 0.78)),
    url("https://images.unsplash.com/photo-1552664730-d307ca884978?auto=format&fit=crop&w=1600&q=80") center / cover;
}

.public-detail-hero h1,
.project-card-hero h1 {
  margin: 0.4rem 0;
  color: #fff;
  font-size: 2rem;
}

.public-detail-hero p,
.project-card-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.65;
}

.public-detail-card {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
}

.project-submit-hero {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1rem;
  padding: 1.2rem;
}

.project-submit-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  padding: 1.1rem;
  border: 1px solid #e6edf7;
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.06);
}

.project-submit-form.compact {
  box-shadow: none;
}

.project-submit-form label {
  display: grid;
  gap: 0.4rem;
  color: #334155;
  font-size: 0.86rem;
  font-weight: 850;
}

.project-submit-form label.full,
.project-submit-form button,
.project-submit-form .form-message {
  grid-column: 1 / -1;
}

.project-submit-form input,
.project-submit-form textarea,
.code-row input {
  width: 100%;
  border: 1px solid #dbe7f6;
  border-radius: 0.62rem;
  color: #0f172a;
  background: #fff;
  outline: none;
}

.project-submit-form input,
.code-row input {
  height: 40px;
  padding: 0 0.75rem;
}

.project-submit-form textarea {
  min-height: 112px;
  padding: 0.7rem 0.75rem;
  resize: vertical;
}

.code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem;
}

.code-row button {
  min-height: 40px;
  padding: 0 0.8rem;
  border: 1px solid #bfdbfe;
  border-radius: 0.62rem;
  color: #1463f3;
  background: #eff6ff;
  font-weight: 850;
}

.form-message {
  margin: 0;
  color: #1463f3;
  font-weight: 850;
}

.form-message.is-error {
  color: #b42318;
}

.project-flow {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.project-flow article {
  --flow-accent: #2563eb;
  --flow-accent-2: #60a5fa;
  --flow-bg: #eff6ff;
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: start;
  gap: 0.22rem;
  min-height: 118px;
  padding: 0.78rem 0.8rem;
  border: 3px solid var(--flow-accent);
  border-radius: 0.72rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.93), rgba(255, 255, 255, 0.78)),
    repeating-linear-gradient(0deg, rgba(255,255,255,.22) 0 4px, rgba(0,0,0,.03) 4px 8px),
    var(--flow-bg);
  box-shadow:
    4px 4px 0 rgba(15, 23, 42, 0.16),
    inset 0 0 0 2px rgba(255, 255, 255, 0.7);
  image-rendering: pixelated;
  transition: filter 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.project-flow article::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px dashed color-mix(in srgb, var(--flow-accent), white 30%);
  opacity: 0.4;
  pointer-events: none;
}

.project-flow article::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 20px;
  height: 20px;
  background: var(--flow-accent);
  opacity: 0.16;
  clip-path: polygon(0 0, 100% 0, 100% 25%, 75% 25%, 75% 50%, 50% 50%, 50% 75%, 25% 75%, 25% 100%, 0 100%);
}

.project-flow-pixel .theme-file {
  --flow-accent: #2563eb;
  --flow-accent-2: #93c5fd;
  --flow-bg: #dbeafe;
}

.project-flow-pixel .theme-ship {
  --flow-accent: #7c3aed;
  --flow-accent-2: #d8b4fe;
  --flow-bg: #ede9fe;
}

.project-flow-pixel .theme-castle {
  --flow-accent: #059669;
  --flow-accent-2: #6ee7b7;
  --flow-bg: #d1fae5;
}

.project-flow-pixel .theme-mushroom {
  --flow-accent: #ea580c;
  --flow-accent-2: #fdba74;
  --flow-bg: #ffedd5;
}

.project-flow-pixel .theme-pac {
  --flow-accent: #db2777;
  --flow-accent-2: #f9a8d4;
  --flow-bg: #fce7f3;
}

.project-flow-pixel .theme-radar {
  --flow-accent: #0891b2;
  --flow-accent-2: #67e8f9;
  --flow-bg: #cffafe;
}

.project-flow-pixel .theme-trophy {
  --flow-accent: #ca8a04;
  --flow-accent-2: #fde68a;
  --flow-bg: #fef3c7;
}

.project-flow span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 2px solid #fff;
  border-radius: 0.45rem;
  color: #fff;
  background: var(--flow-accent);
  box-shadow: 2px 2px 0 rgba(15, 23, 42, 0.2);
  font-weight: 900;
  z-index: 1;
}

.project-flow article.is-current {
  transform: translateY(-2px);
  box-shadow:
    5px 5px 0 rgba(15, 23, 42, 0.2),
    0 0 0 4px color-mix(in srgb, var(--flow-accent), transparent 78%),
    inset 0 0 0 2px rgba(255, 255, 255, 0.82);
}

.project-flow article.is-current::before {
  border-style: solid;
  opacity: 0.72;
  clip-path: polygon(0 0, 76% 0, 76% 14%, 100% 14%, 100% 100%, 0 100%);
}

.project-flow article.is-pending {
  filter: grayscale(0.86);
  opacity: 0.58;
  box-shadow: 3px 3px 0 rgba(100, 116, 139, 0.12);
}

.project-flow-symbol {
  position: absolute;
  top: 0.58rem;
  right: 0.66rem;
  color: var(--flow-accent);
  font-style: normal;
  font-size: 1.18rem;
  font-weight: 900;
  opacity: 0.78;
  text-shadow: 2px 2px 0 rgba(255, 255, 255, 0.8);
}

.project-flow strong {
  color: #0f172a;
  font-size: 0.9rem;
  line-height: 1.22;
  z-index: 1;
}

.project-flow p,
.expert-task-card p,
.project-pool-card p {
  margin: 0;
  color: #64748b;
  line-height: 1.55;
}

.project-flow p {
  color: color-mix(in srgb, var(--flow-accent), #0f172a 45%);
  font-size: 0.82rem;
  font-weight: 850;
  z-index: 1;
}

.success-actions,
.project-card-actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  align-items: center;
}

.auth-secondary-button.is-disabled {
  color: #94a3b8;
  background: #f8fafc;
  border-color: #e2e8f0;
  box-shadow: none;
  pointer-events: none;
}

.profile-center-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 1rem;
}

.profile-avatar-card {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 0.7rem;
  padding: 1.15rem;
  border: 1px solid #e6edf7;
  border-radius: 0.75rem;
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.06);
}

.profile-avatar-card strong {
  color: #0f172a;
  font-size: 1rem;
}

.profile-avatar-card > span {
  color: #64748b;
  font-size: 0.86rem;
}

.profile-avatar-upload {
  display: grid;
  justify-items: center;
  margin: 0;
}

.profile-avatar-picker {
  position: relative;
  display: block;
  border-radius: 999px;
  cursor: pointer;
  outline: none;
}

.profile-avatar-picker .user-avatar.large {
  width: 92px;
  height: 92px;
  border: 3px solid #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.18);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.profile-avatar-picker:hover .user-avatar.large,
.profile-avatar-picker:focus-visible .user-avatar.large {
  transform: translateY(-2px) scale(1.025);
  box-shadow: 0 17px 38px rgba(15, 23, 42, 0.24), 0 0 0 3px rgba(239, 157, 44, 0.3);
  filter: brightness(0.92);
}

.profile-avatar-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.profile-avatar-upload.is-uploading .profile-avatar-picker {
  cursor: wait;
  pointer-events: none;
}

.profile-avatar-upload.is-uploading .profile-avatar-picker::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 3px solid rgba(255, 255, 255, 0.5);
  border-top-color: #ffffff;
  border-radius: 999px;
  animation: profile-avatar-spin 700ms linear infinite;
}

.profile-avatar-status {
  min-height: 0;
  margin: 0.45rem 0 0;
  color: #1463f3;
  font-size: 0.84rem;
  font-weight: 850;
}

.profile-avatar-status:empty {
  display: none;
}

@keyframes profile-avatar-spin {
  to { transform: rotate(360deg); }
}

.profile-form {
  align-content: start;
}

.profile-workbench {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.profile-workbench-sidebar {
  display: grid;
  gap: 0.75rem;
}

.profile-workbench-sidebar .profile-avatar-card {
  border-radius: 8px;
  box-shadow: none;
}

.profile-workbench-nav {
  display: grid;
  padding: 0.4rem;
  border: 1px solid #e1e9f4;
  border-radius: 8px;
  background: #ffffff;
}

.profile-workbench-nav a {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 0 0.75rem;
  color: #52637a;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  border-left: 3px solid transparent;
}

.profile-workbench-nav a:hover,
.profile-workbench-nav a.is-active {
  color: #1463f3;
  border-left-color: #1463f3;
  background: #f3f7fd;
}

.profile-workbench-content {
  min-width: 0;
}

.profile-list-panel {
  min-height: 430px;
  padding: 1rem;
  border: 1px solid #e1e9f4;
  border-radius: 8px;
  background: #ffffff;
}

.profile-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 48px;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #e7edf6;
}

.profile-panel-heading > div {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.profile-panel-heading h2,
.profile-panel-heading span {
  margin: 0;
}

.profile-panel-heading h2 {
  color: #0f172a;
  font-size: 1.12rem;
}

.profile-panel-heading span {
  color: #718096;
  font-size: 0.82rem;
}

.profile-panel-heading > a,
.profile-panel-heading > button {
  padding: 0;
  color: #1463f3;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.notification-list,
.profile-business-list,
.published-application-list {
  display: grid;
}

.notification-row {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  padding: 1rem 0.35rem;
  border-bottom: 1px solid #edf1f7;
}

.notification-row:last-child,
.profile-business-row:last-child {
  border-bottom: 0;
}

.notification-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #cbd5e1;
}

.notification-row.is-unread .notification-dot {
  background: #1463f3;
  box-shadow: 0 0 0 4px #e8f0ff;
}

.notification-row p,
.notification-row h3,
.notification-row div,
.profile-business-row p,
.profile-business-row h3 {
  margin: 0;
}

.notification-row p,
.profile-business-row header p {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  margin-bottom: 0.28rem;
  color: #7b8ba2;
  font-size: 0.76rem;
}

.notification-row p em,
.profile-business-row header p span {
  color: #1463f3;
  font-style: normal;
  font-weight: 800;
}

.notification-row h3,
.profile-business-row h3 {
  color: #172033;
  font-size: 0.96rem;
}

.notification-row > div > div,
.profile-business-row > p {
  margin-top: 0.32rem;
  color: #5f6f86;
  font-size: 0.86rem;
  line-height: 1.55;
}

.notification-row > button {
  padding: 0;
  color: #1463f3;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.profile-business-row {
  padding: 1rem 0.25rem;
  border-bottom: 1px solid #e8eef6;
}

.profile-business-row > header,
.profile-business-row > footer,
.published-application-row > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.profile-business-row header em,
.published-application-row header em {
  color: #52637a;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 800;
}

.profile-business-row > footer {
  margin-top: 0.65rem;
  color: #718096;
  font-size: 0.8rem;
}

.profile-business-row > footer a,
.profile-application-files a,
.published-application-row dd a,
.profile-empty-state a {
  color: #1463f3;
  font-weight: 800;
  text-decoration: none;
}

.published-application-list {
  gap: 0.65rem;
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid #dce6f3;
}

.published-application-row {
  padding: 0.9rem;
  border: 1px solid #dce6f3;
  border-radius: 6px;
  background: #f8fafd;
}

.published-application-row header strong {
  color: #172033;
}

.published-application-row header span {
  margin-left: 0.55rem;
  color: #718096;
  font-size: 0.76rem;
}

.published-application-row dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1rem;
  margin: 0.85rem 0 0;
}

.published-application-row dl > div:nth-child(-n+3) {
  grid-column: 1 / -1;
}

.published-application-row dt {
  margin-bottom: 0.2rem;
  color: #7b8ba2;
  font-size: 0.74rem;
  font-weight: 800;
}

.published-application-row dd {
  margin: 0;
  color: #334155;
  font-size: 0.84rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.profile-application-files {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.75rem;
  padding-top: 0.7rem;
  border-top: 1px solid #e1e8f2;
  font-size: 0.8rem;
}

.profile-empty-state {
  display: grid;
  justify-items: start;
  gap: 0.6rem;
  padding: 3rem 0.5rem;
  color: #718096;
}

.profile-empty-state h3 {
  margin: 0;
  color: #334155;
  font-size: 1rem;
}

.opc-extension-page.is-opc-area .opc-extension-header-inner.has-opc-nav .user-account-tools {
  grid-column: 3;
  grid-row: 1;
}

@media (max-width: 900px) {
  .profile-workbench {
    grid-template-columns: 1fr;
  }

  .profile-workbench-sidebar {
    grid-template-columns: 180px minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .profile-workbench-sidebar,
  .published-application-row dl {
    grid-template-columns: 1fr;
  }

  .published-application-row dl > div:nth-child(-n+3) {
    grid-column: auto;
  }

  .notification-row {
    grid-template-columns: 10px minmax(0, 1fr);
  }

  .notification-row > button {
    grid-column: 2;
    justify-self: start;
  }
}

.project-progress-hero strong {
  min-width: 96px;
  padding: 0 0.9rem;
  white-space: nowrap;
}

.project-progress-hero {
  min-height: auto;
  padding: 0.95rem 1.15rem;
}

.project-progress-hero h1 {
  margin-bottom: 0;
}

.data-management-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(180px, 240px);
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.data-management-toolbar label {
  display: grid;
  gap: 0.35rem;
  color: #52637a;
  font-size: 0.82rem;
  font-weight: 800;
}

.data-management-toolbar input,
.data-management-toolbar select {
  height: 38px;
  padding: 0 0.8rem;
  border: 1px solid #d8e4f4;
  border-radius: 0.55rem;
  background: #fff;
  color: #10213a;
  font: inherit;
}

.data-management-list {
  display: grid;
  gap: 0.6rem;
}

.data-management-row {
  grid-template-columns: 32px minmax(240px, 1.45fr) repeat(3, minmax(96px, 0.72fr)) auto auto auto;
}

.data-management-row.project-data-row {
  grid-template-columns: 28px minmax(220px, 1fr) 72px 104px 90px 42px 66px 42px;
  gap: 0.42rem;
  min-height: 0;
  padding: 0.42rem 0.58rem;
  border-radius: 0.5rem;
}

.data-management-row.project-data-row > div {
  min-width: 0;
  gap: 0.08rem;
}

.data-management-row.project-data-row strong,
.data-management-row.project-data-row p,
.data-management-row.project-data-row span,
.data-management-row.project-data-row a,
.data-management-row.project-data-row button {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.data-management-row.project-data-row strong {
  font-size: 0.82rem;
  line-height: 1.2;
}

.data-management-row.project-data-row p,
.data-management-row.project-data-row span,
.data-management-row.project-data-row a,
.data-management-row.project-data-row button {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.2;
}

.data-management-row.project-data-row .data-select input {
  width: 13px;
  height: 13px;
}

.data-management-row.project-data-row .text-link-button.danger {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #dc2626;
}

.data-management-row.project-data-row .text-link-button.danger:hover {
  transform: none;
  filter: none;
  box-shadow: none;
  text-decoration: underline;
}

.data-management-row.user-table-row {
  grid-template-columns: 32px minmax(220px, 1.3fr) minmax(120px, 0.8fr) minmax(160px, 1fr) minmax(74px, 0.45fr) auto auto;
}

.data-select {
  display: grid;
  place-items: center;
}

.data-select input {
  width: 16px;
  height: 16px;
}

.project-progress-timeline {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid #e6edf7;
  border-radius: 0.75rem;
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.06);
}

.timeline-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.project-progress-timeline h2 {
  margin: 0 0 0.25rem;
  color: #0f172a;
  font-size: 1.02rem;
}

.timeline-toggle {
  min-height: 32px;
  padding: 0 0.82rem;
  border: 1px solid #cfe0f5;
  border-radius: 999px;
  color: #1463f3;
  background: #f8fbff;
  font-size: 0.84rem;
  font-weight: 900;
  cursor: pointer;
}

.timeline-toggle:hover {
  color: #fff;
  border-color: #1463f3;
  background: #1463f3;
}

.project-progress-timeline article {
  display: grid;
  grid-template-columns: 116px minmax(160px, 0.45fr) minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  padding: 0.72rem 0.8rem;
  border: 1px solid #dbe7f6;
  border-radius: 0.65rem;
  background: #f8fbff;
}

.project-progress-timeline span {
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 850;
}

.project-progress-timeline strong {
  color: #0f172a;
  font-size: 0.92rem;
}

.project-progress-timeline p {
  margin: 0;
  color: #64748b;
  line-height: 1.5;
  font-size: 0.84rem;
}

.project-progress-timeline [hidden] {
  display: none !important;
}

.project-parse-failure-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin: 16px 0;
  padding: 18px 20px;
  border: 1px solid #f0c8c8;
  border-left: 4px solid #c83d4d;
  border-radius: 6px;
  background: #fff8f8;
  color: #172033;
}

.project-parse-failure-panel strong {
  display: block;
  margin-bottom: 6px;
  font-size: 17px;
}

.project-parse-failure-panel p {
  margin: 0;
  color: #6e4a50;
  line-height: 1.65;
}

.project-parse-failure-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.project-parse-failure-panel > .form-message {
  grid-column: 1 / -1;
}

@media (max-width: 720px) {
  .project-parse-failure-panel {
    grid-template-columns: 1fr;
  }
}

.existing-project-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  padding: 22px 24px;
  border: 1px solid #d7e3f4;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(35, 64, 105, 0.08);
}

.existing-project-notice span {
  display: block;
  margin-bottom: 6px;
  color: #1d63ee;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.existing-project-notice h2 {
  margin: 0 0 6px;
  color: #0d1b35;
  font-size: 20px;
}

.existing-project-notice p {
  margin: 0;
  color: #5d6b82;
}

.all-projects-list {
  display: grid;
  gap: 12px;
}

.all-project-card .admin-project-edit {
  margin-top: 16px;
}

.progress-card-full {
  margin-top: 20px;
}

.progress-card-full .shell {
  max-width: none;
}

.progress-card-full .topbar,
.progress-card-full .status-strip {
  display: none;
}

.text-link-button {
  border: 0;
  color: #1463f3;
  background: transparent;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.review-assign-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding: 1rem;
}

.review-assign-layout h3 {
  margin: 0 0 0.75rem;
  color: #0f172a;
  font-size: 0.98rem;
}

.review-select-column {
  display: grid;
  gap: 0.75rem;
  align-content: start;
}

.review-select-column header {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: start;
}

.review-select-column header h3 {
  margin-bottom: 0.15rem;
}

.review-select-column header p {
  margin: 0;
  color: #64748b;
  font-size: 0.82rem;
}

.review-select-column header button {
  min-height: 30px;
  padding: 0 0.58rem;
  border: 1px solid #bfdbfe;
  border-radius: 0.55rem;
  color: #1463f3;
  background: #eff6ff;
  font-size: 0.78rem;
  font-weight: 850;
  cursor: pointer;
}

.review-search {
  height: 38px;
  padding: 0 0.75rem;
  border: 1px solid #dbe7f6;
  border-radius: 0.65rem;
  color: #0f172a;
  background: #ffffff;
  outline: none;
}

.review-empty-mini {
  padding: 0.9rem;
  border: 1px dashed #cbd5e1;
  border-radius: 0.65rem;
  color: #64748b;
  background: #f8fafc;
  font-size: 0.9rem;
}

.review-check-list {
  display: grid;
  gap: 0.55rem;
  max-height: 420px;
  overflow: auto;
}

.review-check-list label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.65rem;
  align-items: start;
  padding: 0.75rem;
  border: 1px solid #edf2f7;
  border-radius: 0.65rem;
  background: #f8fafc;
}

.review-check-list span {
  display: grid;
  gap: 0.25rem;
}

.review-check-list strong {
  color: #0f172a;
  line-height: 1.35;
}

.review-check-list em {
  color: #64748b;
  font-size: 0.82rem;
  font-style: normal;
}

.review-assign-layout footer {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.review-assign-layout footer p {
  margin: 0;
  color: #1463f3;
  font-weight: 850;
}

.assignment-table {
  display: grid;
  gap: 0.55rem;
  margin-top: 1rem;
}

.dispatch-log-board {
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
}

.dispatch-log-board header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.dispatch-log-board h3 {
  margin: 0;
  color: #0f172a;
  font-size: 1rem;
}

.dispatch-log-board header span {
  color: #64748b;
  font-size: 0.84rem;
  font-weight: 850;
}

.dispatch-log-item {
  display: grid;
  gap: 0.42rem;
  padding: 0.85rem 0.95rem;
  border: 1.5px solid #d5e1f1;
  border-radius: 0.78rem;
  background: #ffffff;
}

.dispatch-log-item div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.dispatch-log-item strong {
  color: #0f172a;
}

.dispatch-log-item span,
.dispatch-log-item p {
  margin: 0;
  color: #64748b;
  line-height: 1.55;
  font-size: 0.86rem;
}

.assignment-table article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px 90px;
  gap: 1rem;
  align-items: center;
  padding: 0.8rem 0.95rem;
}

.assignment-table strong,
.assignment-table span,
.assignment-table em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.assignment-table em {
  color: #1463f3;
  font-style: normal;
  font-weight: 850;
}

.expert-task-list {
  display: grid;
  gap: 1rem;
}

.expert-task-list.is-compact {
  gap: 0.55rem;
}

.expert-task-row {
  grid-template-columns: minmax(230px, 1.25fr) 112px 126px 96px 104px 116px;
}

.expert-task-row .project-row-actions {
  justify-content: flex-end;
}

.expert-task-card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1.1fr);
  gap: 1rem;
  padding: 1rem;
}

.expert-task-card > div {
  display: grid;
  align-content: start;
  gap: 0.55rem;
}

.expert-task-card span {
  width: fit-content;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  color: #1463f3;
  background: #eaf2ff;
  font-size: 0.8rem;
  font-weight: 850;
}

.expert-task-card h2 {
  margin: 0;
  color: #0f172a;
  font-size: 1.15rem;
}

.expert-task-summary small {
  width: fit-content;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 850;
}

.expert-task-summary a {
  color: #1463f3;
  font-size: 0.9rem;
  font-weight: 850;
}

.expert-task-card form {
  display: grid;
  gap: 0.65rem;
}

.expert-task-card label {
  display: grid;
  gap: 0.35rem;
  color: #334155;
  font-size: 0.86rem;
  font-weight: 850;
}

.expert-task-card input,
.expert-task-card textarea {
  border: 1px solid #dbe7f6;
  border-radius: 0.62rem;
  outline: none;
}

.expert-task-card input {
  height: 38px;
  padding: 0 0.7rem;
}

.expert-task-card textarea {
  min-height: 104px;
  padding: 0.65rem 0.7rem;
  resize: vertical;
}

.expert-review-form fieldset {
  display: grid;
  gap: 0.58rem;
  margin: 0;
  padding: 0.85rem;
  border: 1.5px solid #d5e1f1;
  border-radius: 0.72rem;
  background: #fbfdff;
}

.expert-review-form legend {
  padding: 0 0.35rem;
  color: #0f172a;
  font-size: 0.9rem;
  font-weight: 950;
}

.expert-review-form legend em {
  margin-left: 0.35rem;
  color: #1463f3;
  font-style: normal;
}

.expert-review-empty {
  padding: 0.85rem;
  border: 1px dashed #cbd5e1;
  border-radius: 0.72rem;
  color: #64748b;
  background: #f8fafc;
}

.expert-review-modal {
  width: min(920px, calc(100vw - 2rem));
}

/* Compact operations content area */
.operations-panel {
  font-size: 0.9rem;
}

.operations-panel .operation-toolbar {
  margin-bottom: 0.9rem;
}

.operations-panel .operation-toolbar h2 {
  font-size: 1.22rem;
  line-height: 1.25;
}

.operations-panel .operation-subtitle,
.operations-panel p,
.operations-panel span,
.operations-panel em,
.operations-panel label,
.operations-panel input,
.operations-panel textarea,
.operations-panel select,
.operations-panel button {
  font-size: 0.84rem;
}

.operations-panel button {
  min-height: 34px;
}

.operations-panel .lovable-primary.small,
.operations-panel .auth-secondary-button.small {
  min-height: 34px;
  padding: 0 0.72rem;
}

.operations-panel .operation-batch-tabs,
.operations-panel .operation-project-tools {
  margin-bottom: 0.78rem;
}

.operations-panel .operation-batch-tabs button,
.operations-panel .operation-status-filter button,
.operations-panel .project-view-switch button,
.operations-panel .library-review-filter button {
  min-height: 32px;
  padding: 0 0.72rem;
  border-radius: 0.62rem;
}

.library-review-filter strong {
  margin-left: 0.24rem;
}

.operations-panel .project-pool-row {
  min-height: 74px;
  padding: 0.78rem 0.85rem;
  border-color: #cbd8ea;
  border-radius: 0.72rem;
}

.operations-panel .project-pool-row strong,
.operations-panel .project-pool-card strong,
.operations-panel .score-standard-card h3,
.operations-panel .expert-task-card h2 {
  font-size: 0.94rem;
}

.operations-panel .project-pool-row span,
.operations-panel .project-pool-row em,
.operations-panel .project-pool-card p,
.operations-panel .project-pool-card dd,
.operations-panel .project-pool-card dt,
.operations-panel .review-check-list em,
.operations-panel .dispatch-log-item p {
  font-size: 0.8rem;
}

.operations-panel .project-pool-card,
.operations-panel .review-assign-layout,
.operations-panel .score-standard-card,
.operations-panel .score-standard-form,
.operations-panel .expert-task-card,
.operations-panel .directory-card,
.operations-panel .assignment-table article,
.operations-panel .dispatch-log-item {
  border-color: #d3deed;
  border-radius: 0.7rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.045);
}

.operations-panel .project-pool-card,
.operations-panel .review-assign-layout,
.operations-panel .score-standard-form,
.operations-panel .expert-task-card {
  padding: 0.85rem;
}

.operations-panel .review-check-list label,
.operations-panel .initial-review-item {
  padding: 0.62rem;
  border-color: #dbe5f2;
}

.project-muted-state.is-rejected {
  color: #b42318 !important;
  background: #fff1f2;
}

.review-decision-actions {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.review-action-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.75rem;
}

.review-reject-button,
.danger-review-button,
.text-link-button.danger {
  border: 1px solid rgba(220, 38, 38, 0.36);
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  color: #fff;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(220, 38, 38, 0.22);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.review-reject-button:hover,
.danger-review-button:hover,
.text-link-button.danger:hover {
  transform: translateY(-1px) scale(1.01);
  filter: saturate(1.08);
  box-shadow: 0 14px 30px rgba(220, 38, 38, 0.3);
}

.operations-panel .data-management-row.project-data-row {
  grid-template-columns: 28px minmax(220px, 1fr) 72px 104px 90px 42px 66px 42px;
  gap: 0.42rem;
  min-height: 0;
  padding: 0.42rem 0.58rem;
  border-radius: 0.5rem;
}

.operations-panel .data-management-row.project-data-row strong {
  font-size: 0.82rem;
  line-height: 1.2;
}

.operations-panel .data-management-row.project-data-row p,
.operations-panel .data-management-row.project-data-row span,
.operations-panel .data-management-row.project-data-row a,
.operations-panel .data-management-row.project-data-row button {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.2;
}

.operations-panel .data-management-row.project-data-row .text-link-button.danger,
.operations-panel .data-management-row.project-data-row .text-link-button.danger:hover {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #dc2626;
  transform: none;
  filter: none;
}

.reject-confirm-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(7px);
}

.reject-confirm-modal {
  width: min(390px, calc(100vw - 2rem));
  display: grid;
  justify-items: center;
  gap: 0.95rem;
  padding: 1.25rem 1.25rem 1.15rem;
  border: 1px solid #e7edf6;
  border-radius: 1.1rem;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.22);
  text-align: center;
}

.reject-confirm-modal img {
  width: min(220px, 62vw);
  aspect-ratio: 1;
  display: block;
  border-radius: 50%;
  object-fit: cover;
}

.reject-confirm-modal h3 {
  margin: 0;
  color: #0f172a;
  font-size: 1.12rem;
  font-weight: 950;
  letter-spacing: 0;
}

.reject-confirm-actions {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.expert-result-table {
  display: grid;
  border: 1px solid #d5dfef;
  background: #fff;
}

.expert-result-head,
.expert-result-table article {
  display: grid;
  grid-template-columns: 1.1fr 0.7fr 0.55fr 1.8fr;
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  border-bottom: 1px solid #dbe5f2;
  font-size: 13px;
}

.expert-result-head {
  color: #23406f;
  background: #f2f6fb;
  font-weight: 800;
}

.expert-result-table article:last-child {
  border-bottom: 0;
}

.expert-result-table p {
  margin: 0;
  color: #334155;
  line-height: 1.65;
}

.admission-confirm-box {
  display: grid;
  gap: 14px;
}

.admission-confirm-box textarea {
  min-height: 92px;
}

.expert-review-panel {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.expert-review-panel article {
  padding: 0.9rem 1rem;
  border: 1px solid #e6edf7;
  border-radius: 0.75rem;
  background: #fff;
}

.expert-review-panel strong {
  color: #0f172a;
}

.expert-review-panel span {
  color: #94a3b8;
  font-size: 0.82rem;
}

.project-pool-row {
  grid-template-columns: minmax(240px, 1fr) 90px 124px 116px 88px 92px;
}

.project-pool-card dl {
  grid-template-columns: 60px 1fr;
}

@media (max-width: 980px) {
  .ops-kanban-row,
  .ops-chart-grid,
  .opc-home-grid,
  .opc-apply-matrix,
  .home-service-grid,
  .home-insight-board,
  .dashboard-metric-grid,
  .dashboard-token-kpis,
  .dashboard-token-grid,
  .dashboard-token-board,
  .dashboard-echarts-grid,
  .public-project-grid,
  .public-detail-grid,
  .review-assign-layout,
  .expert-task-card,
  .project-submit-form {
    grid-template-columns: 1fr;
  }

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

  .home-opc-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .opc-apply-primary {
    min-height: 300px;
  }

  .opc-apply-side {
    grid-template-rows: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .assignment-table article,
  .project-pool-row {
    grid-template-columns: 1fr;
  }

  .dashboard-library-table {
    overflow-x: auto;
  }

  .dashboard-library-table header,
  .dashboard-library-table article {
    min-width: 720px;
  }

  .dashboard-echart-card:first-child {
    grid-row: auto;
  }

  .dashboard-echart,
  .dashboard-echart-card:first-child .dashboard-echart {
    height: 320px;
  }
}

@media (max-width: 720px) {
  .dashboard-token-center-head {
    display: grid;
  }

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

  .dashboard-token-donut-card div {
    grid-template-columns: 1fr;
    justify-items: center;
  }
}

.directory-card span {
  color: #2563eb;
  font-weight: 800;
}

.loading-panel {
  display: grid;
  place-items: center;
  min-height: 240px;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  color: #64748b;
  background: #ffffff;
}

.loading-panel.error-state {
  color: #b42318;
  background: #fff6f5;
}

.page-frame-skeleton {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  padding: 1.2rem;
  border: 1px solid #e2eaf5;
  border-radius: 0.9rem;
  background: #ffffff;
}

.page-frame-skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
  animation: pageFrameShimmer 1.3s ease-in-out infinite;
}

.page-frame-skeleton header {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1.2rem;
}

.page-frame-skeleton header i,
.page-frame-skeleton header span,
.page-frame-skeleton article {
  display: block;
  border-radius: 0.6rem;
  background: #edf2f8;
}

.page-frame-skeleton header i {
  width: 180px;
  height: 24px;
}

.page-frame-skeleton header span {
  width: min(420px, 72%);
  height: 14px;
}

.page-frame-skeleton > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.page-frame-skeleton article {
  min-height: 250px;
}

.page-frame-skeleton.compact {
  min-height: 280px;
}

.page-frame-skeleton.compact article {
  min-height: 150px;
}

@keyframes pageFrameShimmer {
  to { transform: translateX(100%); }
}

@media (max-width: 760px) {
  .page-frame-skeleton > div {
    grid-template-columns: 1fr;
  }

  .page-frame-skeleton article:not(:first-child) {
    display: none;
  }

  .opc-apply-side {
    grid-template-columns: 1fr;
  }

  .opc-apply-primary {
    min-height: 260px;
    padding: 1.1rem;
  }

  .opc-apply-primary h2 {
    font-size: 1.75rem;
  }

  .auth-topbar {
    height: auto;
    flex-wrap: wrap;
    gap: 0.8rem;
    padding: 1rem;
  }

  .auth-nav {
    width: 100%;
    justify-content: space-between;
    gap: 0.8rem;
    font-size: 0.84rem;
  }

  .auth-hero {
    min-height: auto;
    padding: 4rem 1rem 2rem;
  }

  .brain-landing {
    min-height: 100svh;
    padding: 0 1rem;
  }

  .brain-particle-canvas,
  .brain-fallback-field {
    inset: -12vh -48vw;
    width: 196vw;
    height: 124vh;
  }

  .brain-title-lockup {
    transform: translateY(-6vh);
    padding: 0 0.8rem;
  }

  .brain-slogan {
    margin-top: 0.58rem;
  }

  .brain-entry-inline {
    margin-top: 0.95rem;
  }

  .brain-entry-inline .auth-entry-grid {
    width: min(100%, 330px);
    gap: 0.55rem;
  }

  .brain-entry-inline .auth-entry-card {
    width: 100%;
    min-height: 58px;
    display: grid;
    grid-template-columns: 34px 1fr;
    justify-items: start;
    padding: 0.68rem 0.78rem;
  }

  .brain-entry-inline .auth-entry-card div {
    display: contents;
  }

  .brain-entry-inline .auth-entry-icon {
    width: 32px;
    height: 32px;
    grid-row: 1;
    grid-column: 1;
  }

  .brain-entry-inline .auth-entry-card h2 {
    grid-row: 1;
    grid-column: 2;
    align-self: center;
    margin: 0;
    font-size: 0.92rem;
  }

  .auth-stats,
  .auth-entry-grid {
    flex-direction: column;
  }

  .auth-entry-card {
    width: 100%;
  }

  .auth-feature-section {
    min-height: 420px;
  }

  .home-service-grid,
  .home-insight-board,
  .dashboard-metric-grid {
    grid-template-columns: 1fr;
  }

  .home-opc-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .opc-extension-header-inner,
  .opc-extension-title {
    align-items: start;
    flex-direction: column;
  }

  .opc-extension-header {
    height: auto;
  }

  .opc-extension-header-inner {
    height: auto;
    gap: 0.8rem;
    padding: 1rem;
  }

  .operations-tabs {
    grid-template-columns: repeat(2, minmax(170px, 1fr));
  }

  .operations-workbench,
  .operation-summary-grid,
  .ops-chart-grid,
  .project-pool-grid.is-active,
  .cycle-card-grid {
    grid-template-columns: 1fr;
  }

  .operations-sidebar {
    position: static;
  }

  .migrated-project-grid,
  .project-form-layout,
  .project-detail-layout,
  .operation-stat-grid,
  .project-pool-row,
  .directory-grid,
  .expert-filter-bar,
  .expert-dimension-strip,
  .expert-grid,
  .project-table-row {
    grid-template-columns: 1fr;
  }

  .permission-category-items,
  .user-table-row,
  .user-inline-form,
  .role-assign-form {
    grid-template-columns: 1fr;
  }

  .permission-role-list-columns {
    display: none;
  }

  .permission-role-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.45rem 0.8rem;
  }

  .permission-role-count {
    grid-column: 1;
    grid-row: 3;
  }

  .permission-role-type {
    grid-column: 1;
    grid-row: 2;
  }

  .permission-role-actions {
    grid-column: 2;
    grid-row: 1 / span 3;
  }

  .role-permission-modal .permission-category-board {
    grid-template-columns: 1fr;
  }

  .user-row-actions {
    justify-content: flex-start;
  }

  .ops-pie-wrap {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .project-submit-banner,
  .project-detail-hero {
    align-items: start;
    flex-direction: column;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .project-status-box {
    width: 100%;
    text-align: left;
  }
}

/* Static image based project progress module */
.project-flow.project-flow-pixel {
  position: relative;
  gap: 0.55rem;
  align-items: stretch;
  margin: 0 0 1.25rem;
  padding: 0.25rem 0.45rem 3.55rem;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}

.project-flow.project-flow-pixel::before {
  content: "";
  position: absolute;
  left: 0.35rem;
  right: 0.35rem;
  bottom: -1.55rem;
  height: 158px;
  background: url("/progress-flow-images/flow-base.png?v=20260610c") center bottom / 100% 100% no-repeat;
  opacity: 0.9;
  filter: saturate(1.08) drop-shadow(0 18px 24px rgba(37, 99, 235, 0.12));
  pointer-events: none;
  z-index: 0;
}

.project-flow-pixel article {
  position: relative;
  min-height: 268px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  isolation: isolate;
  z-index: 1;
}

.project-flow-pixel article.is-current {
  z-index: 3;
}

.project-flow-card-image {
  position: absolute;
  inset: -2px 0 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
  filter: saturate(1.08) contrast(1.04);
  transition: filter 0.18s ease, opacity 0.18s ease, transform 0.18s ease;
  z-index: 0;
}

.project-flow-pixel article > span {
  position: absolute;
  top: 29px;
  left: 28px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 2px solid rgba(255,255,255,0.95);
  border-radius: 999px;
  color: #fff;
  background: var(--flow-accent);
  box-shadow: 3px 3px 0 rgba(15, 23, 42, 0.18);
  font-size: 1.05rem;
  font-weight: 950;
  z-index: 2;
}

.project-flow-pixel article > strong {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 58px;
  z-index: 2;
  color: #0f172a;
  font-size: 1.03rem;
  font-weight: 950;
  line-height: 1.2;
  text-align: center;
  letter-spacing: 0;
  text-shadow:
    0 2px 0 rgba(255, 255, 255, 0.92),
    1px 0 0 rgba(255, 255, 255, 0.82),
    -1px 0 0 rgba(255, 255, 255, 0.82);
}

.project-flow-pixel article > p {
  position: absolute;
  left: 50%;
  bottom: 19px;
  min-width: 82px;
  margin: 0;
  padding: 0.22rem 0.58rem;
  border: 2px solid color-mix(in srgb, var(--flow-accent), #fff 58%);
  border-radius: 0.42rem;
  color: var(--flow-accent);
  background: color-mix(in srgb, var(--flow-accent), #fff 88%);
  box-shadow: 2px 2px 0 rgba(15, 23, 42, 0.08);
  font-size: 0.88rem;
  font-weight: 900;
  line-height: 1.45;
  text-align: center;
  transform: translateX(-50%);
  z-index: 2;
}

.project-flow-pixel article.is-current .project-flow-card-image {
  filter: saturate(1.22) contrast(1.08) drop-shadow(0 16px 24px rgba(219, 39, 119, 0.2));
  transform: translateY(-4px) scale(1.05);
}

.project-flow-pixel article.is-current > p {
  color: #db2777;
  border-color: #f9a8d4;
  background: #fdf2f8;
}

.project-flow-pixel article.is-failed {
  --flow-accent: #dc2626;
  --flow-accent-2: #fca5a5;
  --flow-bg: #fee2e2;
  z-index: 3;
}

.project-flow-pixel article.is-failed .project-flow-card-image {
  filter: grayscale(0.35) saturate(0.72) contrast(1.02) drop-shadow(0 12px 20px rgba(220, 38, 38, 0.18));
}

.project-flow-pixel article.is-failed > p {
  color: #b91c1c;
  border-color: #fca5a5;
  background: #fff1f2;
}

.project-flow-pixel article::after {
  content: "";
  position: absolute;
  inset: 6px 8px 15px;
  width: auto;
  height: auto;
  background: rgba(238, 242, 247, 0.62);
  opacity: 0;
  border-radius: 0.75rem;
  pointer-events: none;
  z-index: 1;
}

.project-flow-pixel article.is-pending .project-flow-card-image {
  filter: grayscale(0.96) saturate(0.35) contrast(0.95);
  opacity: 0.72;
}

.project-flow-pixel article.is-pending::after {
  opacity: 1;
}

.project-flow-pixel article.is-pending > span,
.project-flow-pixel article.is-pending > strong,
.project-flow-pixel article.is-pending > p {
  opacity: 0.82;
}

.project-flow-pixel article.is-pending > p {
  color: #94a3b8;
  border-color: #d1d5db;
  background: #f8fafc;
}

@media (prefers-reduced-motion: reduce) {
  .project-flow-card-image {
    transition: none;
  }
}

.opc-module-hero {
  display: flex;
  align-items: center;
  margin-top: 1.15rem;
  padding: 1.05rem 1.25rem;
  border: 1px solid #d8e3f2;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 246, 255, 0.9)),
    radial-gradient(circle at 92% 18%, rgba(37, 99, 235, 0.14), transparent 34%);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.06);
}

.opc-module-hero small {
  display: block;
  margin-bottom: 0.45rem;
  color: #2563eb;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.opc-module-hero h2 {
  margin: 0;
  color: #061739;
  font-size: 1.45rem;
  letter-spacing: 0;
}

.policy-library-entry {
  min-height: 76px;
}

.opc-module-hero p {
  max-width: 760px;
  margin: 0.5rem 0 0;
  color: #526684;
  line-height: 1.7;
}

.opc-module-hero strong {
  min-width: 118px;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: #eef5ff;
  color: #46617f;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
}

.opc-module-hero strong span {
  display: block;
  color: #1d5fe8;
  font-size: 1.65rem;
  line-height: 1;
}

.opc-module-search {
  margin: 1rem 0 0;
}

.opc-module-search input {
  width: min(460px, 100%);
  height: 42px;
  border: 1px solid #d6e2f1;
  border-radius: 12px;
  padding: 0 1rem;
  color: #49617d;
  background: #fff;
}

.opc-module-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1rem;
}

.opc-module-grid.skill {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.opc-module-card {
  min-height: 166px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem;
  border: 1px solid #dbe6f4;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.045);
}

.opc-module-card span {
  color: #2563eb;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.opc-module-card h3 {
  margin: 0.34rem 0 0.45rem;
  color: #071832;
  font-size: 1rem;
  letter-spacing: 0;
}

.opc-module-card p {
  margin: 0;
  color: #526684;
  font-size: 0.86rem;
  line-height: 1.65;
}

.opc-module-card footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.opc-module-card em {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 0.58rem;
  border-radius: 999px;
  background: #edf4ff;
  color: #2563eb;
  font-style: normal;
  font-size: 0.73rem;
  font-weight: 700;
}

@media (max-width: 980px) {
  .opc-module-grid,
  .opc-module-grid.skill {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .opc-module-hero {
    grid-template-columns: 1fr;
  }

  .opc-module-grid,
  .opc-module-grid.skill {
    grid-template-columns: 1fr;
  }
}

.module-search-panel {
  display: grid;
  gap: 0.62rem;
  margin: 0.2rem 0 0.9rem;
}

.module-search-form {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.module-search-form label {
  width: min(720px, 100%);
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0 0.9rem;
  border: 1px solid #cbd9ea;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(15, 23, 42, 0.035);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
}

.module-search-form label:focus-within {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.module-search-form label > span {
  color: #6b7f99;
  font-size: 1.35rem;
  line-height: 1;
}

.module-search-form input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #14213d;
  font: inherit;
  font-size: 0.95rem;
}

.module-search-form input::placeholder {
  color: #91a1b5;
}

.module-search-form small {
  min-width: 112px;
  color: #657790;
  font-size: 0.78rem;
  font-weight: 750;
  text-align: right;
}

.module-search-panel.is-searching .module-search-form label {
  opacity: 0.68;
}

.module-search-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  column-gap: 0.9rem;
  row-gap: 0.35rem;
}

.module-search-tags > span {
  margin-right: 0.15rem;
  color: #c5d3e6;
  font-size: 0.76rem;
  font-weight: 800;
}

.module-search-tags button {
  min-height: 24px;
  appearance: none;
  padding: 0 !important;
  border: 0 !important;
  border-bottom: 1px solid transparent !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #f1f5f9;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 750;
  cursor: pointer;
  transition: border-color 0.16s ease, color 0.16s ease;
}

.module-search-tags button:hover,
.module-search-tags button.is-active {
  border-bottom-color: currentColor !important;
  background: transparent !important;
  color: #8fc0ff;
}

.tool-category-tabs,
.tool-admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1rem 0;
}

.tool-category-tabs a,
.tool-admin-tabs button {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.12rem;
  min-height: 38px;
  padding: 0 0.95rem;
  border: 1px solid #d8e4f5;
  border-radius: 12px;
  background: #fff;
  color: #516985;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.tool-category-tabs a strong {
  color: inherit;
  font-size: 0.92rem;
  line-height: 1;
}

.tool-category-tabs a span {
  color: #8aa0bd;
  font-size: 0.68rem;
  font-weight: 850;
  line-height: 1;
}

.tool-category-tabs a.is-active,
.tool-admin-tabs button.is-active {
  border-color: #2d6eea;
  background: #edf4ff;
  color: #1d5fe8;
}

.tool-category-tabs a.is-active span {
  color: #2d6eea;
}

@media (max-width: 640px) {
  .module-search-form {
    align-items: stretch;
    flex-direction: column;
    gap: 0.4rem;
  }

  .module-search-form label {
    width: 100%;
  }

  .module-search-form small {
    min-width: 0;
    text-align: left;
  }
}

.tool-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.tool-card {
  position: relative;
  min-height: 224px;
  border: 1px solid #dbe6f4;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.045);
}

.tool-card-main {
  display: flex;
  height: 100%;
  min-height: 224px;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1rem;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.tool-logo {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid #e1eaf7;
  border-radius: 14px;
  background: #f7fbff;
  color: #1463f3;
  font-size: 0.88rem;
  font-weight: 950;
}

.tool-logo.small {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
}

.tool-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tool-logo b {
  display: none;
}

.tool-logo.is-fallback b {
  display: block;
}

.tool-meta,
.tool-card em {
  color: #2563eb;
  font-size: 0.72rem;
  font-weight: 800;
  font-style: normal;
}

.tool-card strong {
  color: #071832;
  font-size: 1.02rem;
  line-height: 1.35;
}

.tool-card p {
  margin: 0;
  color: #526684;
  font-size: 0.85rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.skill-card {
  min-height: 244px;
}

.skill-card-main {
  min-height: 244px;
  padding-top: 1.05rem;
}

.skill-card-labels {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  min-height: 22px;
  color: #6b7e98;
  font-size: 0.72rem;
  font-weight: 800;
}

.skill-card-labels b {
  padding: 0.18rem 0.38rem;
  border: 1px solid #b8cdf1;
  border-radius: 4px;
  background: #f7faff;
  color: #155eef;
  font-size: 0.68rem;
  line-height: 1;
}

.skill-card-labels b[data-capability-type="mcp"] {
  border-color: #99d3c4;
  color: #08785f;
}

.skill-card-labels b[data-capability-type="api"] {
  border-color: #e8c58c;
  color: #9a5a05;
}

.skill-card-labels b[data-capability-type="open_source"] {
  border-color: #cbd5e1;
  color: #526178;
}

.skill-card-labels b.is-workbuddy {
  border: 0;
  background: transparent;
  color: #7c3aed;
}

.skill-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: rgba(15, 23, 42, 0.34);
}

.skill-detail-modal[hidden] {
  display: none;
}

.skill-detail-modal-panel {
  width: min(1080px, 100%);
  height: min(860px, calc(100vh - 4rem));
  max-height: calc(100vh - 4rem);
  overflow: auto;
  border: 1px solid #d9e5f6;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.2);
}

.skill-detail-modal-panel > header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid #e4edf8;
  background: rgba(255, 255, 255, 0.96);
}

.skill-detail-modal-panel header span {
  color: #2563eb;
  font-size: 0.72rem;
  font-weight: 900;
}

.skill-detail-modal-panel header h3 {
  margin: 0.2rem 0 0;
}

.skill-detail-modal-panel header button {
  border: 0;
  background: transparent;
  color: #0f172a;
  font-weight: 800;
  cursor: pointer;
}

.skill-detail-content {
  display: grid;
  gap: 1rem;
  padding: 1.2rem;
}

.skill-detail-summary span {
  color: #2563eb;
  font-weight: 850;
}

.skill-detail-summary h3 {
  margin: 0.35rem 0;
  color: #071832;
}

.skill-detail-summary p,
.skill-detail-content section p {
  margin: 0;
  color: #4f647f;
  line-height: 1.75;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.7rem;
}

.skill-tags em {
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: #edf4ff;
  color: #2563eb;
  font-style: normal;
  font-size: 0.74rem;
  font-weight: 800;
}

.skill-detail-content dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 0;
}

.skill-detail-content dl div,
.skill-detail-content section,
.skill-install-box {
  padding: 0.9rem;
  border: 1px solid #e0e9f6;
  border-radius: 12px;
  background: #fdfefe;
}

.skill-readme-section {
  min-height: 320px;
}

.skill-readme-block {
  max-height: 420px;
  overflow: auto;
  margin: 0.7rem 0 0;
  padding: 0.9rem;
  border-radius: 12px;
  background: #f8fbff;
  color: #334155;
  font-family: inherit;
  font-size: 0.9rem;
  line-height: 1.8;
  white-space: pre-wrap;
}

.skill-detail-content dt {
  color: #70839c;
  font-size: 0.78rem;
  font-weight: 800;
}

.skill-detail-content dd {
  margin: 0.2rem 0 0;
  color: #0f172a;
  font-weight: 850;
}

.skill-install-box pre {
  overflow: auto;
  margin: 0.65rem 0;
  padding: 0.8rem;
  border-radius: 10px;
  background: #0f172a;
  color: #e5f0ff;
  white-space: pre-wrap;
}

.skill-install-box button,
.skill-source-action {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 6px;
  padding: 0 0.9rem;
  background: #2563eb;
  color: #fff;
  font-weight: 850;
  cursor: pointer;
  text-decoration: none;
}

.tool-favorite {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  width: 34px;
  height: 34px;
  border: 1px solid #d9e5f6;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #95a4ba;
  cursor: pointer;
}

.tool-favorite:hover,
.tool-favorite.is-active {
  border-color: #f6c343;
  background: #fff8db;
  color: #c88400;
}

.tool-scroll-sentinel {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.38rem;
  margin-top: 0.75rem;
  color: #94a3b8;
}

.tool-scroll-sentinel i {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.35;
}

.tool-scroll-sentinel.is-loading i {
  animation: recommendationLoading 0.9s ease-in-out infinite alternate;
}

.tool-scroll-sentinel.is-loading i:nth-child(2) {
  animation-delay: 0.16s;
}

.tool-scroll-sentinel.is-loading i:nth-child(3) {
  animation-delay: 0.32s;
}

.tool-scroll-sentinel.is-error {
  color: #b42318;
}

@keyframes recommendationLoading {
  to { opacity: 1; transform: translateY(-3px); }
}

.tool-open-page {
  display: grid;
  gap: 0.8rem;
}

.tool-open-page header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid #d8e3f2;
  border-radius: 16px;
  background: #fff;
}

.tool-open-page header a {
  text-decoration: none;
}

.tool-open-page header h2,
.tool-open-page header p {
  margin: 0;
}

.tool-open-page header span {
  color: #2563eb;
  font-size: 0.72rem;
  font-weight: 800;
}

.tool-open-page iframe {
  width: 100%;
  min-height: 70vh;
  border: 1px solid #d8e3f2;
  border-radius: 16px;
  background: #fff;
}

.tool-embed-note {
  margin: 0;
  color: #667b99;
  font-size: 0.82rem;
}

.tool-admin-panel {
  display: grid;
  gap: 1rem;
}

.tool-admin-form,
.tool-admin-row {
  padding: 1rem;
  border: 1px solid #dbe6f4;
  border-radius: 14px;
  background: #fff;
}

.tool-admin-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.tool-admin-form label {
  display: grid;
  gap: 0.35rem;
  color: #4b617d;
  font-weight: 800;
}

.tool-admin-form label.wide {
  grid-column: 1 / -1;
}

.tool-admin-form input,
.tool-admin-form select,
.tool-admin-form textarea {
  width: 100%;
  border: 1px solid #d8e4f4;
  border-radius: 10px;
  padding: 0.65rem 0.72rem;
  font: inherit;
}

.tool-admin-list {
  display: grid;
  gap: 0.72rem;
}

.tool-admin-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.8rem;
  align-items: center;
}

.tool-admin-summary {
  display: flex;
  min-width: 0;
  gap: 0.75rem;
  align-items: center;
}

.tool-admin-summary div {
  min-width: 0;
}

.tool-admin-summary p,
.tool-admin-summary em {
  margin: 0.2rem 0 0;
  color: #5f728c;
  font-size: 0.84rem;
  font-style: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1120px) {
  .tool-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .tool-card-grid,
  .tool-admin-form-grid,
  .tool-admin-row {
    grid-template-columns: 1fr;
  }

  .skill-detail-content dl {
    grid-template-columns: 1fr;
  }

  .tool-open-page header {
    grid-template-columns: 1fr;
  }
}

.star-company-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.star-company-grid.full {
  margin-top: 1.2rem;
}

.star-company-card {
  display: grid;
  grid-template-rows: 184px minmax(0, 1fr);
  overflow: hidden;
  min-height: 392px;
  border: 1px solid #d7e3f2;
  border-radius: 8px;
  background: #fff;
  color: #10213a;
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(30, 64, 112, 0.09);
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.star-company-thumb {
  position: relative;
  overflow: hidden;
  background: #dfe8f2;
}

.star-company-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.28s ease;
}

.star-company-data-cover {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #17496b, #51728a);
}

.star-company-number {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  padding: 0.32rem 0.55rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.92);
  color: #17496b;
  font-size: 0.7rem;
  font-weight: 900;
  box-shadow: 0 5px 14px rgba(15, 38, 64, 0.14);
}

.star-company-card:hover {
  border-color: #9ab7d6;
  box-shadow: 0 20px 42px rgba(30, 64, 112, 0.14);
  transform: translateY(-3px);
}

.star-company-card:hover .star-company-thumb img {
  transform: scale(1.045);
}

.star-company-card-body {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 0.55rem;
  min-width: 0;
  padding: 1rem;
}

.star-company-card-meta {
  overflow: hidden;
  color: #55708d;
  font-size: 0.68rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.star-company-card-body h3 {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #10213a;
  font-size: 1.03rem;
  line-height: 1.42;
  letter-spacing: 0;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.star-company-card-body > p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #5b6f88;
  font-size: 0.75rem;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.star-company-card-body footer {
  display: grid;
  gap: 0.2rem;
  padding-top: 0.7rem;
  border-top: 1px solid #e3ebf4;
}

.star-company-card-body footer strong {
  overflow: hidden;
  color: #233d5b;
  font-size: 0.76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.star-company-card-body footer span {
  color: #465d78;
  font-size: 0.72rem;
  font-weight: 700;
}

.star-company-toggle-bar {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.star-company-detail {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid #dbe6f4;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 22px 52px rgba(25, 56, 93, 0.1);
}

.star-company-detail-cover {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  background: #183247;
}

.star-company-detail-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.star-company-detail-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 24, 45, 0.88) 0%, rgba(6, 24, 45, 0.5) 48%, rgba(6, 24, 45, 0.08) 78%);
}

.star-company-detail-heading {
  position: absolute;
  z-index: 1;
  left: clamp(1.4rem, 5vw, 4.5rem);
  right: 45%;
  bottom: clamp(1.5rem, 5vw, 4rem);
  color: #fff;
}

.star-company-detail-heading span,
.star-company-kicker {
  color: #57b7c6;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.star-company-detail-heading p {
  margin: 0.8rem 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
}

.star-company-detail-heading h1 {
  margin: 0.45rem 0 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.16;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.star-company-detail-intro,
.star-company-progress-section,
.star-company-visual-story {
  padding: clamp(1.5rem, 4vw, 3.8rem);
}

.star-company-detail-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.8fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.star-company-detail-intro h2,
.star-company-section-heading h2 {
  margin: 0.65rem 0 0;
  color: #10213a;
  font-size: clamp(1.45rem, 2.4vw, 2.25rem);
  line-height: 1.45;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.star-company-detail-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem 1.5rem;
  margin: 0;
}

.star-company-detail-facts div {
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #dbe6f4;
}

.star-company-detail-facts dt {
  color: #7a8ca2;
  font-size: 0.68rem;
}

.star-company-detail-facts dd {
  margin: 0.35rem 0 0;
  color: #1b3552;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.45;
}

.star-company-progress-section {
  background: #edf4f8;
}

.star-company-progress-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.6rem;
}

.star-company-progress-grid article {
  min-height: 190px;
  padding: 1.2rem;
  border-top: 3px solid #57b7c6;
  border-radius: 4px;
  background: #fff;
}

.star-company-progress-grid article > span {
  color: #9aabba;
  font-size: 0.7rem;
  font-weight: 900;
}

.star-company-progress-grid h3 {
  margin: 1.25rem 0 0.65rem;
  color: #17324f;
  font-size: 1rem;
}

.star-company-progress-grid p {
  margin: 0;
  color: #566f86;
  font-size: 0.78rem;
  line-height: 1.75;
}

.star-company-visual-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(260px, 0.75fr);
  gap: 1rem;
  margin-top: 1.6rem;
}

.star-company-visual-grid figure {
  position: relative;
  overflow: hidden;
  min-height: 330px;
  margin: 0;
  border-radius: 6px;
  background: #dfe8f2;
}

.star-company-visual-grid figure:last-child {
  min-height: 420px;
}

.star-company-visual-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.star-company-visual-grid figure:first-child img {
  object-position: 28% center;
}

.star-company-visual-grid figure:last-child img {
  object-position: 72% center;
}

.star-company-visual-grid figcaption {
  position: absolute;
  right: 0.8rem;
  bottom: 0.8rem;
  padding: 0.35rem 0.55rem;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.9);
  color: #17324f;
  font-size: 0.68rem;
  font-weight: 800;
}

.star-company-source-note {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  padding: 1.1rem clamp(1.5rem, 4vw, 3.8rem);
  border-top: 1px solid #e2eaf2;
  background: #f8fafc;
  color: #72859b;
  font-size: 0.68rem;
}

.star-company-source-note strong {
  flex: none;
  color: #29435f;
}

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

@media (max-width: 760px) {
  .star-company-card {
    grid-template-rows: 176px minmax(0, 1fr);
    min-height: 380px;
  }

  .star-company-detail-cover {
    min-height: 390px;
  }

  .star-company-detail-heading {
    right: 1.3rem;
  }

  .star-company-detail-heading h1 {
    max-width: 100%;
    font-size: 1.8rem;
    word-break: break-all;
  }

  .star-company-detail-intro,
  .star-company-progress-grid,
  .star-company-visual-grid {
    grid-template-columns: 1fr;
  }

  .star-company-detail-facts {
    grid-template-columns: 1fr;
  }

  .star-company-detail-intro h2 {
    font-size: 1.35rem;
    word-break: break-all;
  }

  .star-company-visual-grid figure,
  .star-company-visual-grid figure:last-child {
    min-height: 240px;
  }

  .star-company-source-note {
    display: grid;
  }
}

.home-banner-form,
.home-banner-admin-row,
.star-company-form,
.star-company-admin-row {
  padding: 1rem;
  border: 1px solid #dbe6f4;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
}

.home-banner-form,
.star-company-form {
  margin-bottom: 1rem;
}

.home-banner-form-grid,
.star-company-form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.home-banner-form label,
.star-company-form label {
  display: grid;
  gap: 0.35rem;
  color: #425979;
  font-size: 0.78rem;
  font-weight: 700;
}

.home-banner-form label.wide,
.star-company-form label.wide {
  grid-column: span 2;
}

.home-banner-form input,
.home-banner-form select,
.home-banner-form textarea,
.star-company-form input {
  min-height: 38px;
  border: 1px solid #d5e1f1;
  border-radius: 10px;
  padding: 0 0.75rem;
  color: #071832;
}

.home-banner-form textarea {
  min-height: 76px;
  padding: 0.7rem 0.75rem;
  resize: vertical;
}

.rich-editor-shell {
  margin-top: 0.9rem;
  border: 1px solid #d5e1f1;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.rich-editor-toolbar {
  display: flex;
  gap: 0.45rem;
  padding: 0.55rem;
  border-bottom: 1px solid #e5edf7;
  background: #f8fbff;
}

.rich-editor-toolbar button {
  border: 1px solid #d5e1f1;
  border-radius: 8px;
  background: #fff;
  color: #18416f;
  font-weight: 800;
}

.rich-editor {
  min-height: 150px;
  padding: 0.85rem;
  color: #17324f;
  line-height: 1.7;
  outline: none;
}

.rich-editor img {
  max-width: 100%;
  border-radius: 10px;
}

.home-banner-form-actions,
.star-company-form-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 0.85rem;
}

.home-banner-admin-list,
.star-company-admin-list {
  display: grid;
  gap: 0.75rem;
}

.home-banner-admin-row,
.star-company-admin-row {
  display: grid;
  gap: 0.75rem;
}

.home-banner-admin-preview,
.star-company-admin-preview {
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 0.9rem;
  align-items: center;
}

.home-banner-admin-cover,
.star-company-admin-cover {
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  background: linear-gradient(135deg, #dbeafe, #2563eb);
  background-position: center;
  background-size: cover;
}

.home-banner-admin-cover {
  aspect-ratio: 3 / 1;
  background: linear-gradient(135deg, #111827, #2f473f);
}

.home-banner-admin-preview strong,
.home-banner-admin-preview span,
.home-banner-admin-preview em,
.star-company-admin-preview strong,
.star-company-admin-preview span,
.star-company-admin-preview em {
  display: block;
}

.home-banner-admin-preview strong,
.star-company-admin-preview strong {
  color: #071832;
  font-size: 1rem;
}

.home-banner-admin-preview span,
.home-banner-admin-preview em,
.star-company-admin-preview span,
.star-company-admin-preview em {
  color: #526684;
  font-size: 0.82rem;
  font-style: normal;
  margin-top: 0.25rem;
}

.home-banner-admin-actions,
.star-company-admin-actions {
  display: flex;
  justify-content: flex-end;
}

.home-banner-edit-panel summary,
.star-company-edit-panel summary {
  cursor: pointer;
  color: #2563eb;
  font-weight: 800;
}

.home-banner-edit-panel .home-banner-form,
.star-company-edit-panel .star-company-form {
  margin: 0.75rem 0 0;
  background: #f8fbff;
}

.home-banner-wechat-tools {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.8rem;
}

.home-banner-wechat-preview {
  display: grid;
  gap: 0.2rem;
  min-height: 38px;
  padding: 0.55rem 0.7rem;
  border: 1px solid #d5e1f1;
  border-radius: 10px;
  background: #f8fbff;
  color: #526684;
  font-size: 0.78rem;
}

.home-banner-wechat-preview strong {
  color: #17324f;
}

@media (max-width: 980px) {
  .home-banner-form-grid,
  .star-company-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-banner-form label.wide {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .star-company-grid,
  .home-banner-form-grid,
  .star-company-form-grid,
  .home-banner-admin-preview,
  .star-company-admin-preview {
    grid-template-columns: 1fr;
  }
}

.policy-plaza {
  display: grid;
  gap: 1rem;
}

.policy-compact-tabbar {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.55rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid #e2e8f0;
}

.policy-compact-tab {
  display: grid;
  place-items: center;
  min-height: 44px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  color: #64748b;
  text-decoration: none;
}

.policy-compact-tab strong {
  font-size: 0.92rem;
  line-height: 1.2;
}

.policy-compact-tab.is-active {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.18);
}

.policy-overview-card,
.policy-assistant-shell,
.policy-admin-create,
.policy-admin-row,
.policy-library-panel {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.06);
}

.policy-overview-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
}

a.policy-overview-card {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

a.policy-overview-card:hover {
  border-color: #bfdbfe;
  box-shadow: 0 18px 46px rgba(37, 99, 235, 0.1);
}

.policy-overview-card span,
.policy-assistant-main header span,
.policy-context-card span,
.policy-detail-content > span,
.policy-admin-row header span {
  display: block;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
}

.policy-overview-card h2,
.policy-assistant-main h2,
.policy-admin-row h3 {
  margin: 0.2rem 0;
  color: #0f172a;
  font-size: 1.1rem;
}

.policy-overview-card p,
.policy-context-card p,
.policy-admin-row p {
  margin: 0;
  color: #64748b;
  font-size: 0.86rem;
}

.policy-count-button {
  min-width: 112px;
  border: 0;
  border-radius: 8px;
  background: #0f172a;
  color: #fff;
  padding: 0.75rem 1rem;
  cursor: pointer;
}

.policy-count-button strong,
.policy-count-button span {
  display: block;
  color: inherit;
}

.policy-count-button strong {
  font-size: 1.45rem;
}

.policy-count-display {
  display: grid;
  gap: 0.12rem;
  min-width: 112px;
  justify-items: center;
  border-radius: 8px;
  background: #eef6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  padding: 0.64rem 0.9rem;
}

.policy-count-display strong {
  color: #0f172a;
  font-size: 1.8rem;
  line-height: 1;
}

.policy-count-display span {
  color: #475569;
  font-size: 0.78rem;
  font-weight: 800;
}

.policy-assistant-shell {
  overflow: hidden;
  background: #0b1220;
}

.policy-assistant-main {
  padding: 1.1rem;
}

.policy-assistant-main header,
.policy-match-card header,
.policy-library-panel header,
.policy-admin-row header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.policy-assistant-main header h2,
.policy-assistant-main header span {
  color: #fff;
}

.policy-context-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding: 0.9rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.policy-context-card strong {
  display: block;
  margin: 0.2rem 0;
}

.policy-context-card p,
.policy-context-card span {
  color: #cbd5e1;
}

.policy-context-actions {
  display: flex;
  gap: 0.5rem;
}

.policy-context-actions button,
.policy-context-actions a,
.policy-match-card header button,
.policy-library-panel header button {
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 0.55rem 0.75rem;
  cursor: pointer;
}

.policy-context-actions a {
  text-decoration: none;
}

.policy-result-panel {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.policy-empty-result,
.policy-match-card {
  border-radius: 8px;
  background: #fff;
  padding: 1rem;
}

.policy-empty-result h3,
.policy-match-card h3 {
  margin: 0 0 0.3rem;
  color: #0f172a;
  font-size: 1rem;
}

.policy-empty-result p,
.policy-match-card p,
.policy-match-card li {
  color: #475569;
  font-size: 0.86rem;
}

.policy-match-card {
  border-left: 4px solid #64748b;
}

.policy-match-card.high {
  border-left-color: #059669;
}

.policy-match-card.medium {
  border-left-color: #d97706;
}

.policy-match-card.low {
  border-left-color: #64748b;
}

.policy-match-card header button {
  background: #f8fafc;
  color: #1d4ed8;
}

.policy-match-card section {
  margin-top: 0.7rem;
}

.policy-match-card ul {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
}

.policy-chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: stretch;
  padding: 0.9rem;
  background: #050816;
}

.policy-chat-form textarea {
  width: 100%;
  min-height: 54px;
  max-height: 180px;
  resize: none;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  background: #0f172a;
  color: #fff;
  padding: 0.7rem;
}

.policy-chat-input-wrap {
  position: relative;
  min-width: 0;
  display: grid;
  align-content: end;
}

.policy-chat-input-wrap textarea {
  padding-left: 3.1rem;
  padding-bottom: 0.75rem;
}

.policy-chat-input-wrap.has-attachment textarea {
  min-height: 94px;
  padding-top: 2.6rem;
}

.policy-pending-attachments {
  position: absolute;
  top: 0.5rem;
  left: 0.55rem;
  right: 0.55rem;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  pointer-events: none;
}

.policy-pending-attachment-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 100%;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
  color: #1d4ed8;
  padding: 0.32rem 0.45rem;
  font-size: 0.82rem;
  pointer-events: auto;
}

.policy-pending-attachment-chip i {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: #2563eb;
  color: #fff;
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 800;
}

.policy-pending-attachment-chip strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.policy-pending-attachment-chip button {
  border: 0;
  background: transparent;
  color: #1d4ed8;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.policy-upload-icon-button {
  position: absolute;
  left: 0.55rem;
  bottom: 0.55rem;
  z-index: 1;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  color: #1d5fe8;
  background: #f8fbff;
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.policy-upload-icon-button input {
  display: none;
}

.policy-chat-form button[type="submit"],
.policy-upload-button {
  border: 0;
  border-radius: 8px;
  background: #2563eb;
  color: #fff;
  padding: 0.75rem 0.9rem;
  cursor: pointer;
  align-self: end;
  min-height: 54px;
}

.policy-upload-button input {
  display: none;
}

.policy-library-drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(15, 23, 42, 0.42);
  padding: 4vh 4vw;
}

.policy-library-panel {
  max-width: 1080px;
  max-height: 92vh;
  margin: 0 auto;
  overflow: auto;
  padding: 1rem;
}

.policy-library-panel header button {
  background: #f8fafc;
  color: #0f172a;
}

.policy-library-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 0.9rem;
}

.policy-library-column {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.8rem;
}

.policy-library-column h4 {
  display: flex;
  justify-content: space-between;
  margin: 0 0 0.65rem;
  color: #0f172a;
}

.policy-list-item {
  width: 100%;
  text-align: left;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  padding: 0.75rem;
  margin-bottom: 0.55rem;
  cursor: pointer;
}

.policy-list-item strong,
.policy-list-item span,
.policy-list-item small {
  display: block;
}

.policy-list-item strong {
  color: #0f172a;
}

.policy-list-item span,
.policy-list-item small {
  color: #64748b;
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

.policy-list-item em {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.35rem;
  font-style: normal;
}

.policy-list-item i {
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  padding: 0.16rem 0.45rem;
  font-size: 0.72rem;
  font-style: normal;
}

.policy-detail-box {
  margin-top: 0.9rem;
  border-top: 1px solid #e2e8f0;
  padding-top: 0.9rem;
}

.policy-detail-content dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

.policy-detail-content dl div {
  border-radius: 8px;
  background: #f8fafc;
  padding: 0.65rem;
}

.policy-detail-content dt {
  color: #64748b;
  font-size: 0.75rem;
}

.policy-detail-content dd {
  margin: 0.2rem 0 0;
  color: #0f172a;
  font-weight: 700;
}

.policy-detail-content pre {
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 260px;
  overflow: auto;
  background: #f8fafc;
  border-radius: 8px;
  padding: 0.8rem;
}

.policy-admin-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1.2fr);
  gap: 0.9rem;
}

.policy-admin-create,
.policy-admin-row {
  padding: 1rem;
}

.policy-admin-list {
  display: grid;
  gap: 0.75rem;
}

.policy-admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.policy-admin-grid label {
  display: grid;
  gap: 0.35rem;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 700;
}

.policy-admin-grid .full {
  grid-column: 1 / -1;
}

.policy-admin-grid input,
.policy-admin-grid select,
.policy-admin-grid textarea {
  width: 100%;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  padding: 0.58rem 0.65rem;
  color: #0f172a;
}

.policy-admin-actions,
.policy-admin-row-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.policy-admin-row header em {
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
  padding: 0.22rem 0.55rem;
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 800;
}

.policy-admin-edit summary {
  margin-top: 0.7rem;
  cursor: pointer;
  color: #2563eb;
  font-weight: 800;
}

@media (max-width: 900px) {
  .policy-admin-layout,
  .policy-library-columns,
  .policy-detail-content dl {
    grid-template-columns: 1fr;
  }

  .policy-chat-form {
    grid-template-columns: 1fr;
  }

  .policy-context-card,
  .policy-overview-card {
    align-items: stretch;
    flex-direction: column;
  }

  .policy-chatbot-workspace {
    display: grid;
    grid-template-rows: auto auto auto;
    min-height: 0;
  }

  .policy-chatbot-shell {
    min-height: 560px;
  }
}

/* Policy operations: source-only import, queued parsing, editable result list. */
.policy-admin-tabs {
  display: inline-flex;
  gap: 4px;
  margin: 0 0 0.8rem;
  padding: 4px;
  border: 1px solid #d9e2ef;
  border-radius: 8px;
  background: #f4f7fb;
}

.policy-admin-tabs button {
  min-height: 34px;
  padding: 0 1rem;
  border: 0;
  border-radius: 6px;
  color: #52637a;
  background: transparent;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.policy-admin-tabs button.is-active {
  color: #0f172a;
  background: #fff;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.08);
}

.policy-admin-table {
  overflow: hidden;
  border: 1px solid #dce5f1;
  border-radius: 8px;
  background: #fff;
}

.policy-admin-table > header,
.policy-admin-row {
  display: grid;
  grid-template-columns: minmax(250px, 1.8fr) minmax(140px, 0.85fr) 88px 96px 112px 112px;
  align-items: center;
  gap: 0.75rem;
  min-height: 62px;
  padding: 0.65rem 0.9rem;
}

.policy-admin-table > header {
  min-height: 42px;
  color: #607087;
  background: #f5f8fc;
  font-size: 0.78rem;
  font-weight: 850;
}

.policy-admin-row {
  border: 0;
  border-top: 1px solid #e7edf5;
  border-radius: 0;
  box-shadow: none;
}

.policy-admin-row:hover {
  background: #fbfdff;
}

.policy-admin-name {
  min-width: 0;
}

.policy-admin-name strong,
.policy-admin-name small {
  display: block;
}

.policy-admin-name strong {
  overflow: hidden;
  color: #111827;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.policy-admin-name small,
.policy-admin-row > span,
.policy-admin-row time {
  margin-top: 0.18rem;
  color: #6b7b91;
  font-size: 0.78rem;
}

.policy-admin-row em {
  justify-self: start;
  padding: 0.24rem 0.48rem;
  border-radius: 6px;
  color: #334155;
  background: #eef2f7;
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 800;
}

.policy-admin-row .policy-parse-status.is-completed,
.policy-admin-row .policy-parse-status.is-completed_with_fallback {
  color: #08775b;
  background: #e8f8f1;
}

.policy-admin-row .policy-parse-status.is-processing,
.policy-admin-row .policy-parse-status.is-queued {
  color: #956000;
  background: #fff5d8;
}

.policy-admin-row .policy-parse-status.is-failed {
  color: #b42318;
  background: #feeceb;
}

.policy-admin-row-actions {
  margin: 0;
  justify-content: flex-end;
}

.policy-admin-empty {
  padding: 3rem 1rem;
  color: #7b8798;
  text-align: center;
}

.policy-import-modal {
  width: min(580px, 100%);
}

.policy-import-form,
.change-password-modal form {
  display: grid;
  gap: 0.9rem;
  padding: 1.2rem;
}

.policy-import-form label,
.change-password-modal label {
  display: grid;
  gap: 0.4rem;
  color: #26364c;
  font-size: 0.84rem;
  font-weight: 800;
}

.policy-import-form input,
.change-password-modal input {
  width: 100%;
  min-height: 44px;
  padding: 0 0.8rem;
  border: 1px solid #ccd8e8;
  border-radius: 7px;
  color: #111827;
  background: #fff;
  font: inherit;
}

.policy-import-or {
  position: relative;
  color: #8a97a9;
  text-align: center;
}

.policy-import-or::before {
  position: absolute;
  inset: 50% 0 auto;
  height: 1px;
  background: #e2e8f0;
  content: "";
}

.policy-import-or span {
  position: relative;
  padding: 0 0.7rem;
  background: #fff;
}

.policy-import-hint {
  margin: 0;
  color: #6b7b91;
  font-size: 0.82rem;
}

.policy-import-actions,
.change-password-actions,
.profile-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
}

.profile-form-actions > button {
  flex: 1;
}

.change-password-modal {
  width: min(520px, 100%);
}

.policy-edit-modal {
  width: min(1120px, 100%);
}

.policy-edit-body {
  padding: 1rem;
}

@media (max-width: 920px) {
  .policy-admin-table > header {
    display: none;
  }

  .policy-admin-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.45rem 0.75rem;
    padding: 0.9rem;
  }

  .policy-admin-name,
  .policy-admin-row > span {
    grid-column: 1 / -1;
  }

  .policy-admin-row-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .policy-admin-grid {
    grid-template-columns: 1fr;
  }

  .policy-admin-grid .full {
    grid-column: auto;
  }
}

.policy-report-workspace {
  max-width: 1180px;
  margin: 0 auto;
}

.policy-library-entry {
  padding: 0.85rem 1rem;
}

.policy-library-entry h2 {
  font-size: 1.24rem;
}

.policy-report-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: linear-gradient(135deg, #eef7ff 0%, #ffffff 58%, #f8fbff 100%);
  padding: 1.25rem 1.35rem;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.06);
}

.policy-report-hero span,
.policy-profile-strip span {
  display: block;
  color: #2563eb;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
}

.policy-report-hero h2 {
  margin: 0.28rem 0 0.38rem;
  color: #0f172a;
  font-size: 1.48rem;
  line-height: 1.18;
}

.policy-report-hero p {
  max-width: 620px;
  margin: 0;
  color: #475569;
  font-size: 0.92rem;
  line-height: 1.65;
}

.policy-report-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.policy-report-shell {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 220px);
  border: 1px solid #e2e8f0;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.06);
}

.policy-report-shell .policy-assistant-main {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  padding: 1rem;
  background: #ffffff;
}

.policy-profile-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.policy-profile-strip article {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  padding: 0.9rem;
}

.policy-profile-strip strong {
  display: block;
  margin-top: 0.35rem;
  color: #0f172a;
  font-size: 0.98rem;
}

.policy-profile-strip p {
  margin: 0.4rem 0 0;
  color: #64748b;
  font-size: 0.83rem;
  line-height: 1.55;
}

.policy-report-shell .policy-context-card {
  margin-top: 0.75rem;
  border: 1px solid #dbeafe;
  background: #f8fbff;
  color: #0f172a;
}

.policy-report-shell .policy-card-entry {
  margin-top: 0;
}

.policy-report-shell .policy-context-card span {
  color: #2563eb;
}

.policy-report-shell .policy-context-card p {
  color: #475569;
}

.policy-report-shell .policy-context-actions button {
  border-color: #bfdbfe;
  background: #ffffff;
  color: #1d4ed8;
}

.policy-report-shell .policy-context-actions a {
  border-color: #bfdbfe;
  background: #ffffff;
  color: #1d4ed8;
}

.policy-results-stage {
  flex: 1;
  margin-top: 0.85rem;
  min-height: 430px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  padding: 0.85rem;
  overflow: auto;
}

.policy-results-stage .policy-empty-result {
  min-height: 100%;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  border: 1px dashed #cbd5e1;
  background: #ffffff;
}

.policy-matching-loading {
  min-height: 100%;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.7rem;
  text-align: center;
  border: 1px dashed #bfdbfe;
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a;
}

.policy-loading-spinner {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 4px solid #dbeafe;
  border-top-color: #2563eb;
  animation: policyLoadingSpin 0.85s linear infinite;
}

.policy-matching-loading h3 {
  margin: 0.2rem 0 0;
  font-size: 1.02rem;
  font-weight: 800;
  color: #0f172a;
}

.policy-matching-loading p {
  max-width: 520px;
  margin: 0;
  color: #64748b;
  line-height: 1.7;
}

@keyframes policyLoadingSpin {
  to {
    transform: rotate(360deg);
  }
}

.policy-results-stage .policy-match-card {
  border: 1px solid #e2e8f0;
  border-left: 5px solid #64748b;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.policy-results-stage .policy-match-card + .policy-match-card {
  margin-top: 0.72rem;
}

.policy-results-stage .policy-match-card header {
  align-items: center;
}

.policy-results-stage .policy-match-card header span {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  padding: 0.18rem 0.52rem;
  font-size: 0.72rem;
}

.policy-results-stage .policy-match-card.medium header span {
  background: #fffbeb;
  color: #b45309;
}

.policy-results-stage .policy-match-card.low header span {
  background: #f1f5f9;
  color: #475569;
}

.policy-report-input {
  border-top: 1px solid #e2e8f0;
  background: #ffffff;
  flex-shrink: 0;
}

.policy-report-input textarea {
  border-color: #dbe3ef;
  background: #ffffff;
  color: #0f172a;
}

.policy-report-input textarea::placeholder {
  color: #94a3b8;
}

.policy-report-input .policy-upload-button {
  background: #f8fafc;
  border: 1px solid #dbe3ef;
  color: #0f172a;
}

.policy-report-input .policy-chat-input-wrap {
  min-width: 0;
}

.policy-report-input .policy-upload-icon-button {
  background: #f8fafc;
  border-color: #dbe3ef;
  color: #1d5fe8;
}

.policy-chatbot-workspace {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 0.9rem;
  max-width: 1180px;
  min-height: calc(100vh - 72px - 2.5rem);
  margin: 0 auto;
}

.policy-chatbot-shell {
  display: flex;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 52px rgba(15, 23, 42, 0.07);
}

.policy-chatbot-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid #e2e8f0;
  padding: 0.9rem 1rem;
}

.policy-chatbot-head > div {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 0.8rem;
}

.policy-bot-avatar,
.policy-chat-avatar {
  display: inline-grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb, #5eead4);
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 900;
}

.policy-chatbot-head strong {
  display: block;
  color: #0f172a;
  font-size: 1rem;
}

.policy-chatbot-head small {
  display: block;
  margin-top: 0.12rem;
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 700;
}

.policy-chatbot-head p {
  margin: 0.16rem 0 0;
  color: #64748b;
  font-size: 0.84rem;
}

.policy-chatbot-head button,
.policy-chat-actions button,
.policy-chat-actions a,
.policy-modal-card button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #ffffff;
  color: #1d4ed8;
  padding: 0.42rem 0.76rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.policy-chatbot-head button:disabled,
.policy-chat-form button:disabled,
.policy-upload-icon-button:has(input:disabled) {
  cursor: not-allowed;
  opacity: 0.55;
}

.policy-chatbot-thread {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  gap: 0.85rem;
  overflow: auto;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 42%);
  padding: 1rem;
}

.policy-chat-message {
  display: flex;
  align-items: flex-start;
  gap: 0.68rem;
  max-width: 76%;
}

.policy-chat-message.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.policy-chat-message.user .policy-chat-avatar {
  background: #dbeafe;
  color: #1e3a8a;
}

.policy-chat-avatar.has-image {
  overflow: hidden;
  background: #dbeafe;
}

.policy-chat-avatar.has-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.policy-chat-bubble {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  padding: 0.74rem 0.84rem;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
}

.policy-chat-message.user .policy-chat-bubble {
  border-color: #bfdbfe;
  background: #eaf3ff;
}

.policy-chat-bubble p {
  margin: 0;
  color: #0f172a;
  font-size: 0.93rem;
  line-height: 1.7;
}

.policy-chat-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.5rem;
}

.policy-chat-attachment {
  max-width: min(320px, 100%);
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.42rem 0.58rem;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  color: #1e3a8a;
  background: #f8fbff;
  font-size: 0.82rem;
  font-weight: 850;
}

.policy-chat-attachment i {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: #fff;
  background: #2563eb;
  font-size: 0.72rem;
  font-style: normal;
}

.policy-chat-attachment strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.policy-chat-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.7rem;
}

.policy-chat-card-list {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.72rem;
}

.policy-chat-card {
  display: grid;
  width: min(520px, 100%);
  gap: 0.24rem;
  border: 1px solid #dbeafe;
  border-left: 4px solid #2563eb;
  border-radius: 8px;
  background: #ffffff;
  padding: 0.62rem 0.7rem;
  text-align: left;
  cursor: pointer;
}

.policy-chat-card span {
  width: fit-content;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  padding: 0.08rem 0.42rem;
  font-size: 0.68rem;
  font-weight: 900;
}

.policy-chat-card strong {
  color: #0f172a;
  font-size: 0.9rem;
  line-height: 1.45;
}

.policy-chat-card em {
  display: -webkit-box;
  overflow: hidden;
  color: #64748b;
  font-size: 0.78rem;
  font-style: normal;
  line-height: 1.5;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.policy-chat-actions button:first-child {
  border-color: #2563eb;
  background: #2563eb;
  color: #ffffff;
}

.policy-service-banner {
  position: relative;
  display: flex;
  align-items: center;
  align-self: end;
  gap: 1.35rem;
  overflow: hidden;
  min-height: 118px;
  border: 1px solid #f6c76b;
  border-radius: 8px;
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.92) 0 0.7rem, transparent 0.74rem),
    linear-gradient(110deg, rgba(255, 247, 237, 0.96) 0%, #ffffff 45%, rgba(255, 251, 235, 0.9) 100%);
  padding: 1.15rem 1.35rem;
  box-shadow: 0 16px 44px rgba(120, 53, 15, 0.09);
}

.policy-service-banner::before,
.policy-service-banner::after {
  position: absolute;
  right: -3rem;
  bottom: -1.1rem;
  left: 42%;
  height: 74px;
  pointer-events: none;
  content: "";
}

.policy-service-banner::before {
  border-top: 2px solid rgba(217, 156, 47, 0.3);
  border-radius: 50% 0 0 0;
  transform: skewX(-12deg);
}

.policy-service-banner::after {
  bottom: -1.65rem;
  border-top: 1px solid rgba(217, 156, 47, 0.24);
  border-radius: 50% 0 0 0;
  transform: skewX(-18deg);
}

.policy-service-mark {
  position: relative;
  display: grid;
  width: 78px;
  height: 78px;
  flex: 0 0 auto;
  place-items: center;
  border: 2px solid rgba(217, 156, 47, 0.54);
  border-radius: 22px 22px 30px 30px;
  background: linear-gradient(145deg, #fff7d6 0%, #f1b84c 100%);
  box-shadow: 0 16px 32px rgba(180, 83, 9, 0.18), inset 0 0 0 5px rgba(255, 255, 255, 0.48);
}

.policy-service-mark::before {
  position: absolute;
  inset: -10px;
  border: 1px solid rgba(217, 156, 47, 0.28);
  border-radius: 999px;
  content: "";
}

.policy-service-mark span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #b45309;
  font-size: 1.35rem;
  font-weight: 900;
}

.policy-service-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.policy-service-copy span {
  color: #b45309;
  font-size: 0.72rem;
  font-weight: 900;
}

.policy-service-banner h2 {
  margin: 0.32rem 0 0.32rem;
  color: #5f3412;
  font-size: 1.55rem;
  line-height: 1.18;
}

.policy-service-banner p {
  margin: 0;
  color: #7c4a19;
  font-size: 0.95rem;
  line-height: 1.55;
}

.policy-service-skyline {
  position: relative;
  z-index: 1;
  display: flex;
  align-self: stretch;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 0.55rem;
  min-width: 260px;
  margin-left: auto;
  opacity: 0.54;
}

.policy-service-skyline i {
  display: block;
  width: 22px;
  border: 1px solid rgba(217, 156, 47, 0.35);
  background: linear-gradient(180deg, rgba(253, 230, 138, 0.32), rgba(245, 158, 11, 0.08));
}

.policy-service-skyline i:nth-child(1) {
  height: 42px;
}

.policy-service-skyline i:nth-child(2) {
  height: 70px;
}

.policy-service-skyline i:nth-child(3) {
  width: 34px;
  height: 54px;
}

.policy-service-skyline i:nth-child(4) {
  height: 88px;
}

.policy-service-skyline i:nth-child(5) {
  width: 28px;
  height: 64px;
  border-radius: 999px 999px 0 0;
}

.policy-results-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.36);
  padding: 1.2rem;
}

.policy-results-modal[hidden] {
  display: none;
}

.policy-results-modal-panel {
  display: flex;
  flex-direction: column;
  width: min(920px, 100%);
  max-height: min(760px, calc(100vh - 2.4rem));
  max-height: min(760px, calc(100dvh - 2.4rem));
  overflow: hidden;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.22);
}

.policy-results-modal-panel > header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid #e2e8f0;
  padding: 1rem;
}

.policy-results-modal-panel header span {
  color: #2563eb;
  font-size: 0.72rem;
  font-weight: 900;
}

.policy-results-modal-panel header h3 {
  margin: 0.18rem 0 0;
  color: #0f172a;
  font-size: 1.1rem;
}

.policy-results-modal-panel [data-policy-results-modal-body] {
  flex: 1 1 auto;
  display: grid;
  min-height: 0;
  gap: 0.72rem;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1rem 1rem 1.4rem;
  scrollbar-gutter: stable;
}

.policy-modal-card {
  border: 1px solid #e2e8f0;
  border-left: 5px solid #94a3b8;
  border-radius: 8px;
  background: #ffffff;
  padding: 0.9rem;
}

.policy-modal-card.high {
  border-left-color: #2563eb;
}

.policy-modal-card.medium {
  border-left-color: #f59e0b;
}

.policy-modal-card header {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}

.policy-modal-card header > span {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  background: #eff6ff;
  color: #2563eb;
  font-weight: 900;
}

.policy-modal-card strong {
  display: block;
  color: #0f172a;
  font-size: 1rem;
}

.policy-modal-card em {
  display: inline-block;
  margin-top: 0.24rem;
  color: #64748b;
  font-style: normal;
  font-weight: 800;
}

.policy-modal-card p,
.policy-modal-card li {
  color: #475569;
  line-height: 1.7;
}

.policy-modal-card section {
  margin-top: 0.65rem;
}

.policy-modal-card button {
  margin-top: 0.7rem;
}

.policy-library-page {
  display: grid;
  gap: 0.9rem;
  max-width: 1180px;
  margin: 0 auto;
}

.policy-library-page-header,
.policy-library-page-grid {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.06);
}

.policy-library-page-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
}

.policy-library-page-header.is-back-only {
  display: flex;
  justify-content: flex-start;
  padding: 0.8rem;
}

.policy-library-page-header a {
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  color: #2563eb;
  padding: 0.55rem 0.75rem;
  font-weight: 800;
  text-decoration: none;
}

.policy-library-page-header span {
  color: #2563eb;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
}

.policy-library-page-header h2 {
  margin: 0.2rem 0;
  color: #0f172a;
  font-size: 1.28rem;
}

.policy-library-page-header p {
  margin: 0;
  color: #64748b;
  font-size: 0.88rem;
}

.policy-library-page-header strong {
  border-radius: 8px;
  background: #0f172a;
  color: #fff;
  padding: 0.7rem 0.9rem;
  white-space: nowrap;
}

.policy-library-page-grid {
  padding: 0.9rem;
}

.policy-library-page-grid .policy-library-columns {
  margin-top: 0;
}

.policy-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.46);
  padding: 4vh 4vw;
}

.policy-detail-modal[hidden] {
  display: none;
}

.policy-detail-modal-panel {
  width: min(1180px, 100%);
  max-height: 90vh;
  overflow: hidden;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.28);
}

.policy-detail-modal-panel > .policy-detail-modal-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid #e2e8f0;
  background: #ffffff;
  padding: 0.75rem 1rem;
}

.policy-detail-modal-chrome > strong {
  color: #0f172a;
  font-size: 0.95rem;
}

.policy-detail-modal-chrome button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #0f172a;
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
}

.policy-detail-modal-chrome button:hover {
  background: #f1f5f9;
}

.policy-detail-modal-panel .policy-detail-box {
  max-height: calc(90vh - 62px);
  margin: 0;
  overflow: auto;
  border: 0;
  padding: 0;
}

.policy-detail-content {
  padding: 1.25rem 1.45rem 1.5rem;
  color: #0f172a;
}

.policy-detail-hero {
  border: 0;
  margin: 0;
  padding: 0;
}

.policy-detail-title-row {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.policy-detail-title-row h2 {
  max-width: 980px;
  margin: 0;
  color: #0f172a;
  font-size: clamp(1.35rem, 2vw, 1.82rem);
  line-height: 1.35;
}

.policy-status-badge {
  flex: 0 0 auto;
  margin-top: 0.2rem;
  border: 1px solid #bbf7d0;
  border-radius: 5px;
  background: #f0fdf4;
  color: #15803d;
  padding: 0.28rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 800;
}

.policy-status-badge.closed {
  border-color: #e2e8f0;
  background: #f8fafc;
  color: #64748b;
}

.policy-status-badge.rolling,
.policy-status-badge.neutral {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #c2410c;
}

.policy-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0;
  margin: 0.6rem 0 0;
  color: #64748b;
  font-size: 0.86rem;
}

.policy-detail-meta span:not(:last-child)::after {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  margin: 0 0.7rem 0.18rem;
  border-radius: 50%;
  background: #94a3b8;
}

.policy-deadline-notice {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  border-left: 3px solid #f97316;
  background: #fffaf5;
  padding: 0.7rem 0.9rem;
  color: #9a3412;
}

.policy-deadline-notice i {
  position: relative;
  width: 19px;
  height: 19px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.policy-deadline-notice i::before,
.policy-deadline-notice i::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1px;
  background: currentColor;
  transform-origin: bottom;
}

.policy-deadline-notice i::before {
  height: 5px;
  transform: translate(-50%, -100%);
}

.policy-deadline-notice i::after {
  height: 4px;
  transform: translate(-50%, -100%) rotate(120deg);
}

.policy-deadline-notice.closed,
.policy-deadline-notice.neutral {
  border-left-color: #94a3b8;
  background: #f8fafc;
  color: #475569;
}

.policy-detail-content .policy-detail-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 1rem 0 0;
  border: 1px solid #dbe3ef;
  border-radius: 7px;
  background: #fbfdff;
}

.policy-detail-content .policy-detail-facts > div {
  min-width: 0;
  padding: 0.85rem 1rem;
  text-align: center;
}

.policy-detail-content .policy-detail-facts > div:not(:last-child) {
  border-right: 1px solid #dbe3ef;
}

.policy-detail-facts dt {
  color: #64748b;
  font-size: 0.76rem;
}

.policy-detail-facts dd {
  margin: 0.3rem 0 0;
  overflow-wrap: anywhere;
  color: #0f172a;
  font-size: 0.96rem;
  font-weight: 800;
}

.policy-detail-facts > div:first-child dd,
.policy-detail-facts > div:nth-child(2) dd {
  color: #ea580c;
}

.policy-detail-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 2.2rem;
  margin-top: 1.15rem;
}

.policy-detail-section {
  min-width: 0;
}

.policy-detail-section h3 {
  position: relative;
  margin: 0 0 0.45rem;
  padding-left: 0.8rem;
  color: #0f172a;
  font-size: 1rem;
}

.policy-detail-section h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.28rem;
  width: 3px;
  height: 0.95rem;
  border-radius: 2px;
  background: #2563eb;
}

.policy-detail-section p,
.policy-detail-section li,
.policy-detail-section dd {
  color: #334155;
  font-size: 0.9rem;
  line-height: 1.75;
}

.policy-detail-section p {
  margin: 0;
}

.policy-detail-ordered {
  margin: 0;
  padding-left: 1.35rem;
}

.policy-detail-ordered li + li {
  margin-top: 0.22rem;
}

.policy-detail-materials {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.policy-detail-materials li {
  position: relative;
  padding-left: 1.3rem;
}

.policy-detail-materials li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #64748b;
  font-weight: 900;
}

.policy-process-text {
  white-space: pre-line;
}

.policy-detail-empty {
  color: #94a3b8 !important;
}

.policy-detail-source {
  grid-column: 1 / -1;
  border-top: 1px solid #e2e8f0;
  padding-top: 1rem;
}

.policy-detail-source dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem 1.4rem;
  margin: 0;
}

.policy-detail-source dl div {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 0.55rem;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.policy-detail-source dt {
  color: #64748b;
}

.policy-detail-source dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.policy-detail-source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.75rem;
}

.policy-detail-source-links a {
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  background: #eff6ff;
  color: #1d4ed8;
  padding: 0.4rem 0.65rem;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 900px) {
  .policy-report-hero,
  .policy-report-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .policy-profile-strip {
    grid-template-columns: 1fr;
  }

  .policy-compact-tabbar,
  .policy-library-page-grid {
    grid-template-columns: 1fr;
  }

  .policy-detail-modal {
    align-items: end;
    padding: 0;
  }

  .policy-detail-modal-panel {
    width: 100%;
    max-height: 94vh;
    border-radius: 8px 8px 0 0;
  }

  .policy-detail-modal-panel .policy-detail-box {
    max-height: calc(94vh - 62px);
  }

  .policy-detail-content {
    padding: 1rem;
  }

  .policy-detail-title-row {
    display: grid;
  }

  .policy-status-badge {
    justify-self: start;
  }

  .policy-detail-content .policy-detail-facts,
  .policy-detail-sections,
  .policy-detail-source dl {
    grid-template-columns: 1fr;
  }

  .policy-detail-content .policy-detail-facts > div:not(:last-child) {
    border-right: 0;
    border-bottom: 1px solid #dbe3ef;
  }

  .policy-detail-content .policy-detail-facts > div {
    text-align: left;
  }

  .policy-detail-materials {
    grid-template-columns: 1fr;
  }
}
/* Community plaza */
.community-feed-page {
  display: grid;
  gap: 18px;
}
.community-title-bar.compact {
  display: flex;
  align-items: center;
  margin-bottom: 0.85rem;
}
.community-feed-page .module-search-tags > span {
  color: #52677f;
}
.community-feed-page .module-search-tags button {
  color: #274261;
  font-weight: 850;
}
.community-feed-page .module-search-tags button:hover,
.community-feed-page .module-search-tags button.is-active {
  color: #0f5fd7;
}
.community-feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  border: 1px solid #dce3ec;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(25, 40, 70, 0.04);
}
.community-feed-header small {
  color: #2563eb;
  font-weight: 800;
}
.community-feed-header h2 {
  margin: 6px 0;
  font-size: 28px;
}
.community-feed-header p,
.community-side-panel p,
.community-post-card p {
  color: #4b5563;
  line-height: 1.7;
}
.community-form-actions button,
.community-comment-form button {
  border: 0;
  border-radius: 8px;
  background: #2f6fdd;
  color: #fff;
  padding: 11px 18px;
  font-weight: 800;
}
.community-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border: 1px solid #dce3ec;
  border-radius: 10px;
  background: #fff;
}
.community-tabs button {
  border: 0;
  background: #fff;
  padding: 15px;
  color: #5b6675;
  font-weight: 800;
}
.community-tabs button.is-active {
  background: #e9f0ff;
  color: #1d4ed8;
}
.community-feed-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
}
.community-active-topic {
  margin: 0 0 10px;
  color: #64748b;
  font-size: 14px;
  font-weight: 800;
}
.community-side-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.community-side-title h3 {
  margin: 0;
}
.community-side-title span {
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}
.community-topic-stream {
  display: grid;
  gap: 0;
}
.community-topic-row {
  position: relative;
  width: 100%;
  display: grid;
  gap: 3px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  padding: 11px 34px 11px 0;
  color: #1f2937;
  text-align: left;
  font-weight: 800;
  transition: background 0.16s ease, color 0.16s ease, padding-left 0.16s ease;
}
.community-topic-row:hover,
.community-topic-row.is-active {
  background: #f3f7ff;
  color: #1d4ed8;
  padding-left: 10px;
}
.community-topic-row em {
  margin-right: 8px;
  color: #94a3b8;
  font-style: normal;
  font-size: 12px;
}
.community-topic-source,
.community-topic-count {
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}
.community-topic-row strong {
  color: #0f172a;
  font-size: 16px;
  font-weight: 950;
}
.community-topic-row:hover strong,
.community-topic-row.is-active strong {
  color: #1d4ed8;
}
.community-topic-more {
  position: absolute;
  top: 13px;
  right: 4px;
  color: #94a3b8;
  font-size: 16px;
  letter-spacing: 1px;
}
.community-composer-shell {
  margin-bottom: 14px;
}
.community-composer-toggle {
  width: 100%;
  min-height: 48px;
  border: 1px solid #b9cdf1;
  border-radius: 8px;
  background: #f7faff;
  color: #1f5fc7;
  font-size: 15px;
  font-weight: 850;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}
.community-composer-toggle:hover {
  border-color: #76a3ea;
  background: #edf4ff;
  color: #174fa8;
}
.community-composer,
.community-post-card,
.community-side-panel article,
.community-admin-grid article {
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid #dce3ec;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(25, 40, 70, 0.04);
}
.community-composer-head,
.community-form-actions,
.community-post-actions,
.community-admin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.community-composer-head {
  margin-bottom: 10px;
}
.community-composer-collapse {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #718198;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.community-composer-collapse:hover {
  background: #edf3fb;
  color: #295da7;
}
.community-composer input {
  width: 100%;
  min-height: 40px;
  border: 1px solid #d5deeb;
  border-radius: 8px;
  padding: 0 12px;
}
.community-rich-toolbar {
  display: flex;
  gap: 3px;
  margin-top: 10px;
  padding: 5px 6px;
  border: 1px solid #d5deeb;
  border-radius: 8px 8px 0 0;
  background: #f7f9fc;
}
.community-rich-toolbar button,
.community-rich-toolbar .community-toolbar-button,
.community-admin-row button,
.community-post-actions button {
  border: 1px solid #d5deeb;
  border-radius: 7px;
  background: #fff;
  padding: 8px 10px;
  color: #475569;
  font-weight: 800;
}
.community-rich-toolbar button,
.community-rich-toolbar .community-toolbar-button {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border-color: transparent;
  background: transparent;
  color: #42546d;
  font-size: 13px;
  cursor: pointer;
}
.community-rich-toolbar button:hover,
.community-rich-toolbar .community-toolbar-button:hover {
  border-color: #c9d8ee;
  background: #eaf2ff;
  color: #1f5fc7;
}
.community-rich-editor {
  min-height: 104px;
  padding: 12px;
  border: 1px solid #d5deeb;
  border-top: 0;
  border-radius: 0 0 8px 8px;
  color: #334155;
  line-height: 1.7;
}
.community-rich-editor:empty::before {
  color: #94a3b8;
  content: attr(data-placeholder);
  pointer-events: none;
}
.community-rich-editor.small {
  min-height: 76px;
  border-top: 1px solid #d5deeb;
  border-radius: 8px;
}
.community-image-drafts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.community-image-drafts[hidden] {
  display: none;
}
.community-image-drafts article {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  border: 1px solid #d5deeb;
  border-radius: 7px;
  background: #f4f7fb;
}
.community-image-drafts img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.community-image-drafts button {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: rgba(31, 41, 55, 0.74);
  color: #fff;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
}
.community-form-actions {
  margin-top: 10px;
}
.community-author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.community-post-main {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
}
.community-post-content {
  min-width: 0;
}
.community-avatar {
  width: 42px;
  height: 42px;
  overflow: hidden;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #cbd5e1;
  color: #1f2937;
  font-weight: 900;
}
.community-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.community-avatar.has-image {
  background: #e2e8f0;
}
.community-avatar.small {
  width: 30px;
  height: 30px;
  font-size: 12px;
}
.community-name-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 2px;
}
.community-identity {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-size: 12px;
  font-weight: 800;
}
.community-identity.cloud {
  background: #eef2ff;
  color: #4338ca;
}
.community-identity.official {
  background: #fff7ed;
  color: #c2410c;
}
.community-post-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
}
.community-post-body {
  color: #25324a;
  line-height: 1.65;
  overflow: hidden;
}
.community-post-body p {
  margin: 0 0 8px;
}
.community-post-body.is-collapsed {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
}
.community-post-body.is-expanded {
  display: block;
}
.community-expand-body,
.community-expand-replies {
  border: 0;
  background: transparent;
  color: #2563eb;
  padding: 4px 0;
  font-weight: 800;
  cursor: pointer;
}
.community-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  max-width: 520px;
  margin: 12px 0;
}
.community-media-grid.count-1 {
  grid-template-columns: minmax(0, 1fr);
}
.community-media-grid button {
  overflow: hidden;
  border: 1px solid #d5deeb;
  border-radius: 10px;
  padding: 0;
  background: #f8fafc;
  cursor: zoom-in;
}
.community-media-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 1.22;
  object-fit: cover;
}
.community-media-grid.count-1 img {
  max-height: 520px;
  aspect-ratio: auto;
}
.community-link-card {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 12px;
  overflow: hidden;
  margin: 12px 0;
  border: 1px solid #d5deeb;
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
}
.community-link-card > div {
  min-height: 90px;
  background: linear-gradient(135deg, #f8d3b6, #c7d2fe);
  background-size: cover;
  background-position: center;
}
.community-link-card section {
  padding: 12px;
}
.community-link-card strong {
  display: block;
  margin-bottom: 7px;
}
.community-link-card small,
.community-author small,
.community-post-actions,
.community-admin-row span {
  color: #667386;
}
.community-post-actions,
.community-reply-actions {
  justify-content: flex-start;
}
.community-post-actions button,
.community-reply-actions button {
  transition: color 0.18s ease, transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.community-like-button:hover,
.community-like-button.is-liked {
  color: #e11d48;
  border-color: #fecdd3;
  background: #fff1f2;
  transform: translateY(-1px);
}
.community-like-button:disabled {
  opacity: 0.72;
  cursor: wait;
}
.community-reply-preview {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
}
.community-reply-item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 9px;
}
.community-reply-item.is-child {
  margin-left: 28px;
}
.community-reply-text {
  color: #334155;
  line-height: 1.6;
}
.community-reply-text p {
  margin: 4px 0;
}
.community-reply-to-name {
  display: block;
  margin-top: 2px;
  color: #2563eb;
}
.community-reply-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}
.community-reply-actions button {
  border: 0;
  background: transparent;
  color: #64748b;
  padding: 2px 0;
  cursor: pointer;
}
.community-comment-form.inline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
}
.community-comment-form.inline small,
.community-comment-form.inline p {
  grid-column: 1 / -1;
  margin: 0;
  color: #64748b;
}
.community-comment-form.inline textarea {
  width: 100%;
  min-height: 42px;
  resize: vertical;
  border: 1px solid #d5deeb;
  border-radius: 8px;
  padding: 10px 12px;
  color: #0f172a;
}
.community-lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(2, 6, 23, 0.82);
}
.community-lightbox button {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #0f172a;
  font-size: 24px;
  cursor: pointer;
}
.community-lightbox img {
  max-width: min(92vw, 980px);
  max-height: 88vh;
  border-radius: 10px;
  object-fit: contain;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
}
.community-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.community-tags span {
  padding: 7px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
}
.community-admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.community-admin-row {
  padding: 12px 0;
  border-top: 1px solid #edf1f5;
}
.community-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.48);
}
.community-modal-panel {
  width: min(880px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  padding: 18px;
  border-radius: 12px;
  background: #f8fafc;
}
.community-comments article {
  padding: 12px;
  border-top: 1px solid #e2e8f0;
  background: #fff;
}
.community-comments span {
  margin-left: 8px;
  color: #64748b;
  font-size: 12px;
}

/* Bounty plaza */
.bounty-plaza {
  display: grid;
  gap: 1rem;
}
.bounty-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.bounty-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.bounty-tabs a {
  min-height: 42px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.12rem;
  padding: 0 0.95rem;
  border: 1px solid #d8e4f5;
  border-radius: 12px;
  color: #516985;
  background: #fff;
  text-decoration: none;
  font-weight: 850;
}
.bounty-tabs a span {
  color: #8aa0bd;
  font-size: 0.68rem;
}
.bounty-tabs a.is-active {
  border-color: #2d6eea;
  color: #1d5fe8;
  background: #edf4ff;
}
.bounty-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.9rem;
}
.bounty-card,
.bounty-admin-row {
  border: 1px solid #dbe6f4;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.045);
}
.bounty-card {
  min-height: 132px;
  display: grid;
  grid-template-columns: minmax(200px, 1.05fr) minmax(250px, 1.35fr) minmax(270px, 1.2fr) minmax(150px, 0.7fr) auto;
  grid-template-rows: auto 1fr;
  gap: 0.85rem;
  align-items: center;
  padding: 1rem;
}
.bounty-card header { grid-column: 1; grid-row: 1; }
.bounty-card h3 { grid-column: 1; grid-row: 2; align-self: start; }
.bounty-card > p { grid-column: 2; grid-row: 1 / 3; margin: 0; }
.bounty-card > dl { grid-column: 3; grid-row: 1 / 3; }
.bounty-card > .bounty-tags { grid-column: 4; grid-row: 1 / 3; align-content: center; }
.bounty-card > footer { grid-column: 5; grid-row: 1 / 3; flex-direction: column; align-items: flex-end; }
.bounty-card header,
.bounty-card footer,
.bounty-admin-row header,
.bounty-admin-row footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.bounty-card header div,
.bounty-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.bounty-card header span,
.bounty-source,
.bounty-detail-tags span {
  padding: 0.28rem 0.5rem;
  border-radius: 999px;
  color: #31506f;
  background: #eef4ff;
  font-size: 0.72rem;
  font-weight: 900;
}
.bounty-source.official {
  color: #9a4c00;
  background: #fff4df;
}
.bounty-source.user {
  color: #1d5fe8;
  background: #edf4ff;
}
.bounty-card header em,
.bounty-admin-row header em {
  color: #1d5fe8;
  font-style: normal;
  font-weight: 900;
}
.bounty-card h3 {
  margin: 0;
  color: #08162d;
  font-size: 1.05rem;
  font-weight: 950;
}
.bounty-card p,
.bounty-detail-main p,
.bounty-admin-row p {
  color: #475569;
  line-height: 1.7;
}
.bounty-card dl,
.bounty-detail-side dl,
.bounty-admin-row dl {
  display: grid;
  gap: 0.45rem;
  margin: 0;
}
.bounty-card dl {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.bounty-card dt,
.bounty-detail-side dt,
.bounty-admin-row dt {
  color: #8aa0bd;
  font-size: 0.72rem;
  font-weight: 850;
}
.bounty-card dd,
.bounty-detail-side dd,
.bounty-admin-row dd {
  margin: 0;
  color: #0f172a;
  font-weight: 850;
}
.bounty-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.bounty-tags span {
  padding: 0.32rem 0.48rem;
  border-radius: 999px;
  color: #45627f;
  background: #f1f5f9;
  font-size: 0.75rem;
  font-weight: 800;
}
.bounty-card footer {
  margin-top: 0;
}
.bounty-card footer button,
.bounty-apply-form button,
.bounty-admin-row button {
  border: 1px solid #2f6fdd;
  border-radius: 8px;
  color: #fff;
  background: #2f6fdd;
  padding: 0.62rem 0.85rem;
  font-weight: 850;
  box-shadow: 0 6px 16px rgba(47, 111, 221, 0.16);
}
.bounty-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.48);
}
.bounty-modal-panel {
  width: min(980px, 100%);
  max-height: min(820px, calc(100vh - 40px));
  overflow: auto;
  padding: 18px;
  border-radius: 14px;
  background: #f8fafc;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.22);
}
.bounty-modal-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.bounty-modal-panel header span {
  color: #2563eb;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
}
.bounty-modal-panel header h3 {
  margin: 0.2rem 0 0;
}
.bounty-modal-panel header button {
  border: 0;
  background: transparent;
  color: #0f172a;
  font-weight: 850;
}
.bounty-form,
.bounty-apply-form {
  display: grid;
  gap: 0.75rem;
}
.bounty-form-list {
  display: grid;
  gap: 0.7rem;
}
.bounty-field-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: stretch;
  overflow: hidden;
  border: 1px solid #d8e4f5;
  border-radius: 12px;
  background: #fff;
}
.bounty-field-row > span {
  display: flex;
  align-items: center;
  padding: 0.82rem 0.9rem;
  color: #1d4ed8;
  background: #edf4ff;
  font-size: 0.86rem;
  font-weight: 950;
}
.bounty-field-row input,
.bounty-field-row select,
.bounty-field-row textarea {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-left: 1px solid #d8e4f5;
  border-radius: 0;
  outline: none;
  padding: 0.75rem 0.9rem;
  color: #0f172a;
  background: #fbfdff;
  font: inherit;
}
.bounty-field-row textarea {
  resize: vertical;
}
.bounty-field-control {
  display: grid;
  gap: 0.32rem;
  padding: 0.7rem 0.9rem;
  border-left: 1px solid #d8e4f5;
  background: #fbfdff;
}
.bounty-field-control input {
  min-height: auto;
  border: 1px dashed #b9cceb;
  border-radius: 10px;
  background: #fff;
}
.bounty-field-control small {
  color: #64748b;
  font-weight: 750;
}
.bounty-apply-panel {
  width: min(720px, 100%);
}
.bounty-form.compact {
  padding: 1rem;
  border: 1px solid #dbe6f4;
  border-radius: 14px;
  background: #fff;
}
.bounty-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1rem;
}
.bounty-detail-main,
.bounty-detail-side,
.bounty-admin-apps article {
  padding: 1rem;
  border: 1px solid #dbe6f4;
  border-radius: 12px;
  background: #fff;
}
.bounty-detail-main section {
  padding-top: 0.75rem;
  border-top: 1px solid #edf2f7;
}
.bounty-file-list {
  display: grid;
  gap: 0.45rem;
}
.bounty-file-list h4 {
  margin: 0;
  color: #0f172a;
}
.bounty-file-list a {
  display: block;
  padding: 0.58rem 0.7rem;
  border: 1px solid #dbe6f4;
  border-radius: 10px;
  color: #1d5fe8;
  background: #f8fbff;
  font-weight: 850;
  text-decoration: none;
}
.bounty-apply-open-button {
  width: 100%;
  margin-top: 1rem;
  border: 1px solid #2f6fdd;
  border-radius: 8px;
  color: #fff;
  background: #2f6fdd;
  padding: 0.76rem 0.9rem;
  font-weight: 900;
}
.bounty-apply-form > label textarea,
.bounty-apply-form > label input {
  width: 100%;
  border: 1px solid #d8e4f5;
  border-radius: 10px;
  padding: 0.7rem;
}
.bounty-admin-panel,
.bounty-admin-list {
  display: grid;
  gap: 1rem;
}
.bounty-admin-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.bounty-admin-row {
  display: grid;
  grid-template-columns: minmax(280px, 1.6fr) minmax(360px, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1rem;
}
.bounty-admin-row dl {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.bounty-admin-apps {
  display: grid;
  gap: 0.65rem;
}
.bounty-admin-apps article {
  display: grid;
  gap: 0.4rem;
}
.bounty-admin-apps article div {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.bounty-admin-row footer {
  justify-content: flex-start;
  flex-wrap: wrap;
}
.bounty-admin-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 0.7rem;
  min-width: 0;
}
.bounty-admin-summary > span {
  padding: 0.28rem 0.5rem;
  border-radius: 6px;
  color: #31506f;
  background: #eef4ff;
  font-size: 0.72rem;
  font-weight: 900;
  white-space: nowrap;
}
.bounty-admin-summary > div {
  min-width: 0;
}
.bounty-admin-summary strong {
  display: block;
  overflow: hidden;
  color: #0f172a;
  font-size: 0.96rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bounty-admin-summary p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0.28rem 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.bounty-admin-key-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.58rem 0.85rem;
  min-width: 0;
}
.bounty-admin-key-info span {
  min-width: 0;
  color: #64748b;
  font-size: 0.78rem;
}
.bounty-admin-key-info small {
  display: block;
  color: #8aa0bd;
  font-size: 0.7rem;
  font-weight: 800;
}
.bounty-admin-key-info strong {
  display: block;
  overflow: hidden;
  margin-top: 0.12rem;
  color: #1e293b;
  font-size: 0.84rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bounty-admin-row-actions,
.bounty-dialog-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem;
}
.bounty-primary-button,
.bounty-secondary-button {
  min-height: 38px;
  border-radius: 8px;
  padding: 0.58rem 0.9rem;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}
.bounty-card footer button,
.bounty-apply-form > button,
.bounty-apply-open-button,
.bounty-admin-row .bounty-primary-button,
.bounty-modal-panel .bounty-primary-button {
  border: 1px solid #2f6fdd;
  color: #fff;
  background: #2f6fdd;
  box-shadow: 0 6px 16px rgba(47, 111, 221, 0.16);
}
.bounty-admin-row .bounty-secondary-button,
.bounty-modal-panel .bounty-secondary-button {
  border: 1px solid #bfd2ee;
  color: #245ea9;
  background: #fff;
  box-shadow: none;
}
.bounty-card footer button:hover,
.bounty-apply-form > button:hover,
.bounty-apply-open-button:hover,
.bounty-admin-row .bounty-primary-button:hover,
.bounty-modal-panel .bounty-primary-button:hover {
  background: #245fc3;
}
.bounty-admin-row .bounty-secondary-button:hover,
.bounty-modal-panel .bounty-secondary-button:hover {
  border-color: #8eb2e6;
  background: #f5f9ff;
}
.bounty-applicant-count-button {
  position: relative;
  overflow: visible;
  min-width: 72px;
}
.bounty-applicant-count-button > em {
  position: absolute;
  top: -9px;
  right: -9px;
  display: grid;
  place-items: center;
  min-width: 21px;
  height: 21px;
  padding: 0 5px;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  background: #dc2626;
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 950;
  line-height: 1;
  box-sizing: border-box;
}
.bounty-admin-edit-modal {
  width: min(860px, 100%);
}
.bounty-admin-edit-modal .bounty-form-list {
  max-height: min(600px, calc(100vh - 210px));
  overflow: auto;
  padding-right: 0.25rem;
}
.bounty-admin-switches > div {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.75rem 0.9rem;
  border-left: 1px solid #d8e4f5;
  background: #fbfdff;
}
.bounty-admin-switches label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: #334155;
  font-weight: 800;
}
.bounty-applicant-list-modal {
  width: min(760px, 100%);
}
.bounty-applicant-list-modal header p,
.bounty-applicant-detail-modal header p {
  margin: 0.22rem 0 0;
  color: #64748b;
}
.bounty-applicant-list {
  display: grid;
  gap: 0.65rem;
}
.bounty-applicant-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1.5fr) minmax(120px, 0.7fr) auto;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #dbe6f4;
  border-radius: 8px;
  color: #1e293b;
  background: #fff;
  text-align: left;
  cursor: pointer;
}
.bounty-applicant-row:hover {
  border-color: #9bbce9;
  background: #f7faff;
}
.bounty-applicant-row .user-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  background: #3b82f6;
  font-weight: 900;
}
.bounty-applicant-row strong,
.bounty-applicant-row small {
  display: block;
}
.bounty-applicant-row small {
  margin-top: 0.18rem;
  color: #64748b;
}
.bounty-applicant-row > em {
  padding: 0.28rem 0.5rem;
  border-radius: 6px;
  color: #245ea9;
  background: #edf4ff;
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 850;
  white-space: nowrap;
}
.bounty-applicant-detail-modal {
  width: min(800px, 100%);
}
.bounty-applicant-detail {
  display: grid;
  gap: 1rem;
}
.bounty-applicant-detail dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
}
.bounty-applicant-detail dl > div {
  padding: 0.8rem;
  border: 1px solid #dbe6f4;
  border-radius: 8px;
  background: #fff;
}
.bounty-applicant-detail dl > div.wide {
  grid-column: 1 / -1;
}
.bounty-applicant-detail dt {
  color: #7b8da7;
  font-size: 0.74rem;
  font-weight: 850;
}
.bounty-applicant-detail dd {
  margin: 0.35rem 0 0;
  color: #1e293b;
  line-height: 1.65;
  white-space: pre-wrap;
}
.bounty-applicant-detail dd a {
  color: #2563eb;
  overflow-wrap: anywhere;
}
@media (max-width: 1180px) {
  .bounty-card {
    grid-template-columns: minmax(210px, 0.9fr) minmax(260px, 1.2fr) minmax(260px, 1fr) auto;
  }
  .bounty-card > .bounty-tags { display: none; }
  .bounty-card > footer { grid-column: 4; }
}
@media (max-width: 980px) {
  .community-feed-layout,
  .community-admin-grid,
  .bounty-grid,
  .bounty-detail-grid {
    grid-template-columns: 1fr;
  }
  .community-side-panel {
    display: none;
  }
  .bounty-admin-row {
    grid-template-columns: 1fr;
  }
  .bounty-card {
    display: flex;
    min-height: 0;
    flex-direction: column;
    align-items: stretch;
  }
  .bounty-card > .bounty-tags { display: flex; }
  .bounty-card > footer { flex-direction: row; align-items: center; margin-top: auto; }
  .bounty-admin-row-actions {
    justify-content: flex-start;
  }
}
@media (max-width: 680px) {
  .bounty-admin-key-info,
  .bounty-applicant-detail dl {
    grid-template-columns: 1fr;
  }
  .bounty-applicant-detail dl > div.wide {
    grid-column: auto;
  }
  .bounty-applicant-row {
    grid-template-columns: 38px minmax(0, 1fr) auto;
  }
  .bounty-applicant-row > span:nth-of-type(3) {
    display: none;
  }
  .bounty-field-row {
    grid-template-columns: 1fr;
  }
  .bounty-field-row input,
  .bounty-field-row select,
  .bounty-field-row textarea,
  .bounty-field-control,
  .bounty-admin-switches > div {
    border-left: 0;
    border-top: 1px solid #d8e4f5;
  }
}

.project-application-page {
  max-width: 1480px;
  padding-top: 2.25rem;
}

.project-application-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 1rem;
  align-items: start;
}

.project-submit-form.project-application-form {
  grid-template-columns: minmax(0, 1fr);
  gap: 1.15rem;
  padding: 1.5rem;
  border: 1px solid #dce3ec;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.09);
}

.project-application-form-head {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e7ebf0;
}

.project-application-form-head i {
  width: 4px;
  height: 22px;
  flex: none;
  margin-top: 2px;
  border-radius: 2px;
  background: #eaa326;
}

.project-application-form-head h1,
.project-side-panel h2 {
  margin: 0;
  color: #172033;
  letter-spacing: 0;
}

.project-application-form-head h1 {
  font-size: 1.18rem;
  line-height: 1.3;
}

.project-application-form-head p {
  margin: 0.28rem 0 0;
  color: #68758a;
  font-size: 0.84rem;
  line-height: 1.55;
}

.project-applicant-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.project-upload-field {
  min-width: 0;
}

.project-field-title {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  color: #243047;
  font-size: 0.9rem;
  font-weight: 850;
}

.project-field-title em {
  color: #6b778c;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 650;
}

.project-upload-drop {
  position: relative;
  min-height: 138px;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.15rem;
  padding: 1.1rem 1.25rem;
  border: 1px dashed #b8c3d1;
  border-radius: 8px;
  background: #fbfcfd;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.project-upload-drop:hover,
.project-upload-drop.is-dragging {
  border-color: #eaa326;
  background: #fffbf2;
  box-shadow: 0 0 0 3px rgba(234, 163, 38, 0.1);
}

.project-upload-drop > input {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  padding: 0;
  opacity: 0;
  cursor: pointer;
}

.project-upload-symbol {
  position: relative;
  width: 72px;
  height: 72px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid #e2e6ec;
  border-radius: 8px;
  color: #9f6410;
  background: #fff3d8;
  font-size: 0.76rem;
  font-weight: 950;
}

.project-upload-symbol.is-image {
  color: #68758a;
  background: #f0f2f5;
}

.project-upload-symbol img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-upload-copy {
  min-width: 0;
  display: grid;
  gap: 0.34rem;
}

.project-upload-copy strong {
  color: #28354a;
  font-size: 0.92rem;
}

.project-upload-copy small {
  color: #7a8699;
  font-size: 0.78rem;
  line-height: 1.5;
}

.project-upload-copy b {
  overflow: hidden;
  color: #a36b17;
  font-size: 0.78rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-upload-button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.85rem;
  border: 1px solid #e6a431;
  border-radius: 6px;
  color: #9a6110;
  background: #fffaf0;
  font-size: 0.82rem;
  font-weight: 850;
}

.project-application-consent {
  display: grid !important;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 0.6rem !important;
  color: #637086 !important;
  font-size: 0.8rem !important;
  line-height: 1.55;
  font-weight: 650 !important;
}

.project-application-consent input {
  width: 18px !important;
  height: 18px !important;
  margin: 1px 0 0;
  padding: 0 !important;
  accent-color: #d88f17;
}

.project-submit-form .project-submit-action {
  min-height: 48px;
  border-radius: 6px;
  color: #1d2737;
  background: #efad37;
  box-shadow: 0 10px 24px rgba(203, 126, 12, 0.18);
}

.project-submit-action span {
  margin-right: 0.45rem;
}

.project-submit-action:disabled {
  cursor: wait;
  opacity: 0.68;
}

.project-application-side {
  display: grid;
  align-content: start;
  gap: 1rem;
}

.project-side-panel {
  padding: 1.15rem;
  border: 1px solid #dce3ec;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.065);
}

.project-side-panel header {
  display: flex;
  align-items: center;
  gap: 0.62rem;
  margin-bottom: 0.9rem;
}

.project-side-panel header > span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  color: #a56a11;
  background: #fff3d8;
  font-size: 0.78rem;
  font-weight: 900;
}

.project-side-panel h2 {
  font-size: 1rem;
}

.project-material-checklist {
  display: grid;
  gap: 0.58rem;
}

.project-material-checklist header {
  margin-bottom: 0.3rem;
}

.project-material-row {
  min-height: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem;
  padding: 0.68rem 0.75rem;
  border: 1px solid #e5e9ef;
  border-radius: 6px;
  color: #445068;
  background: #fbfcfd;
  font-size: 0.8rem;
  line-height: 1.4;
}

.project-material-row em {
  padding: 0.18rem 0.42rem;
  border-radius: 4px;
  color: #b42318;
  background: #feeeee;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.project-material-row.is-complete em {
  color: #157347;
  background: #e8f6ee;
}

.project-application-notes ul {
  display: grid;
  gap: 0.58rem;
  margin: 0;
  padding-left: 1.1rem;
  color: #667287;
  font-size: 0.8rem;
  line-height: 1.62;
}

.project-privacy-note p {
  margin: 0;
  color: #667287;
  font-size: 0.8rem;
  line-height: 1.65;
}

.project-privacy-note header > span {
  color: #157347;
  background: #e8f6ee;
}

@media (max-width: 1100px) {
  .project-application-layout {
    grid-template-columns: 1fr;
  }

  .project-application-side {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .project-application-page {
    padding: 1.25rem 1rem 3rem;
  }

  .project-submit-form.project-application-form {
    padding: 1rem;
  }

  .project-applicant-grid,
  .project-application-side {
    grid-template-columns: 1fr;
  }

  .project-upload-drop {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 0.8rem;
    padding: 0.9rem;
  }

  .project-upload-symbol {
    width: 58px;
    height: 58px;
  }

  .project-upload-button {
    grid-column: 1 / -1;
    width: 100%;
  }
}

input:focus::placeholder,
textarea:focus::placeholder {
  color: transparent !important;
  opacity: 0 !important;
}

input:focus::-webkit-input-placeholder,
textarea:focus::-webkit-input-placeholder {
  color: transparent !important;
  opacity: 0 !important;
}

/* One application header contract for every solidified business page. */
.opc-extension-page.is-opc-area {
  min-height: 100vh;
  background:
    linear-gradient(180deg, #070b10 0, #0b1118 76px, #18242b 132px, #f4f7fb 228px, #f4f7fb 100%);
}

.opc-extension-page.is-opc-home {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 8%, rgba(215, 154, 50, 0.12), transparent 28%),
    radial-gradient(circle at 74% 18%, rgba(40, 92, 72, 0.24), transparent 32%),
    linear-gradient(180deg, #070b10 0, #0b1118 92px, #111c21 420px, #eff3ee 680px, #f7f8f4 100%);
}

.opc-extension-page.is-opc-area .opc-extension-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 68px;
  border-bottom: 1px solid rgba(215, 154, 50, 0.42);
  background: #070b10;
  box-shadow: 0 18px 44px rgba(2, 6, 23, 0.42);
  backdrop-filter: blur(18px);
}

.opc-extension-page.is-opc-area .opc-extension-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 56px;
  background: linear-gradient(180deg, rgba(7, 11, 16, 0.74), rgba(7, 11, 16, 0.34) 44%, rgba(7, 11, 16, 0));
  pointer-events: none;
}

.opc-extension-page.is-opc-area .opc-extension-header-inner {
  width: 100%;
  max-width: 1480px;
  height: 68px;
  padding: 0 1.5rem;
  align-items: center;
}

.opc-extension-page.is-opc-area .opc-extension-header-inner.has-opc-nav {
  grid-template-columns: minmax(250px, 1fr) auto minmax(170px, 1fr);
  gap: clamp(1rem, 2.2vw, 2rem);
}

.opc-extension-page.is-opc-area .opc-extension-header-inner:not(.has-opc-nav) {
  justify-content: space-between;
}

.opc-extension-page.is-opc-area .opc-extension-brand-group {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  gap: 1rem;
}

.opc-extension-page.is-opc-area .opc-extension-tabs {
  grid-column: 2;
  grid-row: 1;
}

.opc-extension-page.is-opc-area .opc-extension-header-inner.has-opc-nav .user-account-tools {
  grid-column: 3;
  grid-row: 1;
}

.opc-extension-page.is-opc-area .auth-brand.qzy-brand {
  width: min(230px, 24vw);
  min-width: 170px;
}

.opc-extension-page.is-opc-area .auth-brand,
.opc-extension-page.is-opc-area .opc-extension-tab,
.opc-extension-page.is-opc-area .auth-user-name {
  color: rgba(255, 255, 255, 0.84);
}

.opc-extension-page.is-opc-area .opc-extension-tab {
  position: relative;
  min-height: 68px;
  transition: color 160ms ease, opacity 160ms ease;
}

.opc-extension-page.is-opc-area .opc-extension-tab:hover {
  color: #ffffff;
}

.opc-extension-page.is-opc-area .opc-extension-tab:focus-visible,
.opc-extension-page.is-opc-area .user-menu-trigger:focus-visible {
  outline: 2px solid #f5b642;
  outline-offset: 3px;
}

.opc-extension-page.is-opc-area .opc-extension-tab.is-active {
  color: #ffffff;
}

.opc-extension-page.is-opc-area .opc-extension-tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 13px;
  height: 2px;
  border-radius: 999px;
  background: #d79a32;
}

.opc-extension-page.is-opc-area .user-menu-trigger {
  border-color: rgba(169, 190, 216, 0.4);
  color: #f3f7fb;
  background: rgba(85, 105, 131, 0.3);
  box-shadow: inset 0 1px 0 rgba(225, 236, 249, 0.12), 0 8px 22px rgba(0, 0, 0, 0.22);
}

.opc-extension-page.is-opc-area .user-menu-trigger:hover {
  border-color: rgba(199, 216, 237, 0.68);
  background: rgba(108, 132, 162, 0.42);
  box-shadow: inset 0 1px 0 rgba(235, 243, 252, 0.18), 0 10px 26px rgba(0, 0, 0, 0.28);
}

.opc-extension-page.is-opc-area .opc-header-login {
  justify-self: end;
  min-height: 38px;
  padding: 0 1rem;
  border-color: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.opc-extension-page.is-opc-area:not(.is-opc-home) .opc-extension-main > .opc-extension-title {
  min-height: 76px;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0 0.2rem;
}

.opc-extension-page.is-opc-area:not(.is-opc-home) .opc-extension-main > .opc-extension-title h1 {
  color: #ffffff;
}

.opc-extension-page.is-opc-area:not(.is-opc-home) .opc-extension-main > .opc-extension-title p {
  color: rgba(226, 232, 240, 0.82);
}

.opc-extension-page.is-opc-area:not(.is-opc-home) .opc-extension-main > .opc-extension-title > span {
  color: #f5b642;
}

@media (max-width: 1180px) {
  .opc-extension-page.is-opc-area .opc-extension-header-inner.has-opc-nav {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 1rem;
  }

  .opc-extension-page.is-opc-area .auth-brand.qzy-brand {
    width: min(200px, 21vw);
  }

  .opc-extension-page.is-opc-area .opc-extension-tabs {
    gap: clamp(0.75rem, 1.7vw, 1.4rem);
  }
}

@media (max-width: 1020px) {
  .opc-extension-page.is-opc-area .opc-extension-header {
    height: auto;
  }

  .opc-extension-page.is-opc-area .opc-extension-header-inner.has-opc-nav {
    min-height: 68px;
    height: auto;
    grid-template-columns: 1fr auto;
    gap: 0.45rem 1rem;
    padding: 0.65rem 1rem 0;
    align-items: center;
  }

  .opc-extension-page.is-opc-area .opc-extension-tabs {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    max-width: 100%;
    justify-content: flex-start;
    min-height: 42px;
    gap: 1.4rem;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
  }

  .opc-extension-page.is-opc-area .opc-extension-header-inner.has-opc-nav .user-account-tools {
    grid-column: 2;
    grid-row: 1;
  }

  .opc-extension-page.is-opc-area .opc-extension-tabs::-webkit-scrollbar {
    display: none;
  }

  .opc-extension-page.is-opc-area .opc-extension-tab {
    min-height: 42px;
  }

  .opc-extension-page.is-opc-area .opc-extension-tab.is-active::after {
    bottom: 0;
  }
}

@media (max-width: 560px) {
  .opc-extension-page.is-opc-area .opc-extension-header-inner.has-opc-nav,
  .opc-extension-page.is-opc-area .opc-extension-header-inner:not(.has-opc-nav) {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .opc-extension-page.is-opc-area .opc-extension-brand-group {
    gap: 0.55rem;
  }

  .opc-extension-page.is-opc-area .auth-brand.qzy-brand {
    width: min(178px, 48vw);
    min-width: 0;
  }

  .opc-extension-page.is-opc-area .user-menu-trigger {
    min-height: 38px;
    padding-right: 0.25rem;
  }


  .opc-extension-page.is-opc-area .auth-user-name {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .opc-extension-page.is-opc-area .opc-extension-tabs {
    gap: 1.2rem;
  }
}
