/* MindLinx v1.3.3 | Palette-neutral layout refinement.
   Load after 1.3.1 core, optional 1.3.2 Studio palette and switcher CSS.
   Nightshift and Studio own ALL color variables. This file owns spacing/geometry. */

/* Remove decorative glowing status dots wherever the v1.3.1 template uses them.
   Real status colors, counts, gradients, and product functionality remain. */
.ml-dot { display:none!important; box-shadow:none!important; }
.ml-refined-dashboard .ml-crumb { color:var(--ml-purple); opacity:.8; font-weight:700; padding:0 .15rem; }

/* A shorter, editorial hero. Preserve the original violet-to-cyan headline. */
main.mindlinx-main:has(.ml-refined-dashboard) { padding-top:clamp(1.3rem,2.4vw,2.6rem); padding-bottom:3.5rem; }
.ml-refined-dashboard .ml-refined-hero {
  gap:clamp(1rem,3vw,3.2rem);
  padding:clamp(1.65rem,3vw,2.9rem) clamp(1.5rem,3.4vw,3.45rem);
  min-height:0;
  box-shadow:0 12px 28px rgba(0,0,0,.10);
}
.ml-refined-hero::before { display:none!important; }
.ml-refined-hero > div:first-child { min-width:0; max-width:810px; }
.ml-refined-hero .ml-eyebrow { letter-spacing:.13em; }
.ml-refined-dashboard .ml-refined-hero h1 {
  margin:.6rem 0 .7rem;
  max-width:790px;
  font-size:clamp(2.4rem,3.9vw,4rem);
  line-height:1.075;
  letter-spacing:-.052em;
}
.ml-refined-dashboard .ml-refined-hero p {
  max-width:550px;
  margin:0 0 1.35rem;
  font-size:clamp(1rem,1.15vw,1.11rem);
  line-height:1.55;
}
.ml-refined-hero .ml-hero-links { gap:.65rem; }
.ml-refined-hero .ml-hero-links .btn { min-height:42px; padding:.5rem .95rem; }
.ml-refined-hero .ml-refined-symbol {
  flex:0 0 clamp(110px,13vw,165px);
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  isolation:isolate;
  margin:0 clamp(.35rem,2vw,1.5rem);
}
.ml-refined-hero .ml-refined-symbol::before {
  content:'';
  position:absolute;
  width:100%;
  aspect-ratio:1;
  inset:auto;
  z-index:-1;
  border-radius:25%;
  border:1px solid var(--ml-border);
  background:color-mix(in srgb,var(--ml-raised) 52%,transparent);
}
.ml-refined-hero .ml-refined-symbol img {
  display:block;
  width:clamp(76px,9vw,110px);
  max-width:100%;
  height:auto;
  filter:none;
}

/* Two clear everyday tools immediately following the introduction. */
.ml-refined-dashboard .ml-refined-capture { gap:.85rem; margin:1rem 0 1.6rem; }
.ml-refined-dashboard .ml-capture-block {
  padding:1.12rem 1.25rem 1.28rem;
  border-radius:12px;
  background:var(--ml-surface);
}
.ml-refined-dashboard .ml-capture-block h2 { margin:.27rem 0 .72rem; font-size:1.22rem; }
.ml-refined-dashboard .ml-capture-block .ml-eyebrow { color:var(--ml-muted); letter-spacing:.1em; }
.ml-refined-dashboard .ml-capture-block .form-control { min-height:44px; }
.ml-refined-dashboard .ml-capture-block .btn { min-width:86px; }

/* Compact statistics, maintaining all five genuine LinkAce values and actions. */
.ml-refined-dashboard .ml-dashboard-section { margin:0 0 1rem; }
.ml-refined-dashboard .ml-section-header { margin-bottom:.72rem; }
.ml-refined-dashboard .ml-section-header h2 { margin-top:.18rem; font-size:1.28rem; }
.ml-refined-dashboard .ml-refined-stats { gap:.75rem; }
.ml-refined-dashboard .ml-refined-stats .ml-stat {
  min-height:128px;
  padding:.86rem 1.02rem .94rem;
  border-radius:11px;
  box-shadow:none;
}
.ml-refined-dashboard .ml-refined-stats .ml-stat:first-child {
  border-color:color-mix(in srgb,var(--ml-purple) 46%,var(--ml-border));
}
.ml-refined-dashboard .ml-refined-stats .ml-stat>span:first-child { font-size:.86rem; }
.ml-refined-dashboard .ml-refined-stats .ml-stat strong {
  font-size:clamp(2rem,2.5vw,2.55rem);
  line-height:1.24;
  letter-spacing:-.04em;
}
.ml-refined-dashboard .ml-refined-stats .ml-stat-detail { font-size:.81rem; }

