:root {
  --ink: #17201d;
  --muted: #65716d;
  --line: #dfe5e1;
  --surface: #ffffff;
  --background: #f4f7f5;
  --accent: #17664f;
  --accent-soft: #e5f0eb;
  --shadow: 0 12px 30px rgba(27, 46, 38, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--background);
}

.site-header {
  padding: 8px max(16px, calc((100vw - 1180px) / 2));
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

.institutional-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  flex: 0 0 auto;
  min-height: 0;
  margin: 0;
}

.institutional-bar img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(22vw, 205px);
  max-height: 48px;
  object-fit: contain;
}

.institutional-bar img:last-child {
  max-width: 48px;
  max-height: 50px;
}

.institutional-bar img:first-child {
  padding: 5px 7px;
  border-radius: 6px;
  background: var(--accent);
}

.institutional-divider {
  flex: 0 0 1px;
  max-width: 1px;
  height: 30px;
  background: var(--line);
}

.site-heading {
  min-width: 0;
}

.site-header h1 {
  margin: 0;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.2;
}

.site-draft-warning {
  display: inline-block;
  margin: 4px 0 0;
  padding: 3px 7px;
  border-left: 3px solid #bd8738;
  background: #fff8ec;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.eyebrow {
  color: var(--accent);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.layout {
  display: grid;
  grid-template-columns: minmax(620px, 1fr) 350px;
  align-items: stretch;
  gap: 24px;
  max-width: 1180px;
  margin: 12px auto 28px;
  padding: 0 24px;
}

.model-card,
.reading-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.model-card {
  padding: 22px;
}

.model-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.model-header strong {
  font-size: 12px;
}

.cycle {
  position: relative;
  width: min(620px, 100%);
  aspect-ratio: 1;
  margin: 14px auto 0;
}

.cycle-center {
  position: absolute;
  width: 142px;
  height: 142px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  background: var(--accent-soft);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  line-height: 1.25;
}

.cycle-center strong {
  font-size: 13px;
}

.cycle-center span {
  margin-top: 5px;
  font-size: 10px;
  color: var(--muted);
}

.component {
  position: absolute;
  width: 100px;
  min-height: 104px;
  transform: translate(-50%, -50%);
  padding: 9px 7px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 4px 12px rgba(27, 46, 38, 0.04);
  transition: 0.15s ease;
}

.component:hover {
  transform: translate(-50%, -50%) scale(1.04);
  border-color: var(--accent);
}

.component.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  box-shadow: 0 8px 20px rgba(27, 46, 38, 0.11);
}

.component:focus-visible,
.selectors select:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.component:focus-visible {
  z-index: 1;
}

.component-number {
  display: block;
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  margin-bottom: 5px;
}

.component-thumbnail {
  display: block;
  width: 42px;
  height: 34px;
  margin: 0 auto 4px;
  object-fit: contain;
}

.component-name {
  display: block;
  font-size: 9.5px;
  line-height: 1.2;
}

.reading-card {
  align-self: stretch;
  min-height: 0;
  max-height: 100%;
  overflow-y: auto;
  padding: 22px;
}

.reading-card h2 {
  margin: 8px 0 8px;
  font-size: 18px;
}

.component-illustration {
  margin: 8px 0;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfcfb;
  text-align: center;
}

