/* Colores y tipografía de udla.cl; fuentes y logos servidos localmente. */
@font-face {
  font-family: Roboto;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('branding/roboto-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: Roboto;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('branding/roboto-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --brand: #e35205;
  --brand-hover: #ff5800;
  --brand-deep: #bc4204;
  --brand-soft: #fff2e9;
  --ink: #1d252d;
  --muted: #666;
  --line: #e2e2e7;
  --canvas: #f3f3f7;
  --white: #fff;
  --success: #256243;
  --success-soft: #eff7f1;
  --radius: 12px;
  --content-width: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 14px/1.6 Roboto, Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--brand); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
svg { flex-shrink: 0; }
img { display: block; max-width: 100%; height: auto; }
code { font-family: 'SFMono-Regular', Consolas, monospace; font-size: 12px; overflow-wrap: anywhere; }
section[id], div[id], main[id] { scroll-margin-top: 24px; }
button:disabled { cursor: default; opacity: .6; }
.skip-link { position: fixed; top: 10px; left: 16px; z-index: 10; padding: 10px 18px; background: var(--ink); color: white; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.header-inner, .heading-inner, .footer-inner { width: min(100% - 64px, var(--content-width)); margin: 0 auto; }
.utility-bar { background: var(--brand); color: var(--white); font-size: 12px; font-weight: 600; }
.utility-bar .header-inner { min-height: 36px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.utility-bar a { display: flex; align-items: center; gap: 8px; }
.utility-bar a:hover { text-decoration: underline; }
.site-header { background: white; border-bottom: 1px solid var(--line); }
.masthead { display: flex; align-items: center; gap: 28px; min-height: 112px; }
.brand { flex-shrink: 0; }
.brand img { width: 202px; }
.workspace-title { border-left: 1px solid #ccc; padding-left: 28px; }
.workspace-title span { display: block; color: var(--brand-deep); font-size: 11px; font-weight: 700; letter-spacing: 2px; }
.workspace-title strong { display: block; margin-top: 3px; font-size: 23px; font-weight: 300; line-height: 1.3; }
.header-oai-link { margin-left: auto; flex-shrink: 0; white-space: nowrap; }
.site-nav { display: flex; justify-content: space-between; gap: 12px; }
.nav-item { display: flex; align-items: center; justify-content: center; gap: 9px; padding: 15px 6px 17px; border-bottom: 3px solid transparent; color: var(--ink); font-size: 14px; line-height: 1.3; }
.nav-item svg { width: 18px; height: 18px; color: var(--muted); }
.nav-item:hover, .nav-item.selected { color: var(--brand-deep); border-bottom-color: var(--brand); }
.nav-item:hover svg, .nav-item.selected svg { color: var(--brand-deep); }
.nav-item.selected { font-weight: 600; }

.page-heading { background: var(--ink); color: white; }
.heading-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 36px 0 38px; }
.heading-copy { border-left: 6px solid var(--brand); padding-left: 22px; }
.eyebrow { font-size: 11px; color: var(--brand-deep); font-weight: 700; letter-spacing: 1.5px; margin-bottom: 8px; }
.page-heading .eyebrow { color: #ff995e; }
h1 { font-size: 36px; font-weight: 700; letter-spacing: -.7px; line-height: 1.25; }
.page-heading p { color: #e0e1e3; font-size: 14px; margin-top: 12px; max-width: 720px; }
main { max-width: calc(var(--content-width) + 64px); margin: 0 auto; padding: 0 32px 40px; }
.primary-button, .secondary-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; cursor: pointer; min-height: 42px; font-weight: 500; line-height: 1.4; text-align: center; }
.primary-button { background: var(--brand-deep); color: white; padding: 13px 20px; border: 0; border-radius: var(--radius); font-size: 13px; letter-spacing: .4px; }
.primary-button:hover { background: #a83803; }
.page-heading .primary-button { background: var(--brand); color: var(--white); font-weight: 700; white-space: nowrap; }
.page-heading .primary-button:hover { background: var(--brand-hover); }
.primary-button.loading svg { animation: rotate 1.3s linear infinite; }
@keyframes rotate { to { transform: rotate(360deg); } }
.secondary-button { border: 1px solid #bbbfc3; padding: 9px 13px; border-radius: 8px; font-size: 12px; color: var(--ink); background: white; }
.secondary-button:hover { border-color: var(--brand-deep); color: var(--brand-deep); background: var(--brand-soft); }
.refresh-meta { display: flex; justify-content: space-between; gap: 14px; margin: 22px 0; color: var(--muted); font-size: 12px; }
.refresh-meta #refresh-feedback { color: var(--brand-deep); }

.connection-banner { border: 1px solid #d4e6d9; border-radius: var(--radius); display: flex; align-items: center; gap: 15px; padding: 18px 22px; background: var(--success-soft); }
.banner-icon { background: #dbeddf; color: var(--success); width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%; flex-shrink: 0; }
.banner-copy { flex: 1; min-width: 0; }
.banner-copy h2 { font-size: 15px; font-weight: 600; color: var(--success); }
.banner-copy p { font-size: 12px; color: #456851; margin-top: 3px; }
.status-badge { display: flex; align-items: center; white-space: nowrap; background: white; border: 1px solid #cfe3d6; padding: 5px 11px; border-radius: 20px; color: var(--success); font-size: 11px; font-weight: 500; }
.tiny-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-right: 5px; }
.connection-banner.neutral { background: #edf2f8; border-color: #dbe3ed; }
.neutral .banner-icon { background: #dde6f1; color: #274e89; }
.neutral .banner-copy h2, .neutral .banner-copy p, .neutral .status-badge { color: #274e89; }
.neutral .status-badge { border-color: #dbe3ed; }
.connection-banner.warning { background: #fff6e8; border-color: #e8d5b3; }
.warning .banner-icon { background: #fbe8c8; color: #80591e; }
.warning .banner-copy h2, .warning .banner-copy p, .warning .status-badge { color: #80591e; }
.warning .status-badge { border-color: #e8d5b3; }
.snapshot-caption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 11px; margin: 15px 1px 20px; }
.snapshot-caption > span:first-child { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.timezone { color: var(--muted); margin-left: 3px; }

.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-bottom: 32px; }
.metric-card { background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px 18px; box-shadow: 0 3px 12px #1d252d04; }
.metric-card.featured { border-top: 3px solid var(--brand); padding-top: 18px; }
.metric-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; color: var(--muted); font-size: 12px; }
.metric-top svg { color: var(--brand-deep); }
.metric-value { font-size: 36px; line-height: 1.3; font-weight: 700; letter-spacing: -.7px; margin: 13px 0 15px; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.featured .metric-value { color: var(--brand-deep); }
.metric-value small { font-size: 14px; font-weight: 400; color: var(--muted); letter-spacing: 0; margin-left: 6px; }
.type-value { font-size: 32px; margin-bottom: 20px; }
.metric-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px; font-size: 10px; color: var(--muted); }
.metric-label { font-size: 8px; font-weight: 600; letter-spacing: .5px; background: var(--brand-soft); color: var(--brand-deep); border-radius: 4px; padding: 3px 5px; }
.verified-label { display: flex; align-items: center; gap: 3px; color: var(--success); font-size: 10px; }
.http-code { color: var(--ink); font-family: monospace; background: var(--canvas); border-radius: 4px; padding: 2px 5px; font-size: 10px; }

.main-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 24px; margin-bottom: 26px; }
.panel { background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; min-width: 0; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 22px; }
.panel-heading h2, .panel-heading h3 { font-size: 18px; font-weight: 500; line-height: 1.4; }
.panel-heading p { color: var(--muted); font-size: 12px; margin-top: 5px; }
.subtle-tag { font-size: 9px; letter-spacing: .7px; font-weight: 600; color: #565b60; white-space: nowrap; background: var(--canvas); border: 1px solid var(--line); border-radius: 5px; padding: 5px 7px; }
.provider-title { display: flex; gap: 14px; align-items: center; margin: 24px 0 15px; }
.provider-logo { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; color: #6247a1; background: #f0ecf9; font-size: 28px; font-weight: 700; border-radius: 10px; }
.provider-title h3 { font-size: 21px; font-weight: 600; }
.provider-title p { color: var(--muted); font-size: 12px; margin-top: 3px; }
.provider-title > svg { margin-left: auto; color: var(--muted); }
.provider-description { font-size: 13px; line-height: 1.8; color: var(--muted); }
.source-details { margin: 18px 0; }
.source-details div { display: flex; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.source-details dt { color: var(--muted); }
.source-details dd { margin: 0; font-weight: 500; display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 7px; text-align: right; }
.source-details dd svg { color: var(--success); }
.source-details code { font-size: 12px; letter-spacing: .5px; }
.subtle-text { font-size: 11px; color: var(--muted); font-weight: 400; }
.info-note { display: flex; align-items: flex-start; gap: 10px; padding: 14px; background: var(--canvas); border-radius: 8px; margin: 18px 0; color: var(--muted); }
.info-note p { font-size: 12px; line-height: 1.7; }
.text-link { display: flex; align-items: center; gap: 7px; color: var(--brand-deep); font-size: 12px; width: fit-content; }
.text-link:hover { text-decoration: underline; }
.right-column { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.quota-panel { flex: 1; }
.quota-rows { margin-top: 5px; }
.quota-row { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.quota-row:first-child { padding-top: 3px; }
.quota-row strong { font-size: 13px; font-weight: 500; }
.quota-row small { display: block; color: var(--muted); font-size: 11px; margin-top: 3px; }
.quota-row > span { font-size: 23px; font-weight: 600; font-variant-numeric: tabular-nums; }
.footnote { font-size: 12px; color: var(--muted); line-height: 1.7; margin-top: 16px; }
.scopus-panel { display: flex; align-items: center; gap: 13px; padding: 22px; }
.scopus-logo { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 9px; background: #fff0e7; color: #a75719; font-size: 25px; font-weight: 600; flex-shrink: 0; }
.scopus-panel h3 { font-size: 14px; font-weight: 600; }
.scopus-panel p { font-size: 11px; color: var(--muted); margin-top: 4px; }
.scopus-panel .subtle-tag { margin-left: auto; }
.empty-state { padding: 20px 0; font-size: 13px; color: var(--muted); line-height: 1.8; }

.pipeline-panel { margin-bottom: 26px; }
.pipeline { display: flex; align-items: center; justify-content: space-between; margin: 27px 0 6px; }
.pipeline-step { flex: 1; text-align: center; padding: 8px 10px; color: var(--muted); }
.step-number { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; background: var(--canvas); border-radius: 8px; font-size: 12px; font-weight: 600; margin-bottom: 12px; }
.pipeline-step h3 { font-size: 15px; font-weight: 600; color: var(--ink); }
.pipeline-step p { font-size: 11px; margin-top: 5px; }
.step-status { display: inline-block; font-size: 10px; background: var(--canvas); border-radius: 5px; padding: 4px 9px; margin-top: 12px; }
.current .step-number, .current .step-status { background: var(--brand-soft); color: var(--brand-deep); }
.pipeline-arrow { color: #aaaeb2; }
.technical-panel { padding-bottom: 20px; }
.test-summary { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--muted); }
.test-summary code { display: inline-block; font-size: 12px; background: var(--canvas); padding: 4px 7px; border-radius: 5px; color: var(--ink); margin-left: 5px; }
.test-summary strong { color: var(--ink); margin-left: 8px; }
.query-note { margin-top: 8px; margin-bottom: 18px; }
details { border-top: 1px solid var(--line); }
summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 0 0; cursor: pointer; color: var(--ink); font-size: 12px; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary > svg { transform: rotate(90deg); transition: transform .2s; }
details[open] summary > svg { transform: rotate(-90deg); }
.technical-content { padding-top: 18px; }
.technical-content > p { color: var(--muted); font-size: 12px; margin-bottom: 14px; overflow-wrap: anywhere; }
.technical-content > p code { display: block; margin-top: 5px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12px; text-align: left; }
th { color: var(--ink); font-size: 11px; font-weight: 500; background: var(--canvas); padding: 10px 12px; }
td { border-bottom: 1px solid var(--line); padding: 11px 12px; color: var(--muted); }
td code { color: var(--ink); }
.page-footer { background: var(--ink); color: white; border-top: 5px solid var(--brand); }
.footer-inner { display: flex; align-items: center; gap: 32px; min-height: 150px; padding: 28px 0; }
.footer-inner > a { flex-shrink: 0; }
.footer-inner img { width: 178px; }
.footer-inner strong { display: block; font-size: 16px; font-weight: 500; }
.footer-inner div span { display: block; margin-top: 6px; color: #d0d3d6; font-size: 12px; }
.footer-environment { margin-left: auto; color: #d0d3d6; font-size: 11px; white-space: nowrap; }

@media (max-width: 1100px) {
  .heading-inner { align-items: flex-start; gap: 24px; }
  h1 { font-size: 31px; }
  .page-heading p { max-width: 570px; }
  .metrics { gap: 14px; }
  .metric-card { padding: 18px 16px; }
  .metric-card.featured { padding-top: 16px; }
  .metric-value { font-size: 32px; }
  .type-value { font-size: 28px; }
  .metric-label { display: none; }
  .main-grid { gap: 20px; }
  .panel { padding: 22px; }
  .scopus-panel { flex-wrap: wrap; }
  .scopus-panel .subtle-tag { margin-left: 55px; }
  .footer-environment { display: none; }
}
@media (max-width: 800px) {
  .masthead { flex-wrap: wrap; padding: 20px 0; row-gap: 16px; }
  .header-oai-link { flex-basis: 100%; margin-left: 0; }
  .nav-item { font-size: 12px; gap: 6px; }
  .nav-item svg { width: 16px; height: 16px; }
  .heading-inner { flex-direction: column; }
  .page-heading form { margin-left: 28px; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-label { display: inline-block; }
  .source-details div { flex-direction: column; gap: 4px; }
  .source-details dd { justify-content: flex-start; text-align: left; }
  .panel-heading h2, .panel-heading h3 { font-size: 16px; }
  .technical-panel .panel-heading { align-items: flex-start; }
}
@media (max-width: 950px) {
  .site-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
  .nav-item { min-width: 0; }
}
@media (max-width: 650px) {
  .header-inner, .heading-inner, .footer-inner { width: calc(100% - 36px); }
  .utility-bar { font-size: 10px; }
  .utility-bar .header-inner { min-height: 32px; gap: 8px; }
  .masthead { min-height: 96px; gap: 16px; }
  .brand img { width: 145px; }
  .workspace-title { padding-left: 15px; }
  .workspace-title span { font-size: 9px; letter-spacing: 1.1px; }
  .workspace-title strong { font-size: 17px; max-width: 150px; }
  .site-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
  .nav-item { flex-direction: column; gap: 7px; padding: 11px 2px 12px; font-size: 10px; text-align: center; }
  .nav-item span { min-height: 26px; display: flex; align-items: center; }
  .nav-item svg { width: 18px; height: 18px; }
  .heading-inner { padding: 28px 0; gap: 22px; }
  .heading-copy { border-left-width: 4px; padding-left: 16px; }
  .eyebrow { font-size: 10px; letter-spacing: 1px; }
  h1 { font-size: 28px; letter-spacing: -.4px; }
  .page-heading p { font-size: 13px; }
  .page-heading form { margin-left: 20px; }
  .primary-button { padding: 11px 16px; font-size: 12px; }
  main { padding: 0 18px 28px; }
  .refresh-meta { flex-direction: column; gap: 6px; margin: 18px 0; font-size: 11px; }
  .connection-banner { padding: 15px; gap: 11px; }
  .banner-icon { width: 34px; height: 34px; }
  .banner-copy h2 { font-size: 14px; }
  .banner-copy p { font-size: 11px; }
  .status-badge { display: none; }
  .snapshot-caption { font-size: 10px; gap: 7px; }
  .timezone { display: none; }
  .metrics { gap: 12px; margin-bottom: 26px; }
  .metric-card { padding: 16px 14px; }
  .metric-card.featured { padding-top: 14px; }
  .metric-top { font-size: 11px; align-items: flex-start; min-height: 36px; }
  .metric-top svg { width: 15px; height: 15px; margin-top: 2px; }
  .metric-value { font-size: 30px; margin: 12px 0; }
  .type-value { font-size: 26px; margin-bottom: 17px; }
  .metric-bottom { font-size: 9px; }
  .metric-label { display: none; }
  .metric-value small { font-size: 12px; }
  .main-grid { grid-template-columns: 1fr; margin-bottom: 20px; }
  .panel { padding: 20px; }
  .panel-heading { align-items: flex-start; }
  .panel-heading h2, .panel-heading h3 { font-size: 16px; }
  .panel-heading p { font-size: 11px; }
  .source-details div { flex-direction: row; font-size: 11px; }
  .source-details dd { justify-content: flex-end; text-align: right; }
  .source-details code { font-size: 11px; }
  .scopus-panel { flex-wrap: nowrap; gap: 10px; }
  .scopus-panel .subtle-tag { margin-left: auto; font-size: 8px; padding: 4px; }
  .scopus-panel h3 { font-size: 13px; }
  .scopus-panel p { font-size: 10px; }
  .pipeline-panel { margin-bottom: 20px; }
  .pipeline { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 8px; margin-top: 16px; }
  .pipeline-arrow { display: none; }
  .pipeline-step { padding: 8px 0; }
  .pipeline-step h3 { font-size: 14px; }
  .technical-panel .panel-heading { flex-direction: column; gap: 16px; }
  .test-summary { flex-direction: column; gap: 10px; }
  .secondary-button { font-size: 11px; min-height: 40px; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: 20px; padding: 30px 0; }
  .footer-inner img { width: 160px; }
}
@media (max-width: 360px) {
  .brand img { width: 125px; }
  .masthead { gap: 12px; }
  .workspace-title { padding-left: 12px; }
  .workspace-title strong { font-size: 15px; }
  .nav-item { font-size: 9px; }
  .metric-card { padding-left: 11px; padding-right: 11px; }
  .metric-top { min-height: 54px; }
  .type-value { font-size: 23px; }
  .scopus-panel { flex-wrap: wrap; }
  .scopus-panel .subtle-tag { margin-left: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .primary-button.loading svg { animation: none; }
  summary > svg { transition: none; }
}

/* Navegación por tareas y ayuda contextual del repositorio. */
.site-nav { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:8px; }
.nav-item { min-height:52px; }
.workspace-main { padding-top:26px; }
.workspace-main > .panel, .workspace-main > details { margin-bottom:24px; }
.workspace-main .entity-tabs:first-child { margin-top:0; }
.repository-state { display:flex; align-items:center; gap:14px; padding:18px 22px; border:1px solid #d4e6d9; border-radius:12px; background:var(--success-soft); margin-bottom:24px; }
.repository-state > div { flex:1; min-width:0; }
.repository-state strong { color:var(--success); font-size:14px; }
.repository-state p { font-size:12px; margin-top:4px; color:#456851; }
.state-dot { width:10px; height:10px; border-radius:50%; background:var(--success); flex-shrink:0; }
.state-dot.pending { background:#946500; }
.task-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:22px; margin-bottom:26px; }
.task-card { display:flex; flex-direction:column; padding:26px; background:white; border:1px solid var(--line); border-radius:12px; box-shadow:0 3px 12px #1d252d04; }
.task-card:hover { border-color:var(--brand); box-shadow:0 5px 18px #1d252d0d; }
.task-icon { display:flex; align-items:center; justify-content:center; width:46px; height:46px; border-radius:10px; background:var(--brand-soft); color:var(--brand-deep); margin-bottom:16px; }
.task-card h2 { font-size:20px; font-weight:600; line-height:1.4; }
.task-card p { font-size:13px; color:var(--muted); margin:10px 0 22px; flex:1; }
.task-link,.text-link { display:inline-flex; align-items:center; gap:8px; color:var(--brand-deep); font-size:12px; font-weight:500; }
.task-link { margin-top:auto; }
.overview-grid { display:grid; grid-template-columns:1fr 1fr; gap:22px; margin-bottom:24px; }
.overview-grid .text-link { margin-top:18px; }
.schedule-date { font-size:17px; font-weight:500; }
.field-help,.catalog-guidance { color:var(--muted); font-size:12px; line-height:1.8; margin-top:10px; }
.catalog-guidance { margin:0 0 18px; }
.help-note { display:flex; gap:12px; border-left:3px solid var(--brand); padding:17px 19px; background:#fff; border-radius:0 9px 9px 0; margin:20px 0; }
.help-note > svg { margin-top:2px; color:var(--brand-deep); }
.help-note strong { font-size:13px; font-weight:500; }
.help-note p { font-size:12px; color:var(--muted); margin-top:5px; }
.help-note a { display:inline-flex; align-items:center; gap:6px; color:var(--brand-deep); font-size:12px; margin-top:8px; }
.summary-hint { font-size:11px; color:var(--muted); font-weight:400; margin-left:auto; }
.details-content { padding-top:22px; }
.overview-explanation .workflow-steps { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:20px; margin-top:22px; }
.workflow-steps strong { font-size:13px; }
.workflow-steps p { font-size:12px; color:var(--muted); margin-top:8px; }
.overview-explanation .text-link { margin-top:16px; }
.help-index { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:24px; }
.help-index a { background:white; border:1px solid var(--line); border-radius:7px; font-size:12px; padding:10px 14px; color:var(--brand-deep); }
.guide { scroll-margin-top:24px; }
.guide h2 { font-size:21px; margin-bottom:16px; }
.guide p,.guide li { font-size:14px; color:#48525b; line-height:1.9; }
.guide p + p { margin-top:12px; }
.guide ol { padding-left:24px; margin:0 0 16px; }
.guide li + li { margin-top:10px; }
.guide a { color:var(--brand-deep); text-decoration:underline; text-underline-offset:3px; }
.glossary { display:grid; grid-template-columns:minmax(150px,1fr) 3fr; gap:14px 24px; }
.glossary dt { font-size:13px; font-weight:600; }
.glossary dd { margin:0; color:#48525b; font-size:13px; }
.compact-state { display:flex; align-items:center; flex-wrap:wrap; gap:12px 24px; font-size:12px; color:var(--muted); margin:0 0 20px; }
.compact-state strong { color:var(--ink); }
.local-operation { display:inline-flex; gap:6px; align-items:center; margin-left:auto; }
.data-tools { margin-top:24px; }
.data-tools .conversion-panel { border:0; padding:0; margin-bottom:0; box-shadow:none; }
.data-tools > .details-content { padding-top:24px; }
.help-note + .oai-block { margin-top:0; }
.viewer-feedback:empty,.harvest-feedback:empty { display:none; }
.browser-message { padding:18px; margin-bottom:22px; border-radius:8px; background:#fff3e0; color:#8b4c00; font-size:13px; }
.connection-recipe h2 { font-size:20px; margin-bottom:15px; }
.connection-recipe dl { display:grid; grid-template-columns:140px 1fr; gap:8px 20px; margin:0; }
.connection-recipe dt { font-size:12px; color:var(--muted); }
.connection-recipe dd { margin:0; min-width:0; overflow-wrap:anywhere; }
.connection-recipe .text-link { margin-top:15px; }
.workspace-main > section.oai-block { margin-top:0; }
.recommended-fields { margin-top:12px; }
@media(max-width:950px) { .site-nav { grid-template-columns:repeat(3,minmax(0,1fr)); } .task-card { padding:22px; } .task-card h2 { font-size:18px; } .task-grid { gap:16px; } }
@media(max-width:700px) {
 .task-grid,.overview-grid { grid-template-columns:1fr; gap:16px; }
 .task-card { padding:22px; }
 .repository-state { flex-wrap:wrap; padding:17px; }
 .repository-state > div { flex-basis:calc(100% - 26px); }
 .repository-state > a { margin-left:24px; }
 .overview-explanation .workflow-steps { grid-template-columns:1fr 1fr; }
 .glossary { grid-template-columns:1fr; gap:5px; }
 .glossary dd { margin-bottom:12px; }
 .summary-hint { display:none; }
 .local-operation { margin-left:0; flex-basis:100%; }
 .connection-recipe dl { grid-template-columns:1fr; gap:4px; }
 .connection-recipe dd { margin-bottom:12px; }
 .help-index { gap:7px; }
 .help-index a { font-size:11px; padding:9px; }
 .page-heading .primary-button { white-space:normal; }
}
@media(max-width:650px) {
 .site-nav { grid-template-columns:repeat(3,minmax(0,1fr)); }
 .nav-item { min-height:58px; font-size:11px; padding:10px 3px; }
 .nav-item span { min-height:auto; }
 .workspace-main { padding-top:20px; }
 .help-note { padding:15px; }
 .guide h2 { font-size:19px; }
 .guide p,.guide li { font-size:13px; }
 .overview-explanation .workflow-steps { grid-template-columns:1fr; }
}
#oai-feedback:not(:empty),#harvest-feedback:not(:empty) { position:sticky; top:12px; z-index:3; padding:13px 16px; border:1px solid #d4e6d9; background:var(--success-soft); color:var(--success); border-radius:8px; box-shadow:0 3px 12px #1d252d0a; }
#harvest-feedback.error { color:#a53821; border-color:#e4c5bd; background:#fff4f1; }
.source-tabs { display:flex; gap:10px; flex-wrap:wrap; margin-bottom:22px; }
.source-tabs a { display:inline-flex; padding:10px 17px; border:1px solid var(--line); border-radius:7px; background:white; font-size:13px; font-weight:500; text-decoration:none; }
.source-tabs a[aria-current=page] { color:white; background:var(--brand); border-color:var(--brand); }
.source-tabs a:hover { border-color:var(--brand); }

/* Operación y revisión: controles próximos a los datos que modifican. */
.source-operations { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; margin:24px 0; }
.source-operations .panel { min-width:0; }
.source-operations p { margin:12px 0; overflow-wrap:anywhere; }
.operation-error { color:#9b2525; }
.subtle-tag.operation-error { background:#fff0ef; }
.indexation-tabs { display:flex; flex-wrap:wrap; gap:10px; margin:22px 0; }
.indexation-tabs a,.indexation-tabs button { display:flex; flex-direction:column; align-items:flex-start; gap:5px; padding:13px 18px; border:1px solid var(--line); border-radius:8px; color:var(--ink); background:#fff; text-decoration:none; }
.indexation-tabs [aria-current=page],.indexation-tabs [aria-pressed=true] { border-color:var(--brand-deep); background:#fff3eb; color:var(--brand-deep); }
.indexation-tabs small { font-size:11px; overflow-wrap:anywhere; }
.account-bar { display:flex; justify-content:flex-end; align-items:center; gap:20px; padding:8px 0; font-size:12px; color:var(--muted); }
.editorial-filters input,.editorial-filters select,.editorial-card textarea { width:100%; border:1px solid var(--line); border-radius:6px; background:#fff; padding:11px; font:inherit; }
.editorial-filters { display:grid; grid-template-columns:2fr 1fr 1fr auto; gap:15px; align-items:end; }
.editorial-filters label,.editorial-card label { display:block; margin-bottom:8px; font-size:13px; }
.editorial-card { margin:18px 0; overflow-wrap:anywhere; }
.editorial-card h2 { font-size:18px; }
.editorial-card p { margin:12px 0; }
.editorial-card form { margin-top:18px; }
.editorial-card textarea { display:block; margin:8px 0 12px; min-height:72px; }
.enrichment-issue { margin:16px 0; border-top:1px solid var(--line); padding-top:14px; overflow-wrap:anywhere; }
@media(max-width:700px) { .source-operations,.editorial-filters { grid-template-columns:1fr; } .account-bar { padding:8px 18px; } .indexation-tabs a,.indexation-tabs button { flex:1; min-width:120px; } }

.account-bar button { border:0; background:transparent; color:var(--brand-deep); cursor:pointer; padding:4px; font:inherit; }
