.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-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: flex;
  align-items: center;
  padding: clamp(1.2rem, 3vw, 2.6rem);
  color: #f8fafc;
  background:
    radial-gradient(circle at 70% 48%, rgba(20, 184, 166, 0.2), transparent 28%),
    radial-gradient(circle at 78% 34%, rgba(109, 92, 255, 0.2), transparent 34%),
    radial-gradient(circle at 89% 70%, rgba(245, 158, 11, 0.075), transparent 26%),
    #040405;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.auth-tech-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at 70% 48%, #000 0 38%, transparent 78%);
  opacity: 0.68;
  pointer-events: none;
}

.auth-tech-noise {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 19px 19px;
  opacity: 0.055;
  pointer-events: none;
}

.auth-scene-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.auth-pixel-field {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.auth-pixel-field i {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.32);
  box-shadow: 0 0 18px rgba(20, 184, 166, 0.22);
  animation: authPixelDrift 5.8s ease-in-out var(--d) infinite alternate;
}

.auth-tech-card {
  position: relative;
  z-index: 3;
  width: min(430px, calc(100vw - 2.4rem));
  margin-left: clamp(12rem, 15vw, 20rem);
  padding: 1.3rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 1.15rem;
  background: rgba(8, 10, 15, 0.68);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(22px);
}

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

.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, transform 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: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.auth-code-row button:hover,
.auth-helper-row button:hover,
.auth-helper-row a:hover {
  transform: translateY(-1px);
  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: transform 0.18s ease, box-shadow 0.18s ease;
}

.auth-tech-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 46px rgba(255, 255, 255, 0.24), 0 22px 52px rgba(0, 0, 0, 0.44);
}

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

.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);
}

@keyframes authPixelDrift {
  from {
    opacity: 0.05;
    transform: translate3d(0, 0, 0);
  }
  to {
    opacity: 0.26;
    transform: translate3d(18px, -14px, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-pixel-field i {
    animation: none;
  }
}

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

  .auth-tech-card {
    margin: 0 auto;
  }

  .auth-scene-canvas {
    opacity: 0.42;
  }

  .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: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

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

.opc-extension-back {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #334155;
  font-size: 1.35rem;
}

.opc-extension-back:hover {
  background: #f0f6ff;
}

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

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

.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;
}

.opc-extension-tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(150px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid #e8edf5;
  overflow-x: auto;
}

.opc-extension-tab {
  min-height: 72px;
  display: grid;
  grid-template-columns: 28px 1fr;
  grid-template-rows: 1fr 1fr;
  column-gap: 0.65rem;
  align-items: center;
  padding: 0.95rem 1rem;
  border: 1px solid #e8edf5;
  border-radius: 0.75rem;
  color: #94a3b8;
  background: #eef0f4;
}

.opc-extension-tab.is-active {
  color: #ffffff;
  border-color: #1463f3;
  background: #1463f3;
  box-shadow: 0 10px 26px rgba(20, 99, 243, 0.22);
}

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

.opc-extension-tab strong {
  color: inherit;
  font-weight: 850;
}

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

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

.model-api-hero {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.model-api-hero small {
  color: #2563eb;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.model-api-hero h2 {
  margin: 0.45rem 0 0.65rem;
  color: #0f172a;
  font-size: 1.7rem;
  font-weight: 900;
}

.model-api-hero p,
.operations-empty p,
.model-api-toolbar p {
  margin: 0;
  color: #64748b;
  line-height: 1.7;
}

.model-api-stats {
  display: flex;
  gap: 0.8rem;
  align-items: stretch;
}

.model-api-stats div {
  min-width: 108px;
  display: grid;
  place-items: center;
  padding: 0.9rem;
  border-radius: 0.85rem;
  background: #f0f6ff;
}

.model-api-stats strong {
  color: #2563eb;
  font-size: 1.7rem;
}

.model-api-stats span {
  color: #64748b;
  font-size: 0.85rem;
}

.model-api-panel {
  padding: 1.2rem;
}

.model-api-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.model-api-toolbar h3 {
  margin: 0 0 0.35rem;
  color: #0f172a;
  font-size: 1.2rem;
  font-weight: 850;
}

.model-api-toolbar input {
  width: min(100%, 320px);
  height: 42px;
  padding: 0 0.9rem;
  border: 1px solid #dbe7f6;
  border-radius: 0.75rem;
  outline: none;
  background: #f8fafd;
}

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

.model-api-table {
  display: grid;
  gap: 0.65rem;
  max-height: 680px;
  overflow: auto;
}

.model-api-row {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 110px minmax(280px, 0.9fr);
  gap: 1rem;
  align-items: center;
  padding: 0.95rem 1rem;
  border: 1px solid #e8edf5;
  border-radius: 0.85rem;
  background: #f8fafd;
}

.model-api-row strong {
  display: block;
  color: #0f172a;
  font-weight: 850;
}

.model-api-row span {
  display: block;
  margin-top: 0.25rem;
  color: #64748b;
  font-size: 0.86rem;
}

.model-api-row em {
  width: max-content;
  padding: 0.35rem 0.62rem;
  border-radius: 999px;
  color: #2563eb;
  background: #dbeafe;
  font-style: normal;
  font-size: 0.85rem;
  font-weight: 800;
}

.model-api-row p {
  margin: 0;
  color: #334155;
  line-height: 1.55;
}

.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;
}

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

.user-menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 42px;
  padding: 0.25rem 0.7rem 0.25rem 0.28rem;
  border: 1px solid #dbe7f6;
  border-radius: 999px;
  color: #334155;
  background: #ffffff;
  cursor: pointer;
}