.component-illustration img {
  display: block;
  width: 100%;
  max-width: 220px;
  max-height: 92px;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

.component-illustration figcaption {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
}

.reading-card > p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.component-explanations {
  display: grid;
  gap: 7px;
  margin: 8px 0;
}

.component-explanation-section {
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.component-explanation-section > summary {
  cursor: pointer;
  color: var(--accent);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.4;
}

.component-explanation-section > p,
.component-flow-relation p {
  margin: 6px 0;
  color: var(--text);
  font-size: 12px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.component-flow-relations,
.component-perspective-participants {
  display: grid;
  gap: 8px;
  margin: 9px 0 0;
  padding: 0;
}

.component-perspective-participants {
  list-style: none;
}

.component-flow-relation,
.component-perspective-participants li {
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbf9;
}

.component-flow-direction,
.component-perspective-participants li > strong,
.component-perspective-participants li > span,
.component-perspective-participants li > small,
.component-pending-articles li > strong,
.component-pending-articles li > span,
.component-pending-articles li > small {
  display: block;
}

.component-flow-direction {
  color: var(--muted);
  font-size: 10px;
}

.component-flow-link {
  margin-top: 3px;
  padding: 3px 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  text-align: left;
  text-decoration: underline;
  cursor: pointer;
}

.component-flow-link:focus-visible,
.component-explanation-section > summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.component-perspective-participants li > strong {
  font-size: 11px;
  line-height: 1.4;
}

.component-perspective-participants li > span,
.component-perspective-participants li > small {
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.component-perspective-participants li > small {
  color: var(--muted);
}

#component-article-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 215px), 1fr));
  align-items: start;
  gap: 7px;
}

.component-article-relation {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 5px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
}

.component-article-reference {
  margin: 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
}

.component-article-title {
  font-size: 13px;
  font-weight: 650;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.component-article-number {
  justify-self: start;
  min-height: 36px;
  padding: 6px 9px;
  border: 1px solid var(--accent);
  border-radius: 7px;
  background: var(--accent-soft);
  color: var(--accent);
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}

.component-article-number:hover {
  background: #e2efe8;
}

.component-article-number:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.pending-relation-label {
  margin-top: 3px;
  color: #75550b;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.component-pending-articles {
  margin-top: 10px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fbfaf6;
  color: var(--text);
  font-size: 11px;
  line-height: 1.45;
}

.component-pending-articles h4 {
  margin: 0 0 5px;
  font-size: 13px;
}

.component-pending-articles ul {
  display: grid;
  gap: 8px;
  margin: 7px 0 0;
  padding-left: 18px;
}

.reading-card details {
  min-width: 0;
}

.reading-card details > summary {
  cursor: pointer;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
}

.reading-card details > summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.reading-disclosure {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.reading-disclosure[open] > summary,
.radial-regulation-links[open] > summary {
  margin-bottom: 8px;
}

.reading-disclosure .reading-formula {
  margin-top: 8px;
}

.selectors {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.case-demo-shortcut,
.case-demo-reading {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-left: 4px solid #47734d;
  border-radius: 10px;
  padding: 10px 12px;
  background: #f5f8f2;
  font-size: 12px;
}

.case-demo-shortcut span,
.case-demo-reading p,
.case-demo-reading dd {
  color: var(--muted);
  line-height: 1.45;
}

.case-demo-shortcut a,
.case-demo-reading a {
  font-weight: 700;
}

.case-demo-reading h3,
.case-demo-reading h4 {
  margin: 2px 0;
}

.case-demo-reading dl {
  display: grid;
  gap: 4px;
  margin: 0;
}

.case-demo-reading dt {
  font-weight: 700;
}

.case-demo-reading dd {
  margin: 0 0 6px;
}

.selectors label {
  display: block;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 7px 9px;
  background: #fff;
}

.selectors label span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-bottom: 3px;
}

select {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 600;
  font-size: 11px;
}

.selectors select {
  font-size: 14px;
}

.reading-formula {
  margin-top: 12px;
  padding: 12px;
  border-radius: 11px;
  background: var(--accent-soft);
  font-size: 11px;
  line-height: 1.5;
}

.reading-formula strong {
  display: block;
  margin-top: 2px;
  font-size: 12px;
}

.reading-result {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 12px;
}

.reading-result div {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px;
}

.reading-result span {
  display: block;
  color: var(--muted);
  font-size: 8px;
  margin-bottom: 4px;
}

.reading-result strong {
  display: block;
  font-size: 10px;
  line-height: 1.2;
}

.conceptual-note {
  margin-top: 12px !important;
  font-size: 10px !important;
}

footer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 24px 25px;
  color: var(--muted);
  font-size: 9px;
}

@media (max-width: 1042px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .reading-card {
    max-width: 620px;
    width: 100%;
    margin: 0 auto;
  }
}

@media (max-width: 650px) {
  .site-header {
    padding: 8px 12px;
  }

  .header-brand {
    flex-direction: column;
    align-items: stretch;
    gap: 7px;
  }

  .institutional-bar {
    justify-content: flex-start;
    gap: 10px;
    min-height: 0;
    margin: 0;
  }

  .institutional-bar img {
    max-width: min(44vw, 190px);
    max-height: 42px;
  }

  .institutional-bar img:last-child {
    max-width: 40px;
    max-height: 44px;
  }

  .institutional-bar img:first-child {
    padding: 4px 6px;
    border-radius: 5px;
  }

  .site-header h1 {
    font-size: 19px;
  }

  .layout {
    padding: 0 12px;
    margin-top: 8px;
  }

  .model-card {
    padding: 14px;
  }

  .component {
    width: 82px;
    min-height: 0;
    padding: 7px 5px;
  }

  .component-name {
    font-size: 8px;
  }

  .component-thumbnail {
    width: 38px;
    height: 32px;
  }

  .reading-card {
    align-self: auto;
    max-height: none;
    overflow: visible;
  }

  #component-article-links {
    grid-template-columns: minmax(0, 1fr);
  }

  .component-article-relation {
    gap: 5px;
  }

  .cycle-center {
    width: 120px;
    height: 120px;
  }
}

.reading-content {
  display: block;
  gap: 7px;
  margin-top: 12px;
}

.reading-content[open] {
  display: grid;
}

.reading-block {
  border-left: 3px solid var(--line);
  padding: 8px 10px;
  background: #fafcfb;
  border-radius: 0 9px 9px 0;
}

.reading-block span {
  display: block;
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .7px;
  margin-bottom: 4px;
}

.reading-block p {
  margin: 0;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.4;
}

.reading-block.learning {
  background: var(--accent-soft);
  border-left-color: var(--accent);
}

.trajectory-card {
  margin-top: 12px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fbfcfb;
}

.trajectory-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.trajectory-header span {
  color: var(--accent);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .8px;
}

.trajectory-header strong {
  font-size: 9px;
}

.trajectory-description {
  margin: 6px 0 9px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.35;
}

.trajectory {
  display: grid;
  grid-template-columns: repeat(14, minmax(0, 1fr));
  gap: 3px;
  align-items: stretch;
}

@media (max-width: 700px) {
  .trajectory {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
}

/* Functional socialization view: additive styles, retaining current visual tokens. */
.primary-navigation,
.socialization-navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 1180px;
  margin: 8px auto;
  padding: 0 24px;
}

.primary-navigation button,
.socialization-navigation button,
.socialization-module button {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 12px;
  color: var(--ink);
  background: var(--surface);
  font: inherit;
  cursor: pointer;
}

.contextual-return,
.relation-navigation {
  margin-top: 8px;
  border: 1px solid var(--accent);
  border-radius: 7px;
  padding: 7px 10px;
  color: var(--accent);
  background: var(--accent-soft);
  font: inherit;
  cursor: pointer;
}

.primary-navigation button[aria-pressed="true"],
.socialization-navigation button[aria-pressed="true"] {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
  font-weight: 700;
}

.primary-navigation button:focus-visible,
.socialization-navigation button:focus-visible,
.socialization-module button:focus-visible,
.socialization-module input:focus-visible,
.socialization-module select:focus-visible,
.socialization-module textarea:focus-visible {
  outline: 3px solid #17664f;
  outline-offset: 3px;
}

#ot15e-invite-controls {
  display: grid;
  justify-items: start;
  gap: 7px;
  max-width: 440px;
}

#ot15e-invite-token {
  width: min(100%, 440px);
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid #74827c;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

#ot15e-invite-help {
  max-width: 100%;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

#ot15e-invite-help summary {
  width: fit-content;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

#ot15e-invite-help summary:focus-visible {
  outline: 3px solid #17664f;
  outline-offset: 3px;
}

#ot15e-local-state {
  max-width: 760px;
  overflow-wrap: anywhere;
}

.socialization-module {
  max-width: 1180px;
  margin: 12px auto 24px;
  padding: 0 24px;
}

