/* Tour and the "Where do you want to go?" bar (guide.js). */
.tg { position: fixed; inset: 0; z-index: 400; }
.tg.hidden { display: none; }
.tg-shade { position: fixed; inset: 0; background: transparent; }
.tg-shade.on { background: rgb(5 5 8 / .62); }
.tg-ring { position: fixed; border-radius: 14px; pointer-events: none; box-shadow: 0 0 0 9999px rgb(5 5 8 / .62), 0 0 0 2px #fff, 0 0 26px 4px rgb(255 255 255 / .25); transition: left .28s cubic-bezier(.2,.8,.2,1), top .28s cubic-bezier(.2,.8,.2,1), width .28s, height .28s; }
.tg-pop { position: fixed; width: min(360px, calc(100vw - 24px)); padding: 18px 18px 14px; border-radius: 16px; background: #17171B; border: 1px solid #34343B; color: #EDEDF0;
  box-shadow: 0 24px 60px -18px rgb(0 0 0 / .8); font: 14px/1.5 Archivo, system-ui, sans-serif; transition: left .28s cubic-bezier(.2,.8,.2,1), top .28s cubic-bezier(.2,.8,.2,1); }
.tg-pop.tg-in { animation: tg-in .25s ease-out; }
@keyframes tg-in { from { opacity: 0; transform: translateY(6px); } }
.tg-step { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #8E9BFF; }
.tg-pop h3 { margin: 4px 0 6px; font-size: 17px; color: #fff; }
.tg-text { margin: 0 0 14px; color: #C9C9D0; }
.tg-text b { color: #fff; }
.tg-foot { display: flex; align-items: center; gap: 8px; }
.tg-dots { display: flex; gap: 4px; margin-right: auto; }
.tg-dots i { width: 6px; height: 6px; border-radius: 50%; background: #3A3A42; }
.tg-dots i.on { background: #fff; width: 16px; border-radius: 4px; }
.tg button, .tg-hello button { border: 0; border-radius: 9px; padding: 8px 12px; font: 600 13px/1 Archivo, system-ui, sans-serif; cursor: pointer; }
.tg-next { background: #fff; color: #111; }
.tg-back { background: rgb(255 255 255 / .09); color: #fff; }
.tg-skip { background: none; color: #9A9AA3; padding-inline: 6px !important; }
.tg-skip:hover { color: #fff; }
.tg-hello { position: fixed; right: 18px; bottom: 18px; z-index: 390; display: flex; gap: 12px; width: min(380px, calc(100vw - 32px)); padding: 16px; border-radius: 16px;
  background: #17171B; border: 1px solid #34343B; color: #EDEDF0; font: 14px/1.45 Archivo, system-ui, sans-serif; box-shadow: 0 24px 60px -18px rgb(0 0 0 / .8);
  transform: translateY(20px); opacity: 0; transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .25s; }
.tg-hello.in { transform: none; opacity: 1; }
.tg-hello-ic { font-size: 24px; line-height: 1; }
.tg-hello b { color: #fff; font-size: 15px; }
.tg-hello p { margin: 4px 0 10px; color: #C9C9D0; }
.tg-hello small { display: block; margin-top: 8px; color: #85858E; font-size: 12px; }
.tg-hello-btns { display: flex; gap: 6px; }

.jp { padding: 22px 24px; border-radius: 18px; border: 1px solid var(--line-soft, #26262B); background: linear-gradient(135deg, color-mix(in srgb, var(--im1, #3B5BDB) 16%, var(--surface, #121214)), var(--surface, #121214) 60%); margin-bottom: 16px; }
.jp-head h2 { margin: 0; font-size: 21px; }
.jp-head p { margin: 4px 0 0; color: var(--muted, #A6A6AE); font-size: 14px; }
.jp-box { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 0 14px; height: 52px; border-radius: 14px; background: var(--ground, #0A0A0B); border: 1px solid var(--line, #2E2E34); cursor: text; transition: border-color .15s, box-shadow .15s; }
.jp-box:hover, .jp-box:focus-within { border-color: color-mix(in srgb, var(--im1, #3B5BDB) 70%, #fff 0%); box-shadow: 0 0 0 4px color-mix(in srgb, var(--im1, #3B5BDB) 22%, transparent); }
.jp-box svg { width: 20px; height: 20px; color: var(--muted, #A6A6AE); flex: none; }
.jp-box input { flex: 1; min-width: 0; height: 100%; border: 0 !important; outline: 0; background: none !important; box-shadow: none !important; color: inherit; font: 500 16px Archivo, system-ui, sans-serif; padding: 0 !important; }
.jp-box kbd { font: 600 11px Archivo, system-ui, sans-serif; color: var(--muted, #A6A6AE); border: 1px solid var(--line, #2E2E34); border-radius: 6px; padding: 3px 6px; }
.jp-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; margin-top: 12px; }
.jp-link { display: flex; align-items: center; gap: 10px; text-align: left; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-soft, #26262B); background: rgb(255 255 255 / .03); color: inherit; font: inherit; cursor: pointer; transition: background .15s, border-color .15s, transform .15s; }
.jp-link:hover { background: rgb(255 255 255 / .07); border-color: var(--line, #34343B); transform: translateY(-1px); }
.jp-link span:last-child { display: grid; min-width: 0; }
.jp-link b { font-size: 14px; }
.jp-link small { color: var(--muted, #A6A6AE); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jp-ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex: none; background: color-mix(in srgb, var(--im1, #3B5BDB) 22%, transparent); font-size: 16px; }
@media (max-width: 600px) { .jp { padding: 16px; } .jp-box kbd { display: none; } .jp-links { grid-template-columns: 1fr 1fr; } }
html.lite .tg-ring, html.lite .tg-pop, html.lite .tg-hello, html.lite .jp-link { transition: none; }

/* Profile menu (guide.js) */
.pf { position: relative; display: inline-flex; }
.pf-btn { display: inline-flex; align-items: center; gap: 4px; padding: 3px 6px 3px 3px; border-radius: 999px; border: 1px solid var(--line, #2E2E34); background: rgb(255 255 255 / .04); color: var(--muted, #A6A6AE); cursor: pointer; }
.pf-btn:hover, .pf-btn[aria-expanded="true"] { background: rgb(255 255 255 / .09); color: #fff; }
.pf-btn img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: #222; }
.pf-btn svg { width: 16px; height: 16px; }
.pf-panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 350; width: 300px; max-height: calc(100vh - 90px); overflow: auto; padding: 6px; border-radius: 16px; background: #151518; border: 1px solid #2F2F36; box-shadow: 0 24px 60px -18px rgb(0 0 0 / .8); color: #EDEDF0; font: 14px/1.35 Archivo, system-ui, sans-serif; text-align: left; }
.pf-panel.hidden { display: none; }
.pf-head { display: flex; align-items: center; gap: 10px; padding: 10px; }
.pf-head img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: #222; }
.pf-head span, .pf-row > span { display: grid; justify-items: start; min-width: 0; text-align: left; }
.pf-head b { font-size: 15px; color: #fff; }
.pf-panel small { color: #8F8F98; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-sec { border-top: 1px solid #26262C; padding: 6px 0; }
.pf-sec h4 { margin: 4px 10px 4px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #77777F; font-weight: 700; }
.pf-scroll { max-height: 200px; overflow: auto; }
.pf-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 10px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; text-decoration: none; }
.pf-row:hover { background: rgb(255 255 255 / .06); }
.pf-row b { font-weight: 600; font-size: 13.5px; color: #F2F2F5; }
.pf-dash.here { background: rgb(255 255 255 / .05); }
.pf-dash.here small { color: #7FD8A6; }
.pf-dot { flex: none; min-width: 38px; height: 24px; padding: 0 5px; border-radius: 7px; display: grid; place-items: center; font: 700 10px/1 Archivo, system-ui, sans-serif; color: #fff; background: color-mix(in srgb, var(--c) 70%, #111); }
.pf-switch { justify-content: space-between; }
.pf-tog { flex: none; width: 34px; height: 20px; border-radius: 999px; background: #3A3A42; position: relative; transition: background .15s; }
.pf-tog::after { content: ''; position: absolute; left: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .15s; }
.pf-tog.on { background: #3BB273; }
.pf-tog.on::after { transform: translateX(14px); }
.pf-out b { color: #FF8A8F; }

/* The old avatar and log-out links: the profile menu replaces them. */
.dd-top-me #dd-avatar, .dd-top-me > a[href*="logout"], .cv-me #cv-avatar, .cv-me #cv-name, .cv-me > a[href*="logout"], .p-top-right .p-user-menu { display: none !important; }
.topbar .pf { margin-left: 10px; }
/* Above the holiday effects while the menu is open. */
.dd-top:has(.pf-panel:not(.hidden)), .topbar:has(.pf-panel:not(.hidden)), .cv-top:has(.pf-panel:not(.hidden)), .p-top:has(.pf-panel:not(.hidden)) { z-index: 360 !important; }
.pf-panel span { display: grid !important; }
