main {
  min-height: 100vh;
}

.landing-main {
  overflow-x: hidden;
  background: #f4f7fb;
}

.topbar {
  height: 72px;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #dfe5ef;
  background: rgba(255, 255, 255, 0.9);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  overflow: visible;
}

.landing-main .topbar {
  position: fixed;
  width: 100%;
  height: 68px;
  border-bottom-color: rgba(215, 222, 232, 0.9);
  background: #ffffff;
  color: #0b1d3a;
}

.landing-main .brand {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.landing-main .brand img {
  height: 40px;
}

.landing-main .nav-actions button:not(.primary) {
  background: #ffffff;
  border-color: #cfd7e6;
  color: #0b1d3a;
}

.landing-main .nav-actions .primary.small {
  background: #d8b76a;
  border-color: #d8b76a;
  color: #0b1d3a;
}

.brand {
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  padding: 0;
}

.brand img {
  height: 30px;
  width: auto;
  display: block;
}

.brand i {
  color: #8b97ad;
  font-style: normal;
  font-weight: 500;
}

.nav-actions,
.hero-actions,
.pager {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar .nav-actions {
  flex-wrap: nowrap;
  overflow: visible;
  position: relative;
}

.topbar-metric {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-size: 12px;
  color: #5f6d84;
}

.topbar-metric strong {
  font-size: 15px;
  color: #0b1d3a;
}

.primary {
  background: #0b1d3a;
  border-color: #0b1d3a;
  color: #ffffff;
  font-weight: 700;
}

.primary.small {
  padding: 9px 13px;
}

.primary.full {
  width: 100%;
  justify-content: center;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-weight: 600;
}

.checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
}

.checkbox-row span {
  line-height: 1.5;
}

.terms-inline-link {
  display: inline;
  margin: 0 2px;
  padding: 0;
  vertical-align: baseline;
  font-size: inherit;
  font-weight: 700;
  text-decoration: underline;
}

.terms-link {
  align-self: flex-start;
  padding: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.terms-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: -4px;
  margin-bottom: 4px;
}

.markdown-preview {
  margin: 0;
  padding: 12px;
  border: 1px solid #dfe5ef;
  border-radius: 8px;
  background: #fafbfd;
  line-height: 1.7;
  max-height: 56vh;
  overflow: auto;
}

.markdown-preview h1,
.markdown-preview h2,
.markdown-preview h3 {
  margin: 0 0 10px;
}

.markdown-preview p {
  margin: 0 0 10px;
}

.markdown-preview ul {
  margin: 0 0 10px 20px;
  padding: 0;
}

.markdown-preview a {
  color: #0b4ea2;
  text-decoration: underline;
}

.legal-editor {
  width: 100%;
  border: 1px solid #d6deea;
  border-radius: 8px;
  padding: 10px;
  font: inherit;
  line-height: 1.6;
}

.hero-section {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  min-height: 100svh;
  padding: 120px 56px 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  background:
    linear-gradient(120deg, rgba(8, 20, 38, 0.88), rgba(30, 59, 92, 0.58), rgba(184, 148, 70, 0.2)),
    url("https://images.unsplash.com/photo-1517048676732-d65bc937f952?auto=format&fit=crop&w=1800&q=80");
  background-size: cover;
  background-position: center;
  color: #ffffff;
}

.hero-copy {
  max-width: 860px;
  animation: fadeUp 0.65s ease-out both;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 12px;
  font-weight: 800;
  color: #b89446;
  margin: 0 0 14px;
}

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

h1 {
  font-size: 64px;
  line-height: 1.04;
  letter-spacing: 0;
  margin-bottom: 24px;
}

h2 {
  font-size: 30px;
  margin-bottom: 16px;
}

h3 {
  font-size: 18px;
}

.lead {
  font-size: 19px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.82);
  max-width: 720px;
  margin-bottom: 32px;
}

