/* ============================================================
   UniHub — app styles
   Built on Unilog tokens (styles/tokens.css)
   ============================================================ */

* { box-sizing: border-box; }
html, body, #root { height: 100%; }
body {
  margin: 0;
  background: var(--gray-50);
  color: var(--fg-primary);
  font-family: var(--font-sans);
  font-feature-settings: "ss01", "cv11";
}
button {
  font-family: inherit;
  border: none; background: none; cursor: pointer; color: inherit;
  padding: 0;
}
input, textarea {
  font-family: inherit; color: inherit;
}
kbd {
  font-family: var(--font-mono); font-size: 11px;
  background: var(--gray-100); border: 1px solid var(--border-default);
  border-radius: var(--radius-xs);
  padding: 2px 6px; color: var(--fg-secondary);
}
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-medium); }

/* ============================================================
   LANDING — M365 SSO sign-in
   ============================================================ */
.landing {
  min-height: 100vh;
  position: relative;
  isolation: isolate;
  color: #fff;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
}
.landing-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(1200px 800px at 78% 28%, rgba(50,137,231,0.42), transparent 60%),
    radial-gradient(900px 600px at 15% 85%, rgba(50,137,231,0.20), transparent 60%),
    linear-gradient(180deg, #0A1B2E 0%, #050B17 100%);
  z-index: -1;
}
.landing-glow {
  position: absolute; inset: 0;
  background-image: url('../assets/bg-blur-blue.png');
  background-size: cover; background-position: center;
  opacity: 0.18; mix-blend-mode: screen;
}

.landing-nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 28px 56px;
  position: relative; z-index: 2;
}
.landing-brand {
  display: flex; align-items: center; gap: 14px;
}
.landing-brand img {
  height: 28px;
  filter: brightness(0) invert(1);
}
.landing-sep { color: rgba(255,255,255,0.35); font-weight: 300; font-size: 22px; }
.landing-product {
  font-weight: 600; font-size: 18px; letter-spacing: -0.01em;
}
.landing-meta {
  display: flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.62); font-size: 13px;
}

.landing-main {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 72px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 56px 72px;
  align-items: center; align-self: center;
  width: 100%;
  position: relative; z-index: 2;
}

.landing-card {
  max-width: 540px;
}
.landing-eyebrow {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 20px;
}
.landing-title {
  font-size: 64px; line-height: 1.04; letter-spacing: -0.025em;
  margin: 0 0 22px; color: #fff; font-weight: 600;
  text-wrap: balance;
}
.landing-title .hl { color: var(--yellow); }
.landing-lede {
  font-size: 19px; line-height: 1.55;
  color: rgba(255,255,255,0.78);
  margin: 0 0 36px;
  max-width: 480px;
}

.m365-btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: #fff; color: #1a1a1a;
  font-size: 16px; font-weight: 600;
  padding: 16px 24px;
  border-radius: var(--radius-m);
  letter-spacing: -0.01em;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
  box-shadow: 0 4px 14px rgba(0,0,0,0.20);
}
.m365-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.32);
}
.m365-btn:active { transform: translateY(0); }
.m365-btn:disabled, .m365-btn.is-loading {
  cursor: wait; opacity: 0.95;
}

.spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(0,0,0,0.18);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.landing-foot {
  margin-top: 14px;
  display: flex; align-items: center; gap: 6px;
  color: rgba(255,255,255,0.6); font-size: 13px;
}
.landing-foot strong { color: rgba(255,255,255,0.92); font-weight: 600; }

.landing-checks {
  list-style: none; padding: 0;
  margin: 36px 0 0;
  display: grid; gap: 12px;
}
.landing-checks li {
  display: flex; align-items: center; gap: 10px;
  color: rgba(255,255,255,0.7); font-size: 14px;
}
.landing-checks svg { color: var(--yellow); flex-shrink: 0; }

