:root {
  --portal-ink: #18343a;
  --portal-muted: #60747a;
  --portal-line: #d5e4e0;
  --portal-surface: #ffffff;
  --portal-surface-alt: #f1f7f5;
  --portal-navy: #0d4549;
  --portal-teal: #126b70;
  --portal-gold: #b46b18;
  --portal-gold-soft: #fff2da;
  --portal-coral: #cf6945;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--portal-surface-alt); }
body { margin: 0; color: var(--portal-ink); font-family: "Aptos", "Segoe UI", "Microsoft YaHei", sans-serif; background: var(--portal-surface-alt); }
a { color: inherit; text-decoration: none; }
.portal-topbar { min-height: 72px; padding: 0 5vw; display: flex; align-items: center; justify-content: space-between; gap: 24px; background: var(--portal-navy); color: #fff; }
.portal-brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark { display: grid; place-items: center; flex: 0 0 auto; }
.brand-mark-dcy { width: 48px; height: 32px; border-radius: 10px; background: #f3d68a; color: var(--portal-navy); font-size: 14px; font-weight: 900; letter-spacing: .04em; }
.portal-brand-copy { display: grid; gap: 2px; min-width: 0; }
.portal-brand-copy strong { font-size: 15px; letter-spacing: .01em; white-space: nowrap; }
.portal-brand-copy small { color: #b4d6d1; font-size: 11px; letter-spacing: .04em; white-space: nowrap; }
.portal-status, .portal-back { display: inline-flex; align-items: center; gap: 7px; color: #d6ece8; font-size: 12px; white-space: nowrap; }
.portal-status svg, .portal-back svg { width: 16px; height: 16px; }
.portal-back:hover { color: #f3d68a; }
.portal-main { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 28px 0 44px; }
.hub-hero { position: relative; min-height: 340px; overflow: hidden; display: flex; align-items: stretch; border-radius: 14px; background: var(--portal-navy); color: #fff; isolation: isolate; }
.hub-hero-image { position: absolute; inset: 0 0 0 54%; z-index: -2; }
.hub-hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.hub-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(13, 69, 73, .76); }
.hub-hero-content { width: min(650px, 70%); padding: 54px 50px; display: flex; flex-direction: column; justify-content: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 7px; color: var(--portal-teal); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow.inverse { color: #f3d68a; }
.eyebrow svg { width: 15px; height: 15px; }
.hub-hero h1 { max-width: 620px; margin: 18px 0 14px; font-size: clamp(30px, 4vw, 52px); line-height: 1.08; letter-spacing: 0; }
.hub-hero p { max-width: 560px; margin: 0; color: #d6ece8; font-size: 16px; line-height: 1.8; }
.hero-signals { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 28px; }
.hero-signals span { display: inline-flex; align-items: center; gap: 7px; padding: 8px 10px; border: 1px solid rgba(243, 214, 138, .46); border-radius: 999px; color: #fff4d6; font-size: 12px; }
.hero-signals svg { width: 15px; height: 15px; }
.portal-section { padding-top: 40px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.section-heading h2 { margin: 8px 0 0; font-size: 25px; letter-spacing: 0; }
.section-note { color: var(--portal-muted); font-size: 13px; }
.portal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.hub-role-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.portal-card { min-height: 310px; padding: 24px; display: flex; flex-direction: column; border: 1px solid var(--portal-line); border-radius: 10px; background: var(--portal-surface); box-shadow: 0 10px 28px rgba(24, 52, 58, .06); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.portal-card:hover { transform: translateY(-3px); border-color: #9cc4bb; box-shadow: 0 16px 32px rgba(24, 52, 58, .12); }
.advisor-card { border-top: 4px solid var(--portal-coral); }
.operations-card { border-top: 4px solid var(--portal-teal); }
.admin-card { border-top: 4px solid var(--portal-ink); }
.neutral-card { border-top: 4px solid var(--portal-gold); }
.portal-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.portal-card-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; background: var(--portal-surface-alt); color: var(--portal-teal); }
.advisor-card .portal-card-icon { color: var(--portal-coral); background: #fff2ed; }
.admin-card .portal-card-icon { color: var(--portal-ink); background: #eef3f2; }
.portal-card-icon svg { width: 21px; height: 21px; }
.portal-card-index { color: var(--portal-muted); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.portal-card-body { flex: 1; padding-top: 24px; }
.portal-card h3, .portal-card h2 { margin: 0 0 10px; font-size: 23px; letter-spacing: 0; }
.portal-card p { margin: 0; color: var(--portal-muted); font-size: 14px; line-height: 1.75; }
.portal-card ul { display: grid; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.portal-card li { display: flex; align-items: center; gap: 9px; color: var(--portal-ink); font-size: 13px; }
.portal-card li svg { width: 16px; height: 16px; color: var(--portal-teal); }
.portal-card-cta { display: inline-flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--portal-line); color: var(--portal-teal); font-size: 13px; font-weight: 800; }
.portal-card-cta svg { width: 17px; height: 17px; }
.matrix-section { padding-bottom: 12px; }
.matrix-intro { max-width: 760px; margin: -2px 0 20px; color: var(--portal-muted); font-size: 14px; line-height: 1.8; }
.product-matrix-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.matrix-card { min-height: 226px; padding: 18px; border: 1px solid var(--portal-line); border-radius: 8px; background: rgba(255, 255, 255, .86); }
.matrix-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.matrix-index { color: var(--portal-gold); font-size: 11px; font-weight: 900; letter-spacing: .1em; }
.matrix-focus { padding: 5px 8px; border-radius: 999px; background: var(--portal-gold-soft); color: #8b551a; font-size: 11px; font-weight: 800; white-space: nowrap; }
.matrix-card h3 { margin: 16px 0 14px; color: var(--portal-navy); font-size: 18px; letter-spacing: 0; }
.matrix-product, .matrix-companion { display: grid; gap: 5px; }
.matrix-product > span, .matrix-companion > span { color: var(--portal-muted); font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.matrix-product strong { display: -webkit-box; overflow: hidden; color: var(--portal-ink); font-size: 13px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.matrix-companion { margin-top: 15px; padding-top: 12px; border-top: 1px solid var(--portal-line); }
.matrix-companion p { display: -webkit-box; overflow: hidden; margin: 0; color: var(--portal-muted); font-size: 12px; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.matrix-empty { grid-column: 1 / -1; margin: 0; padding: 32px 20px; border: 1px dashed var(--portal-line); color: var(--portal-muted); text-align: center; }
.portal-footer { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 0 0 24px; display: flex; justify-content: space-between; gap: 18px; color: var(--portal-muted); font-size: 11px; letter-spacing: .02em; }
.portal-footer a { color: var(--portal-teal); font-weight: 700; }
.role-main { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 48px 0 56px; }
.role-intro { display: flex; justify-content: space-between; align-items: end; gap: 24px; padding-bottom: 30px; border-bottom: 1px solid var(--portal-line); }
.role-intro h1 { margin: 10px 0 10px; font-size: clamp(30px, 4vw, 46px); letter-spacing: 0; }
.role-intro p { max-width: 650px; margin: 0; color: var(--portal-muted); font-size: 15px; line-height: 1.8; }
.role-intro-mark { display: grid; justify-items: end; gap: 8px; color: var(--portal-teal); font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.role-intro-mark svg { width: 48px; height: 48px; }
.role-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 28px; }
.role-grid .portal-card { min-height: 250px; }
@media (max-width: 980px) {
  .hub-role-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-matrix-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .portal-topbar { min-height: 64px; padding: 0 16px; }
  .portal-status { display: none; }
  .portal-brand-copy small { display: none; }
  .portal-main, .role-main { width: min(100% - 28px, 560px); padding-top: 18px; }
  .hub-hero { min-height: 420px; border-radius: 10px; }
  .hub-hero-image { inset: 0; }
  .hub-hero::before { background: rgba(13, 69, 73, .82); }
  .hub-hero-content { width: 100%; padding: 34px 24px; }
  .hub-hero h1 { font-size: 34px; }
  .section-heading, .role-intro { display: block; }
  .section-note { display: block; margin-top: 10px; }
  .portal-grid, .role-grid, .hub-role-grid { grid-template-columns: 1fr; }
  .product-matrix-grid { grid-template-columns: 1fr; }
  .portal-card { min-height: 0; padding: 20px; }
  .role-intro-mark { display: none; }
  .portal-footer { width: min(100% - 28px, 560px); display: block; line-height: 1.8; }
  .portal-footer span, .portal-footer a { display: block; }
}