.hero-cta {
  min-height: 52px;
  min-width: 176px;
  font-size: 18px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(216, 183, 106, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(216, 183, 106, 0.36);
  background: #102a52;
}

.hero-cta:active {
  transform: translateY(0);
}

.admin-metrics article {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  padding: 14px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #dfe5ef;
}

.feature-grid article {
  background: #ffffff;
  padding: 38px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-grid article:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(15, 31, 61, 0.1);
}

.feature-grid svg,
.form-card svg,
.admin-metrics svg {
  color: #b89446;
}

.landing-section {
  padding: 56px 40px;
  max-width: 1240px;
  margin: 0 auto;
  animation: fadeUp 0.7s ease both;
}

.landing-section.alt {
  background: #f5f8fc;
  border-top: 1px solid #e4ebf4;
  border-bottom: 1px solid #e4ebf4;
  max-width: 1240px;
}

.section-title {
  margin-bottom: 26px;
}

.section-title h2 {
  margin-bottom: 0;
  color: #0f1f3d;
}

.scope-grid,
.compliance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.scope-grid article,
.compliance-grid article {
  background: #ffffff;
  border: 1px solid #dfe5ef;
  border-radius: 8px;
  padding: 22px;
}

.scope-grid h3,
.compliance-grid h3 {
  margin-bottom: 12px;
}

.scope-grid p,
.compliance-grid p {
  color: #4a5770;
  line-height: 1.7;
  margin-bottom: 0;
}

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

.flow-grid article {
  display: grid;
  gap: 8px;
  border: 1px solid #d5deea;
  border-radius: 8px;
  background: #ffffff;
  padding: 18px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.flow-grid article:hover {
  transform: translateY(-3px);
  border-color: #c2cde0;
  box-shadow: 0 12px 24px rgba(15, 31, 61, 0.08);
}

.flow-grid strong {
  color: #b89446;
  font-size: 18px;
}

.flow-grid p {
  margin-bottom: 0;
  color: #2f3e58;
  line-height: 1.55;
}

.landing-footer {
  margin-top: 0;
  background: #0b1d3a;
  color: rgba(233, 238, 248, 0.9);
  border-top: 1px solid #233e6c;
}

.footer-grid {
  max-width: 1240px;
  margin: 0 auto;
  padding: 38px 40px 26px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.footer-grid h3 {
  font-size: 16px;
  color: #d8b76a;
  margin-bottom: 12px;
}

.footer-grid p {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.6;
}

.footer-bottom {
  border-top: 1px solid #233e6c;
  padding: 12px 40px 16px;
  max-width: 1240px;
  margin: 0 auto;
  color: rgba(233, 238, 248, 0.72);
  font-size: 13px;
}

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

.center-shell {
  min-height: calc(100vh - 72px);
  display: grid;
  place-items: center;
  padding: 40px 20px;
}

.form-card {
  width: min(460px, 100%);
  background: #ffffff;
  border: 1px solid #dfe5ef;
  border-radius: 8px;
  padding: 32px;
  box-shadow: 0 24px 60px rgba(11, 29, 58, 0.08);
}

.form-card.wide {
  width: min(780px, 100%);
}

label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 700;
}

.checkbox-line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.checkbox-line input {
  width: 16px;
  height: 16px;
  margin: 0;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cfd7e6;
  border-radius: 6px;
  padding: 12px 13px;
  background: #ffffff;
  color: #172033;
  font-size: 16px;
}

textarea {
  resize: vertical;
  min-height: 112px;
  font: inherit;
  line-height: 1.5;
}

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

.span-2 {
  grid-column: span 2;
}

.birth-selects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.message {
  padding: 12px 14px;
  background: #fff8e5;
  border: 1px solid #ead19b;
  border-radius: 6px;
  color: #7a5410;
}

.hint {
  font-size: 13px;
  color: #6c7688;
  margin: 14px 0 0;
}

.auth-switch {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #edf1f6;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #5f6d84;
  font-size: 14px;
}

.text-link {
  border: 0;
  background: transparent;
  color: #0b1d3a;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.workspace,
.admin-shell {
  padding: 40px;
  max-width: 1180px;
  margin: 0 auto;
}

.super-workspace {
  max-width: 1260px;
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  align-items: start;
  gap: 18px;
}

.super-sidebar {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid #dfe5ef;
  border-radius: 8px;
  background: #ffffff;
}

.super-sidebar-label {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 800;
  color: #6c7688;
}

.super-sidebar button {
  justify-content: flex-start;
}

.super-sidebar button.active {
  background: #0b1d3a;
  border-color: #0b1d3a;
  color: #ffffff;
}

.super-content {
  min-width: 0;
}

.admin-v2-layout {
  display: block;
}

.admin-v2-top {
  margin-bottom: 14px;
}

.admin-v2-header {
  padding: 18px 20px;
  border: 1px solid #dfe5ef;
  border-radius: 8px;
  background: #ffffff;
}

.admin-v2-title .hint {
  margin: 6px 0 0;
}

.admin-v2-top-actions {
  display: flex;
  gap: 8px;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid #dfe5ef;
  border-radius: 8px;
  background: #ffffff;
  flex-wrap: nowrap;
  overflow-x: auto;
}

.admin-topbar-metrics {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: nowrap;
  margin-left: 8px;
}

.admin-topbar-metrics span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-size: 12px;
  color: #5f6d84;
  white-space: nowrap;
}

.admin-topbar-metrics strong {
  font-size: 15px;
  color: #0b1d3a;
}

.admin-v2-metrics {
  margin-top: 12px;
  margin-bottom: 12px;
}

.admin-v2-toolbar {
  margin-bottom: 14px;
  display: grid;
  gap: 10px;
  border: 1px solid #dfe5ef;
  border-radius: 8px;
  background: #ffffff;
  padding: 12px;
}

.admin-v2-toolbar-meta {
  display: flex;
  gap: 12px;
  color: #5f6d84;
  font-size: 13px;
}

.admin-v2-filterbar.compact {
  grid-template-columns: minmax(180px, 1.2fr) repeat(2, minmax(120px, 1fr)) 140px 140px auto auto;
  padding: 10px;
  margin-bottom: 10px;
}

.admin-v2-filterbar.compact input,
.admin-v2-filterbar.compact button {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 13px;
}

.admin-v2-meta-inline {
  align-self: center;
  font-size: 12px;
  color: #6c7688;
}

.admin-v2-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  padding: 6px;
  border: 1px solid #dfe5ef;
  border-radius: 8px;
  background: #ffffff;
}

.admin-v2-tabs button {
  border: 1px solid #dfe5ef;
  background: #f6f8fc;
  color: #2a3346;
  font-weight: 600;
  border-radius: 6px;
  padding: 8px 12px;
}

.admin-v2-tabs button.active {
  background: #0b1d3a;
  color: #ffffff;
  border-color: #0b1d3a;
}

.admin-v2-panel {
  border: 1px solid #dfe5ef;
  background: #ffffff;
  border-radius: 8px;
  padding: 16px;
}

.admin-v2-section-head {
  margin-bottom: 14px;
}

.admin-v2-actions {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.admin-v2-export-center {
  margin-top: 14px;
}

.selected-row {
  background: #f2f6fc;
}

.admin-v2-card {
  margin-top: 14px;
  padding: 18px;
}

.admin-v2-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.admin-v2-stack {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.question-card,
.report-card,
.data-section,
.dimension-list {
  background: #ffffff;
  border: 1px solid #dfe5ef;
  border-radius: 8px;
  padding: 28px;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.catalog-card {
  min-height: 260px;
  background: #ffffff;
  border: 1px solid #dfe5ef;
  border-radius: 8px;
  padding: 24px;
  display: grid;
  align-content: space-between;
  gap: 18px;
}

.catalog-card p {
  color: #6c7688;
  line-height: 1.65;
}

.catalog-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.catalog-meta span {
  padding: 6px 9px;
  border-radius: 5px;
  background: #edf1f6;
  color: #425066;
  font-size: 13px;
  font-weight: 700;
}

.question-meta {
  color: #6c7688;
  margin-bottom: 14px;
}

.question-card h3 {
  font-size: 26px;
  line-height: 1.45;
  margin-bottom: 24px;
}

.scale {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.scale button {
  display: grid;
  gap: 4px;
  min-height: 84px;
}

.scale button strong {
  font-size: 24px;
}

.scale button.selected {
  border-color: #0b1d3a;
  background: #0b1d3a;
  color: #ffffff;
}

.pager {
  justify-content: flex-end;
  margin-top: 18px;
}

.assessment-shell {
  max-width: 980px;
  padding-top: 28px;
}

.assessment-shell .section-head {
  margin-bottom: 14px;
}

.assessment-shell .section-head h2 {
  font-size: 21px;
  margin-bottom: 4px;
}

.assessment-shell .section-head span {
  font-size: 13px;
  color: #6c7688;
}

.assessment-shell .question-card {
  padding: 18px;
}

.assessment-shell .question-meta {
  font-size: 13px;
  margin-bottom: 10px;
}

.assessment-shell .question-card h3 {
  font-size: 20px;
  line-height: 1.35;
  margin-bottom: 12px;
}

.assessment-shell .scale {
  gap: 6px;
}

.assessment-shell .scale button {
  min-height: 52px;
  padding: 6px 4px;
  border-radius: 6px;
}

.assessment-shell .scale button strong {
  font-size: 14px;
  line-height: 1;
}

.assessment-shell .scale button span {
  font-size: 11px;
  line-height: 1.2;
}

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

.option-item {
  width: 100%;
  min-height: 48px;
  border: 1px solid #d6deea;
  border-radius: 6px;
  background: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  text-align: left;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.option-item i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #9fb0c9;
  background: #ffffff;
  flex: 0 0 auto;
}

.option-item span {
  font-size: 14px;
  line-height: 1.4;
  color: #24314a;
}

.option-item.selected {
  border-color: #0b1d3a;
  background: #f4f7fc;
}

.option-item.selected i {
  border-color: #0b1d3a;
  background: radial-gradient(circle, #0b1d3a 47%, #ffffff 52%);
}

.assessment-shell .pager {
  margin-top: 10px;
}

.assessment-shell .pager button {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 13px;
}

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

.precheck-card h3 {
  margin-bottom: 4px;
}

.precheck-card p {
  margin-bottom: 0;
  color: #33445f;
  line-height: 1.6;
}

.link-button {
  border: 0;
  background: transparent;
  color: #0b1d3a;
  font-weight: 700;
  padding: 0 4px;
  text-decoration: underline;
  cursor: pointer;
}

.precheck-card button {
  justify-self: start;
  margin-top: 4px;
}

.report-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
}

.celebrate-shell {
  background: radial-gradient(circle at 50% 20%, #fff8e5 0%, #f7f9fc 54%, #eef2f8 100%);
}

.celebrate-card {
  width: min(620px, 100%);
  text-align: center;
  position: relative;
  padding: 10px 12px;
}

.celebrate-card svg {
  color: #cda24a;
  margin-bottom: 8px;
}

.celebrate-card p {
  color: #4a5770;
  margin-bottom: 20px;
}

.confetti {
  position: absolute;
  inset: -14px;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(205, 162, 74, 0.9) 3px, transparent 3px),
    radial-gradient(circle, rgba(11, 29, 58, 0.26) 2px, transparent 2px);
  background-size: 48px 48px, 34px 34px;
  background-position: 0 0, 16px 10px;
  animation: confetti-fall 2.2s linear infinite;
  opacity: 0.6;
}

@keyframes confetti-fall {
  from { transform: translateY(-14px); }
  to { transform: translateY(24px); }
}

.score {
  font-size: 64px;
  font-weight: 800;
  color: #0b1d3a;
}

.score span {
  font-size: 20px;
  color: #6c7688;
}

.download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
}

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

.dimension-list div {
  display: flex;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid #edf1f6;
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.admin-metrics article {
  background: #ffffff;
  border-color: #dfe5ef;
}

.admin-metrics span,
.admin-metrics strong {
  display: block;
}

.admin-metrics strong {
  font-size: 20px;
  color: #0b1d3a;
}

.admin-v2-metrics article {
  padding: 10px 12px;
}

.admin-v2-metrics span {
  font-size: 12px;
}

.menu-wrap {
  position: relative;
}

.menu-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 140px;
  background: #fff;
  border: 1px solid #dfe5ef;
  border-radius: 8px;
  padding: 6px;
  display: grid;
  gap: 6px;
  box-shadow: 0 10px 24px rgba(11, 29, 58, 0.12);
  z-index: 9999;
}

.admin-menu-wrap {
  position: relative;
  z-index: 10000;
}

.menu-dropdown button {
  justify-content: flex-start;
}

.inline-form {
  display: grid;
  grid-template-columns: 1fr 140px 1fr auto;
  gap: 12px;
  margin-bottom: 16px;
}

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

.inline-form.project-admin-create {
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 1fr) auto;
}

.ops-block {
  margin-bottom: 18px;
}

.ops-block h4 {
  margin: 0 0 12px;
  font-size: 15px;
}

.filter-bar {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr)) auto auto;
  gap: 10px;
  margin: 16px 0;
  padding: 14px;
  background: #ffffff;
  border: 1px solid #dfe5ef;
  border-radius: 8px;
}

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

.monitor-export-controls label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.monitor-export-controls input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 0;
}