.landing-side { display: grid; gap: 16px; }
.landing-side-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-xl);
  padding: 24px;
  backdrop-filter: blur(12px);
}
.lsc-eyebrow {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 16px;
}
.lsc-logos {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.lsc-foot {
  margin-top: 18px; padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 13px; color: rgba(255,255,255,0.6);
}

.landing-side-help {
  display: grid; gap: 10px;
}
.lsh-row {
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 14px 18px;
  border-radius: var(--radius-m);
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}
.lsh-row a { color: #fff; font-weight: 600; font-size: 13px; }

.landing-foot-bar {
  display: flex; justify-content: space-between;
  padding: 24px 56px;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  position: relative; z-index: 2;
}

/* ============================================================
   HUB — authenticated state
   ============================================================ */
.hub {
  min-height: 100vh;
  background: var(--gray-50);
  animation: hubFadeIn 400ms var(--ease-out);
}
@keyframes hubFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

/* HEADER */
.hub-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}
.hub-header-inner {
  max-width: 1440px; margin: 0 auto;
  height: 68px; padding: 0 32px;
  display: flex; align-items: center; gap: 24px;
}
.hub-brand {
  display: flex; align-items: center; gap: 12px;
  flex-shrink: 0;
}
.hub-brand img { height: 22px; }
.hub-brand-sep { color: var(--gray-300); font-weight: 300; font-size: 18px; }
.hub-brand-product {
  font-weight: 600; font-size: 17px; letter-spacing: -0.01em;
}
.hub-search {
  flex: 1; max-width: 560px;
  display: flex; align-items: center; gap: 10px;
  background: var(--gray-100);
  border: 1px solid transparent;
  border-radius: var(--radius-m);
  padding: 9px 12px;
  transition: border-color var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out);
}
.hub-search:focus-within {
  background: #fff;
  border-color: var(--blue);
  box-shadow: var(--shadow-glow-blue);
}
.hub-search svg { color: var(--fg-secondary); flex-shrink: 0; }
.hub-search input {
  border: none; outline: none; background: transparent;
  flex: 1; font-size: 14px;
}
.hub-search input::placeholder { color: var(--fg-muted); }

.hub-right { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.icon-btn {
  position: relative;
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-m);
  color: var(--fg-secondary);
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.icon-btn:hover { background: var(--gray-100); color: var(--fg-primary); }
.icon-btn .dot {
  position: absolute; top: 9px; right: 10px;
  width: 8px; height: 8px;
  background: var(--danger); border-radius: 50%;
  border: 2px solid #fff;
}

.user-chip {
  position: relative;
  display: flex; align-items: center; gap: 10px;
  padding: 6px 10px 6px 6px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out);
}
.user-chip:hover { background: var(--gray-100); }
.avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; letter-spacing: 0.02em;
  flex-shrink: 0;
}
.avatar.lg { width: 48px; height: 48px; font-size: 16px; }
.user-meta { line-height: 1.15; }
.user-name { font-size: 13px; font-weight: 600; }
.user-role { font-size: 11px; color: var(--fg-secondary); }
.user-chip svg { color: var(--fg-secondary); }

.user-menu {
  position: absolute; top: 100%; right: 0; margin-top: 8px;
  min-width: 280px;
  background: #fff;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-l);
  padding: 8px;
  z-index: 40; cursor: default;
  animation: menuIn 160ms var(--ease-out);
}
@keyframes menuIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.um-head { display: flex; gap: 12px; padding: 12px; align-items: center; }
.um-name { font-weight: 600; font-size: 14px; }
.um-email { font-size: 12px; color: var(--fg-secondary); }
.um-team { display: flex; justify-content: space-between; align-items: center;
  padding: 8px 12px; font-size: 13px; }
.um-team-lbl { color: var(--fg-secondary); font-size: 12px; }
.um-team span:last-child { font-weight: 600; }
.um-divide { height: 1px; background: var(--border-subtle); margin: 6px 0; }
.um-item {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 10px 12px;
  border-radius: var(--radius-s);
  font-size: 13px; font-weight: 500; color: var(--fg-primary);
  text-align: left;
}
.um-item:hover { background: var(--gray-100); }
.um-item.danger { color: var(--danger); }
.um-item.danger:hover { background: rgba(216,0,39,0.06); }

