.hub-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin: 0 0 1.2rem;
  padding: .5rem;
  border: 1px solid #344563;
  border-radius: 12px;
  background: #101a2e;
}
.hub-nav[hidden] { display: none; }
.hub-nav a {
  border-radius: 7px;
  color: #e1e9ff;
  font-weight: 650;
  font-size: .92rem;
  padding: .45rem .65rem;
  text-decoration: none;
}
.hub-nav a:hover { background: #263756; }
.hub-nav a[aria-current="page"] { background: #5143b7; color: #fff; }
.hub-grid { display:grid; gap:1rem; grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr)); }
.hub-card { border:1px solid #3c5070; border-radius:12px; background:#111c31; padding:1rem; }
.hub-card h3 { margin:0 0 .45rem; font-size:1.05rem; }
.hub-card p { color:#b9c8e3; margin:0 0 .55rem; }
.hub-card ul { margin:.55rem 0 0; padding-left:1.15rem; }
.hub-card li { margin:.3rem 0; }
.hub-card a { color:#cfc7ff; }
.hub-metrics { margin: 0 0 1.1rem; }
.hub-metrics strong { display:block; font-variant-numeric:tabular-nums; font-size:1.5rem; }
.hub-filters { display:flex; gap:.75rem; flex-wrap:wrap; margin:.75rem 0; align-items:end; }
.hub-filters label { display:flex; flex-direction:column; gap:.25rem; }
@media(max-width:550px) {
  .hub-nav { flex-wrap:nowrap; overflow-x:auto; }
  .hub-nav a { white-space:nowrap; }
}

#pageHome { padding-top: 1rem; }
.hub-overview-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid #51496e;
  border-radius: 17px;
  padding: clamp(1.2rem, 4vw, 2.2rem);
  margin-bottom: 1rem;
  background: radial-gradient(ellipse at right top, #6949a5 0%, transparent 65%), linear-gradient(120deg,#251e3b,#292141);
}
.hub-overview-brand { margin: 0 0 .3rem; color: #ddd0f6; font-size: .72rem; font-weight: 750; letter-spacing: .14em; }
.hub-overview-hero h3 { margin: 0; font-size: clamp(1.7rem, 4vw, 2.8rem); line-height: 1.08; }
.hub-hero-action { border: 1px solid #a389cf; background: #362851; color: #fff; padding: .55rem .8rem; border-radius: 8px; text-decoration: none; white-space: nowrap; }
.hub-hero-action:hover { background: #584277; }
.hub-section-title { margin: 1.4rem 0 .75rem; font-size: 1.05rem; }
.hub-app-grid { grid-template-columns:repeat(auto-fit,minmax(min(230px,100%),1fr)); }
.hub-app, .hub-metric { --accent:#ded1fa; --tile:#62429a; }
[data-accent="aqua"] { --accent:#b5f8f1; --tile:#1b6966; }
[data-accent="pink"] { --accent:#ffd5f0; --tile:#893d73; }
[data-accent="blue"] { --accent:#c9e4ff; --tile:#2d5d9a; }
[data-accent="amber"] { --accent:#ffe7b4; --tile:#79531f; }
[data-accent="green"] { --accent:#d3f4b6; --tile:#526e32; }
[data-accent="mint"] { --accent:#c6f5da; --tile:#30714e; }
[data-accent="slate"] { --accent:#e0e6ff; --tile:#545e87; }
.hub-app { display:flex; flex-direction:column; padding:0; overflow:hidden; }
.hub-app-launch { display:flex; gap:.72rem; align-items:center; padding:.85rem 1rem; color:#f2f4ff!important; text-decoration:none; border-bottom:1px solid #344460; background:#17243b; }
.hub-app-launch:hover { background:#243550; }
.hub-app-launch:focus-visible { outline:2px solid #c8b3ff; outline-offset:-3px; }
.hub-app-launch h3 { margin:0; }
.hub-app-icon, .hub-metric-icon { display:grid; place-items:center; flex:none; width:42px; height:42px; font-size:1.4rem; font-weight:750; border-radius:10px; background:linear-gradient(145deg,var(--tile),color-mix(in srgb,var(--tile) 75%,#101829)); color:var(--accent); }
.hub-app-arrow { margin-left:auto; color:var(--accent); font-size:1rem; }
.hub-app ul { list-style:none; padding:.25rem 1rem .65rem; margin:.15rem 0 0; }
.hub-app li { margin:0; }
.hub-app li a { display:block; padding:.31rem 0; font-size:.89rem; line-height:1.3; text-decoration:none; }
.hub-app li a:hover { text-decoration:underline; }
.hub-metrics { grid-template-columns:repeat(auto-fit,minmax(min(175px,100%),1fr)); }
.hub-metric { display:flex; gap:.63rem; align-items:center; padding:.8rem; }
.hub-metric strong { line-height:1.15; }
.hub-metric div span { color:#bfcbe3; font-size:.85rem; }
.hub-revenue { margin-top:1.2rem; padding:1rem; border:1px solid #3c5070; border-radius:12px; background:#111c31; }
.hub-revenue-header { display:flex; justify-content:space-between; align-items:center; gap:.6rem; }
.hub-revenue-header h4 { margin:0; }
.hub-revenue-header a { color:#d5c9ff; font-size:.85rem; }
.hub-revenue-bars { display:grid; gap:.7rem; }
.hub-revenue-row { display:grid; grid-template-columns:3rem 1fr minmax(4.5rem,auto); align-items:center; gap:.55rem; font-size:.87rem; }
.hub-revenue-row strong { text-align:right; font-variant-numeric:tabular-nums; }
.hub-revenue-track { min-width:0; border-radius:9px; background:#253450; overflow:hidden; height:.6rem; }
.hub-revenue-track span { display:block; height:100%; background:linear-gradient(90deg,#7b55ce,#ba9cf3); border-radius:9px; }
.hub-revenue-track .negative { background:#ed96a5; }
@media(max-width:530px) {
  .hub-overview-hero { align-items:start; flex-direction:column; }
}

.page-tools { display:flex; flex-wrap:wrap; gap:.5rem; margin-bottom:1rem; }
.page-tools[hidden] { display:none; }
.hub-nav a { cursor:grab; }
textarea { font:inherit; width:100%; min-height:6rem; background:#101a2e; color:inherit; border:1px solid #526482; border-radius:8px; padding:.6rem; }
[data-theme="slate"] { color-scheme:dark; background:#171b23; color:#e9edf5; }
[data-theme="slate"] body { background:#171b23; }
[data-theme="slate"] section, [data-theme="slate"] .panel, [data-theme="slate"] .hub-card { background:#232b37; }
[data-theme="light"] { color-scheme:light; background:#f1f4fa; color:#18243a; }
[data-theme="light"] body, [data-theme="light"] body.has-catalog { background:#f1f4fa; color:#18243a; }
[data-theme="light"] section, [data-theme="light"] .panel, [data-theme="light"] .hub-card, [data-theme="light"] .hub-nav,
[data-theme="light"] .edit-card { background:#fff; color:#18243a; border-color:#bcc8da; }
[data-theme="light"] input, [data-theme="light"] select, [data-theme="light"] textarea,
[data-theme="light"] button { background:#e9edf7; color:#18243a; border-color:#8e9db6; }
[data-theme="light"] .btn, [data-theme="light"] button[type="submit"], [data-theme="light"] button[aria-pressed="true"],
[data-theme="light"] .workspace-tabs button[aria-selected="true"] { background:#5543c1; color:white; }
[data-theme="light"] a, [data-theme="light"] summary, [data-theme="light"] .brand, [data-theme="light"] .hub-nav a { color:#4933a4; }
[data-theme="light"] th, [data-theme="light"] .sub, [data-theme="light"] #status,
[data-theme="light"] .sm, [data-theme="light"] .catalog-help, [data-theme="light"] .hub-card p,
[data-theme="light"] .catalog-fields label, [data-theme="light"] .catalog-head p { color:#415576; }
[data-theme="light"] .hub-nav a[aria-current="page"] { color:white; }
.hub-stat { display:grid; gap:.3rem; }
.hub-stat strong { font-size:1.7rem; }
.chart-bar { height:.8rem; border-radius:1rem; background:#8575f8; margin:.4rem 0 1rem; }
@media print {
  :root, body, body.has-catalog, section, .panel, .hub-card { background:white!important; color:#172134!important; }
  .hub-nav, .workspace-tabs, .page-tools, header .actions, form, details, button, #sections, #sign-out, .hub-filters { display:none!important; }
  main, body, .shell { width:100%!important; max-width:100%!important; padding:0!important; }
  .table-wrap { overflow:visible; }
  th, td { color:#172134!important; border-color:#bbb!important; }
}
