:root {
  --navy: #16212c;
  --navy-2: #1d2b38;
  --navy-3: #263949;
  --pink: #cc3366;
  --pink-dark: #aa2854;
  --pink-soft: #fff0f5;
  --ink: #202b35;
  --muted: #697580;
  --line: #dde3e8;
  --surface: #ffffff;
  --background: #f5f7f8;
  --green: #22a06b;
  --amber: #d99000;
  --red: #d04444;
  --shadow: 0 14px 38px rgba(22, 33, 44, .09);
  --radius: 18px;
  font-family: "Work Sans", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--background);
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--background); color: var(--ink); font-size: 16px; line-height: 1.55; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
[hidden] { display: none !important; }

.page-container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.eyebrow { display: inline-block; color: var(--pink); font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow.light { color: #ff8bb2; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 11px 18px; border: 0; border-radius: 11px; font-weight: 750; text-decoration: none; cursor: pointer; transition: transform .18s ease, background .18s ease, box-shadow .18s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--pink); color: #fff; box-shadow: 0 8px 18px rgba(204, 51, 102, .22); }
.button-primary:hover { background: var(--pink-dark); }
.button-secondary { color: var(--navy); background: #edf1f3; }
.button-full { width: 100%; }

.site-header { position: sticky; z-index: 20; top: 0; display: grid; grid-template-columns: auto 1fr auto; align-items: center; min-height: 76px; padding: 0 max(24px, calc((100% - 1180px) / 2)); background: rgba(22, 33, 44, .97); color: #fff; box-shadow: 0 4px 20px rgba(0,0,0,.12); backdrop-filter: blur(14px); }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; white-space: nowrap; }
.brand-logo { display: block; width: 82px; height: 42px; object-fit: contain; }
.brand-logo.large { width: 170px; height: 84px; }
.brand-divider { width: 1px; height: 28px; margin-inline: 6px; background: rgba(255,255,255,.28); }
.brand-product { color: #c9d1d7; font-size: .9rem; font-weight: 650; }
.main-nav { display: flex; justify-content: center; gap: clamp(16px, 2.3vw, 34px); }
.main-nav a { color: #e6eaed; font-size: .9rem; font-weight: 600; text-decoration: none; transition: color .15s ease; }
.main-nav a:hover { color: #fff; }
.user-menu { display: flex; align-items: center; gap: 10px; font-size: .82rem; }
.user-menu form { margin: 0; }
.avatar { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; background: var(--pink); font-weight: 800; }
.link-button, .danger-link { padding: 4px; border: 0; background: none; color: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.user-menu .link-button { color: #cbd2d7; }
.nav-toggle { display: none; border: 1px solid rgba(255,255,255,.3); border-radius: 8px; background: transparent; color: #fff; }

.flash { position: fixed; z-index: 40; top: 90px; left: 50%; width: min(560px, calc(100% - 32px)); padding: 13px 18px; transform: translateX(-50%); border: 1px solid #a9dec7; border-radius: 12px; background: #e9f8f1; color: #126241; box-shadow: var(--shadow); text-align: center; font-weight: 650; animation: flash-in .25s ease both; }
.flash-error { border-color: #f2b8b8; background: #fff0f0; color: #8e2929; }
.flash-info { border-color: #bad1e8; background: #eff7ff; color: #315d87; }
@keyframes flash-in { from { opacity: 0; transform: translate(-50%, -8px); } }

.workspace-hero { min-height: 330px; padding: 62px max(24px, calc((100% - 1180px) / 2)); background: radial-gradient(circle at 86% 10%, rgba(204,51,102,.2), transparent 28%), linear-gradient(135deg, var(--navy) 0%, #1d2f3e 100%); color: #fff; }
.workspace-hero::after { content: ""; position: absolute; pointer-events: none; right: 6%; top: 105px; width: 230px; height: 230px; opacity: .17; background: repeating-linear-gradient(135deg, transparent 0 18px, #fff 19px 20px); border-radius: 50%; }
.hero-copy { position: relative; z-index: 1; }
.hero-copy h1 { max-width: 680px; margin: 10px 0 8px; font-size: clamp(2.2rem, 5vw, 4.2rem); line-height: 1.02; letter-spacing: -.055em; }
.hero-copy p { margin: 0; color: #cbd4db; font-size: 1.08rem; }
.hero-search-wrap { position: relative; z-index: 2; display: flex; align-items: center; gap: 22px; margin-top: 34px; }
.search-box { display: flex; flex: 1; max-width: 660px; align-items: center; gap: 12px; min-height: 58px; padding: 0 16px; border: 1px solid rgba(255,255,255,.18); border-radius: 14px; background: #fff; color: var(--muted); box-shadow: 0 12px 34px rgba(0,0,0,.2); }
.search-box > span { color: var(--pink); font-size: 1.8rem; line-height: 1; }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 1rem; }
.search-box kbd { padding: 3px 7px; border: 1px solid var(--line); border-radius: 5px; background: #f4f6f7; color: #7a848d; font-size: .7rem; white-space: nowrap; }
.quick-links { display: flex; flex-wrap: wrap; gap: 8px; }
.quick-links button { padding: 7px 11px; border: 1px solid rgba(255,255,255,.19); border-radius: 99px; background: rgba(255,255,255,.07); color: #e1e7eb; font-size: .8rem; cursor: pointer; }
.quick-links button:hover { background: rgba(255,255,255,.14); }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 36px; padding-block: 58px 78px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.section-heading h1, .section-heading h2 { margin: 5px 0 0; color: var(--navy); font-size: clamp(1.75rem, 3vw, 2.35rem); line-height: 1.15; letter-spacing: -.035em; }
.section-heading > p { max-width: 390px; margin: 0; color: var(--muted); }
.result-count { color: var(--muted); font-size: .88rem; white-space: nowrap; }
.result-count strong { color: var(--ink); }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.filter-chip { padding: 8px 13px; border: 1px solid var(--line); border-radius: 99px; background: transparent; color: #5d6973; font-size: .82rem; font-weight: 650; cursor: pointer; }
.filter-chip.active { border-color: var(--navy); background: var(--navy); color: #fff; }
.resource-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.resource-card { display: flex; min-height: 276px; flex-direction: column; padding: 22px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 3px 10px rgba(22,33,44,.035); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.resource-card:hover { transform: translateY(-3px); border-color: #c9d1d8; box-shadow: var(--shadow); }
.resource-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.resource-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 12px; background: var(--pink-soft); color: var(--pink); font-weight: 850; }
.resource-icon.large { width: 64px; height: 64px; border-radius: 17px; font-size: 1.4rem; }
.icon-aplicación { background: #edf7ff; color: #2677ad; }
.icon-puente { background: #eff9f4; color: #187554; }
.icon-plantilla { background: #fff7e7; color: #9b6500; }
.resource-badges { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.resource-badges span { padding: 4px 8px; border-radius: 99px; background: #eef1f3; color: #65717b; font-size: .67rem; font-weight: 750; }
.resource-badges .featured { background: var(--pink-soft); color: var(--pink-dark); }
.resource-card h3 { margin: 20px 0 6px; color: var(--navy); font-size: 1.18rem; }
.resource-card > p { flex: 1; margin: 0 0 16px; color: var(--muted); font-size: .9rem; }
.resource-meta { display: flex; gap: 8px; margin-bottom: 14px; color: #77828b; font-size: .72rem; }
.resource-meta span + span::before { content: "·"; margin-right: 8px; }
.resource-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid #edf0f2; }
.resource-footer a { display: grid; width: 31px; height: 31px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: var(--navy); color: #fff; text-decoration: none; }
.policy { display: flex; min-width: 0; align-items: center; gap: 7px; color: #69747e; font-size: .7rem; line-height: 1.25; }
.policy i, .risk-dot { display: block; width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--amber); }
.policy i.green, .risk-dot.green { background: var(--green); }
.policy i.red, .risk-dot.red { background: var(--red); }
.empty-state { display: grid; min-height: 180px; place-items: center; align-content: center; gap: 4px; border: 1px dashed #cbd3d9; border-radius: var(--radius); color: var(--muted); text-align: center; }
.empty-state strong { color: var(--navy); }
.dashboard-aside { display: flex; flex-direction: column; gap: 16px; padding-top: 74px; }
.aside-card { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.aside-card h3 { margin: 8px 0; color: var(--navy); font-size: 1.1rem; }
.aside-card p { margin: 0 0 14px; color: var(--muted); font-size: .84rem; }
.highlight-card { display: flex; align-items: center; gap: 14px; border: 0; background: var(--pink); color: #fff; box-shadow: 0 12px 24px rgba(204,51,102,.22); }
.highlight-card p { margin: 1px 0 0; color: #ffdce8; }
.aside-icon { font-size: 1.8rem; }
.text-link { color: var(--pink-dark); font-size: .82rem; font-weight: 750; text-decoration: none; }
.compact-list { display: flex; flex-direction: column; gap: 4px; }
.compact-list .eyebrow { margin-bottom: 8px; }
.compact-list a { display: flex; align-items: center; gap: 9px; padding: 9px 0; border-top: 1px solid #edf0f2; color: var(--navy); font-size: .84rem; font-weight: 650; text-decoration: none; }
.compact-list a span { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 7px; background: #eef2f4; color: var(--pink); }

.content-band { padding: 76px 0 88px; background: #fff; }
.workflow-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.workflow-card { padding: 25px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.workflow-top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: .75rem; }
.workflow-number { color: var(--pink); font-size: 1.3rem; font-weight: 800; }
.workflow-card h3 { margin: 18px 0 5px; color: var(--navy); font-size: 1.15rem; }
.workflow-card > p { min-height: 48px; margin: 0; color: var(--muted); font-size: .85rem; }
.workflow-card ol { margin: 22px 0; padding-left: 22px; }
.workflow-card li { padding: 4px 0; color: #4f5c66; font-size: .8rem; }
.workflow-meta { display: flex; flex-direction: column; gap: 3px; padding-top: 15px; border-top: 1px solid #edf0f2; font-size: .72rem; }
.workflow-meta span { color: var(--muted); }
.workflow-meta strong { color: var(--navy); }

.security-section { padding: 84px 0; background: var(--navy); color: #fff; }
.security-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: center; }
.security-layout h2 { margin: 10px 0 18px; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.05; letter-spacing: -.05em; }
.security-layout > div:first-child p { max-width: 490px; color: #bfc9d0; }
.security-rules { overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); background: rgba(255,255,255,.04); }
.security-rules article { display: flex; gap: 14px; padding: 20px 22px; }
.security-rules article + article { border-top: 1px solid rgba(255,255,255,.1); }
.security-rules .risk-dot { width: 10px; height: 10px; margin-top: 7px; }
.security-rules strong { font-size: .92rem; }
.security-rules p { margin: 2px 0 0; color: #bfc8cf; font-size: .82rem; }

.support-section { padding: 85px 0; }
.support-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; }
.support-layout h2 { margin: 8px 0 12px; color: var(--navy); font-size: 2.3rem; line-height: 1.1; letter-spacing: -.04em; }
.support-layout > div p { color: var(--muted); }
.support-form, .stack-form { display: flex; flex-direction: column; }
.support-form label, .stack-form label, .admin-form label { margin: 10px 0 5px; color: #43505a; font-size: .8rem; font-weight: 700; }
input, textarea, select { width: 100%; min-height: 45px; padding: 10px 12px; border: 1px solid #cfd7dd; border-radius: 9px; background: #fff; color: var(--ink); outline: none; }
textarea { resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(204,51,102,.1); }
.support-form .button { align-self: flex-start; margin-top: 18px; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 25px max(24px, calc((100% - 1180px) / 2)); background: #101922; color: #aeb9c1; font-size: .78rem; }
.site-footer a { color: #fff; }

.login-page { background: var(--navy); }
.login-shell { display: grid; min-height: 100vh; grid-template-columns: minmax(420px, .9fr) 1.1fr; }
.login-brand-panel { position: relative; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; padding: clamp(34px, 6vw, 76px); background: radial-gradient(circle at 10% 80%, rgba(204,51,102,.28), transparent 36%), var(--navy); color: #fff; }
.login-brand-panel::after { content: ""; position: absolute; right: -180px; bottom: -220px; width: 540px; height: 540px; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; box-shadow: 0 0 0 65px rgba(255,255,255,.025), 0 0 0 130px rgba(255,255,255,.018); }
.login-brand, .login-copy, .login-note { position: relative; z-index: 1; }
.login-brand { display: flex; align-items: center; gap: 12px; }
.login-copy h1 { max-width: 610px; margin: 12px 0 18px; font-size: clamp(2.7rem, 5vw, 5.2rem); line-height: .98; letter-spacing: -.06em; }
.login-copy p { max-width: 540px; color: #c4cdd4; font-size: 1.08rem; }
.login-note { color: #aebbc5; font-size: .8rem; }
.login-form-panel { display: grid; place-items: center; padding: 40px; background: #f4f6f7; }
.login-card, .confirmation-card { width: min(460px, 100%); padding: clamp(28px, 5vw, 48px); border: 1px solid #e0e5e8; border-radius: 24px; background: #fff; box-shadow: var(--shadow); }
.login-card h2, .confirmation-card h1 { margin: 9px 0 10px; color: var(--navy); font-size: 1.85rem; line-height: 1.15; letter-spacing: -.035em; }
.login-card > p, .confirmation-card > p { color: var(--muted); }
.stack-form { margin-top: 26px; }
.stack-form .button { margin-top: 14px; }
.accepted-domains { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .72rem; }
.accepted-domains strong { padding: 4px 8px; border-radius: 99px; background: #eef2f4; color: #56636d; }
.privacy-note { margin-top: 18px !important; color: #85909a !important; font-size: .72rem !important; text-align: center; }
.centered-page { display: grid; min-height: 100vh; place-items: center; padding: 30px; background: radial-gradient(circle at 20% 20%, rgba(204,51,102,.22), transparent 25%), var(--navy); }
.confirmation-card { text-align: center; }
.confirmation-icon { display: grid; width: 54px; height: 54px; margin: 0 auto 16px; place-items: center; border-radius: 50%; background: #e8f8f1; color: var(--green); font-size: 1.4rem; font-weight: 800; }
.confirmation-icon.error { background: #fff0f0; color: var(--red); }

.detail-page, .admin-page { padding-block: 54px 90px; }
.back-link { color: var(--muted); font-size: .85rem; text-decoration: none; }
.detail-card { margin-top: 20px; padding: clamp(28px, 5vw, 56px); border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: var(--shadow); }
.detail-heading { display: flex; gap: 22px; align-items: flex-start; padding-bottom: 34px; border-bottom: 1px solid var(--line); }
.detail-heading h1 { margin: 5px 0; color: var(--navy); font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.05; }
.detail-heading p { margin: 0; color: var(--muted); }
.detail-grid { display: grid; grid-template-columns: 1.4fr .8fr; gap: 60px; padding-block: 36px; }
.detail-grid h2 { margin-top: 0; color: var(--navy); }
.detail-grid dl { margin: 0; }
.detail-grid dl div { padding: 11px 0; border-bottom: 1px solid #edf0f2; }
.detail-grid dt { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.detail-grid dd { margin: 3px 0 0; color: var(--navy); font-size: .88rem; font-weight: 650; }

.admin-page > .section-heading { align-items: center; }
.admin-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 26px 0; }
.admin-stats article { display: flex; flex-direction: column; padding: 22px; border-radius: var(--radius); background: var(--navy); color: #fff; }
.admin-stats strong { font-size: 2rem; }
.admin-stats span { color: #bcc6ce; font-size: .78rem; }
.admin-section { margin-top: 20px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.admin-section h2 { margin: 0 0 18px; color: var(--navy); font-size: 1.25rem; }
.admin-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 16px; }
.admin-form label { display: flex; flex-direction: column; }
.admin-form .span-2 { grid-column: 1 / -1; }
.admin-form .checkbox-label { flex-direction: row; align-items: center; gap: 9px; }
.checkbox-label input { width: 18px; min-height: 18px; }
.admin-form .button { align-self: end; }
.admin-list article { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 13px 0; }
.admin-list article + article { border-top: 1px solid var(--line); }
.admin-list article > div { display: flex; flex-direction: column; }
.admin-list span { color: var(--muted); font-size: .75rem; }
.admin-list p { margin: 5px 0 0; color: #53606a; font-size: .85rem; }
.danger-link { color: var(--red); }

.guide-page { background: #f5f7f8; }
.guide-hero { padding: 58px 0 64px; overflow: hidden; background: radial-gradient(circle at 82% 20%, rgba(204,51,102,.24), transparent 24%), linear-gradient(135deg, var(--navy), #213849); color: #fff; }
.guide-hero-layout { display: grid; grid-template-columns: 1fr 290px; gap: 70px; align-items: end; }
.guide-hero .back-link { display: block; margin-bottom: 38px; color: #bcc8d0; }
.guide-hero h1 { max-width: 790px; margin: 10px 0 18px; font-size: clamp(2.5rem, 5vw, 4.7rem); line-height: .98; letter-spacing: -.06em; }
.guide-hero p { max-width: 720px; margin: 0; color: #c6d0d7; font-size: 1.02rem; }
.guide-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.button-ghost { border: 1px solid rgba(255,255,255,.26); background: rgba(255,255,255,.06); color: #fff; }
.button-ghost:hover { background: rgba(255,255,255,.12); }
.guide-requirements { margin-top: 17px !important; font-size: .76rem !important; }
.version-card { padding: 25px; border: 1px solid rgba(255,255,255,.16); border-radius: 20px; background: rgba(255,255,255,.07); backdrop-filter: blur(12px); }
.version-card > span { color: #ff97ba; font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.version-card > strong { display: block; margin: 8px 0 3px; font-size: 2.7rem; line-height: 1; }
.version-card > p { font-size: .78rem; }
.version-card dl { margin: 20px 0 0; }
.version-card dl div { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid rgba(255,255,255,.12); font-size: .73rem; }
.version-card dt { color: #aebcc6; }
.version-card dd { margin: 0; font-weight: 700; }
.guide-content { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 70px; padding-block: 65px 95px; align-items: start; }
.guide-index { position: sticky; top: 105px; display: flex; flex-direction: column; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.guide-index strong { margin-bottom: 8px; color: var(--navy); font-size: .78rem; }
.guide-index a { padding: 8px 0; border-top: 1px solid #edf0f2; color: #687580; font-size: .75rem; text-decoration: none; }
.guide-index a:hover { color: var(--pink); }
.guide-steps { min-width: 0; }
.guide-step { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 24px; padding: 8px 0 58px; scroll-margin-top: 100px; }
.guide-step + .guide-step { padding-top: 52px; border-top: 1px solid var(--line); }
.step-number { color: var(--pink); font-size: 1.35rem; font-weight: 850; }
.guide-step h2, .guide-safety h2, .troubleshooting h2 { margin: 6px 0 12px; color: var(--navy); font-size: clamp(1.65rem, 3vw, 2.35rem); line-height: 1.12; letter-spacing: -.04em; }
.guide-step p { color: var(--muted); }
.instruction-list { margin: 25px 0; padding: 0; list-style: none; counter-reset: instructions; }
.instruction-list li { position: relative; padding: 15px 0 15px 45px; border-top: 1px solid var(--line); color: #5f6b75; counter-increment: instructions; }
.instruction-list li::before { content: counter(instructions); position: absolute; left: 0; top: 14px; display: grid; width: 28px; height: 28px; place-items: center; border-radius: 8px; background: var(--navy); color: #fff; font-size: .72rem; font-weight: 800; }
.instruction-list li strong { color: var(--navy); }
.instruction-list b { color: #394852; }
.manual-config { margin-top: 28px; padding: 24px; border: 1px solid #cfdbe3; border-radius: 16px; background: #fff; }
.manual-config h3 { margin: 0 0 6px; color: var(--navy); }
.manual-config > p { margin: 0 0 18px; font-size: .85rem; }
.config-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--line); }
.config-grid div { display: flex; flex-direction: column; padding: 13px; background: #f8fafb; }
.config-grid span { color: var(--muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; }
.config-grid strong { color: var(--navy); font-size: .82rem; }
.callout-note { margin: 16px 0 0 !important; padding: 11px 13px; border-left: 3px solid var(--amber); background: #fff8e8; color: #765a16 !important; }
.guide-step code, .troubleshooting code { padding: 2px 5px; border-radius: 5px; background: #edf1f3; color: #34444f; font-family: Consolas, monospace; font-size: .82em; }
.download-panel { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 28px; padding: 19px; border-radius: 14px; background: var(--navy); color: #fff; }
.download-panel > div { display: flex; flex-direction: column; }
.download-panel span { color: #b9c5cd; font-size: .72rem; }
.secondary-downloads { display: flex; flex-wrap: wrap; gap: 16px; margin: 15px 0; }
.secondary-downloads a { color: var(--pink-dark); font-size: .75rem; font-weight: 700; }
.checksum { margin-top: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.checksum summary { color: #596671; font-size: .75rem; cursor: pointer; }
.checksum code { display: block; margin-top: 9px; overflow-wrap: anywhere; }
.prompt-box { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 20px 0; padding: 17px 18px; border: 1px solid #cad5dc; border-radius: 12px; background: #fff; }
.prompt-box code { padding: 0; background: transparent; color: var(--navy); font-size: .9rem; font-weight: 700; }
.prompt-box button { flex: 0 0 auto; padding: 7px 10px; border: 0; border-radius: 7px; background: var(--pink-soft); color: var(--pink-dark); font-size: .72rem; font-weight: 750; cursor: pointer; }
.guide-safety { display: grid; grid-template-columns: 1fr .8fr; gap: 50px; margin: 0 0 60px; padding: 36px; border-radius: 20px; background: var(--navy); color: #fff; scroll-margin-top: 100px; }
.guide-safety h2 { color: #fff; }
.guide-safety p { color: #bec9d0; }
.guide-safety ul { margin: 0; padding-left: 20px; color: #d8dfe4; }
.guide-safety li { padding: 7px 0; }
.troubleshooting { padding-top: 5px; }
.troubleshooting details { padding: 16px 0; border-top: 1px solid var(--line); }
.troubleshooting summary { color: var(--navy); font-weight: 750; cursor: pointer; }
.troubleshooting p { margin-bottom: 0; color: var(--muted); }

@media (max-width: 1040px) {
  .site-header { grid-template-columns: auto auto 1fr; }
  .main-nav { position: absolute; top: 76px; left: 0; right: 0; display: none; flex-direction: column; align-items: center; padding: 22px; background: var(--navy-2); }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; margin-left: 18px; }
  .user-menu { justify-self: end; }
  .user-email { display: none; }
  .hero-search-wrap { align-items: flex-start; flex-direction: column; }
  .search-box { width: 100%; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .dashboard-aside { display: grid; grid-template-columns: repeat(3, 1fr); padding-top: 0; }
  .login-shell { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .page-container { width: min(100% - 30px, 1180px); }
  .site-header { min-height: 66px; padding-inline: 15px; }
  .brand-divider, .brand-product, .avatar { display: none; }
  .brand-logo { width: 68px; height: 36px; }
  .nav-toggle { margin-left: 9px; padding: 5px 8px; font-size: .75rem; }
  .main-nav { top: 66px; }
  .workspace-hero { min-height: 390px; padding: 48px 20px; }
  .workspace-hero::after { display: none; }
  .hero-copy h1 { font-size: 2.7rem; }
  .quick-links { gap: 6px; }
  .resource-grid, .workflow-grid, .security-layout, .support-layout, .detail-grid, .admin-form { grid-template-columns: 1fr; }
  .dashboard-aside { grid-template-columns: 1fr; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .content-band, .security-section, .support-section { padding-block: 58px; }
  .security-layout, .support-layout, .detail-grid { gap: 35px; }
  .login-shell { display: block; }
  .login-brand-panel { min-height: 42vh; padding: 30px 24px; }
  .login-copy { margin-block: 70px 30px; }
  .login-copy h1 { font-size: 2.7rem; }
  .login-form-panel { min-height: 58vh; padding: 22px 15px 40px; }
  .login-card { padding: 28px 22px; }
  .detail-heading { flex-direction: column; }
  .admin-stats { grid-template-columns: 1fr; }
  .admin-form .span-2 { grid-column: auto; }
  .site-footer { align-items: flex-start; flex-direction: column; }
  .guide-hero-layout, .guide-content, .guide-safety { grid-template-columns: 1fr; }
  .guide-hero-layout { gap: 35px; }
  .version-card { max-width: 360px; }
  .guide-index { position: static; }
  .guide-step { grid-template-columns: 42px minmax(0, 1fr); gap: 12px; }
  .config-grid { grid-template-columns: 1fr; }
  .download-panel, .prompt-box { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