/* MAIN */
.hub-main {
  max-width: 1440px; margin: 0 auto;
  padding: 36px 32px 64px;
}

/* Greeting */
.greeting {
  display: grid; grid-template-columns: 1fr auto; gap: 32px;
  align-items: end;
  margin-bottom: 32px;
}
.greet-eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--blue);
  margin-bottom: 12px;
}
.greet-title {
  font-size: 38px; font-weight: 600; letter-spacing: -0.02em;
  line-height: 1.05; margin: 0 0 8px;
}
.greet-sub {
  font-size: 15px; color: var(--fg-secondary);
}
.greet-sub strong { color: var(--fg-primary); font-weight: 600; }
.pending-pill {
  display: inline-flex; align-items: center;
  background: var(--yellow-ultra-light);
  color: #8a5a00;
  font-size: 12px; font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(249,172,6,0.3);
}

.greet-stats { display: flex; gap: 12px; }
.stat-card {
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-l);
  padding: 14px 16px;
  min-width: 158px;
  box-shadow: var(--shadow-xs);
}
.stat-top { display: flex; align-items: center; gap: 8px; }
.stat-label {
  font-size: 11px; font-weight: 600;
  color: var(--fg-secondary); letter-spacing: 0.04em;
  text-transform: uppercase;
}
.stat-value {
  font-size: 28px; font-weight: 600; letter-spacing: -0.02em;
  margin-top: 8px; line-height: 1;
}
.stat-delta {
  font-size: 12px; margin-top: 4px;
  color: var(--fg-secondary);
}
.stat-delta.tone-warn { color: #8a5a00; }
.stat-delta.tone-info { color: var(--blue-semi-dark); }
.stat-delta.tone-ok { color: var(--success); }

/* Two-column main grid */
.hub-grid {
  display: grid; grid-template-columns: 1fr 360px; gap: 28px;
  align-items: start;
}
.hub-col-main { min-width: 0; }
.hub-col-side { display: grid; gap: 16px; position: sticky; top: 92px; }

/* RECENT */
.recent {
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-l);
  padding: 18px 20px 20px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-xs);
}
.recent-head, .panel-head, .apps-head {
  display: flex; justify-content: space-between; align-items: center;
}
.recent-head h3, .panel-head h3 {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--fg-secondary);
  margin: 0;
}
.recent-head h3 svg, .panel-head h3 svg { color: var(--blue); }
.see-all { font-size: 12px; font-weight: 600; color: var(--blue); }
.recent-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 10px; margin-top: 14px;
}
.recent-chip {
  display: flex; align-items: center; gap: 10px;
  background: var(--gray-50);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-m);
  padding: 10px 12px;
  text-align: left;
  transition: all var(--dur-fast) var(--ease-out);
}
.recent-chip:hover {
  background: #fff; border-color: var(--blue);
  box-shadow: var(--shadow-s); transform: translateY(-1px);
}
.recent-chip > div { flex: 1; min-width: 0; }
.rc-name { font-size: 13px; font-weight: 600; line-height: 1.2; }
.rc-time { font-size: 11px; color: var(--fg-secondary); margin-top: 2px; }
.recent-chip > svg { color: var(--fg-muted); }

/* APPS section */
.apps { }
.apps-title {
  font-size: 22px; font-weight: 600;
  letter-spacing: -0.015em; margin: 0;
}
.apps-sub {
  font-size: 14px; color: var(--fg-secondary);
  margin: 4px 0 0;
}
.apps-head { margin-bottom: 18px; }

