/* Khazana v6 (final preview) — styles for the new pages and pieces, in the same v5 look. */

.pill.demo6 { background: transparent; color: var(--muted); border: 1px dashed var(--line-2); }
.conf6 { display: inline-flex; margin-bottom: 4px; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: var(--surface-3); color: var(--ink-2); }
.conf6.hi { background: var(--good-soft); color: var(--good); }
.conf6.lo { background: var(--warn-soft); color: var(--warn); }

/* ---------- Ways to save ---------- */
.ways6 { gap: 12px; }
.w6 { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.w6-h { display: flex; gap: 12px; align-items: flex-start; }
.w6-h b { display: block; font-size: 15.5px; font-weight: 720; letter-spacing: -.01em; }
.w6-h small { display: block; color: var(--muted); font-size: 13px; }
.w6-h .pill { margin-left: auto; flex: none; }
.tg6 { display: flex; flex-direction: column; gap: 6px; max-height: 220px; overflow-y: auto; padding: 10px; border-radius: 14px; background: color-mix(in srgb, #2aabee 8%, var(--surface-2)); }
.tg6 p { max-width: 85%; padding: 8px 11px; border-radius: 14px 14px 14px 4px; background: var(--surface); font-size: 14px; box-shadow: var(--sh-1); align-self: flex-start; overflow-wrap: anywhere; }
.tg6 p.me { align-self: flex-end; background: #2aabee; color: #fff; border-radius: 14px 14px 4px 14px; }
.drop6.over { border-color: var(--brand); background: var(--brand-soft); }
.ext6 { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); box-shadow: var(--sh-2); }
.ext6-bar { display: flex; align-items: center; gap: 8px; }
.logo-mark.sm6 { width: 26px; height: 26px; border-radius: 8px; }
.logo-mark.sm6 svg { width: 15px; height: 15px; }

/* ---------- health, storage, admin ---------- */
.hb6 { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.hb6 li { display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 10px; align-items: center; }
.hb6 i { grid-row: span 2; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; }
.hb6 i svg { width: 13px; height: 13px; stroke-width: 3; }
.hb6 li.ok i { background: var(--good); border-color: var(--good); color: #fff; }
.hb6 li.run i { border-color: var(--brand); border-top-color: transparent; animation: spin5 .8s linear infinite; }
.hb6 b { font-size: 14px; }
.hb6 small { font-size: 12.5px; color: var(--muted); }
.big6 { font-size: 30px; font-weight: 780; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.sbar6 { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: var(--surface-3); margin: 12px 0 10px; }
.sbar6 i { display: block; height: 100%; }
.sbar6 i + i { box-shadow: -2px 0 0 var(--surface); }
.k-video { background: #d2445b; } .k-photo { background: #8b4fd1; } .k-backup { background: #2a5db0; } .k-other { background: #8b8d98; }
.lg6 { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--ink-2); margin-bottom: 8px; }
.lg6 i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.ad6 { display: flex; flex-direction: column; gap: 9px; }
.ad6 div { display: grid; grid-template-columns: 112px minmax(0, 1fr) 36px; gap: 10px; align-items: center; font-size: 13.5px; }
.ad6 i { display: block; height: 10px; border-radius: 5px; background: var(--c); }
.ad6 b { text-align: right; font-variant-numeric: tabular-nums; }
.tr6 { display: flex; align-items: flex-end; gap: 3px; height: 30px; width: 88px; }
.tr6 i { flex: 1; border-radius: 2px; background: var(--brand); opacity: .55; }
.tr6 i.z { background: var(--surface-3); opacity: 1; }
.tr6 i:nth-last-child(-n+2):not(.z) { opacity: 1; }
select.input.sm6 { height: 38px; margin-top: 6px; font-size: 14px; width: 100%; max-width: 380px; }
.rp6 { margin-bottom: 12px; }
.auto6 { margin-bottom: 12px; }
.auto6 input[type="range"] { accent-color: var(--brand); }
.sl6 { margin-bottom: 12px; }
.xs6 { width: 20px; height: 20px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--brand-soft); color: var(--brand-text); font-size: 11px; font-weight: 800; }
.log6 { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--ink-2); }
.log6 small { color: var(--muted); margin-left: 6px; }
.pre.rss6 { max-height: 50vh; overflow: auto; font-size: 12px; white-space: pre-wrap; word-break: break-all; }

/* ---------- vault: colour search and search by meaning ---------- */
.sw6 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 0; }
.swatch6 { width: 32px; height: 32px; border-radius: 50%; border: 3px solid var(--surface); background: var(--sw); box-shadow: 0 0 0 1px var(--line-2); padding: 0; }
.swatch6[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ink); }
.mean6 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }

/* ---------- the preview player ---------- */
.pl6 { display: flex; flex-direction: column; gap: 8px; margin-bottom: 6px; }
.pl6-screen { position: relative; display: grid; place-items: center; padding: 16px; border-radius: 18px; background: #050607; overflow: hidden; }
.pl6-screen .cover { width: min(58%, 210px); }
.pl6-big { position: absolute; width: 58px; height: 58px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: #111; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); transition: opacity .2s, transform .25s var(--spring5); }
.pl6-big svg { width: 24px; height: 24px; fill: currentColor; }
.pl6.on .pl6-big { opacity: 0; transform: scale(.8); pointer-events: none; }
.pl6.on .pl6-screen .cover { animation: kb6 7s ease-in-out infinite alternate; }
@keyframes kb6 { to { transform: scale(1.05); } }
.pl6-bar { display: flex; align-items: center; gap: 10px; }
.pl6-track { position: relative; flex: 1; height: 6px; border-radius: 3px; background: var(--surface-3); cursor: pointer; }
.pl6-track::after { content: ""; position: absolute; inset: -10px 0; }
.pl6-track i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: inherit; background: var(--brand); }
.pl6-track b { position: absolute; top: -3px; width: 2px; height: 12px; margin-left: -1px; background: var(--ink-2); opacity: .4; border-radius: 1px; }
.pl6-track:focus-visible { outline: 2px solid var(--brand); outline-offset: 6px; }
.pl6-t { font-variant-numeric: tabular-nums; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.chap5 li { display: block; }
.chap6 { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 8px; width: 100%; border: 0; background: none; padding: 5px 6px; border-radius: 8px; text-align: left; font-size: 14px; color: inherit; }
.chap6:hover { background: var(--surface-3); }
.now6 { background: var(--brand-soft) !important; color: var(--brand-text); }

/* ---------- reels feed ---------- */
.view[data-r="feed"] { max-width: 560px; padding-top: 4px; }
.fdw6 { position: relative; }
.fd6-head { position: absolute; z-index: 3; top: 12px; left: 12px; right: 12px; display: flex; align-items: center; gap: 10px; color: #fff; pointer-events: none; }
.fd6-head > * { pointer-events: auto; }
.fd6-head b { font-size: 17px; font-weight: 750; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
.fd6-head small { margin-left: auto; font-size: 12px; opacity: .75; }
.feed6 { height: calc(100dvh - 176px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); min-height: 440px; overflow-y: auto; scroll-snap-type: y mandatory; border-radius: 24px; background: #050607; scrollbar-width: none; overscroll-behavior: contain; }
.feed6::-webkit-scrollbar { display: none; }
@media (min-width: 960px) { .feed6 { height: calc(100dvh - 64px); } }
.fd6 { position: relative; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; color: #fff; }
.fd6-stage { position: absolute; inset: 0; display: grid; place-items: center; padding: 56px 72px 132px 18px; cursor: pointer; }
.fd6-stage .cover { width: min(100%, 330px); box-shadow: 0 24px 60px rgba(0, 0, 0, .5); }
.fd6.play .fd6-stage .cover { animation: kb6 9s ease-in-out infinite alternate; }
.fd6.pause .fd6-stage .cover { animation-play-state: paused; }
.fd6-pp { position: absolute; width: 64px; height: 64px; border-radius: 50%; background: rgba(0, 0, 0, .5); display: grid; place-items: center; opacity: 0; transition: opacity .2s; pointer-events: none; }
.fd6-pp svg { width: 26px; height: 26px; fill: #fff; }
.fd6.pause .fd6-pp { opacity: 1; }
.fd6-meta { position: absolute; z-index: 2; left: 16px; right: 84px; bottom: 26px; text-shadow: 0 1px 10px rgba(0, 0, 0, .6); }
.fd6-meta b { font-size: 14px; }
.fd6-meta p { font-size: 16px; font-weight: 680; line-height: 1.3; margin: 4px 0 10px; }
.fd6-meta .chip { background: rgba(255, 255, 255, .16); color: #fff; border-color: transparent; text-shadow: none; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.fd6-side { position: absolute; z-index: 2; right: 12px; bottom: 26px; display: flex; flex-direction: column; gap: 14px; }
.fd6-b { width: 54px; height: 54px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; -webkit-backdrop-filter: blur(12px) saturate(160%); backdrop-filter: blur(12px) saturate(160%); }
.fd6-b svg { width: 20px; height: 20px; }
.fd6-b small { font-size: 9.5px; font-weight: 650; }
.fd6-head .fd6-b { width: 40px; height: 40px; }
.fd6-prog { position: absolute; left: 16px; right: 16px; bottom: 12px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.fd6-prog i { display: block; height: 100%; width: 0; background: #fff; }
.fd6.play .fd6-prog i { animation: prog6 var(--dur) linear infinite; }
.fd6.pause .fd6-prog i { animation-play-state: paused; }
@keyframes prog6 { to { width: 100%; } }

/* ---------- places map ---------- */
.map6 { margin-top: 14px; padding: 12px; }
.map6 svg { display: block; width: 100%; max-width: 620px; height: auto; margin: 0 auto; border-radius: 14px; background: color-mix(in srgb, #2f6fe4 7%, var(--surface-2)); }
.map6 .g6 line { stroke: var(--line); stroke-width: 1; }
.pin6 { cursor: pointer; outline: none; }
.pin6 circle { fill: var(--brand); stroke: var(--surface); stroke-width: 3; }
.pin6 text { fill: #fff; font: 800 12px/1 var(--font, system-ui); pointer-events: none; }
.pin6.want circle { fill: #2f6fe4; }
.pin6.been circle { fill: var(--muted); }
.pin6:hover circle, .pin6:focus-visible circle { stroke: var(--ink); }
.map6-l { list-style: none; margin: 10px 0 6px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px 12px; }
.map6-l li { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; }
.map6-l b { width: 20px; height: 20px; flex: none; border-radius: 50%; background: var(--brand); color: #fff; font-size: 11px; display: grid; place-items: center; }
.map6-l small { display: block; color: var(--muted); font-size: 12px; }

/* ---------- groceries and prices ---------- */
.st6 { margin: 4px 0 10px; gap: 10px; }
.gr5 li { display: flex; align-items: center; gap: 8px; }
.gr5 li > label { flex: 1; min-width: 0; }
.ord6 { flex: none; height: 34px; text-decoration: none; }
.pc6 { margin-bottom: 12px; }
.cmp6 { gap: 6px; margin-top: 2px; }
.cmp6 .chip { height: 30px; font-size: 12.5px; text-decoration: none; }

/* ---------- appearance ---------- */
.ico6 { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.ico6 button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 12px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); }
.ico6 button[aria-pressed="true"] { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); color: var(--ink); }
.logo-mark.big6 { width: 52px; height: 52px; border-radius: 14px; }
.logo-mark.big6 svg { width: 26px; height: 26px; }
:root[data-ts6="on"] .main, :root[data-ts6="on"] .sheet .sh-body, :root[data-ts6="on"] .side { zoom: var(--ts6); }

/* ---------- offline banner ---------- */
.ofl6 { position: fixed; z-index: 86; left: 50%; top: calc(8px + env(safe-area-inset-top)); transform: translate(-50%, -160%); max-width: calc(100% - 24px); padding: 9px 14px; border-radius: 12px; background: #1a1d22; color: #fff; font-size: 13px; font-weight: 620; box-shadow: 0 10px 28px rgba(0, 0, 0, .25); transition: transform .35s var(--spring5); }
.ofl6.on { transform: translate(-50%, 0); }

/* ---------- laptop: a save card previews itself when you point at it ---------- */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .svc .cover::before { content: ""; position: absolute; left: 0; bottom: 0; z-index: 3; height: 3px; width: 0; background: var(--brand); }
  .svc:hover .cover::before { animation: prog6 4s linear infinite; }
  .svc .cover .cv-win, .svc .cover .cv-glyph, .svc .cover .cv-phone { transition: transform .6s var(--ease); }
  .svc:hover .cover .cv-win, .svc:hover .cover .cv-glyph, .svc:hover .cover .cv-phone { transform: translateY(-3%) scale(1.03); }
}

/* ---------- phone home screen: typing never zooms the page ---------- */
@media (pointer: coarse) { .input, input[type="text"], input[type="url"], input[type="search"], input:not([type]), select, textarea { font-size: max(16px, 1em); } }

@media (prefers-reduced-motion: reduce) {
  .pl6.on .pl6-screen .cover, .fd6.play .fd6-stage .cover { animation: none; }
  .fd6.play .fd6-prog i { animation-duration: 0s; width: 100%; }
  .ofl6 { transition: none; }
}

.kv6 > div { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.kv6 > div:first-child { border-top: 0; padding-top: 0; }
.kv6 > div:last-child { padding-bottom: 0; }
.kv6 span { color: var(--muted); }
.rp6-a { white-space: pre-wrap; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