/* Clearer content hierarchy: title, action, then content. No redundant micro-headings. */
.ml-refined-dashboard .ml-refined-content { gap:.85rem; }
.ml-refined-dashboard .ml-panel,
.ml-refined-dashboard .ml-capture-block,
.ml-refined-dashboard .ml-stat { transition:border-color .16s ease, background-color .16s ease; }
.ml-refined-dashboard .ml-panel-header {
  padding:.91rem 1.12rem;
  min-height:63px;
  background:color-mix(in srgb,var(--ml-raised) 63%,var(--ml-surface));
}
.ml-refined-dashboard .ml-panel-header h2 { margin:0; font-size:1.15rem; }
.ml-refined-dashboard .ml-panel-header>a { font-size:.84rem; }
.ml-refined-dashboard .ml-link-row { padding:.88rem 1.15rem; gap:.77rem; }
.ml-refined-dashboard .ml-link-row:hover { color:var(--ml-fg); }
.ml-refined-dashboard .ml-link-row-icon { min-width:19px; display:inline-flex; justify-content:center; }
.ml-refined-dashboard .ml-link-row-text { font-size:.94rem; }
.ml-refined-dashboard .ml-side-panels { gap:.85rem; }
.ml-refined-dashboard .ml-pills { padding:.92rem 1.12rem; min-height:84px; gap:.48rem; }
.ml-refined-dashboard .ml-pill { font-size:.85rem; padding:.38rem .68rem; }

/* Compact, product-quality shared footer. No double LinkAce credit or floating update state. */
footer.ml-refined-footer { padding:0!important; background:var(--ml-header)!important; }
.ml-refined-footer .ml-refined-footer-inner {
  display:block;
  width:100%;
  max-width:1440px;
  padding-top:1.5rem;
  padding-bottom:.95rem;
}
.ml-refined-footer .ml-refined-footer-top {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1.2rem 2rem;
  padding-bottom:1.18rem;
}
.ml-refined-footer .ml-footer-brand { font-size:1.15rem; gap:.57rem; line-height:1.1; }
.ml-refined-footer .ml-footer-brand img { width:29px; height:29px; }
.ml-refined-footer .ml-footer-identity p { margin:.33rem 0 0; font-size:.91rem; }
.ml-refined-footer .ml-footer-links {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-end;
  gap:.46rem 1.35rem;
  font-size:.9rem;
}
.ml-refined-footer .ml-footer-links a {
  text-decoration:none;
  font-weight:580;
  color:var(--ml-muted)!important;
}
.ml-refined-footer .ml-footer-links a:hover { color:var(--ml-cyan)!important; text-decoration:underline; }
.ml-refined-footer .ml-refined-footer-bottom {
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:.35rem 1rem;
  padding-top:.9rem;
  border-top:1px solid var(--ml-border);
  color:var(--ml-faint);
  font-size:.79rem;
}
.ml-refined-footer .ml-refined-footer-bottom .ml-refined-footer-credit { text-align:center; }
.ml-refined-footer .ml-refined-footer-bottom .ml-refined-footer-version { justify-self:end; font-variant-numeric:tabular-nums; }
.ml-refined-footer .ml-refined-footer-bottom a { color:var(--ml-muted)!important; text-decoration:none; }
.ml-refined-footer .ml-refined-footer-bottom a:hover { color:var(--ml-cyan)!important; text-decoration:underline; }

@media(max-width:991.98px){
  .ml-refined-hero .ml-refined-symbol { flex-basis:110px; margin:0 .35rem; }
  .ml-refined-dashboard .ml-refined-stats { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media(max-width:767.98px){
  .ml-refined-dashboard .ml-refined-hero { padding:1.5rem 1.24rem; }
  .ml-refined-dashboard .ml-refined-hero h1 { font-size:clamp(2.1rem,8.3vw,3rem); }
  .ml-refined-hero .ml-refined-symbol { display:none; }
  .ml-refined-dashboard .ml-refined-capture { grid-template-columns:1fr; margin-bottom:1.4rem; }
  .ml-refined-dashboard .ml-refined-stats { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .ml-refined-dashboard .ml-refined-content { grid-template-columns:1fr; }
  .ml-refined-footer .ml-refined-footer-top { align-items:flex-start; flex-direction:column; gap:.9rem; }
  .ml-refined-footer .ml-footer-links { justify-content:flex-start; gap:.65rem 1.05rem; }
  .ml-refined-footer .ml-refined-footer-bottom { grid-template-columns:1fr auto; }
  .ml-refined-footer .ml-refined-footer-bottom .ml-refined-footer-credit { grid-column:1/-1; grid-row:2; text-align:left; }
  .ml-refined-footer .ml-refined-footer-bottom .ml-refined-footer-version { grid-column:2; grid-row:1; }
}
@media(max-width:420px){
  .ml-refined-dashboard .ml-refined-stats { gap:.55rem; }
  .ml-refined-dashboard .ml-refined-stats .ml-stat { min-height:122px; padding:.72rem; }
  .ml-refined-dashboard .ml-refined-stats .ml-stat strong { font-size:2.15rem; }
  .ml-refined-dashboard .ml-capture-block { padding:1rem; }
  .ml-refined-dashboard .ml-capture-block .btn { min-width:70px; padding:.4rem .55rem; }
}
@media(prefers-reduced-motion:reduce){
  .ml-refined-dashboard .ml-stat,
  .ml-refined-dashboard .ml-panel { transition:none; }
}
