.qmw-directory,.qmw-context { --qmw-ink:#202a39; --qmw-muted:#667385; --qmw-line:#e1e6ec; --qmw-surface:#fff; --qmw-soft:#f4f6f9; --qmw-accent:#365dd0; color:var(--qmw-ink); font-family:var(--qmf-font-sans,Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif); text-align:left; }
[data-theme="dark"] :is(.qmw-directory,.qmw-context),[data-qmf-theme="dark"] :is(.qmw-directory,.qmw-context) { --qmw-ink:#e9edf4; --qmw-muted:#a0adbf; --qmw-line:#303a49; --qmw-surface:#1b2330; --qmw-soft:#232d3b; --qmw-accent:#a1b4ff; }
.qmw-directory *,.qmw-context * { box-sizing:border-box; }
.qmw-directory { width:100%; padding:16px 0 24px; animation:none; }
.qmw-directory a,.qmw-context a { color:inherit; text-decoration:none; }
.qmw-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:24px; margin-bottom:24px; }
.qmw-eyebrow { margin:0 0 10px; font-size:10px; font-weight:650; letter-spacing:.13em; color:var(--qmw-muted); }
.qmw-title { margin:0; font-size:32px; font-weight:650; line-height:1.25; letter-spacing:-.045em; color:var(--qmw-ink); }
.qmw-lead { margin:10px 0 0; font-size:14px; line-height:1.6; color:var(--qmw-muted); }
.qmw-quick { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin-bottom:30px; }
.qmw-quick__item { display:flex; align-items:center; gap:10px; border:1px solid var(--qmw-line); background:var(--qmw-surface); border-radius:9px; padding:13px 16px; font-size:13px; font-weight:600; min-height:46px; transition:border-color .15s,background .15s; }
.qmw-quick__item svg { width:18px; height:18px; color:var(--qmw-accent); flex-shrink:0; }
.qmw-quick__item:hover { background:var(--qmw-soft); border-color:var(--qmw-accent); }
.qmw-controls { display:flex; align-items:center; gap:20px; margin-bottom:14px; }
.qmw-search { display:flex; align-items:center; gap:10px; flex:1; max-width:560px; min-width:0; padding:0 14px; border:1px solid var(--qmw-line); background:var(--qmw-surface); border-radius:9px; height:44px; color:var(--qmw-muted); }
.qmw-search:focus-within { border-color:var(--qmw-accent); box-shadow:0 0 0 2px color-mix(in srgb,var(--qmw-accent) 12%,transparent); }
.qmw-search svg { width:17px; height:17px; flex-shrink:0; }
.qmw-search input { width:100%; min-width:0; padding:0; height:100%; background:transparent; border:0; outline:none; box-shadow:none; color:var(--qmw-ink); font:inherit; font-size:13px; }
.qmw-search input::placeholder { color:var(--qmw-muted); opacity:1; }
.qmw-count { margin-left:auto; color:var(--qmw-muted); font-size:12px; white-space:nowrap; }
.qmw-filters { display:flex; gap:6px; flex-wrap:wrap; margin-bottom:28px; }
.qmw-filter { appearance:none; border:1px solid transparent; border-radius:7px; background:transparent; color:var(--qmw-muted); padding:8px 12px; font:inherit; font-size:12px; line-height:1.4; cursor:pointer; }
.qmw-filter[aria-pressed="true"] { background:var(--qmw-soft); border-color:var(--qmw-line); color:var(--qmw-ink); font-weight:600; }
.qmw-section + .qmw-section { margin-top:28px; }
.qmw-section__title { color:var(--qmw-muted); font-size:12px; font-weight:600; margin:0 0 12px; line-height:1.5; }
.qmw-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(225px,1fr)); gap:12px; }
.qmw-card { display:flex; flex-direction:column; min-width:0; border:1px solid var(--qmw-line); border-radius:11px; background:var(--qmw-surface); overflow:hidden; transition:border-color .15s,box-shadow .15s; }
.qmw-card:hover { border-color:color-mix(in srgb,var(--qmw-accent) 45%,var(--qmw-line)); box-shadow:0 3px 12px #14223608; }
.qmw-card__main { display:block; padding:18px; flex:1; }
.qmw-card__top { display:flex; align-items:center; gap:10px; margin-bottom:16px; }
.qmw-card__top > svg { width:14px; height:14px; color:var(--qmw-muted); margin-left:auto; flex-shrink:0; }
.qmw-icon { display:inline-flex; flex-shrink:0; align-items:center; justify-content:center; width:34px; height:34px; border-radius:8px; color:var(--qmw-accent); background:var(--qmw-soft); overflow:hidden; }
.qmw-icon img { width:100%; height:100%; object-fit:contain; }
.qmw-icon svg { width:21px; height:21px; }
.qmw-card__name { font-size:15px; font-weight:650; line-height:1.3; margin:0; color:var(--qmw-ink); }
.qmw-card__title { font-size:13px; font-weight:550; line-height:1.55; margin:0 0 6px; color:var(--qmw-ink); }
.qmw-card__description { font-size:12px; line-height:1.65; margin:0; color:var(--qmw-muted); }
.qmw-card__links { border-top:1px solid var(--qmw-line); display:flex; flex-wrap:wrap; gap:3px 10px; padding:10px 18px; }
.qmw-card__links a { font-size:11px; line-height:1.6; color:var(--qmw-accent); padding:3px 0; }
.qmw-card__links a:hover { text-decoration:underline; text-underline-offset:3px; }
.qmw-empty { padding:36px 20px; border:1px dashed var(--qmw-line); text-align:center; border-radius:10px; color:var(--qmw-muted); font-size:14px; }
.qmw-text-button { appearance:none; background:none; border:0; padding:7px 0; color:var(--qmw-muted); font:inherit; font-size:12px; cursor:pointer; }
.qmw-text-button:hover { color:var(--qmw-accent); text-decoration:underline; }
.qmw-directory__footer { display:flex; justify-content:flex-end; border-top:1px solid var(--qmw-line); margin-top:28px; padding-top:14px; }
.qmw-directory :is(a,button,input):focus-visible,.qmw-context :is(a,button):focus-visible { outline:2px solid var(--qmw-accent); outline-offset:3px; }
.qmw-context { display:flex; align-items:center; gap:24px; padding:12px 24px; border-bottom:1px solid var(--qmw-line); background:var(--qmw-surface); }
.qmw-context__brand { display:flex; align-items:center; gap:8px; font-size:13px; font-weight:650; white-space:nowrap; }
.qmw-context__brand .qmw-icon { width:24px; height:24px; border-radius:6px; }
.qmw-context__links { display:flex; align-items:center; gap:20px; overflow-x:auto; min-width:0; }
.qmw-context__links a { white-space:nowrap; font-size:12px; color:var(--qmw-muted); }
.qmw-context__links a[aria-current] { color:var(--qmw-accent); font-weight:600; }
.qmw-context__all { margin-left:auto; flex-shrink:0; color:var(--qmw-muted)!important; font-size:12px; }
/* The signed-in ID gateway is a full workspace, while authentication keeps its existing layout. */
body.qm-gateway.is-authenticated { background:var(--qmf-bg-secondary,#f6f8fb); }
body.is-authenticated .qm-bg { display:none; }
body.is-authenticated .qm-topbar { max-width:1140px; width:100%; margin:0 auto; padding:18px 28px; background:transparent; backdrop-filter:none; }
body.is-authenticated .qm-brand { gap:10px; }
body.is-authenticated .qm-brand img { width:32px; height:32px; }
body.is-authenticated .qm-brand__name { font-size:18px; }
body.is-authenticated .qm-topbar__actions { gap:10px; }
body.is-authenticated .qm-chip-btn,body.is-authenticated .lang-trigger { min-height:34px; box-shadow:none; }
body.is-authenticated .qm-gateway,body.is-authenticated .qm-stage { width:100%; }
body.qm-gateway.is-authenticated .qm-stage { padding:8px 28px 24px; }
body.qm-gateway.is-authenticated .qm-stage__inner { width:min(100%,1084px); gap:0; }
body.is-authenticated .qmw-directory { animation:none; }
@media(max-width:900px) { .qmw-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:560px) {
  .qmw-title { font-size:27px; }.qmw-lead { font-size:13px; }.qmw-heading { margin-bottom:18px; }.qmw-quick { gap:6px; margin-bottom:24px; }.qmw-quick__item { gap:6px; padding:11px 9px; font-size:11px; }.qmw-quick__item svg { width:15px; height:15px; }
  .qmw-controls { gap:12px; }.qmw-count { font-size:11px; }.qmw-search { height:42px; padding:0 11px; }.qmw-search input { font-size:12px; }.qmw-filters { gap:3px; margin-bottom:22px; }.qmw-filter { padding:7px 8px; font-size:11px; }
  .qmw-grid { gap:10px; }.qmw-card__main { padding:14px; }.qmw-card__top { gap:7px; margin-bottom:13px; }.qmw-icon { width:29px; height:29px; border-radius:7px; }.qmw-card__name { font-size:13px; }.qmw-card__top > svg { width:12px; height:12px; }.qmw-card__title { font-size:12px; }.qmw-card__description { font-size:11px; line-height:1.6; }.qmw-card__links { padding:8px 14px; gap:3px 8px; }.qmw-card__links a { font-size:10px; }
  body.is-authenticated .qm-topbar { padding:16px; }body.qm-gateway.is-authenticated .qm-stage { padding:2px 16px 20px; }
  .qmw-context { flex-wrap:wrap; padding:10px 16px; gap:12px; }.qmw-context__links { order:3; width:100%; }.qmw-context__all { margin-left:auto; }
}
@media(max-width:359px) { .qmw-grid { grid-template-columns:1fr; }.qmw-card__main { padding:16px; }.qmw-card__description { font-size:12px; }.qmw-quick { grid-template-columns:1fr; }.qmw-quick__item { font-size:12px; min-height:38px; padding:9px 12px; }.qmw-title { font-size:25px; } }
@media(prefers-reduced-motion:reduce) { .qmw-directory * { transition:none!important; animation:none!important; } }
body.is-authenticated :is(.qm-stage,.qm-topbar) { box-sizing:border-box; }
body.is-authenticated .qm-topbar__brand { gap:10px; }
body.is-authenticated .qm-topbar__logo { width:32px; height:32px; }
body.is-authenticated .qm-topbar__name { font-size:18px; }
@media(max-width:359px) { body.is-authenticated .qm-topbar__name { display:none; } }

@media(max-width:560px) { .qmw-card__description { display:none; } .qmw-card__main { min-height:110px; } }
body.is-authenticated .qm-theme__btn svg { width:16px; height:16px; }
[data-theme="dark"] body.is-authenticated :is(.qm-chip-btn,.qm-theme) { color:#c3ccdc; background:#1b2330; border-color:#303a49; box-shadow:none; }
[data-theme="dark"] body.is-authenticated .qm-theme__btn.is-active { color:#c1ccff; background:#303a49; }