/* Filter chips */
.filter-bar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 18px;
}
.chips { display: flex; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px; font-weight: 500;
  color: var(--fg-secondary);
  background: transparent;
  border: 1px solid transparent;
  transition: all var(--dur-fast) var(--ease-out);
}
.chip:hover { background: var(--gray-100); color: var(--fg-primary); }
.chip.active {
  background: #fff;
  color: var(--fg-primary);
  border-color: var(--border-default);
  box-shadow: var(--shadow-xs);
  font-weight: 600;
}
.chip-count {
  background: var(--gray-100);
  font-size: 11px; font-weight: 600;
  padding: 1px 7px;
  border-radius: var(--radius-pill);
  color: var(--fg-secondary);
}
.chip.active .chip-count { background: var(--blue-ultra-light); color: var(--blue-semi-dark); }

.view-toggle {
  display: flex; background: var(--gray-100); padding: 2px;
  border-radius: var(--radius-m);
}
.view-toggle button {
  width: 32px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-s); color: var(--fg-secondary);
}
.view-toggle button.active {
  background: #fff; color: var(--fg-primary);
  box-shadow: var(--shadow-xs);
}

/* Section heads inside apps */
.apps-section-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin: 4px 0 14px;
}
.apps-section-head.with-rule { margin-top: 28px; }
.apps-section-name {
  font-size: 12px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--fg-secondary);
}
.apps-section-count {
  font-size: 12px; color: var(--fg-muted);
}

/* TILES */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.tile {
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-l);
  padding: 18px;
  display: flex; flex-direction: column; gap: 14px;
  cursor: pointer;
  transition: all var(--dur-base) var(--ease-out);
  position: relative;
}
.tile:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-m);
  transform: translateY(-2px);
}
.tile.locked {
  cursor: default;
  background: #fafbfc;
}
.tile.locked:hover {
  border-color: var(--border-default);
  transform: none;
  box-shadow: var(--shadow-s);
}
.tile.pending { background: var(--yellow-ultra-light); border-color: rgba(249,172,6,0.3); }
.tile.pending:hover { border-color: rgba(249,172,6,0.5); }

.tile-top {
  display: flex; justify-content: space-between; align-items: flex-start;
}
.tile-badges { display: flex; gap: 6px; align-items: center; }
.tile-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: var(--blue-ultra-light); color: var(--blue-semi-dark);
}
.tile-badge svg { display: block; }
.tile-badge-pending { background: rgba(249,172,6,0.18); color: #8a5a00; }
.tile-notif {
  background: var(--danger); color: #fff;
  font-size: 11px; font-weight: 600;
  min-width: 20px; height: 20px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 6px;
  border-radius: var(--radius-pill);
}
.tile-lock {
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--gray-100);
  color: var(--fg-secondary);
  border-radius: 50%;
}

.tile-body { flex: 1; min-height: 0; }
.tile-cat {
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--fg-muted);
  margin-bottom: 4px;
}
.tile-name {
  font-size: 17px; font-weight: 600; letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 6px;
}
.tile-int {
  font-size: 10px; font-weight: 600; letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--blue-ultra-light);
  color: var(--blue-semi-dark);
  padding: 2px 6px;
  border-radius: var(--radius-xs);
}
.tile-desc {
  font-size: 13px; line-height: 1.4;
  color: var(--fg-secondary);
}
.tile.locked .tile-name { color: var(--fg-primary); }
.tile.locked .tile-desc { color: var(--fg-muted); }