.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;
  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);
}

.user-menu-panel::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 12px;
}

.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;
}

.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;
}

.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;
}

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

.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 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;
}

.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;
}

.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;
}

.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 .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 .side-block {
  padding: 16px;
  margin-bottom: 16px;
  border: 1px solid var(--card-line);
  background: #fff;
}

.project-card-page .side-block h3 {
  margin: 0 0 10px;
  color: var(--card-blue);
  font-size: 16px;
}

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

.project-card-page .review-item {
  padding: 13px;
  border-left: 4px solid var(--card-blue-2);
  background: #f4f9fb;
}

.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 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: 10px;
  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;
  border: 0;
  border-radius: 0.75rem;
  color: #475569;
  background: transparent;
  text-align: left;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.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-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-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-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-card form {
  width: 100%;
  display: grid;
  gap: 0.55rem;
  margin-top: 0.4rem;
}

.profile-avatar-card label {
  display: grid;
  gap: 0.35rem;
  color: #334155;
  font-size: 0.84rem;
  font-weight: 850;
}

.profile-avatar-card p {
  margin: 0;
  color: #1463f3;
  font-size: 0.84rem;
  font-weight: 850;
}

.profile-form {
  align-content: 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;
}

.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,
  .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;
  }
}

.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;
}

@media (max-width: 760px) {
  .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,
  .model-api-hero,
  .model-api-toolbar {
    align-items: start;
    flex-direction: column;
  }

  .opc-extension-header {
    height: auto;
  }

  .opc-extension-header-inner {
    height: auto;
    gap: 0.8rem;
    padding: 1rem;
  }

  .opc-extension-tabs,
  .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;
  }

  .model-api-row {
    grid-template-columns: 1fr;
  }

  .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;
  }

  .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::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: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.2rem;
  align-items: end;
  margin-top: 1.15rem;
  padding: 1.35rem 1.45rem;
  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;
}

.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;
  }
}

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

.star-company-grid.full {
  margin-top: 1.2rem;
}

.star-company-card {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 0;
  aspect-ratio: 16 / 9;
  border: 1px solid #d7e3f2;
  border-radius: 18px;
  background: linear-gradient(135deg, #12315f, #1e64d8);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.1);
}

.star-company-thumb {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
  transition: transform 0.28s ease;
}

.star-company-card:hover .star-company-thumb {
  transform: scale(1.07);
}

.star-company-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 18, 43, 0.08), rgba(4, 18, 43, 0.78));
}

.star-company-overlay {
  position: absolute;
  z-index: 1;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  display: grid;
  gap: 0.35rem;
}

.star-company-overlay em {
  width: max-content;
  padding: 0.18rem 0.48rem;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 800;
}

.star-company-overlay strong {
  font-size: 1.05rem;
  letter-spacing: 0;
}

.star-company-overlay span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
}

.star-company-toggle-bar {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.star-company-detail {
  display: grid;
  gap: 1rem;
}

.star-company-detail-cover {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  border-radius: 22px;
  background: linear-gradient(135deg, #102b55, #2563eb);
  background-position: center;
  background-size: cover;
}

.star-company-detail-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 16, 36, 0.8), rgba(5, 16, 36, 0.18));
}

.star-company-detail-cover > div {
  position: absolute;
  z-index: 1;
  left: 2rem;
  right: 2rem;
  bottom: 2rem;
  color: #fff;
}

.star-company-detail-cover span {
  color: #93c5fd;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.star-company-detail-cover h1 {
  margin: 0.55rem 0;
  font-size: 2.2rem;
  letter-spacing: 0;
}

.star-company-richtext {
  padding: 1.4rem;
  border: 1px solid #dbe6f4;
  border-radius: 18px;
  background: #fff;
  color: #18304f;
  line-height: 1.8;
}

.star-company-form,
.star-company-admin-row {
  padding: 1rem;
  border: 1px solid #dbe6f4;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
}

.star-company-form {
  margin-bottom: 1rem;
}