.socialization-heading,
.social-pane,
.social-space-detail,
.article-detail,
.regulation-browser-tools,
.annex-card,
.concept-catalogs > section,
.demonstrative-cases {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.socialization-heading h2 {
  margin: 8px 0;
  font-size: clamp(20px, 3vw, 30px);
}

.socialization-heading p,
.social-pane > p,
.social-space-detail > p,
.annex-card p,
.article-detail p {
  line-height: 1.5;
}

.draft-warning,
.source-warning,
.no-cross-relations {
  padding: 10px 12px;
  border-left: 4px solid #bd8738;
  background: #fff8ec;
  color: #574321;
}

.socialization-navigation {
  margin-top: 12px;
  padding: 0;
}

.regulation-download {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 14px;
}

.download-regulation-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 2px solid #124b3b;
  border-radius: 8px;
  background: #17664f;
  color: #fff;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.download-regulation-button:hover {
  background: #124b3b;
}

.download-regulation-button:focus-visible {
  outline: 3px solid #17201d;
  outline-offset: 3px;
}

.download-regulation-status {
  color: #7a281e;
  font-size: 13px;
  line-height: 1.4;
}

.social-pane[hidden],
.socialization-module[hidden],
.layout[hidden],
.social-space-detail[hidden] {
  display: none !important;
}

.social-pane {
  margin-top: 12px;
}

.social-space-grid,
.annex-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.social-space-card {
  display: grid;
  gap: 8px;
  min-height: 120px;
  text-align: left;
}

.space-number,
.article-list-item[aria-current="true"] {
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
}

.social-space-detail {
  margin-top: 16px;
}

.social-space-detail h3,
.article-detail h3 {
  margin-top: 4px;
}

.space-article-list,
.article-reference-group,
.article-relation-group,
.annex-article-links {
  margin-top: 16px;
}

.space-article-list,
.article-list,
.catalog-item,
.relationship-card,
.observation-list {
  display: grid;
  gap: 8px;
}

.article-link,
.article-list-item {
  display: block;
  width: 100%;
  margin: 4px 0;
  text-align: left;
}

.article-result-count {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 12px;
}

#article-list {
  grid-template-columns: minmax(0, 1fr);
  grid-auto-rows: max-content;
  max-height: min(48vh, 25rem);
  min-height: 0;
  padding: 2px;
  overflow-y: auto;
  overscroll-behavior: contain;
  align-content: start;
}

.article-chapter-group {
  min-width: 0;
  height: auto;
  max-height: none;
  overflow: visible;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
}

#article-list > details.article-chapter-group {
  flex: 0 0 auto;
  min-height: max-content;
}

.article-chapter-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px;
  align-items: start;
  min-width: 0;
  height: auto;
  min-height: 56px;
  max-height: none;
  overflow: visible;
  gap: 10px;
  padding: 12px;
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  list-style: none;
}

.article-chapter-summary::-webkit-details-marker {
  display: none;
}

.article-chapter-summary::after {
  align-self: center;
  color: var(--accent);
  content: "+";
  font-size: 18px;
  text-align: center;
}

.article-chapter-group[open] > .article-chapter-summary {
  background: var(--accent-soft);
}

.article-chapter-group[open] > .article-chapter-summary::after {
  content: "−";
}

.chapter-button-title {
  display: block;
  min-width: 0;
  height: auto;
  max-height: none;
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.35;
  overflow-wrap: anywhere;
  overflow: visible;
  white-space: normal;
  text-overflow: clip;
  word-break: normal;
  hyphens: auto;
}

.article-chapter-items {
  display: grid;
  gap: 4px;
  max-height: 19rem;
  padding: 6px 8px 8px;
  overflow-y: auto;
  border-top: 1px solid var(--line);
}

.article-chapter-items .article-list-item {
  min-width: 0;
  margin: 0;
  padding: 8px 9px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.article-chapter-items .article-list-item[aria-current="true"] {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.article-chapter-summary:focus-visible,
.article-chapter-items .article-list-item:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: -2px;
}

.regulation-browser {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.regulation-browser-tools {
  position: sticky;
  top: 12px;
  display: grid;
  gap: 8px;
}

.regulation-browser-tools label,
#observation-form label {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.regulation-browser-tools select,
.regulation-browser-tools input,
#observation-form input,
#observation-form select,
#observation-form textarea {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

#observation-form textarea {
  resize: vertical;
}

#observation-article-selection {
  min-width: 0;
  margin: 8px 0 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

#observation-article-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  max-height: 340px;
  overflow: auto;
  padding: 4px;
}

#observation-form .observation-article-option {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  color: var(--ink);
  font-weight: 500;
}

#observation-form .observation-article-option input {
  width: auto;
  min-height: auto;
  margin: 3px 0 0;
  padding: 0;
  flex: 0 0 auto;
}