.tile-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  font-size: 12px;
}
.tile-last {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--fg-muted);
}
.tile-open {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--blue); font-weight: 600;
  opacity: 0; transition: opacity var(--dur-fast) var(--ease-out);
}
.tile:hover .tile-open { opacity: 1; }
.tile-request {
  display: inline-flex; align-items: center; gap: 4px;
  background: #fff;
  border: 1px solid var(--blue);
  color: var(--blue); font-weight: 600; font-size: 12px;
  padding: 7px 12px;
  border-radius: var(--radius-m);
  transition: all var(--dur-fast) var(--ease-out);
}
.tile-request:hover { background: var(--blue); color: #fff; }
.tile-pending-msg {
  font-size: 12px; color: #8a5a00; font-weight: 500;
}

/* LIST view */
.rows {
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-l);
  overflow: hidden;
}
.rows-head {
  display: grid; grid-template-columns: 2.2fr 1fr 1fr 120px;
  gap: 16px; padding: 12px 20px;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--fg-muted);
  background: var(--gray-50);
  border-bottom: 1px solid var(--border-subtle);
}
.row {
  display: grid; grid-template-columns: 36px 2.2fr 1fr 1fr 120px;
  gap: 16px; padding: 14px 20px;
  align-items: center;
  font-size: 14px;
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out);
}
.row:last-child { border-bottom: none; }
.row:hover { background: var(--blue-ultra-light); }
.row.locked { cursor: default; background: transparent; }
.row.locked:hover { background: var(--gray-50); }
.row.pending { background: var(--yellow-ultra-light); }
.row-name > div:first-child {
  font-weight: 600; display: flex; align-items: center; gap: 8px;
}
.row-pill {
  font-size: 10px; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; padding: 2px 6px;
  border-radius: var(--radius-pill);
  background: var(--blue-ultra-light); color: var(--blue-semi-dark);
}
.row-desc { font-size: 12px; color: var(--fg-secondary); margin-top: 2px; }
.row-cat { font-size: 13px; color: var(--fg-secondary); }
.row-last { font-size: 13px; color: var(--fg-muted); }
.row-action { text-align: right; }
.row-open {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 600; color: var(--blue);
}
.row-pending {
  font-size: 12px; font-weight: 600; color: #8a5a00;
}
.row-req {
  display: inline-flex; align-items: center; gap: 4px;
  border: 1px solid var(--blue); color: var(--blue);
  font-size: 12px; font-weight: 600;
  padding: 6px 10px; border-radius: var(--radius-s);
}
.row-req:hover { background: var(--blue); color: #fff; }

/* Empty */
.empty {
  padding: 32px; text-align: center;
  background: #fff; border: 1px dashed var(--border-default);
  border-radius: var(--radius-l);
  color: var(--fg-secondary); font-size: 14px;
}

/* PANELS (right column) */
.panel {
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-l);
  padding: 20px;
  box-shadow: var(--shadow-xs);
}

.ann-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 14px; }
.ann {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}
.ann:last-child { border-bottom: none; padding-bottom: 0; }
.ann.pinned { padding: 12px; background: var(--blue-ultra-light); border-radius: var(--radius-m); border-bottom: none; }
.ann.pinned + .ann { padding-top: 14px; border-top: none; }

