/* Qivity Home. Tokens match the products' (the launcher reads --bg2, --b2, --t, --t3, --ac). */
:root {
  --bg: #f6f6f9; --bg2: #ffffff; --b: #e6e6ec; --b2: #dcdce4; --t: #18181b; --t2: #3f3f46; --t3: #6b6b76;
  --ac: #685fce; --ac2: #5249b8; --acb: rgba(104, 95, 206, .08); --acbr: rgba(104, 95, 206, .3);
  --ch: rgba(24, 24, 27, .04); --gr: #16a34a; --sh: 0 8px 24px rgba(15, 15, 25, .08); --r: 14px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #131318; --bg2: #1b1b22; --b: #2a2a33; --b2: #34343e; --t: #ececf1; --t2: #c9c9d2; --t3: #9a9aa6;
  --ac: #8b83e6; --ac2: #a7a0ef; --acb: rgba(139, 131, 230, .12); --acbr: rgba(139, 131, 230, .35);
  --ch: rgba(255, 255, 255, .05); --sh: 0 8px 28px rgba(0, 0, 0, .4);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 14px/1.5 Inter, "Segoe UI", system-ui, -apple-system, sans-serif; background: var(--bg); color: var(--t); }
body.locked { overflow: hidden; }
a { color: inherit; }
.muted { color: var(--t3); }
.small { font-size: 12.5px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--bg2); padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }

/* top bar */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; height: 60px; padding: 0 24px; background: var(--bg2); border-bottom: 1px solid var(--b); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand-t { font-size: 16px; font-weight: 600; }
.brand-h { color: var(--ac); font-weight: 500; }
.search { position: relative; display: flex; align-items: center; flex: 1; max-width: 520px; margin: 0 auto; }
.search svg { position: absolute; left: 12px; color: var(--t3); pointer-events: none; }
.search input { width: 100%; height: 38px; padding: 0 14px 0 36px; border-radius: 999px; border: 1px solid var(--b2); background: var(--bg); color: var(--t); font: inherit; }
.search input:focus { outline: none; border-color: var(--ac); box-shadow: 0 0 0 3px var(--acb); }
.top-end { display: flex; align-items: center; gap: 8px; flex: none; }
.icon-btn { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--b2); background: var(--bg2); color: var(--t2); cursor: pointer; }
.icon-btn:hover, .icon-btn:focus-visible { border-color: var(--ac); color: var(--ac); outline: none; }
.user { position: relative; }
.user-chip { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--b2); background: var(--acb); color: var(--ac2); cursor: pointer; padding: 0; }
.user-chip:focus-visible { outline: 2px solid var(--ac); outline-offset: 2px; }
.av { font-size: 12px; font-weight: 600; }
.user-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 240px; padding: 8px; background: var(--bg2); border: 1px solid var(--b); border-radius: 12px; box-shadow: var(--sh); }
.um-head { padding: 6px 8px 10px; border-bottom: 1px solid var(--b); margin-bottom: 6px; }
.um-name { font-weight: 600; }
.um-mail, .um-org { font-size: 12.5px; color: var(--t3); }
.um-item { display: block; padding: 8px; border-radius: 8px; text-decoration: none; font-size: 13px; }
.um-item:hover, .um-item:focus-visible { background: var(--ch); outline: none; }

/* page */
main { max-width: 1120px; margin: 0 auto; padding: 28px 24px 64px; outline: none; }
.hello h1 { margin: 0; font-size: 26px; font-weight: 600; }
.hello p { margin: 4px 0 0; }
.status { margin: 18px 0 0; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--acbr); background: var(--acb); font-size: 13px; }
.block { margin-top: 26px; }
.block-t { margin: 0 0 12px; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--t3); }

/* your applications */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.card { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 16px; min-height: 96px; background: var(--bg2); border: 1px solid var(--b); border-radius: var(--r); text-decoration: none; transition: border-color .12s, box-shadow .12s; }
a.card:hover, a.card:focus-visible { border-color: var(--acbr); box-shadow: var(--sh); outline: none; }
.card .tick { position: absolute; top: 12px; left: 50px; }
.card-t { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.card-n { font-size: 15px; font-weight: 600; }
.card-d { font-size: 12.5px; color: var(--t3); line-height: 1.4; margin-top: 2px; }
.card-open { align-self: center; font-size: 12.5px; font-weight: 500; color: var(--ac); }
.skel { min-height: 96px; background: var(--ch); border-color: transparent; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; } }
.app-ic { width: 40px; height: 40px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.app-ic.lg { width: 48px; height: 48px; border-radius: 13px; }
.tick { width: 16px; height: 16px; border-radius: 50%; background: var(--gr); display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px var(--bg2); flex: none; }

/* categories */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 34px; padding-bottom: 12px; border-bottom: 1px solid var(--b); }
.tab { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--b2); background: var(--bg2); color: var(--t2); text-decoration: none; font-size: 13px; }
.tab:hover, .tab:focus-visible { border-color: var(--acbr); outline: none; }
.tab.on { background: var(--acb); border-color: var(--acbr); color: var(--ac2); font-weight: 500; }
.cat { margin-top: 26px; }
.cat-t { margin: 0 0 6px; padding-bottom: 10px; font-size: 19px; font-weight: 500; border-bottom: 1px solid var(--b); }
.rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 36px; }
.row { display: flex; gap: 14px; padding: 16px 4px; }
.row-t { min-width: 0; }
.row-l { display: flex; align-items: center; gap: 8px; }
.row-n { font-size: 16px; font-weight: 500; color: var(--ac); text-decoration: none; }
.row-n:hover, .row-n:focus-visible { text-decoration: underline; outline: none; }
.row-d { margin: 4px 0 6px; color: var(--t2); line-height: 1.5; }
.row-more { font-size: 12.5px; color: var(--t3); }
.row-more:hover, .row-more:focus-visible { color: var(--ac); }

/* details drawer */
.drawer-wrap[hidden] { display: none; }
.drawer-scrim { position: fixed; inset: 0; background: rgba(15, 15, 25, .3); z-index: 40; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(460px, 100vw); z-index: 41; overflow: auto; padding: 28px; background: var(--bg2); border-left: 1px solid var(--b); box-shadow: -12px 0 32px rgba(15, 15, 25, .14); }
.d-close { position: absolute; top: 16px; right: 16px; border: 0; }
.d-head { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.d-head h2 { margin: 0; font-size: 20px; font-weight: 600; }
.d-desc { margin: 18px 0 0; color: var(--t2); line-height: 1.6; }
.d-sub { margin: 22px 0 8px; font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--t3); }
.d-features { margin: 0; padding-left: 18px; line-height: 1.9; }
.d-action { margin-top: 26px; }
.btn-p { display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border-radius: 10px; background: var(--ac); color: #fff; text-decoration: none; font-weight: 500; }
.btn-p:hover, .btn-p:focus-visible { background: var(--ac2); outline: none; }

@media (max-width: 760px) {
  .top { gap: 10px; padding: 0 12px; }
  .brand-t { display: none; }
  main { padding: 20px 16px 48px; }
  .rows { grid-template-columns: 1fr; }
  #theme { display: none; }
}
@media (prefers-reduced-motion: reduce) { .skel { animation: none; } .card { transition: none; } }