.observation-review {
  max-width: 760px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.observation-review button {
  margin: 6px 8px 0 0;
}

.article-detail {
  min-width: 0;
}

.article-sequence {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin: 12px 0;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.article-sequence-position {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.article-sequence button:focus-visible,
.article-detail h3:focus {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.article-filter-notice {
  margin: 10px 0;
}

.normative-text,
.article-explanation,
.article-references,
.article-relations {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.normative-body {
  max-height: 680px;
  overflow: auto;
  margin: 10px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
  text-align: left;
  white-space: pre-line;
  overflow-wrap: anywhere;
  tab-size: 2;
  font: 13px/1.5 Georgia, "Times New Roman", serif;
}

.source-citation,
.chapter-caption,
.muted,
.empty-state {
  color: var(--muted);
  font-size: 12px;
}

.theme-context-item,
.relationship-card,
.observation-card,
.annex-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

.theme-context-item p {
  margin-bottom: 0;
}

.article-reference-group ul {
  padding-left: 20px;
}

.relationship-card {
  display: grid;
  gap: 6px;
  margin: 7px 0;
}

.relationship-class {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.relationship-reason {
  font-size: 13px;
  line-height: 1.45;
}

.nonaccepted-relations {
  padding: 12px;
  border: 1px dashed #bd8738;
  border-radius: 8px;
}

.modality-table-wrapper {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

.modality-table {
  width: 100%;
  min-width: 720px;
  margin: 12px 0;
  border-collapse: collapse;
  table-layout: fixed;
}

.modality-table th,
.modality-table td {
  padding: 9px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.modality-table th {
  background: var(--accent-soft);
}

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

.concept-catalogs ul {
  padding-left: 20px;
}

.catalog-item {
  margin: 10px 0;
  line-height: 1.4;
}

.catalog-links {
  color: var(--accent);
  font-size: 12px;
}

.demonstrative-cases {
  margin-top: 14px;
}

#case-catalog-filter {
  width: min(100%, 440px);
  padding: 8px;
}

#observation-form {
  display: grid;
  gap: 7px;
  max-width: 760px;
}

.observation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

#observation-actions[hidden] {
  display: none !important;
}

.observation-card {
  max-width: 760px;
}

.observation-detail {
  display: grid;
  gap: 8px;
  margin: 8px 0;
  padding: 12px;
  border-left: 3px solid var(--accent, #2f6b4f);
  background: #f3f7f3;
}

.observation-detail[hidden] {
  display: none !important;
}

.observation-detail h5,
.observation-detail p {
  margin: 4px 0;
}

.observation-a2-card {
  max-width: 100%;
  overflow: clip;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.observation-a2-summary {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px 12px;
  padding: 10px 12px;
  color: var(--ink);
  cursor: pointer;
  line-height: 1.45;
}

.observation-a2-summary > :nth-child(3) {
  overflow-wrap: anywhere;
}

.observation-a2-state {
  color: #164e3d;
  font-size: 12px;
  font-weight: 700;
}

.observation-a2-body {
  display: grid;
  gap: 8px;
  padding: 0 12px 12px;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.observation-a2-card:not([open]) > .observation-a2-body {
  display: none;
}

.observation-a2-summary:focus-visible,
.observation-a2-body button:focus-visible,
.observation-card > button:focus-visible {
  outline: 3px solid #17664f;
  outline-offset: 3px;
}

.load-error {
  padding: 14px;
  color: #8a2020;
  background: #fff0f0;
}

@media (max-width: 720px) {
  .primary-navigation,
  .socialization-module {
    padding-right: 12px;
    padding-left: 12px;
  }

  .social-space-grid,
  .annex-list,
  .concept-catalogs,
  #observation-article-options,
  .regulation-browser {
    grid-template-columns: 1fr;
  }

  .regulation-browser-tools {
    position: static;
  }

  #article-list {
    max-height: min(38vh, 20rem);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .modality-table {
    font-size: 12px;
  }

  .modality-table th,
  .modality-table td {
    padding: 6px;
  }
}

@media (max-width: 600px) {
  .observation-a2-summary {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .observation-a2-summary > :nth-child(3) {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .observation-a2-state {
    grid-column: 1 / -1;
    grid-row: 3;
  }
}

@media (max-width: 1169px) {
  .cycle {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    width: 100%;
    aspect-ratio: auto;
  }

  .cycle-center {
    position: static;
    grid-column: 1 / -1;
    justify-self: stretch;
    width: auto;
    height: auto;
    transform: none;
    border-radius: 12px;
  }

  .component {
    position: static;
    width: 100%;
    min-width: 0;
    min-height: 120px;
    height: auto;
    transform: none;
    padding: 12px 10px;
    overflow-wrap: anywhere;
  }

  .component:hover {
    transform: none;
  }

  .component-number {
    font-size: 12px;
  }

  .component-name {
    font-size: 14px;
    line-height: 1.4;
  }

  .component-thumbnail {
    width: 54px;
    height: 44px;
    margin: 0 auto 6px;
  }
}

.relations-card {
  margin-top: 12px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
}

.radial-regulation-links {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
}

.radial-regulation-links h3,
.radial-regulation-group h4 {
  margin: 4px 0 8px;
}

.radial-regulation-group + .radial-regulation-group {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.radial-article-card {
  display: grid;
  gap: 7px;
  margin: 8px 0;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

.radial-article-card p {
  margin: 0;
}

.radial-article-warning {
  margin: 0;
}

.radial-article-details {
  padding-top: 7px;
  border-top: 1px solid var(--line);
}

.radial-article-details summary {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.radial-article-details summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.radial-article-detail-content {
  display: grid;
  gap: 7px;
  padding-top: 8px;
}

.radial-article-detail-content p {
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.relations-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.relations-header span {
  color: var(--accent);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .8px;
}

.relations-header strong {
  color: var(--muted);
  font-size: 8px;
}

.relations-list {
  display: grid;
  gap: 5px;
  margin-top: 8px;
}

.relation-item {
  padding: 7px 8px;
  border-left: 3px solid #cbd8d2;
  border-radius: 0 7px 7px 0;
  background: #fafcfb;
}

.relation-item strong {
  display: block;
  font-size: 10px;
  line-height: 1.25;
}

.relation-item span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.35;
}


.perspective-lens-card {
  margin-top: 12px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #f8fbfa;
}

.perspective-lens-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}

.perspective-lens-header span {
  color: var(--accent);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .8px;
}

.perspective-lens-header strong {
  font-size: 11px;
}

.perspective-focus,
.perspective-question {
  padding: 7px 8px;
  margin-top: 6px;
  border-left: 2px solid var(--accent);
  background: #fff;
  border-radius: 0 7px 7px 0;
}

.perspective-focus small,
.perspective-question small {
  display: block;
  margin-bottom: 3px;
  color: var(--accent);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .7px;
}

.perspective-focus p,
.perspective-question p {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
}

.trajectory-context {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.trajectory-context-item {
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
}

.trajectory-context-item small {
  display: block;
  margin-bottom: 4px;
  color: var(--accent);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .7px;
}

.trajectory-context-item strong {
  display: block;
  font-size: 11px;
  line-height: 1.3;
}

.trajectory-context-note {
  padding: 9px 10px;
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  background: #f7faf8;
  color: #52615d;
  font-size: 10px;
  line-height: 1.4;
}


/* Consulta FUR V1.2 — consulta informativa. */
.fur-view[hidden] { display: none !important; }
.fur-view {
  width: min(1180px, calc(100% - 32px)); min-height: 60vh; margin: 18px auto 28px;
  padding: clamp(16px, 3vw, 30px); border: 1px solid var(--line); border-radius: 14px;
  background: var(--surface); box-shadow: var(--shadow);
}
.fur-heading h2 { margin: 5px 0 10px; font-size: clamp(22px, 3vw, 32px); }
.fur-heading p { max-width: 900px; line-height: 1.55; }
.fur-caution, .fur-historical-question { color: #765d2a; }
.fur-tools { display: grid; gap: 8px; margin: 18px 0; padding: 16px; border: 1px solid var(--line); border-radius: 11px; background: var(--background); }
.fur-tools label { font-weight: 700; }
.fur-tools input[type="search"] { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #b7c5be; border-radius: 8px; color: var(--ink); background: var(--surface); font: inherit; }
.fur-tool-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fur-tool-actions button { border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; color: var(--accent); background: var(--surface); font: inherit; cursor: pointer; }
.fur-tool-actions button:hover { background: var(--accent-soft); }
#fur-result-count { margin-left: auto; color: var(--muted); font-size: 13px; }
.fur-groups { display: grid; gap: 10px; }
.fur-block { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.fur-block > summary { padding: 13px 15px; color: var(--accent); background: var(--accent-soft); font-weight: 700; cursor: pointer; }
.fur-block > summary span { float: right; color: var(--muted); font-size: 12px; font-weight: 400; }
.fur-block-fields { display: grid; gap: 10px; padding: 12px; }
.fur-field { padding: 15px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.fur-field h3 { margin: 0 0 10px; color: var(--ink); font-size: 16px; }
.fur-field h3 span { margin-right: 6px; color: var(--accent); }
.fur-field p, .fur-field li { font-size: 13px; line-height: 1.5; }
.fur-available-text, .fur-historical-question, .fur-options { margin: 9px 0; padding: 10px 12px; border-left: 3px solid var(--accent); background: #f6f8f7; font-size: 13px; line-height: 1.5; }
.fur-historical-question { border-left-color: #c49a44; background: #fbf8ef; }
.fur-historical-question small { display: block; margin-top: 5px; }
.fur-field ul { margin: 6px 0; padding-left: 20px; }
.fur-empty { padding: 12px; color: var(--muted); }
@media (max-width: 700px) {
  .fur-view { width: calc(100% - 20px); padding: 14px; }
  .fur-tool-actions { align-items: stretch; }
  #fur-result-count { width: 100%; margin-left: 0; }
}

/* Rediseño de socialización: controles cómodos y lectura vertical en móvil. */

.mobile-component-picker {
  display: none;
}

@media (max-width: 720px) {
  body {
    overflow-x: hidden;
  }

  .site-header {
    padding: 10px 14px;
  }

  .header-brand {
    align-items: center;
    gap: 10px;
  }

  .institutional-bar {
    gap: 7px;
  }

  .institutional-bar img:first-child {
    max-width: min(29vw, 150px);
    max-height: 38px;
  }

  .institutional-bar img:last-child {
    max-width: 36px;
    max-height: 38px;
  }

  .site-header h1 {
    font-size: clamp(15px, 4vw, 19px);
  }

  .site-draft-warning {
    font-size: 11px;
  }

  .primary-navigation {
    position: sticky;
    z-index: 5;
    top: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin: 0;
    padding: 8px 10px;
    background: rgba(244, 247, 245, .97);
    backdrop-filter: blur(8px);
  }

  .primary-navigation button,
  .socialization-navigation button {
    min-height: 46px;
    padding: 8px 6px;
    font-size: 13px;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }

  .layout {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 10px auto 22px;
    padding: 0 10px;
  }

  .model-card,
  .reading-card {
    width: 100%;
    border-radius: 14px;
  }

  .model-card {
    padding: 14px;
  }

  .cycle {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    width: 100%;
    margin-top: 10px;
    aspect-ratio: auto;
  }

  .cycle-center {
    grid-column: 1 / -1;
    justify-self: stretch;
    min-height: 62px;
    padding: 8px;
    border-radius: 12px;
  }

  .cycle-center strong br {
    display: none;
  }

  .component {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 0;
    min-height: 66px;
    padding: 7px 4px;
    border-radius: 10px;
  }

  .component-number {
    font-size: 12px;
  }

  .component-thumbnail {
    display: none;
  }

  .component-name {
    display: block;
    font-size: 11px;
    line-height: 1.15;
    overflow-wrap: anywhere;
  }

  .mobile-component-picker {
    display: grid;
    gap: 6px;
    margin-top: 12px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
  }

  .mobile-component-picker select,
  #perspective-selector,
  #chapter-filter,
  #article-search,
  #concept-search,
  .regulation-browser-tools input,
  .regulation-browser-tools select {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #aab8b1;
    border-radius: 9px;
    background: #fff;
    color: var(--ink);
    font-size: 16px;
  }

  .reading-card {
    padding: 16px;
  }

  .component-illustration img {
    max-width: min(100%, 240px);
    height: auto;
  }

  .socialization-module {
    width: 100%;
    max-width: 100%;
    margin: 10px auto 20px;
    padding: 0 10px;
  }

  .socialization-heading,
  .social-pane {
    padding: 15px;
    border-radius: 13px;
  }

  .socialization-heading h2 {
    font-size: 21px;
  }

  .socialization-navigation {
    position: sticky;
    z-index: 5;
    top: 62px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin: 8px 0;
    padding: 6px;
    border-radius: 12px;
    background: rgba(244, 247, 245, .97);
    backdrop-filter: blur(8px);
  }

  .socialization-navigation button {
    min-width: 0;
    white-space: normal;
  }

  .social-pane h3 {
    font-size: 19px;
    line-height: 1.25;
  }

  .regulation-browser {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .regulation-browser-tools {
    display: grid;
    gap: 7px;
    padding: 12px;
  }

  #article-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: max-content;
    align-content: start;
    gap: 6px;
    max-height: min(32vh, 15rem);
    padding: 2px;
  }

  .article-chapter-summary {
    grid-template-columns: minmax(0, 1fr) 18px;
    align-items: start;
    gap: 8px;
    padding: 10px;
    font-size: 13px;
  }

  .chapter-button-title {
    font-size: 13px;
  }

  .article-chapter-items {
    max-height: min(28vh, 12rem);
    padding: 5px;
  }

  .article-chapter-items .article-list-item {
    min-height: 40px;
    padding: 7px;
    text-align: left;
    overflow-wrap: anywhere;
  }

  .article-detail {
    min-width: 0;
    padding: 14px;
    overflow-wrap: anywhere;
  }

  .concept-catalogs {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .concept-card-summary,
  .annex-list details > summary {
    min-height: 48px;
    padding: 12px;
  }

  .observation-article-options {
    grid-template-columns: 1fr;
  }

  .socialization-module input,
  .socialization-module select,
  .socialization-module textarea,
  .socialization-module button {
    font-size: 16px;
  }
}

@media (max-width: 370px) {
  .institutional-divider {
    display: none;
  }

  .header-brand {
    align-items: flex-start;
  }

  .cycle {
    gap: 5px;
  }

  .component {
    min-height: 62px;
    padding: 6px 3px;
  }

  .component-name {
    font-size: 10px;
  }

  #article-list {
    grid-template-columns: 1fr;
  }
}

.workflow-view {
  width: min(1120px, calc(100% - 32px));
  margin: 14px auto 28px;
  color: var(--ink);
}

.workflow-header,
.workflow-pane {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.workflow-header h2 {
  margin: 6px 0;
  font-size: clamp(23px, 3vw, 32px);
}

.workflow-header p,
.workflow-subtitle {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.55;
}

.workflow-notice {
  display: inline-block;
  margin: 10px 0 0;
  padding: 8px 11px;
  border-left: 3px solid #bd8738;
  background: #fff8ec;
  color: #5c4a2d !important;
  font-weight: 700;
}

.workflow-navigation,
.workflow-category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}

.workflow-navigation button,
.workflow-category-button,
.workflow-step-button,
.workflow-step-controls button {
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #cbd7d1;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
}

.workflow-navigation button[aria-pressed="true"],
.workflow-category-button[aria-pressed="true"],
.workflow-step-button[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: #124b3a;
  font-weight: 700;
}

.workflow-pane[hidden] {
  display: none !important;
}

.workflow-pane > h3 {
  margin: 0 0 6px;
  font-size: 22px;
}

.workflow-process-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.6fr);
  gap: 16px;
  align-items: start;
}

.workflow-step-list {
  display: grid;
  gap: 7px;
}

.workflow-step-button {
  width: 100%;
  text-align: left;
}

.workflow-step-detail {
  min-height: 310px;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(145deg, #f7faf8, #fff 66%);
}

.workflow-step-kicker {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
}

.workflow-step-detail h4,
.workflow-photo-caption h4 {
  margin: 10px 0;
  font-size: clamp(21px, 2.5vw, 28px);
}

.workflow-step-detail > p {
  max-width: 640px;
  min-height: 64px;
  font-size: 17px;
  line-height: 1.6;
}

.workflow-step-note {
  margin: 20px 0;
  padding: 12px 14px;
  border-left: 3px solid #7b9b8b;
  background: #edf4f0;
  line-height: 1.5;
}

.workflow-step-note p {
  margin: 5px 0 0;
}

.workflow-step-controls {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 22px;
}

.workflow-step-controls button:disabled {
  opacity: .5;
  cursor: default;
}

.workflow-mobile-picker {
  display: none;
}

.workflow-mobile-picker select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #aab8b1;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}

.workflow-photo-feature {
  display: grid;
  grid-template-columns: minmax(260px, .9fr) minmax(0, 1.1fr);
  gap: 22px;
  align-items: stretch;
  margin: 16px 0 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f3f7f5;
}

.workflow-photo-placeholder {
  display: grid;
  min-height: 250px;
  place-items: center;
  background: linear-gradient(140deg, #dfe9e3, #eef3f0 55%, #d7e4dc);
  color: #547665;
}

.workflow-photo-placeholder span {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border: 1px solid #9eb5a7;
  border-radius: 50%;
  background: rgba(255, 255, 255, .72);
  font-size: 42px;
}

.workflow-photo-caption {
  align-self: center;
  padding: 22px 22px 22px 0;
}

.workflow-photo-caption p {
  max-width: 580px;
  color: var(--muted);
  line-height: 1.6;
}

.workflow-category-list {
  margin-top: 12px;
}

.workflow-category-detail {
  min-height: 120px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfcfb;
}

.workflow-category-detail h4 {
  margin: 0 0 8px;
  font-size: 19px;
}

.workflow-empty-state {
  max-width: 800px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.workflow-mobile-picker select:focus-visible,
.workflow-view button:focus-visible {
  outline: 3px solid #17664f;
  outline-offset: 2px;
}

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

  .workflow-view {
    width: calc(100% - 20px);
    margin: 10px auto 20px;
  }

  .workflow-header,
  .workflow-pane {
    padding: 15px;
    border-radius: 13px;
  }

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

  .workflow-navigation button {
    min-width: 0;
    padding: 8px;
    overflow-wrap: anywhere;
  }

  .workflow-process-layout {
    display: block;
  }

  .workflow-step-list,
  .workflow-category-list {
    display: none;
  }

  .workflow-mobile-picker {
    display: grid;
    gap: 6px;
    margin: 12px 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
  }

  .workflow-step-detail {
    min-height: 0;
    padding: 18px 15px;
  }

  .workflow-step-detail > p {
    min-height: 0;
    font-size: 16px;
  }

  .workflow-step-controls {
    margin-top: 16px;
  }

  .workflow-step-controls button {
    flex: 1;
    padding: 9px;
  }

  .workflow-photo-feature {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 12px;
  }

  .workflow-photo-placeholder {
    min-height: 190px;
  }

  .workflow-photo-caption {
    padding: 16px;
  }

  .workflow-category-detail {
    min-height: 110px;
    padding: 14px;
  }
}

.workflow-gallery-identity {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: var(--accent-soft);
  color: #124b3a;
  font-weight: 700;
  line-height: 1.45;
}

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

.workflow-gallery-item {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(27, 46, 38, .07);
}

.workflow-gallery-open {
  display: block;
  width: 100%;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #edf2ef;
  cursor: zoom-in;
}

.workflow-gallery-open img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform .2s ease;
}

.workflow-gallery-open:hover img {
  transform: scale(1.025);
}

.workflow-gallery-item figcaption {
  padding: 10px 12px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.workflow-image-dialog {
  width: min(1000px, calc(100vw - 28px));
  max-width: 1000px;
  max-height: calc(100dvh - 28px);
  padding: 16px;
  overflow: auto;
  border: 1px solid #cbd7d1;
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .28);
}

.workflow-image-dialog::backdrop {
  background: rgba(12, 24, 19, .78);
}

.workflow-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.workflow-dialog-header h3 {
  margin: 4px 0;
  font-size: 20px;
}

.workflow-gallery-label {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.workflow-image-dialog #workflow-image-close {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.workflow-image-dialog > img {
  display: block;
  width: 100%;
  max-height: min(72dvh, 760px);
  object-fit: contain;
  background: #edf2ef;
}

.workflow-dialog-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 720px) {
  .workflow-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .workflow-gallery-item figcaption {
    padding: 9px;
    font-size: 13px;
  }

  .workflow-image-dialog {
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
    padding: 10px;
    border-radius: 11px;
  }

  .workflow-image-dialog > img {
    max-height: 68dvh;
  }
}

@media (max-width: 380px) {
  .workflow-gallery-grid {
    grid-template-columns: 1fr;
  }
}

.workflow-gallery-order-note {
  margin: -5px 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.workflow-real-gallery-pane {
  min-width: 0;
}

.workflow-real-gallery-group {
  margin: 22px 0 28px;
}

.workflow-real-gallery-group h4 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: clamp(17px, 2vw, 20px);
}

.workflow-real-gallery .workflow-gallery-open img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

@media (max-width: 720px) {
  .workflow-real-gallery-group {
    margin: 18px 0 22px;
  }

  .workflow-real-gallery .workflow-gallery-open {
    min-height: 0;
  }
}

.workflow-category-description {
  max-width: 780px;
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.55;
}

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

.workflow-document-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(27, 46, 38, .06);
}

.workflow-document-type {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.workflow-document-card h5 {
  margin: 7px 0;
  color: var(--ink);
  font-size: 17px;
}

.workflow-document-label {
  margin: 0 0 8px;
  color: #725a22;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.workflow-document-description {
  flex: 1 1 auto;
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.5;
}

.workflow-document-open {
  min-height: 44px;
  padding: 9px 14px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent-soft);
  color: #124b3a;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.workflow-document-dialog {
  width: min(900px, calc(100vw - 28px));
}

.workflow-document-viewer {
  max-height: min(65dvh, 680px);
  overflow: auto;
  padding: 4px 2px;
  line-height: 1.6;
}

.workflow-document-viewer > p {
  margin: 0 0 12px;
}

.workflow-document-map {
  display: block;
  width: 100%;
  max-height: min(58dvh, 620px);
  margin: 12px auto 0;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f5f7f5;
}

.workflow-data-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  margin: 12px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.workflow-data-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  background: #fff;
  font-size: 13px;
}

.workflow-data-table caption {
  padding: 10px;
  color: var(--muted);
  font-weight: 700;
  text-align: left;
}

.workflow-data-table th,
.workflow-data-table td {
  padding: 8px 10px;
  border-top: 1px solid #e1e8e4;
  text-align: left;
  vertical-align: top;
}

.workflow-data-table th {
  background: #edf4f0;
  color: var(--ink);
}

@media (max-width: 720px) {
  .workflow-document-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .workflow-document-card {
    padding: 14px;
  }

  .workflow-document-open {
    width: 100%;
  }

  .workflow-document-dialog {
    width: calc(100vw - 16px);
    padding: 10px;
  }

  .workflow-data-table {
    min-width: 480px;
    font-size: 12px;
  }
}
/* Edición portátil: navegación directa desde el modelo a los espacios temáticos. */
.thematic-space-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  align-items: start;
}

.thematic-space-card {
  padding: 1rem;
  border: 1px solid #d5e0dc;
  border-radius: 12px;
  background: #fff;
}

.thematic-space-card h4 { margin: 0 0 .5rem; }
.thematic-space-card p { color: #53645e; line-height: 1.5; }
.thematic-space-articles { display: grid; gap: .4rem; }
.thematic-space-article { text-align: left; }

@media (max-width: 600px) {
  .thematic-space-list { grid-template-columns: 1fr; }
}

/* OT-SOC-02-MV: compact reception review, accessible mobile navigation and form states. */
.mobile-nav-toggle { display: none; }
.primary-nav-options,
.social-nav-options { display: flex; flex-wrap: wrap; gap: 8px; }
#socialization-access-status {
  margin: 10px 0;
  padding: 10px 14px;
  border: 1px solid #b8d1c5;
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: #f1f7f3;
  color: #174b39;
  font-weight: 700;
  line-height: 1.45;
}
#registrar-panel {
  margin-top: 18px;
  padding: clamp(14px, 2vw, 22px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
#registrar-panel h4 { margin: 0 0 14px; font-size: 1.2rem; }
.registrar-filters {
  display: grid;
  grid-template-columns: minmax(180px, 2fr) repeat(2, minmax(140px, 1fr)) repeat(2, minmax(150px, 1fr));
  gap: 10px;
}
.registrar-filters input,
.registrar-filters select,
#observation-form input,
#observation-form select,
#observation-form textarea {
  min-width: 0;
  min-height: 44px;
  border: 1px solid #87968f;
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}
.registrar-toolbar,
.registrar-actions,
.confirmation-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.registrar-toolbar { margin: 12px 0; }
#registrar-total { margin: 0; color: var(--muted); font-weight: 700; }
.registrar-actions { justify-content: flex-end; }
.registrar-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
#registrar-observation-list {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
  font-size: 14px;
}
#registrar-observation-list caption {
  padding: 10px 12px;
  text-align: left;
  color: var(--muted);
  font-weight: 700;
}
#registrar-observation-list th,
#registrar-observation-list td {
  padding: 9px 11px;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  line-height: 1.35;
}
#registrar-observation-list th { background: #f1f5f2; white-space: nowrap; }
#registrar-observation-list td:first-child { min-width: 210px; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
#registrar-observation-list td:nth-child(2) { min-width: 145px; white-space: nowrap; }
#registrar-observation-list td:nth-child(4) { min-width: 160px; }
#registrar-observation-list td:last-child { width: 74px; }
.observation-view-button { min-width: 56px; min-height: 42px; color: var(--accent) !important; font-weight: 700; }
.observation-detail-dialog {
  width: min(760px, calc(100vw - 28px));
  max-width: 760px;
  max-height: min(85vh, 900px);
  overflow: auto;
  padding: 0;
  border: 1px solid #cbd8d0;
  border-radius: 16px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 22px 70px #10251c55;
}
.observation-detail-dialog::backdrop { background: #10251c99; }
.detail-dialog-header {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background: white;
}
.detail-dialog-header h4 { margin: 0; font-size: 1.2rem; }
.detail-dialog-close { min-height: 44px; }
.observation-detail-content { margin: 0; padding: 8px 20px 20px; }
.observation-detail-row { padding: 12px 0; border-bottom: 1px solid var(--line); }
.observation-detail-row dt { margin-bottom: 5px; color: var(--muted); font-size: .88rem; font-weight: 700; }
.observation-detail-row dd { margin: 0; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.observation-detail-row dd:has(+ dd) { white-space: normal; }
.observation-confirmation {
  max-width: 760px;
  margin: 20px auto;
  padding: clamp(20px, 4vw, 36px);
  border: 1px solid #bad5c4;
  border-top: 6px solid #24734e;
  border-radius: 16px;
  background: #f5faf6;
  box-shadow: var(--shadow);
  text-align: center;
}
.observation-confirmation[hidden] { display: none; }
.confirmation-mark {
  display: grid;
  width: 54px;
  height: 54px;
  margin: 0 auto 12px;
  place-items: center;
  border-radius: 50%;
  background: #24734e;
  color: white;
  font-size: 30px;
  font-weight: 700;
}
.observation-confirmation h4 { margin: 8px 0; color: #174b39; font-size: clamp(20px, 4vw, 26px); }
.observation-confirmation > p { max-width: 540px; margin: 0 auto 18px; line-height: 1.55; }
.observation-confirmation dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
  text-align: left;
}
.observation-confirmation dl > div { min-width: 0; padding: 12px; border: 1px solid #d7e5dc; border-radius: 9px; background: white; }
.observation-confirmation dt { color: var(--muted); font-size: .82rem; font-weight: 700; }
.observation-confirmation dd { margin: 5px 0 0; overflow-wrap: anywhere; font-weight: 700; }
.confirmation-actions { justify-content: center; margin-top: 16px; }
.confirmation-actions button:first-child,
.observation-submit { border-color: var(--accent) !important; background: var(--accent) !important; color: white !important; }
.required-note { color: #8b342a; font-size: .82em; font-weight: 700; }
.optional-note { color: var(--muted); font-size: .85em; font-weight: 400; }
.field-help { margin: -7px 0 6px; color: var(--muted); font-size: .92rem; }
#observation-form { gap: 9px; }
#observation-form label { line-height: 1.4; }
#observation-form textarea { width: 100%; min-height: 118px; resize: vertical; }
#observation-form button,
.registrar-actions button,
.confirmation-actions button { min-height: 46px; padding: 10px 16px; touch-action: manipulation; }
.socialization-module button:disabled { opacity: .65; cursor: wait; }
@media (max-width: 850px) {
  .registrar-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .primary-navigation,
  .socialization-navigation {
    display: block;
    margin: 8px 12px;
    padding: 0;
  }
  .mobile-nav-toggle {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 11px 14px !important;
    border: 1px solid #b7c9bf !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: var(--accent) !important;
    text-align: left;
    font-weight: 700 !important;
  }
  .primary-nav-options,
  .social-nav-options {
    display: none;
    margin-top: 6px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: white;
    box-shadow: var(--shadow);
  }
  .mobile-nav-toggle[aria-expanded="true"] + .primary-nav-options,
  .mobile-nav-toggle[aria-expanded="true"] + .social-nav-options { display: grid; }
  .primary-nav-options button,
  .social-nav-options button { width: 100%; min-height: 46px; text-align: left; }
  .socialization-module { padding-right: 12px; padding-left: 12px; }
  .socialization-heading,
  .social-pane { padding: 16px; }
  .registrar-filters { grid-template-columns: minmax(0, 1fr); }
  .registrar-toolbar { align-items: flex-start; }
  .registrar-actions { width: 100%; justify-content: stretch; }
  .registrar-actions button { flex: 1 1 150px; }
  .observation-confirmation dl { grid-template-columns: minmax(0, 1fr); }
  .observation-confirmation dl > div { display: grid; grid-template-columns: minmax(115px, .8fr) minmax(0, 1.2fr); gap: 8px; align-items: center; }
  .observation-confirmation dd { margin: 0; }
  #observation-form > button[type="submit"] { position: sticky; bottom: 8px; z-index: 2; width: 100%; min-height: 52px; box-shadow: 0 5px 16px #10251c33; }
  #observation-article-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-dialog-header { padding: 12px 16px; }
  .observation-detail-content { padding: 4px 16px 16px; }
}
@media (max-width: 380px) {
  #observation-article-options { grid-template-columns: minmax(0, 1fr); }
  .registrar-actions button { flex-basis: 100%; }
}