.ann-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.ann-tag {
  font-size: 10px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 2px 7px;
  border-radius: var(--radius-pill);
  background: var(--gray-100); color: var(--fg-secondary);
}
.tag-product { background: var(--blue-ultra-light); color: var(--blue-semi-dark); }
.tag-maintenance { background: var(--yellow-ultra-light); color: #8a5a00; }
.tag-people { background: rgba(24,178,107,0.12); color: #0d6e44; }
.tag-it { background: var(--gray-100); color: var(--fg-secondary); }
.ann-pin {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 10px; font-weight: 600; letter-spacing: 0.04em;
  color: var(--blue-semi-dark); text-transform: uppercase;
}
.ann-date { margin-left: auto; font-size: 11px; color: var(--fg-muted); }
.ann-title {
  font-size: 14px; font-weight: 600; letter-spacing: -0.005em;
  line-height: 1.3; margin-bottom: 4px;
}
.ann-body { font-size: 13px; color: var(--fg-secondary); line-height: 1.45; }

/* Quick links */
.ql-list { display: grid; gap: 6px; margin-top: 12px; }
.ql {
  display: flex; align-items: center; gap: 12px;
  padding: 10px;
  border-radius: var(--radius-m);
  transition: background var(--dur-fast) var(--ease-out);
}
.ql:hover { background: var(--gray-50); }
.ql-ico {
  width: 36px; height: 36px;
  border-radius: var(--radius-m);
  background: var(--blue-ultra-light);
  color: var(--blue);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ql > div { flex: 1; min-width: 0; }
.ql-name { font-size: 13px; font-weight: 600; }
.ql-desc { font-size: 11px; color: var(--fg-muted); margin-top: 1px; }
.ql > svg { color: var(--fg-muted); }

/* SSO note */
.sso-note {
  display: flex; gap: 12px;
  background:
    radial-gradient(400px 200px at 100% 0%, rgba(50,137,231,0.2), transparent 60%),
    linear-gradient(180deg, #0A1B2E 0%, #050B17 100%);
  color: #fff;
  border-radius: var(--radius-l);
  padding: 18px;
}
.sso-note > svg { color: var(--yellow); flex-shrink: 0; margin-top: 2px; }
.sso-note-title { font-size: 13px; font-weight: 600; }
.sso-note-body { font-size: 12px; line-height: 1.45; color: rgba(255,255,255,0.7); margin-top: 4px; }

/* ============================================================
   LAUNCH OVERLAY
   ============================================================ */
.launch-overlay {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(7,14,28,0.55);
  backdrop-filter: blur(8px);
  display: grid; place-items: center;
  animation: fadeIn 200ms var(--ease-out);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.launch-card {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 28px 32px;
  display: flex; align-items: center; gap: 20px;
  min-width: 420px;
  box-shadow: var(--shadow-xl);
  animation: launchIn 240ms var(--ease-out);
}
@keyframes launchIn { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } }
.launch-eyebrow {
  font-size: 10px; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--blue);
  margin-bottom: 6px;
}
.launch-title {
  font-size: 18px; font-weight: 600; letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.launch-sub {
  font-size: 12px; color: var(--fg-secondary);
  margin-bottom: 12px;
}
.launch-progress {
  height: 4px; background: var(--gray-100);
  border-radius: var(--radius-pill); overflow: hidden;
  width: 240px;
}
.lp-bar {
  height: 100%; background: var(--blue);
  border-radius: inherit;
  animation: lpFill 1100ms var(--ease-out);
}
@keyframes lpFill { from { width: 0; } to { width: 100%; } }

/* ============================================================
   REQUEST MODAL
   ============================================================ */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(7,14,28,0.45);
  backdrop-filter: blur(6px);
  display: grid; place-items: center;
  animation: fadeIn 200ms var(--ease-out);
  padding: 24px;
}
.modal {
  background: #fff;
  border-radius: var(--radius-xl);
  width: 560px; max-width: 100%;
  max-height: 88vh; overflow: auto;
  box-shadow: var(--shadow-xl);
  animation: launchIn 240ms var(--ease-out);
}
.modal-head {
  padding: 24px 24px 20px;
  display: flex; justify-content: space-between; align-items: flex-start;
  border-bottom: 1px solid var(--border-subtle);
}
.modal-app { display: flex; gap: 16px; }
.modal-eyebrow {
  font-size: 10px; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--blue);
  margin-bottom: 4px;
}
.modal-head h2 {
  font-size: 22px; font-weight: 600; letter-spacing: -0.015em;
  margin: 0 0 4px;
}
.modal-cat { font-size: 12px; color: var(--fg-secondary); }
.icon-btn.close { width: 32px; height: 32px; }

.modal-body { padding: 22px 24px; display: grid; gap: 18px; }
.modal-desc {
  font-size: 14px; line-height: 1.5;
  color: var(--fg-secondary);
  margin: 0;
}

.field { display: grid; gap: 8px; }
.field-label {
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--fg-secondary);
}
.field textarea {
  border: 1px solid var(--border-default);
  border-radius: var(--radius-m);
  padding: 12px 14px;
  font-size: 14px; line-height: 1.5;
  resize: vertical;
  outline: none;
  transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.field textarea:focus {
  border-color: var(--blue);
  box-shadow: var(--shadow-glow-blue);
}

.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.seg-opt {
  border: 1px solid var(--border-default);
  border-radius: var(--radius-m);
  padding: 12px;
  text-align: left;
  transition: all var(--dur-fast) var(--ease-out);
}
.seg-opt:hover { border-color: var(--blue-light); background: var(--gray-50); }
.seg-opt.active {
  border-color: var(--blue);
  background: var(--blue-ultra-light);
}
.seg-label { font-size: 13px; font-weight: 600; }
.seg-sub { font-size: 11px; color: var(--fg-secondary); margin-top: 2px; }

.modal-meta {
  background: var(--gray-50);
  border-radius: var(--radius-m);
  padding: 14px 16px;
  display: grid; gap: 8px;
}
.mm-row {
  display: flex; justify-content: space-between;
  font-size: 12px;
}
.mm-row span { color: var(--fg-secondary); }
.mm-row strong { font-weight: 600; }

.modal-foot {
  display: flex; justify-content: flex-end; gap: 10px;
  padding: 16px 24px 22px;
  border-top: 1px solid var(--border-subtle);
}
.btn-primary {
  background: var(--blue); color: #fff;
  font-weight: 600; font-size: 14px;
  padding: 11px 22px;
  border-radius: var(--radius-m);
  transition: background var(--dur-fast) var(--ease-out);
}
.btn-primary:hover { background: var(--blue-medium); }
.btn-primary:disabled { background: var(--gray-300); cursor: not-allowed; }
.btn-ghost {
  background: transparent; color: var(--fg-secondary);
  font-weight: 600; font-size: 14px;
  padding: 11px 18px;
  border-radius: var(--radius-m);
}
.btn-ghost:hover { background: var(--gray-100); color: var(--fg-primary); }

/* Success state */
.modal-success {
  padding: 40px 32px;
  text-align: center;
  display: grid; gap: 16px; justify-items: center;
}
.success-circle {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
  display: grid; place-items: center;
  animation: pop 360ms var(--ease-out);
}
@keyframes pop {
  0% { transform: scale(0.5); opacity: 0; }
  60% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}
.modal-success h2 {
  font-size: 22px; font-weight: 600; letter-spacing: -0.015em;
  margin: 0;
}
.modal-success p {
  font-size: 14px; color: var(--fg-secondary);
  max-width: 380px;
  margin: 0;
}
.success-tile {
  display: flex; align-items: center; gap: 12px;
  background: var(--gray-50);
  padding: 12px 16px;
  border-radius: var(--radius-m);
  margin-top: 8px;
}
.ss-name { font-size: 13px; font-weight: 600; text-align: left; }
.ss-status { font-size: 12px; color: var(--fg-secondary); }

/* ============================================================
   TOASTS
   ============================================================ */
.toast {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-l);
  padding: 12px 16px;
  display: flex; align-items: center; gap: 12px;
  min-width: 360px;
  z-index: 100;
  animation: toastIn 280ms var(--ease-out);
}
@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, 12px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
.toast > svg:last-child { color: var(--success); margin-left: auto; }
.toast-body { flex: 1; min-width: 0; }
.toast-title { font-size: 13px; font-weight: 600; }
.toast-sub { font-size: 11px; color: var(--fg-secondary); margin-top: 1px; }

/* ============================================================
   Smaller screens (best-effort)
   ============================================================ */
@media (max-width: 1100px) {
  .hub-grid { grid-template-columns: 1fr; }
  .hub-col-side { position: static; }
  .greeting { grid-template-columns: 1fr; }
  .greet-stats { flex-wrap: wrap; }
  .landing-main { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 720px) {
  .hub-header-inner { padding: 0 20px; gap: 12px; }
  .hub-search { display: none; }
  .user-meta { display: none; }
  .hub-main { padding: 24px 20px 40px; }
  .landing-nav, .landing-foot-bar { padding: 20px 24px; }
  .landing-main { padding: 20px 24px 60px; }
  .landing-title { font-size: 40px; }
  .recent-row { grid-template-columns: repeat(2, 1fr); }
}