.star-company-form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.star-company-form label {
  display: grid;
  gap: 0.35rem;
  color: #425979;
  font-size: 0.78rem;
  font-weight: 700;
}

.star-company-form input {
  min-height: 38px;
  border: 1px solid #d5e1f1;
  border-radius: 10px;
  padding: 0 0.75rem;
  color: #071832;
}

.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;
}

.star-company-form-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 0.85rem;
}

.star-company-admin-list {
  display: grid;
  gap: 0.75rem;
}

.star-company-admin-row {
  display: grid;
  gap: 0.75rem;
}

.star-company-admin-preview {
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 0.9rem;
  align-items: center;
}

.star-company-admin-cover {
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  background: linear-gradient(135deg, #dbeafe, #2563eb);
  background-position: center;
  background-size: cover;
}

.star-company-admin-preview strong,
.star-company-admin-preview span,
.star-company-admin-preview em {
  display: block;
}

.star-company-admin-preview strong {
  color: #071832;
  font-size: 1rem;
}

.star-company-admin-preview span,
.star-company-admin-preview em {
  color: #526684;
  font-size: 0.82rem;
  font-style: normal;
  margin-top: 0.25rem;
}

.star-company-admin-actions {
  display: flex;
  justify-content: flex-end;
}

.star-company-edit-panel summary {
  cursor: pointer;
  color: #2563eb;
  font-weight: 800;
}

.star-company-edit-panel .star-company-form {
  margin: 0.75rem 0 0;
  background: #f8fbff;
}

@media (max-width: 980px) {
  .star-company-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .star-company-grid,
  .star-company-form-grid,
  .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: auto minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: end;
  padding: 0.9rem;
  background: #050816;
}

.policy-chat-form textarea {
  width: 100%;
  min-height: 46px;
  resize: vertical;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  background: #0f172a;
  color: #fff;
  padding: 0.7rem;
}

.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;
}

.policy-upload-button input {
  display: none;
}

.policy-chat-form p {
  grid-column: 1 / -1;
  margin: 0;
  color: #cbd5e1;
  font-size: 0.8rem;
}

.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-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 p {
  color: #64748b;
}

.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 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-panel {
  width: min(920px, 100%);
  max-height: 88vh;
  overflow: auto;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.22);
  padding: 1rem;
}

.policy-detail-modal-panel header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 0.85rem;
  margin-bottom: 0.9rem;
}

.policy-detail-modal-panel header span {
  color: #2563eb;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
}

.policy-detail-modal-panel header h3 {
  margin: 0.2rem 0 0;
  color: #0f172a;
  font-size: 1.12rem;
}

.policy-detail-modal-panel header button {
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: #f8fafc;
  color: #0f172a;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
}

@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-header,
  .policy-library-page-grid {
    grid-template-columns: 1fr;
  }
}
/* Community plaza */
.community-feed-page {
  display: grid;
  gap: 18px;
}
.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-publish-button,
.community-form-actions button,
.community-comment-form button {
  border: 0;
  border-radius: 8px;
  background: #111827;
  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-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 input,
.community-link-row input {
  width: 100%;
  min-height: 40px;
  border: 1px solid #d5deeb;
  border-radius: 8px;
  padding: 0 12px;
}
.community-rich-toolbar {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  padding: 8px;
  border: 1px solid #d5deeb;
  border-radius: 8px 8px 0 0;
  background: #f8fafc;
}
.community-rich-toolbar button,
.community-link-row 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-editor {
  min-height: 112px;
  padding: 14px;
  border: 1px solid #d5deeb;
  border-top: 0;
  border-radius: 0 0 8px 8px;
  color: #334155;
  line-height: 1.7;
}
.community-rich-editor.small {
  min-height: 76px;
  border-top: 1px solid #d5deeb;
  border-radius: 8px;
}
.community-link-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 10px;
}
.community-author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.community-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #cbd5e1;
  color: #1f2937;
  font-weight: 900;
}
.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-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);
}
.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-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;
}
@media (max-width: 980px) {
  .community-feed-layout,
  .community-admin-grid {
    grid-template-columns: 1fr;
  }
  .community-side-panel {
    display: none;
  }
}

.alpha-test-notice {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.42);
}

.alpha-test-notice-panel {
  position: relative;
  width: min(520px, 100%);
  border-radius: 8px;
  background: #fff;
  color: #111827;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
  padding: 28px;
}

.alpha-test-notice-panel h2 {
  margin: 0 0 14px;
  font-size: 24px;
  line-height: 1.2;
}

.alpha-test-notice-panel p {
  margin: 10px 0 0;
  font-size: 16px;
  line-height: 1.75;
}

.alpha-test-notice-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #f3f4f6;
  color: #111827;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.alpha-test-thanks strong {
  font-size: 20px;
  font-weight: 900;
}