.monitor-export-controls button {
  min-height: 30px;
  padding: 5px 10px;
  font-size: 12px;
  border-radius: 5px;
}

.data-section {
  margin-top: 18px;
}

.table-wrap {
  width: 100%;
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  text-align: left;
  border-bottom: 1px solid #edf1f6;
  padding: 12px 10px;
  white-space: nowrap;
  vertical-align: top;
}

th {
  color: #6c7688;
  font-weight: 800;
}

td {
  max-width: 420px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(11, 29, 58, 0.54);
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal {
  width: min(1040px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #dfe5ef;
  padding: 28px;
  box-shadow: 0 30px 80px rgba(11, 29, 58, 0.26);
}

.create-project-modal {
  width: min(760px, 100%);
}

.compact-head {
  margin-bottom: 18px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 2px;
}

.small-modal {
  width: min(480px, 100%);
}

.detail-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 0;
}

.detail-summary span {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid #e7edf5;
  border-radius: 8px;
  background: #ffffff;
  min-height: 78px;
}

.detail-summary strong {
  color: #6f7a8c;
  font-size: 12px;
  font-weight: 700;
}

.insight-score-card {
  margin-bottom: 14px;
  border: 1px solid #e6c7a6;
  border-radius: 8px;
  background: #fffaf3;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.insight-score-label {
  margin: 0 0 4px;
  font-size: 12px;
  color: #8a6c42;
  font-weight: 700;
}

.insight-score-card h3 {
  margin: 0 0 4px;
  font-size: 20px;
  color: #2a3448;
}

.insight-score-badge {
  min-width: 64px;
  text-align: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid #d9e2ef;
}

.insight-score-badge.pending {
  color: #8b6b3f;
  border-color: #efdbbd;
  background: #fff4df;
}

.insight-score-badge.ready {
  color: #17633f;
  border-color: #cfe9db;
  background: #ebf9f1;
}

.report-card.compact {
  margin-bottom: 18px;
  padding: 18px;
}

.admin-report-template {
  display: grid;
  gap: 12px;
}

.admin-report-template .module {
  border: 1px solid #e6c7a6;
  border-radius: 6px;
  background: #fff;
  padding: 12px;
}

.admin-report-template .tag {
  display: inline-block;
  background: #f28f1f;
  color: #fff;
  border-radius: 16px;
  padding: 5px 12px;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 10px;
}

.admin-report-template .intro {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: #2f394c;
}

.modal-report-style {
  width: min(1280px, 100%);
  padding: 22px;
}

.report-module {
  border: 1px solid #e7ccb0;
  background: #fffdf9;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
}

.report-module-tag {
  display: inline-block;
  margin: 0 0 10px 0;
  background: linear-gradient(90deg, #f09023, #f6b349);
  color: #fff;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 700;
}

.report-table-head {
  margin-bottom: 8px;
}

@media (max-width: 860px) {
  .topbar {
    height: auto;
    min-height: 62px;
    padding: 10px 12px;
    gap: 8px;
    align-items: center;
  }

  .hero-section,
  .footer-grid,
  .feature-grid,
  .scope-grid,
  .flow-grid,
  .report-layout,
  .grid-form,
  .catalog-grid,
  .admin-metrics,
  .inline-form {
    grid-template-columns: 1fr;
  }

  .filter-bar {
    grid-template-columns: 1fr;
  }

  .detail-summary {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: auto;
  }


  .hero-section {
    min-height: 100svh;
    padding: 96px 16px 42px;
  }

  .landing-main .topbar {
    min-height: 62px;
  }

  .landing-section {
    padding: 36px 16px;
  }

  .footer-grid {
    padding: 28px 16px 18px;
  }

  .footer-bottom {
    padding: 12px 16px 16px;
  }

  .hero-cta {
    width: 100%;
    max-width: none;
    min-height: 48px;
    font-size: 16px;
  }

  h1 {
    font-size: 34px;
    margin-bottom: 14px;
  }

  .lead {
    font-size: 15px;
    line-height: 1.65;
    margin-bottom: 20px;
  }

  .brand {
    gap: 8px;
    font-size: 14px;
  }

  .brand img {
    height: 24px;
  }

  .nav-actions {
    gap: 8px;
  }

  .nav-actions button {
    padding: 8px 10px;
    font-size: 13px;
  }

  .admin-main .topbar {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .admin-main .nav-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

  .admin-main .nav-actions button {
    width: 100%;
    min-width: 0;
    justify-content: center;
    white-space: nowrap;
  }

  .admin-main .topbar-metric {
    width: 100%;
    min-width: 0;
    justify-content: center;
    padding: 6px 8px;
    border: 1px solid #dfe5ef;
    border-radius: 6px;
    background: #ffffff;
    font-size: 11px;
  }

  .admin-main .topbar-metric strong {
    font-size: 13px;
  }

  .admin-main .menu-wrap {
    position: static;
    min-width: 0;
  }

  .admin-menu-wrap > button {
    width: 100%;
  }

  .admin-main .menu-dropdown {
    position: fixed;
    top: 64px;
    right: 12px;
    left: auto;
    width: min(180px, calc(100vw - 24px));
  }

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

  .assessment-shell {
    padding-top: 12px;
  }

  .assessment-shell .question-card {
    padding: 12px;
  }

  .assessment-shell .question-card h3 {
    font-size: 15px;
    line-height: 1.4;
    margin-bottom: 8px;
  }

  .assessment-shell .scale button {
    min-height: 48px;
    padding: 6px 8px;
    text-align: left;
    grid-template-columns: 26px 1fr;
    align-items: center;
    gap: 8px;
  }

  .assessment-shell .scale button strong {
    font-size: 13px;
  }

  .option-item {
    min-height: 40px;
    padding: 7px 9px;
    gap: 8px;
  }

  .option-item span {
    font-size: 12px;
  }

  .workspace,
  .admin-shell {
    padding: 16px 12px;
  }

  .admin-shell {
    max-width: none;
  }

  .admin-v2-filterbar.compact {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px;
  }

  .admin-v2-filterbar.compact input,
  .admin-v2-filterbar.compact button {
    min-height: 42px;
    font-size: 14px;
  }

  .admin-main .admin-v2-section-head,
  .admin-main .section-head {
    align-items: flex-start;
    gap: 10px;
    flex-direction: column;
    margin-bottom: 14px;
  }

  .admin-main .section-head .table-actions,
  .admin-main .admin-v2-section-head .table-actions {
    width: 100%;
  }

  .admin-main .admin-v2-panel,
  .admin-main .report-card.compact,
  .admin-main .admin-v2-card {
    padding: 12px;
    margin-top: 10px;
    border-radius: 8px;
  }

  .admin-v2-card h3,
  .admin-v2-panel h3 {
    font-size: 18px;
    margin: 0 0 12px;
  }

  .admin-main .ops-block h4 {
    font-size: 14px;
  }

  .admin-main .inline-form.project-admin-create,
  .admin-main .inline-form {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .admin-main .table-actions {
    gap: 8px;
  }

  .admin-main .table-actions button,
  .admin-main .monitor-export-controls button {
    min-height: 38px;
    padding: 8px 10px;
    font-size: 13px;
  }

  .admin-main .monitor-export-controls {
    align-items: stretch;
  }

  .admin-main .monitor-export-controls label {
    width: 100%;
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid #dfe5ef;
    border-radius: 6px;
    background: #ffffff;
  }

  .admin-main .table-wrap {
    margin: 0 -12px;
    padding: 0 12px 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .admin-main .table-wrap table {
    min-width: 760px;
  }

  .admin-main th,
  .admin-main td {
    padding: 10px 8px;
    font-size: 13px;
  }

  .admin-main td {
    max-width: 260px;
  }

  .admin-main td .table-actions {
    flex-wrap: nowrap;
  }

  .admin-main td .table-actions button {
    white-space: nowrap;
  }

  .admin-main .modal-backdrop {
    padding: 10px;
    align-items: start;
    overflow: auto;
  }

  .admin-main .modal {
    width: 100%;
    max-height: calc(100svh - 20px);
    padding: 16px 14px;
  }

  .admin-main .modal .section-head {
    flex-direction: row;
    align-items: flex-start;
  }

  .admin-main .detail-summary {
    gap: 8px;
  }

  .admin-main .insight-score-card {
    grid-template-columns: 1fr;
  }

  .admin-main .legal-editor {
    min-height: 220px;
  }

  .super-workspace {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .super-sidebar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .super-sidebar-label {
    grid-column: 1 / -1;
  }

  input,
  select,
  textarea {
    font-size: 16px;
  }

  .catalog-card {
    min-height: auto;
    padding: 16px;
    gap: 12px;
  }

  .catalog-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
  }

  .catalog-card p {
    font-size: 13px;
    line-height: 1.5;
  }

  .form-card,
  .form-card.wide {
    width: 100%;
    padding: 20px 14px;
  }

  .grid-form {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .birth-selects {
    grid-template-columns: 1fr;
  }

  .option-item {
    min-height: 44px;
    border-radius: 8px;
  }

  .precheck-card button {
    width: 100%;
    justify-self: stretch;
  }

  .pager {
    position: sticky;
    bottom: 0;
    background: #f7f9fc;
    padding: 10px 0 4px;
    border-top: 1px solid #dfe5ef;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy,
  .landing-section,
  .feature-grid article,
  .flow-grid article,
  .landing-bottom-bar div,
  .hero-cta,
  .confetti {
    animation: none;
    transition: none;
  }
}
