:root {
  --wine: #691c32;
  --wine-bright: #9f2241;
  --green: #235b4e;
  --green-deep: #10312b;
  --gold: #bc955c;
  --sand: #ddc9a3;
  --ink: #202321;
  --muted: #69716d;
  --line: #dfe3e0;
  --paper: #ffffff;
  --wash: #f5f6f4;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--wash); font-family: Arial, Helvetica, sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.site-shell { min-height: 100vh; background: linear-gradient(180deg, #fff 0 610px, var(--wash) 610px); }
.institutional-header { height: 86px; display: grid; grid-template-columns: 1fr auto auto; gap: 34px; align-items: center; max-width: 1240px; margin: 0 auto; padding: 0 28px; border-bottom: 1px solid #eceeec; background: rgba(255,255,255,.94); }
.institutional-header.compact { max-width: none; padding-inline: 36px; }
.brand { display: inline-flex; align-items: center; gap: 13px; width: max-content; }
.brand-seal { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 50%; color: white; background: var(--wine); font: 700 21px Georgia, serif; box-shadow: inset 0 0 0 4px rgba(255,255,255,.16); }
.brand strong { display: block; color: var(--wine); font: 700 19px Georgia, serif; letter-spacing: .05em; }
.brand small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; letter-spacing: .02em; }
.header-system { color: #59615d; font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: #2f8b6d; box-shadow: 0 0 0 4px #e8f4ef; }
.header-help { color: var(--wine); font-size: 13px; font-weight: 700; }

.hero { max-width: 1240px; min-height: 520px; margin: 0 auto; padding: 72px 28px 60px; display: grid; grid-template-columns: 1.08fr .92fr; gap: 88px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--wine-bright); font-size: 12px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--gold); }
.hero h1 { max-width: 700px; margin: 18px 0 20px; color: var(--green-deep); font: 700 clamp(42px, 5.2vw, 68px)/1.02 Georgia, serif; letter-spacing: -.035em; }
.hero h1 em { color: var(--wine); font-weight: 400; }
.hero-copy > p { max-width: 650px; margin: 0; color: #59615d; font-size: 17px; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 18px; padding: 0 22px; border-radius: 7px; border: 1px solid transparent; font-size: 14px; font-weight: 800; transition: transform .18s, box-shadow .18s, background .18s; }
.button:hover { transform: translateY(-1px); }
.button.primary { color: #fff; background: var(--wine); box-shadow: 0 9px 22px rgba(105,28,50,.18); }
.button.primary:hover { background: var(--wine-bright); box-shadow: 0 12px 28px rgba(105,28,50,.23); }
.button.secondary { color: var(--green-deep); border-color: #cfd5d1; background: #fff; }
.button.secondary:hover { border-color: var(--green); }
.button.small { min-height: 40px; padding-inline: 16px; }
.button.ghost { min-height: 42px; color: var(--green-deep); border-color: var(--line); background: white; }
.button.danger { color: #8d1b35; border-color: #e7bcc6; background: #fff7f9; }
.button:disabled { cursor: not-allowed; opacity: .5; transform: none; }
.trust-row { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 26px; color: #68706c; font-size: 12px; }
.trust-row b { color: var(--green); }

.hero-panel { position: relative; padding: 26px; border: 1px solid #dfe2df; border-radius: 14px; background: #fff; box-shadow: 0 24px 70px rgba(16,49,43,.11); }
.hero-panel::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; border-radius: 14px 14px 0 0; background: linear-gradient(90deg, var(--wine), var(--gold) 62%, var(--green)); }
.panel-topline { display: flex; align-items: center; justify-content: space-between; padding-bottom: 18px; border-bottom: 1px solid #eceeec; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.secure-chip { color: var(--green); padding: 6px 9px; border-radius: 99px; background: #edf6f2; font-size: 9px; }
.process-list { padding: 7px 0 4px; }
.process-item { position: relative; display: grid; grid-template-columns: 42px 1fr; gap: 14px; padding: 13px 0; }
.process-item:not(:last-child)::after { content: ""; position: absolute; left: 18px; top: 49px; bottom: -4px; width: 1px; background: #dfe4e1; }
.process-number { position: relative; z-index: 1; display: grid; place-items: center; width: 37px; height: 37px; color: #7f8783; border: 1px solid #d8ddda; border-radius: 50%; background: #fff; font: 700 11px var(--font-geist-mono), monospace; }
.process-number.active { color: white; border-color: var(--wine); background: var(--wine); }
.process-item strong { color: var(--green-deep); font: 700 16px Georgia, serif; }
.process-item p { margin: 4px 0 0; color: #747b77; font-size: 12px; line-height: 1.5; }
.privacy-note { display: flex; gap: 12px; margin-top: 10px; padding: 13px; border-radius: 8px; background: #f5f2ea; }
.privacy-mark { flex: 0 0 auto; display: grid; place-items: center; width: 23px; height: 23px; color: white; border-radius: 50%; background: var(--gold); font-family: Georgia, serif; font-weight: 700; }
.privacy-note p { margin: 0; color: #625d52; font-size: 10.5px; line-height: 1.5; }

.value-strip { max-width: 1240px; margin: 0 auto; padding: 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: #dfe3e0; border-radius: 12px; box-shadow: 0 10px 40px rgba(16,49,43,.06); }
.value-strip article { display: grid; grid-template-columns: 38px 1fr; gap: 14px; min-height: 118px; padding: 28px; background: #fff; }
.value-strip article:first-child { border-radius: 9px 0 0 9px; }.value-strip article:last-child { border-radius: 0 9px 9px 0; }
.value-strip article > span { color: var(--gold); font: 700 13px var(--font-geist-mono), monospace; }
.value-strip h2 { margin: 0 0 8px; color: var(--green-deep); font: 700 18px Georgia, serif; }
.value-strip p { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.55; }
.institutional-callout { max-width: 1184px; margin: 70px auto 30px; padding: 42px 48px; display: flex; align-items: center; justify-content: space-between; gap: 40px; color: white; border-radius: 12px; background: var(--green-deep); }
.institutional-callout h2 { margin: 10px 0 8px; font: 700 29px Georgia, serif; }.institutional-callout p { max-width: 720px; margin: 0; color: #c9d6d2; font-size: 14px; line-height: 1.6; }
.institutional-callout .eyebrow { color: var(--sand); }.text-link { color: white; white-space: nowrap; font-size: 13px; font-weight: 800; }.text-link span { margin-left: 12px; color: var(--sand); }
.site-footer { max-width: 1240px; margin: 0 auto; padding: 34px 28px 44px; display: flex; justify-content: space-between; gap: 20px; color: #7b827e; border-top: 1px solid #dfe3e0; font-size: 11px; }

@media (max-width: 920px) {
  .institutional-header { grid-template-columns: 1fr auto; }.header-system { display: none; }
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 50px; }.hero-panel { max-width: 650px; }
  .value-strip { grid-template-columns: 1fr; }.value-strip article:first-child,.value-strip article:last-child { border-radius: 0; }
  .institutional-callout { margin-inline: 24px; }
}
@media (max-width: 620px) {
  .institutional-header { height: 76px; padding-inline: 18px; }.brand small,.header-help { display: none; }
  .hero { padding: 40px 18px; }.hero h1 { font-size: 43px; }.hero-actions,.button { width: 100%; }
  .trust-row { gap: 10px; flex-direction: column; }.hero-panel { padding: 20px; }
  .value-strip { margin-inline: 14px; padding: 1px; }.value-strip article { padding: 24px 20px; }
  .institutional-callout { margin: 50px 14px 20px; padding: 32px 24px; align-items: flex-start; flex-direction: column; }
  .site-footer { flex-direction: column; padding-inline: 20px; }
}

/* Administration */
.admin-shell { min-height: 100vh; color: #28312d; background: #f3f5f3; }
.admin-header { height: 78px; padding: 0 34px; display: flex; align-items: center; justify-content: space-between; color: white; background: var(--green-deep); }
.admin-brand { display: flex; align-items: center; gap: 12px; }.admin-brand > span { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; background: var(--wine); font: 700 19px Georgia,serif; }.admin-brand strong { display: block; font: 700 17px Georgia,serif; letter-spacing: .05em; }.admin-brand small { display: block; margin-top: 2px; color: #bed0ca; font-size: 9.5px; }
.admin-user { display: flex; align-items: center; gap: 12px; text-align: right; }.admin-user span b,.admin-user span small { display: block; }.admin-user span b { font-size: 11px; }.admin-user span small { margin-top: 3px; color: #b9cbc5; font-size: 9px; }.admin-user i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--gold); font-style: normal; font-weight: 800; }
.admin-layout { min-height: calc(100vh - 78px); display: grid; grid-template-columns: 230px 1fr; }.admin-nav { padding: 27px 16px; border-right: 1px solid #dfe3e0; background: white; }.nav-label { margin: 12px 12px 8px; color: #9aa09c; font-size: 8.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }.admin-nav button,.admin-nav > a { width: 100%; min-height: 43px; display: flex; align-items: center; gap: 11px; padding: 0 13px; color: #555f59; border: 0; border-radius: 6px; background: transparent; font-size: 11px; font-weight: 700; cursor: pointer; }.admin-nav button:hover,.admin-nav > a:hover,.admin-nav button.active { color: var(--wine); background: #f6eff1; }.admin-nav button > span,.admin-nav > a > span { width: 18px; color: var(--gold); text-align: center; font-size: 16px; }
.security-card { margin: 20px 8px; padding: 14px; border-radius: 7px; background: #eef4f1; }.security-card b { color: var(--green-deep); font-size: 10px; }.security-card p { margin: 5px 0 0; color: #6c7671; font-size: 9px; line-height: 1.5; }
.admin-main { min-width: 0; padding: 36px 40px 64px; }.admin-main > .form-message { position: relative; }.admin-main > .form-message button { position: absolute; right: 9px; top: 7px; color: inherit; border: 0; background: transparent; font-size: 18px; cursor: pointer; }.admin-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; margin-bottom: 28px; }.admin-title h1 { margin: 9px 0 6px; color: var(--green-deep); font: 700 32px Georgia,serif; }.admin-title p { max-width: 750px; margin: 0; color: #707975; font-size: 12px; line-height: 1.6; }
.kpi-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 20px; }.kpi { position: relative; min-height: 126px; padding: 20px; overflow: hidden; border: 1px solid #dfe3e0; border-radius: 9px; background: white; }.kpi::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--wine); }.kpi.blue::after { background: #336c91; }.kpi.gold::after { background: var(--gold); }.kpi.green::after { background: var(--green); }.kpi span,.kpi small { display: block; color: #78807b; font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }.kpi strong { display: block; margin: 12px 0 5px; color: var(--green-deep); font: 700 30px var(--font-geist-mono),monospace; }.kpi small { font-size: 8.5px; font-weight: 500; }
.records-card,.mapping-card { border: 1px solid #dfe3e0; border-radius: 9px; background: white; box-shadow: 0 8px 28px rgba(16,49,43,.04); }.records-toolbar { padding: 15px; display: grid; grid-template-columns: minmax(260px,1fr) 180px minmax(240px,.7fr); gap: 10px; border-bottom: 1px solid #e6e9e7; }.records-toolbar select,.search-box { min-height: 39px; border: 1px solid #d3d8d5; border-radius: 5px; background: white; }.records-toolbar select { padding: 0 10px; color: #55605a; font-size: 10.5px; }.search-box { display: flex; align-items: center; gap: 8px; padding: 0 11px; }.search-box span { color: #8b938e; font-size: 18px; }.search-box input { flex: 1; border: 0; outline: 0; font-size: 10.5px; }
.table-wrap { overflow-x: auto; }.records-table,.mapping-table { width: 100%; border-collapse: collapse; }.records-table th,.mapping-table th { padding: 12px 15px; color: #7a827d; background: #f7f8f7; text-align: left; font-size: 8.5px; text-transform: uppercase; letter-spacing: .07em; }.records-table td { padding: 14px 15px; color: #56605a; border-top: 1px solid #edf0ee; font-size: 10.5px; vertical-align: middle; }.records-table td:first-child strong,.records-table td:nth-child(2) strong { display: block; color: #27332d; font-size: 11px; }.records-table td small { display: block; max-width: 250px; margin-top: 4px; overflow: hidden; color: #89908c; font-size: 8.8px; white-space: nowrap; text-overflow: ellipsis; }.mini-progress { width: 80px; height: 4px; overflow: hidden; border-radius: 99px; background: #e5e9e6; }.mini-progress span { display: block; height: 100%; background: var(--green); }.review-button { color: var(--wine); border: 0; background: none; font-size: 10px; font-weight: 800; cursor: pointer; }.table-footer { padding: 12px 15px; color: #858d88; border-top: 1px solid #edf0ee; font-size: 9px; }.empty-row { padding: 50px!important; text-align: center; }
.drawer-backdrop { position: fixed; z-index: 40; inset: 0; display: flex; justify-content: flex-end; background: rgba(9,23,19,.42); backdrop-filter: blur(2px); }.record-drawer { width: min(760px,94vw); height: 100vh; display: flex; flex-direction: column; background: #f7f8f6; box-shadow: -20px 0 60px rgba(0,0,0,.18); }.drawer-head { padding: 22px 26px; display: flex; justify-content: space-between; color: white; background: var(--green-deep); }.drawer-head span { color: var(--sand); font: 700 9px var(--font-geist-mono),monospace; }.drawer-head h2 { margin: 5px 0 4px; font: 700 23px Georgia,serif; }.drawer-head small { color: #bfd0ca; font-size: 9px; }.drawer-head button { width: 34px; height: 34px; color: white; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; background: transparent; font-size: 22px; cursor: pointer; }.drawer-tabs { display: flex; border-bottom: 1px solid #dde1de; background: white; }.drawer-tabs button { flex: 1; min-height: 48px; color: #6c7570; border: 0; border-bottom: 3px solid transparent; background: transparent; font-size: 10.5px; font-weight: 800; cursor: pointer; }.drawer-tabs button.active { color: var(--wine); border-bottom-color: var(--wine); }.drawer-content { flex: 1; overflow-y: auto; padding: 22px 26px; }.drawer-footer { padding: 14px 26px; display: flex; justify-content: flex-end; gap: 10px; border-top: 1px solid #dfe3e0; background: white; }
.admin-editor details { margin-bottom: 10px; border: 1px solid #dfe3e0; border-radius: 7px; background: white; }.admin-editor summary { min-height: 48px; display: flex; align-items: center; gap: 11px; padding: 0 15px; cursor: pointer; }.admin-editor summary span { color: var(--gold); font: 700 9px var(--font-geist-mono),monospace; }.admin-editor summary strong { color: var(--green-deep); font-size: 11.5px; }.admin-field-grid { padding: 17px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; border-top: 1px solid #edf0ee; }.admin-field-grid .wide { grid-column: 1 / -1; }.status-panel { display: flex; flex-direction: column; gap: 20px; }.status-actions { display: grid; grid-template-columns: 1fr; gap: 9px; }.status-actions button { min-height: 43px; color: #254f69; border: 1px solid #bed3df; border-radius: 6px; background: #f0f7fb; font-size: 10.5px; font-weight: 800; cursor: pointer; }.status-actions .observe { color: #8a2039; border-color: #e5bac5; background: #fff4f6; }.status-actions .validate { color: #15543e; border-color: #b9d6cb; background: #eef8f3; }.audit-note { padding: 16px; border-left: 3px solid var(--gold); background: #f4f1ea; }.audit-note b { color: #5b513f; font-size: 10px; }.audit-note p { margin: 4px 0 0; color: #756d5f; font-size: 9.5px; line-height: 1.5; }
.mapping-warning { margin-bottom: 18px; padding: 14px 16px; color: #675a42; border: 1px solid #e4d3b5; border-radius: 7px; background: #fbf6ed; font-size: 11px; }.mapping-table td { padding: 9px 12px; border-top: 1px solid #edf0ee; }.mapping-table input:not([type="checkbox"]),.mapping-table select { width: 100%; min-height: 35px; padding: 6px 8px; border: 1px solid #d5dad7; border-radius: 4px; font-size: 9.5px; }.mapping-table td:first-child { width: 75px; }.mapping-table td:last-child { width: 70px; text-align: center; }.mapping-table input[type="checkbox"] { accent-color: var(--wine); }.add-mapping { width: calc(100% - 24px); min-height: 39px; margin: 12px; color: var(--green); border: 1px dashed #a3bab3; border-radius: 5px; background: #f4f8f6; font-size: 10px; font-weight: 800; cursor: pointer; }

@media (max-width: 1100px) { .kpi-grid { grid-template-columns: 1fr 1fr; }.records-toolbar { grid-template-columns: 1fr 1fr; }.search-box { grid-column: 1 / -1; }.admin-main { padding-inline: 24px; } }
@media (max-width: 760px) { .admin-header { padding-inline: 16px; }.admin-user span { display: none; }.admin-layout { grid-template-columns: 1fr; }.admin-nav { display: flex; gap: 4px; overflow-x: auto; padding: 10px; border-right: 0; border-bottom: 1px solid #dfe3e0; }.admin-nav button,.admin-nav > a { min-width: max-content; width: auto; }.nav-label,.security-card { display: none; }.admin-main { padding: 26px 14px 50px; }.admin-title { flex-direction: column; }.admin-title h1 { font-size: 28px; }.kpi-grid { grid-template-columns: 1fr 1fr; }.records-toolbar { grid-template-columns: 1fr; }.search-box { grid-column: auto; }.admin-field-grid { grid-template-columns: 1fr; }.admin-field-grid .wide { grid-column: auto; } }

/* Capture access */
.access-page,.wizard-page { min-height: 100vh; background: #f6f7f5; }
.access-layout { max-width: 1120px; min-height: calc(100vh - 86px); margin: 0 auto; padding: 64px 28px; display: grid; grid-template-columns: 1fr 480px; gap: 92px; align-items: center; }
.access-intro .back-link { display: block; margin-bottom: 54px; color: #68706c; font-size: 12px; font-weight: 700; }
.access-intro h1,.credential-card h1 { max-width: 570px; margin: 18px 0; color: var(--green-deep); font: 700 44px/1.08 Georgia, serif; letter-spacing: -.025em; }
.access-intro > p { max-width: 580px; margin: 0; color: #65706a; font-size: 15px; line-height: 1.7; }
.privacy-card { max-width: 540px; margin-top: 34px; padding: 20px 22px; border-left: 3px solid var(--gold); background: #fff; box-shadow: 0 8px 24px rgba(16,49,43,.05); }
.privacy-card span { color: var(--wine); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.privacy-card p { margin: 7px 0 0; color: #68706c; font-size: 12px; line-height: 1.55; }
.access-card { padding: 32px; border: 1px solid #dde1de; border-radius: 14px; background: white; box-shadow: 0 20px 55px rgba(16,49,43,.08); }
.access-card-title { display: flex; gap: 15px; align-items: center; margin-bottom: 26px; padding-bottom: 20px; border-bottom: 1px solid #eceeec; }
.access-card-title > span { display: grid; place-items: center; width: 42px; height: 42px; color: white; border-radius: 50%; background: var(--wine); font: 700 11px var(--font-geist-mono), monospace; }
.access-card h2 { margin: 0; color: var(--green-deep); font: 700 21px Georgia, serif; }.access-card-title p { margin: 4px 0 0; color: #838984; font-size: 11px; }
.control { display: flex; flex-direction: column; gap: 7px; min-width: 0; }.control > span { color: #3c4540; font-size: 11.5px; font-weight: 800; }
.control input,.control select,.control textarea { width: 100%; min-height: 44px; padding: 10px 12px; color: #202622; border: 1px solid #cfd5d1; border-radius: 6px; outline: none; background: white; transition: border-color .15s, box-shadow .15s; }
.control textarea { resize: vertical; min-height: 100px; }
.control input:focus,.control select:focus,.control textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(35,91,78,.10); }
.control input::placeholder { color: #a1a7a3; }.access-card form { display: grid; gap: 17px; }.submit-access { width: 100%; margin-top: 8px; }
.switch-access { margin: 24px 0 0; padding-top: 20px; color: #7a817d; border-top: 1px solid #eceeec; text-align: center; font-size: 11.5px; }.switch-access a { color: var(--wine); font-weight: 800; }
.form-message { margin-bottom: 18px; padding: 12px 14px; border-radius: 6px; font-size: 12px; line-height: 1.5; }.form-message.error { color: #821e36; border: 1px solid #efc3cd; background: #fff4f6; }.form-message.success { color: #175441; border: 1px solid #bddbce; background: #eff8f4; }
.credential-wrap { min-height: calc(100vh - 86px); display: grid; place-items: center; padding: 40px 24px; }.credential-card { width: min(620px,100%); padding: 46px; text-align: center; border: 1px solid #dde1de; border-radius: 14px; background: white; box-shadow: 0 20px 60px rgba(16,49,43,.1); }
.credential-icon { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 20px; color: white; border-radius: 50%; background: var(--green); font-size: 22px; }.credential-card .eyebrow::before { display: none; }.credential-card h1 { margin-inline: auto; font-size: 36px; }.credential-card > p { color: var(--muted); font-size: 14px; }
.credential-grid { margin: 28px 0 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }.credential-grid div { padding: 19px; border: 1px solid #dfe3e0; border-radius: 8px; background: #f8f9f7; }.credential-grid small { display: block; color: #78807b; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }.credential-grid strong { display: block; margin-top: 8px; color: var(--wine); font: 700 19px var(--font-geist-mono), monospace; letter-spacing: .04em; }
.warning-note { margin-bottom: 24px; padding: 14px; color: #655b4b; border-radius: 7px; background: #f8f2e8; font-size: 12px; line-height: 1.5; }

/* Wizard */
.wizard-topbar { min-height: 68px; padding: 12px 36px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #3e4742; border-top: 1px solid #eceeec; border-bottom: 1px solid #dfe3e0; background: white; }
.wizard-topbar > div { display: flex; align-items: center; gap: 11px; }.folio-label { color: #818884; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }.wizard-topbar strong { font: 700 13px var(--font-geist-mono), monospace; }
.status-pill { padding: 6px 9px; color: #665424; border-radius: 99px; background: #f5ead0; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }.status-pill.validado,.status-pill.exportado { color: #15533e; background: #e4f3ec; }.status-pill.enviado,.status-pill.en_revision { color: #1c4d6d; background: #e6f0f7; }.status-pill.observaciones { color: #8b2039; background: #f9e5ea; }
.save-state span { color: #858c88; font-size: 10.5px; }
.wizard-layout { max-width: 1440px; min-height: calc(100vh - 154px); margin: 0 auto; display: grid; grid-template-columns: 300px 1fr; }
.wizard-sidebar { position: sticky; top: 0; align-self: start; max-height: calc(100vh - 20px); overflow-y: auto; padding: 27px 21px; border-right: 1px solid #dde1de; background: #fff; }
.progress-summary { padding: 0 10px 20px; border-bottom: 1px solid #eceeec; }.progress-summary > div:first-child { display: flex; justify-content: space-between; align-items: center; color: #727a75; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }.progress-summary strong { color: var(--green); font: 700 12px var(--font-geist-mono),monospace; }.progress-track { height: 5px; margin-top: 10px; overflow: hidden; border-radius: 99px; background: #e7eae8; }.progress-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--wine),var(--gold)); transition: width .3s; }
.wizard-sidebar nav { padding: 14px 0; }.section-link { width: 100%; display: grid; grid-template-columns: 34px 1fr; gap: 11px; align-items: center; padding: 9px 10px; text-align: left; border: 0; border-radius: 7px; background: transparent; cursor: pointer; }.section-link:hover { background: #f6f7f5; }.section-link > span { display: grid; place-items: center; width: 30px; height: 30px; color: #808783; border: 1px solid #d6dad7; border-radius: 50%; font: 700 9px var(--font-geist-mono),monospace; }.section-link strong { display: block; color: #3c4540; font-size: 11.5px; }.section-link small { display: block; margin-top: 2px; overflow: hidden; color: #909591; font-size: 9px; white-space: nowrap; text-overflow: ellipsis; }.section-link.active { background: #f5f1f2; }.section-link.active > span { color: white; border-color: var(--wine); background: var(--wine); }.section-link.active strong { color: var(--wine); }.section-link.complete > span { color: white; border-color: var(--green); background: var(--green); }
.sidebar-help { margin: 10px; padding: 15px; border-radius: 7px; background: #f1f5f3; }.sidebar-help strong { color: var(--green-deep); font-size: 11px; }.sidebar-help p { margin: 5px 0 0; color: #6e7772; font-size: 9.5px; line-height: 1.5; }
.form-stage { padding: 48px 58px 70px; background: #f7f8f6; }.section-heading { position: relative; display: flex; justify-content: space-between; padding-bottom: 26px; border-bottom: 1px solid #dfe3e0; }.section-heading span:first-child { color: var(--wine-bright); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }.section-heading h1 { margin: 8px 0 7px; color: var(--green-deep); font: 700 32px Georgia,serif; }.section-heading p { max-width: 720px; margin: 0; color: #737b77; font-size: 12px; line-height: 1.6; }.section-watermark { color: rgba(188,149,92,.18)!important; font: 700 70px/1 Georgia,serif!important; letter-spacing: -.04em!important; }
.form-grid { margin: 0; padding: 30px 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px 24px; border: 0; }.form-grid .wide { grid-column: 1 / -1; }.field-help { color: #7c847f; font-size: 9.5px; line-height: 1.45; }
.check-control { display: flex; align-items: flex-start; gap: 12px; padding: 17px; border: 1px solid #d9ddda; border-radius: 7px; background: white; }.check-control input { flex: 0 0 auto; width: 17px; height: 17px; accent-color: var(--wine); }.check-control strong { display: block; color: #3c4540; font-size: 11.5px; line-height: 1.5; }.check-control small { display: block; margin-top: 4px; color: #7d8580; font-size: 9.5px; }
.form-navigation { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; padding-top: 24px; border-top: 1px solid #dfe3e0; }.form-navigation > span { color: #858d88; text-align: center; font-size: 9.5px; }
.observation-banner,.locked-banner { margin-top: 22px; padding: 14px 16px; border-radius: 7px; font-size: 11.5px; }.observation-banner { display: flex; flex-direction: column; gap: 4px; color: #772037; border: 1px solid #ebc3cc; background: #fff4f6; }.locked-banner { color: #3c586a; border: 1px solid #c9dce7; background: #f0f7fb; }
.privacy-link-banner { margin-top: 22px; padding: 14px 16px; color: #625943; border-left: 3px solid var(--gold); background: #f8f3ea; font-size: 11px; }.privacy-link-banner a { color: var(--wine); font-weight: 800; }
.repeatable h3 { margin: 0 0 12px; color: var(--green-deep); font: 700 18px Georgia,serif; }.repeatable-card { margin-bottom: 14px; padding: 20px; border: 1px solid #dce0dd; border-radius: 8px; background: white; }.repeatable-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; padding-bottom: 11px; border-bottom: 1px solid #edf0ee; }.repeatable-title strong { color: var(--green-deep); font-size: 11.5px; }.repeatable-title button { color: #952a42; border: 0; background: none; font-size: 10px; font-weight: 700; cursor: pointer; }.repeatable-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; }.add-row { width: 100%; min-height: 43px; color: var(--green); border: 1px dashed #9db8b0; border-radius: 7px; background: #f4f8f6; font-size: 11px; font-weight: 800; cursor: pointer; }

@media (max-width: 980px) {
  .access-layout { grid-template-columns: 1fr; gap: 40px; }.access-intro .back-link { margin-bottom: 32px; }.access-card { max-width: 620px; }
  .wizard-layout { grid-template-columns: 1fr; }.wizard-sidebar { position: static; max-height: none; padding: 14px 20px; border-right: 0; border-bottom: 1px solid #dde1de; }.wizard-sidebar nav { display: flex; overflow-x: auto; gap: 4px; }.section-link { min-width: 145px; }.progress-summary,.sidebar-help { display: none; }.form-stage { padding: 38px 28px 60px; }
}
@media (max-width: 620px) {
  .access-layout { padding: 38px 18px; }.access-intro h1 { font-size: 36px; }.access-card { padding: 24px; }.credential-card { padding: 30px 20px; }.credential-card h1 { font-size: 30px; }.credential-grid { grid-template-columns: 1fr; }
  .wizard-topbar { padding: 11px 16px; }.save-state span { display: none; }.wizard-topbar > div:first-child { flex-wrap: wrap; }.form-stage { padding: 30px 18px 50px; }.section-watermark { display: none; }.section-heading h1 { font-size: 28px; }.form-grid,.repeatable-grid { grid-template-columns: 1fr; }.form-grid .wide { grid-column: auto; }.form-navigation { grid-template-columns: 1fr 1fr; }.form-navigation > span { display: none; }.form-navigation .button { width: 100%; padding-inline: 10px; }
}

.privacy-page { min-height: 100vh; background: #f4f6f4; }.privacy-document { width: min(880px,calc(100% - 36px)); margin: 42px auto 80px; padding: 48px 56px; border: 1px solid #dfe3e0; border-radius: 10px; background: white; box-shadow: 0 16px 45px rgba(16,49,43,.06); }.privacy-document .back-link { display: block; margin-bottom: 34px; color: #6d7570; font-size: 11px; font-weight: 700; }.privacy-document h1 { margin: 14px 0 8px; color: var(--green-deep); font: 700 40px Georgia,serif; }.privacy-lead { margin: 0 0 24px; color: #69716d; font-size: 14px; }.legal-review { margin-bottom: 28px; padding: 13px 15px; color: #6c5b3e; border: 1px solid #e4d2b2; border-radius: 6px; background: #fbf5e9; font-size: 10.5px; font-weight: 700; }.privacy-document section { padding: 21px 0; border-top: 1px solid #e6e9e7; }.privacy-document h2 { margin: 0 0 8px; color: var(--wine); font: 700 18px Georgia,serif; }.privacy-document section p { margin: 0; color: #555f59; font-size: 12px; line-height: 1.75; }.privacy-document footer { padding-top: 26px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid #e6e9e7; }.privacy-document footer p { color: #818884; font-size: 10px; }
@media (max-width:620px) { .privacy-document { margin-top: 20px; padding: 30px 22px; }.privacy-document h1 { font-size: 32px; }.privacy-document footer { align-items: flex-start; flex-direction: column; } }

/* Shared utilities and Hostinger installation */
.hidden { display: none !important; }
.no-scroll { overflow: hidden; }
.title-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.table-footer { display:flex;align-items:center;justify-content:space-between;gap:15px; }
.pagination-controls { display:flex;gap:14px; }
.pagination-controls button:disabled { color:#b2b7b4;cursor:not-allowed; }
.logout-form { margin-top: 6px; }
.admin-nav a.active { color: var(--wine); background: #f6eff1; }
.install-page,.login-page { min-height: 100vh; background: linear-gradient(135deg,#eef3f0,#faf8f4); }
.install-shell { width: min(930px,calc(100% - 32px)); margin: 38px auto 70px; }
.install-header { display: flex; align-items: center; gap: 13px; margin-bottom: 20px; padding: 20px 24px; color: white; border-radius: 11px 11px 0 0; background: var(--green-deep); }
.install-header strong,.install-header small { display: block; }.install-header strong { font: 700 18px Georgia,serif; }.install-header small { margin-top: 3px; color: #c4d4cf; font-size: 10px; }
.install-card { margin-top: -20px; padding: 42px; border: 1px solid #dce2de; border-radius: 0 0 11px 11px; background: white; box-shadow: 0 20px 55px rgba(16,49,43,.08); }
.install-card h1 { margin: 13px 0; color: var(--green-deep); font: 700 36px Georgia,serif; }.install-card > p { color: #68716c; font-size: 13px; line-height: 1.65; }
.install-form fieldset { margin: 24px 0; padding: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; border: 1px solid #dfe3e0; border-radius: 8px; }.install-form legend { padding: 0 8px; color: var(--wine); font: 700 14px Georgia,serif; }.install-form .wide { grid-column: 1/-1; }
.login-shell { width: min(1040px,calc(100% - 36px)); min-height: 100vh; margin: auto; padding: 50px 0; display: grid; grid-template-columns: 1fr 450px; align-items: center; gap: 80px; }.login-brand h1 { margin: 18px 0 14px; color: var(--green-deep); font: 700 44px/1.08 Georgia,serif; }.login-brand > p { color: #66716b; font-size: 14px; line-height: 1.7; }.login-brand .brand { margin-bottom: 65px; }.login-card { align-self: center; }
.management-grid { display: grid; grid-template-columns: minmax(260px,.75fr) minmax(500px,1.7fr); gap: 18px; }.management-card { padding: 22px; border: 1px solid var(--line); border-radius: 9px; background: white; }.management-card h2 { margin: 0 0 18px; color: var(--green-deep); font: 700 20px Georgia,serif; }.management-form { display: grid; gap: 13px; }.user-list { display: grid; gap: 9px; }.user-row { padding: 12px; display: grid; grid-template-columns: minmax(190px,1fr) 120px 76px 190px auto; gap: 9px; align-items: center; border: 1px solid #e3e7e4; border-radius: 7px; }.user-row strong,.user-row small { display:block; }.user-row strong { color:#344039;font-size:11px; }.user-row small { margin-top:3px;color:#858d88;font-size:8.5px; }.user-row select,.user-row input { min-height:36px;padding:6px 8px;border:1px solid #d6dbd8;border-radius:5px;font-size:9.5px; }.toggle-label { color:#5d6862;font-size:9.5px; }
.print-page { color:#222;background:#e9ecea; }.print-header { max-width:960px;margin:24px auto 0;padding:22px 32px;display:flex;justify-content:space-between;gap:30px;color:white;background:var(--green-deep); }.print-header div:last-child{text-align:right}.print-header strong,.print-header b,.print-header span{display:block}.print-header strong{font:700 22px Georgia,serif}.print-header b{font-size:12px}.print-header span{margin-top:5px;color:#c7d5d1;font-size:9px}.print-document{max-width:960px;margin:0 auto 50px;padding:32px;background:white}.print-actions{display:flex;justify-content:flex-end;gap:10px;margin-bottom:24px}.print-summary{display:grid;grid-template-columns:1.3fr 1.3fr .7fr;gap:1px;background:#dfe3e0;border:1px solid #dfe3e0}.print-summary div{padding:15px;background:#f8f9f8}.print-summary small,.print-grid small{display:block;color:#747d78;font-size:8px;text-transform:uppercase;letter-spacing:.05em}.print-summary strong{display:block;margin-top:5px;color:#26342e;font-size:11px}.print-section{margin-top:24px;break-inside:avoid}.print-section h2{display:flex;align-items:center;gap:10px;margin:0;padding:9px 12px;color:white;background:var(--wine);font:700 14px Georgia,serif}.print-section h2 span{color:var(--sand);font:700 9px Arial}.print-grid{display:grid;grid-template-columns:1fr 1fr;border:1px solid #dfe3e0;border-top:0}.print-grid>div{min-height:52px;padding:10px 12px;border-right:1px solid #e4e7e5;border-bottom:1px solid #e4e7e5}.print-grid .wide{grid-column:1/-1}.print-grid p{margin:5px 0 0;font-size:10px;white-space:pre-wrap}.print-repeatable{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:10px;border:1px solid #dfe3e0;border-top:0}.print-repeatable article{padding:10px;border:1px solid #e1e5e2}.print-repeatable strong{font-size:9px;color:var(--wine)}.print-repeatable p{margin:4px 0;font-size:8.5px}.print-repeatable p span{font-weight:700}.print-footer{margin-top:35px;padding-top:20px;border-top:1px solid #cfd5d1;color:#606964;font-size:9px}.print-footer>div{margin-top:50px;display:flex;justify-content:space-around;text-align:center;line-height:1.7}

@media (max-width:900px){.login-shell{grid-template-columns:1fr;gap:35px}.login-brand .brand{margin-bottom:35px}.management-grid{grid-template-columns:1fr}.user-row{grid-template-columns:1fr 1fr}.user-row>div{grid-column:1/-1}}
@media (max-width:620px){.install-card{padding:27px 20px}.install-form fieldset{grid-template-columns:1fr}.install-form .wide{grid-column:auto}.login-shell{padding:28px 0}.login-brand h1{font-size:36px}.print-document{padding:15px}.print-header{margin:0;padding:17px}.print-summary,.print-grid,.print-repeatable{grid-template-columns:1fr}.print-grid .wide{grid-column:auto}.title-actions{justify-content:flex-start}.user-row{grid-template-columns:1fr}.user-row>div{grid-column:auto}}

@media print {
  @page { size: Letter; margin: 12mm; }
  body.print-page { background:white; }
  .print-header,.print-document { max-width:none;margin:0;padding-left:0;padding-right:0; }
  .print-header { padding:10px 0;color:#111;border-bottom:2px solid #691c32;background:white; }
  .print-header span { color:#555; }
  .print-actions { display:none; }
  .print-section { break-inside:avoid; }
}
