:root {
  --bg: #111735;
  --panel: rgba(255,255,255,.055);
  --panel-strong: rgba(255,255,255,.075);
  --border: rgba(255,255,255,.10);
  --text: #fff;
  --muted: rgba(255,255,255,.70);
  --faint: rgba(255,255,255,.40);
  --shadow: 0 24px 80px rgba(0,0,0,.22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input { font: inherit; }
button { color: inherit; }

.dashboard-shell { min-height: 100vh; overflow: hidden; position: relative; background: var(--bg); }
.aurora { pointer-events: none; position: fixed; inset: 0; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(130px); }
.orb-purple { width: 520px; height: 520px; left: -190px; top: -150px; background: rgba(168,85,247,.25); }
.orb-blue { width: 560px; height: 560px; right: -200px; top: 80px; background: rgba(59,130,246,.20); filter: blur(150px); }
.orb-fuchsia { width: 620px; height: 620px; left: 33%; bottom: -290px; background: rgba(217,70,239,.15); filter: blur(160px); }

.app-layout { position: relative; width: min(1600px, 100%); min-height: 100vh; margin: 0 auto; display: flex; }
.sidebar { position: relative; flex: 0 0 256px; padding: 24px; border-right: 1px solid var(--border); background: rgba(255,255,255,.045); backdrop-filter: blur(28px); }
.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 40px; }
.brand-mark {
  width: 68px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(168,85,247,.15);
  box-shadow: 0 10px 28px rgba(0,0,0,.15);
  flex-shrink: 0;
}
.brand-mark img {
  width: 68px;
  height: 96px;
  object-fit: contain;
  display: block;
}
.brand-name { font-weight: 650; letter-spacing: .06em; }
.brand-subtitle { margin-top: 2px; color: var(--muted); font-size: 12px; }

.sidebar-nav { display: grid; gap: 8px; }
.nav-button, .category-legend button { border: 0; background: transparent; cursor: pointer; }
.nav-button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid transparent; border-radius: 16px; text-align: left; font-size: 14px; }
.nav-button.active { border-color: rgba(255,255,255,.15); background: rgba(255,255,255,.10); }
.nav-icon { opacity: .8; font-size: 18px; }

.category-legend { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--border); }
.category-legend > p { margin: 0 0 16px; color: var(--faint); font-size: 11px; text-transform: uppercase; letter-spacing: .20em; }
.category-legend button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 7px 0; color: rgba(255,255,255,.70); text-align: left; font-size: 14px; transition: color .18s ease; }
.category-legend button:hover { color: #fff; }
.dot { width: 10px; height: 10px; border-radius: 999px; flex: none; }
.sky { background: #7dd3fc; } .red { background: #fca5a5; } .violet { background: #c4b5fd; } .emerald { background: #6ee7b7; } .orange { background: #fdba74; } .pink { background: #f9a8d4; }
.clear-filter { margin-top: 8px; color: rgba(255,255,255,.38) !important; font-size: 12px !important; }

.sidebar-footer { position: absolute; left: 24px; right: 24px; bottom: 24px; padding-top: 18px; border-top: 1px solid var(--border); color: rgba(255,255,255,.40); font-size: 11px; line-height: 1.55; }
.sidebar-footer p { margin: 8px 0 0; }
.sidebar-footer .footer-title { margin-top: 0; color: rgba(255,255,255,.65); font-weight: 600; }
.sidebar-footer .muted { color: rgba(255,255,255,.30); }

.content { min-width: 0; flex: 1; padding: 36px 40px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 32px; }
h1 { margin: 0; font-size: clamp(28px, 3vw, 40px); line-height: 1.1; font-weight: 500; letter-spacing: -.025em; }
.subtitle { min-height: 18px; margin: 8px 0 0 4px; color: var(--muted); font-size: 13px; }
.search-box { width: min(360px, 100%); display: flex; align-items: center; gap: 10px; padding: 11px 14px; border: 1px solid rgba(255,255,255,.15); border-radius: 16px; background: rgba(255,255,255,.07); box-shadow: 0 18px 50px rgba(0,0,0,.18); backdrop-filter: blur(20px); }
.search-icon { color: rgba(255,255,255,.45); font-size: 23px; line-height: 1; transform: rotate(-20deg); }
.search-box input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: #fff; font-size: 14px; }
.search-box input::placeholder { color: rgba(255,255,255,.35); }
kbd { padding: 2px 6px; border: 1px solid rgba(255,255,255,.13); border-radius: 6px; color: rgba(255,255,255,.35); font-size: 10px; }

.dashboard-grid { display: grid; gap: 12px; }
.row-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; }
.row-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row-three {
  display: block;
  width: 100%;
}
.row-three .card {
  width: 100%;
}
.card { min-width: 0; padding: 20px; border: 1px solid var(--border); border-radius: 28px; background: var(--panel); box-shadow: var(--shadow); backdrop-filter: blur(24px); }
.card-heading { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.heading-icon { width: 17px; height: 17px; display: grid; place-items: center; font-size: 15px; opacity: .95; }
.card.microsoft .card-heading { color: #7dd3fc; }
.card.google .card-heading { color: #fca5a5; }
.card.remote-access .card-heading { color: #6ee7b7; }
.card.administration .card-heading { color: #fdba74; }
.card.internal .card-heading { color: #c4b5fd; }
.card.references .card-heading { color: #f9a8d4; }
.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 26px 20px;
  align-items: start;
}
.card.small .link-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
.link-tile { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; color: #fff; text-decoration: none; text-align: center; }
.logo-wrap { position: relative; width: 100%; max-width: 104px; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; padding: 12px; border-radius: 26px; background: #fff; box-shadow: 0 14px 34px rgba(0,0,0,.30); transition: transform .2s ease, box-shadow .2s ease; }
.logo-wrap::before { content: ""; position: absolute; inset: 4px 12px auto; height: 25%; border-radius: 999px; background: rgba(255,255,255,.82); filter: blur(10px); }
.logo-wrap img { position: relative; width: 82%; height: 82%; object-fit: contain; }
.external { position: absolute; top: 10px; right: 10px; color: transparent; font-size: 12px; transition: color .2s; }
.link-tile:hover .logo-wrap { transform: translateY(-4px) scale(1.04); box-shadow: 0 24px 65px rgba(0,0,0,.42); }
.link-tile:hover .external { color: rgba(71,85,105,.70); }

.empty-state { margin-top: 20px; padding: 32px; border: 1px dashed rgba(255,255,255,.15); border-radius: 22px; color: var(--muted); text-align: center; }
.hidden-by-filter { display: none !important; }

@media (max-width: 1199px) {
  .sidebar { display: none; }
  .content { padding: 28px; }
  .topbar { flex-direction: column; align-items: stretch; }
  .search-box { width: 100%; }
  .row-top { grid-template-columns: 2fr 1fr 1fr; }
}
@media (max-width: 820px) {
  .content { padding: 20px 16px 28px; }
  .row-top, .row-two, .row-three { grid-template-columns: 1fr; }
  .card { padding: 16px; border-radius: 24px; }
  .link-grid, .card.small .link-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 20px 8px; }
  .logo-wrap { max-width: 74px; padding: 8px; border-radius: 20px; }
  .link-label { font-size: 11px; }
  kbd { display: none; }
}
@media (max-width: 460px) {
  .link-grid, .card.small .link-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px 8px; }
  .logo-wrap { max-width: 82px; }
}
