/* Nook — "try it right here": an HTML model of Nook's window (Find Images, Ask, Quick Search), plus the
   page's "Describe it" examples and "Words inside images" language card. Loaded only on Nook's page. */

/* ───────── The window ───────── */
.nk {
  --nk-bg: #f3f1ec; --nk-side: #ebe8e1; --nk-field: #fff; --nk-card2: #ece9e3; --nk-line: rgba(40, 32, 22, .11); --nk-ink: #1f1d1a; --nk-mut: #78736b;
  --nk-acc: #6e4ff0; --nk-acc-ink: #5b3ee0; --nk-sel: rgba(110, 79, 240, .13); --nk-ok: #2f9a6d;
  height: 640px; display: grid; grid-template-rows: 52px minmax(0, 1fr); background: var(--nk-bg); color: var(--nk-ink); font-family: var(--font); font-size: 13px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .nk {
  --nk-bg: #1c1b1f; --nk-side: #242328; --nk-field: #26252b; --nk-card2: #2b2a31; --nk-line: rgba(255, 255, 255, .09); --nk-ink: #f1eee9; --nk-mut: #9d98a2;
  --nk-acc: #8c72ff; --nk-acc-ink: #b3a1ff; --nk-sel: rgba(164, 141, 255, .18); --nk-ok: #4fd18a; } }
:root[data-theme="dark"] .nk {
  --nk-bg: #1c1b1f; --nk-side: #242328; --nk-field: #26252b; --nk-card2: #2b2a31; --nk-line: rgba(255, 255, 255, .09); --nk-ink: #f1eee9; --nk-mut: #9d98a2;
  --nk-acc: #8c72ff; --nk-acc-ink: #b3a1ff; --nk-sel: rgba(164, 141, 255, .18); --nk-ok: #4fd18a; }
.nk button { font: inherit; color: inherit; }
.nk .ic { width: 16px; height: 16px; flex: none; }
.nk kbd { font-family: var(--font-mono); font-size: 10.5px; padding: 1px 5px; border-radius: 5px; box-shadow: inset 0 0 0 1px var(--nk-line), 0 1px 0 var(--nk-line); color: var(--nk-mut); background: var(--nk-field); }
.nk .kick { margin: 0; font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--nk-mut); }
.nk-serif { margin: 2px 0 14px; font-family: var(--font-serif); font-weight: 700; font-size: 26px; letter-spacing: -.01em; line-height: 1.15; }
.nk-serif em { font-style: normal; color: var(--nk-acc-ink); }
.nk-serif.sm { font-size: 22px; margin-bottom: 4px; }

.nk-top { display: grid; grid-template-columns: 210px minmax(0, 1fr) auto auto; align-items: center; gap: 4px; padding-right: 12px; border-bottom: 1px solid var(--nk-line); user-select: none; -webkit-user-select: none; }
.nk-top .lights { padding-left: 18px; }
.nk-ttl { display: flex; flex-direction: column; min-width: 0; padding-left: 16px; }
.nk-ttl b { font-size: 13.5px; font-weight: 600; color: var(--nk-mut); }
.nk-ttl small { font-size: 11px; color: var(--nk-mut); opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nk-tb { width: 32px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 7px; background: none; color: var(--nk-mut) !important; cursor: pointer; }
.nk-tb:hover, .nk-tb[aria-pressed="true"] { background: color-mix(in srgb, var(--nk-ink) 7%, transparent); }
.nk-tb .ic { width: 17px; height: 17px; }

.nk-body { display: grid; grid-template-columns: 210px minmax(0, 1fr) auto; min-height: 0; }
.nk-side { display: flex; flex-direction: column; gap: 1px; padding: 8px 10px; background: var(--nk-side); border-right: 1px solid var(--nk-line); overflow-y: auto; min-height: 0; scrollbar-width: none; user-select: none; -webkit-user-select: none; }
.nk-side .sec { margin: 12px 10px 3px; font-size: 11px; font-weight: 600; color: var(--nk-mut); }
.nk-nav { display: flex; align-items: center; gap: 9px; width: 100%; padding: 5px 10px; border: 0; border-radius: 7px; background: none; text-align: left; cursor: pointer; font-size: 13px; }
.nk-nav .ic { color: var(--nk-mut); }
.nk-nav span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nk-nav small { margin-left: auto; font-size: 11.5px; color: var(--nk-mut); }
.nk-nav:hover { background: color-mix(in srgb, var(--nk-ink) 5%, transparent); }
.nk-nav[aria-current="true"] { background: var(--nk-sel); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nk-acc) 22%, transparent); }
.nk-nav[aria-current="true"] .ic, .nk-nav[aria-current="true"] small { color: var(--nk-acc-ink); }
.nk-status { margin: auto 0 0; padding: 8px 10px; border-radius: 9px; background: color-mix(in srgb, var(--nk-ink) 5%, transparent); font-size: 11.5px; font-weight: 600; display: grid; grid-template-columns: auto 1fr; gap: 0 7px; align-items: center; }
.nk-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--nk-ok); }
.nk-status small { grid-column: 2; font-weight: 400; color: var(--nk-mut); }

.nk-main { overflow-y: auto; min-height: 0; padding: 22px 26px 30px; scrollbar-width: thin; position: relative; }
.nk-res { margin: 16px -26px 0; padding: 18px 26px 0; border-top: 1px solid var(--nk-line); }
.nk-head:empty + .nk-res { margin-top: -22px; border-top: 0; }

/* Ask bar (Home, Find Images, Quick Search) */
.nk-askbar { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px; border-radius: 14px; background: var(--nk-field); box-shadow: 0 0 0 1px var(--nk-line), 0 3px 12px rgba(0, 0, 0, .05); }
.nk-askbar:focus-within { box-shadow: 0 0 0 1.5px var(--nk-acc), 0 0 0 5px color-mix(in srgb, var(--nk-acc) 16%, transparent); }
.nk-askbar > .ic { width: 18px; height: 18px; color: var(--nk-mut); }
.nk-askbar .k { flex: none; }
.nk-askbar > input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; font: 500 16px var(--font); color: var(--nk-ink); }
.nk-askbar > input::placeholder, .nk-field input::placeholder { color: var(--nk-mut); opacity: .85; font-weight: 400; }
.nk-field { position: relative; flex: 1; min-width: 0; height: 100%; }
.nk-field input, .nk-mirror { margin: 0; padding: 0; border: 0; font: 500 16px/48px var(--font); letter-spacing: 0; white-space: pre; }
.nk-mirror { position: absolute; inset: 0; overflow: hidden; color: var(--nk-ink); pointer-events: none; }
.nk-field input { position: relative; display: block; width: 100%; height: 100%; background: none; color: transparent; -webkit-text-fill-color: transparent; caret-color: var(--nk-ink); outline: none; }
.nk-field input::placeholder { -webkit-text-fill-color: var(--nk-mut); }
.nk .tk { border-radius: 6px; background: color-mix(in srgb, var(--c) 20%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 20%, transparent), 0 0 0 3.5px color-mix(in srgb, var(--c) 30%, transparent); }
.nk-clear { display: grid; place-items: center; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; background: color-mix(in srgb, var(--nk-mut) 45%, transparent); color: var(--nk-bg) !important; cursor: pointer; }
.nk-clear .ic { width: 11px; height: 11px; stroke-width: 2.4; }
.nk-clear[hidden], .nk .k[hidden] { display: none; }

.nk-try { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 12px 0 0; }
.nk-try > span { color: var(--nk-mut); margin-right: 2px; }
.nk-try button { padding: 4px 11px; border: 0; border-radius: 999px; background: var(--nk-field); box-shadow: inset 0 0 0 1px var(--nk-line); font-size: 12.5px; cursor: pointer; }
.nk-try button:hover { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nk-acc) 55%, transparent); color: var(--nk-acc-ink); }
.nk-toks { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin: 12px 0 0; }
.nk-toks b { font-family: var(--font-serif); font-size: 15px; }
.nk-toks > span { color: var(--nk-mut); margin-right: 2px; }
.nk-toks .tok { display: inline-flex; align-items: center; gap: 6px; padding: 3px 7px 3px 9px; border: 0; border-radius: 999px; font-size: 12px; font-weight: 600; cursor: pointer; background: color-mix(in srgb, var(--c) 13%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 30%, transparent); }
.nk-toks .tok::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.nk-toks .tok .ic { width: 10px; height: 10px; opacity: .6; stroke-width: 2; }
.nk-toks .tok:hover .ic { opacity: 1; }

.nk-home-h { text-align: center; margin: 8px 0 16px; }
.nk-home-h .nk-serif { font-size: 30px; margin: 4px 0 0; }
.nk-home-h[hidden] { display: none; }
.nk-head:has(.nk-home-h) .nk-askbar, .nk-head:has(.nk-home-h) .nk-try { max-width: 680px; margin-left: auto; margin-right: auto; justify-content: center; }
.nk-try[hidden] { display: none; }
.nk-lately { margin: 0 0 10px; color: var(--nk-mut); }
.nk-lately b { font-family: var(--font-serif); font-size: 18px; color: var(--nk-ink); margin-right: 6px; }
.nk-day { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-top: 1px solid var(--nk-line); }
.nk-dh { margin: 0; font-family: var(--font-serif); font-size: 16px; font-weight: 700; }
.nk-dh small { display: block; font-family: var(--font); font-weight: 400; font-size: 11.5px; color: var(--nk-mut); }

.nk-findh { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.nk-findh .nk-serif { margin-bottom: 12px; }
.nk-read { margin: 0; display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--nk-mut); white-space: nowrap; }
.nk-read i { width: 6px; height: 6px; border-radius: 50%; background: var(--nk-ok); }
.nk-findbar { max-width: 760px; }
.nk-findbar[hidden], .nk-modes[hidden], [data-findtry][hidden] { display: none; }
.nk-modes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; max-width: 760px; }
.nk-modes > span { display: flex; flex-wrap: wrap; gap: 6px; }
.nk-modes button { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border: 0; border-radius: 8px; background: var(--nk-field); box-shadow: inset 0 0 0 1px var(--nk-line); font-size: 12.5px; font-weight: 500; cursor: pointer; }
.nk-modes button .ic { width: 14px; height: 14px; color: var(--nk-mut); }
.nk-modes button[aria-pressed="true"] { background: var(--nk-sel); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nk-acc) 40%, transparent); color: var(--nk-acc-ink); }
.nk-modes button[aria-pressed="true"] .ic { color: var(--nk-acc-ink); }
.nk-modes .favbtn { margin-left: auto; }
.nk-simbar { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 14px; background: var(--nk-field); box-shadow: 0 0 0 1px var(--nk-line); }
.nk-simbar .nk-thumb.s { width: 64px; flex: none; }
.nk-simbar > span > b { display: block; font-size: 13.5px; }
.nk-simbar > span > small { color: var(--nk-mut); font-size: 11.5px; }
.nk-simbar .nk-btn { margin-left: auto; flex: none; }

/* Results */
.nk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(146px, 1fr)); gap: 18px 16px; }
.nk-card { display: flex; flex-direction: column; gap: 5px; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; min-width: 0; animation: nkIn .4s var(--ease) var(--d, 0ms) both; }
@keyframes nkIn { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.nk-card.kept { animation: none; }
.nk-card:focus-visible { outline: none; }
.nk-thumb { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--nk-card2); box-shadow: 0 0 0 1px var(--nk-line), 0 2px 8px rgba(0, 0, 0, .07); transition: box-shadow .15s; }
.nk-card:hover .nk-thumb { box-shadow: 0 0 0 1px color-mix(in srgb, var(--nk-acc) 40%, transparent), 0 4px 14px rgba(0, 0, 0, .1); }
.nk-card[aria-selected="true"] .nk-thumb, .nk-card:focus-visible .nk-thumb { box-shadow: 0 0 0 2.5px var(--nk-acc), 0 0 0 6px color-mix(in srgb, var(--nk-acc) 22%, transparent); }
.nk-thumb .fav { position: absolute; right: 6px; bottom: 6px; z-index: 2; width: 19px; height: 19px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; color: #fff; background: var(--nk-acc); box-shadow: 0 0 0 1.5px #fff; }
.nk-card .nm { position: relative; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; padding-left: 12px; font-size: 12.5px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.nk-card .nm i { position: absolute; left: 1px; top: .42em; width: 6px; height: 6px; border-radius: 50%; }
.nk-card .why, .nk-qs-row .t i, .nk-ql .cap i, .nk-qs-pv > p i { font-family: var(--font-serif); font-style: italic; color: var(--nk-mut); }
.nk-card .why { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; padding-left: 12px; margin-top: -2px; font-size: 12px; line-height: 1.3; }
.nk-empty { text-align: center; padding: 34px 16px; color: var(--nk-mut); }
.nk-empty .o { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; background: var(--nk-field); box-shadow: 0 0 0 1px var(--nk-line); }
.nk-empty .o .ic { width: 22px; height: 22px; }
.nk-empty .h { margin: 0 0 4px; font-family: var(--font-serif); font-size: 20px; font-weight: 700; color: var(--nk-ink); }
.nk-empty p { margin: 0 auto 14px; max-width: 380px; }
.nk-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 6px 14px; border: 0; border-radius: 9px; background: var(--nk-acc); color: #fff !important; font-weight: 600 !important; font-size: 13px; cursor: pointer; }
.nk-btn:hover { filter: brightness(1.07); }
.nk-btn.ghost { background: var(--nk-field); color: var(--nk-ink) !important; box-shadow: inset 0 0 0 1px var(--nk-line); font-weight: 500 !important; }
.nk-btn .ic { width: 14px; height: 14px; }
.nk-btn.sq { width: 36px; padding: 6px 0; }
.nk-btn.del { margin-left: auto; color: #d0453e !important; }
.nk-panel { max-width: 580px; }
.nk-fine { color: var(--nk-mut); font-size: 12px; margin: 8px 0 14px; }
.nk-ph { font-family: var(--font-serif); font-size: 18px; font-weight: 700; margin: 0 0 10px; }
.nk-dupe { margin: 0 0 10px; padding: 12px 14px; border-radius: 12px; background: var(--nk-field); box-shadow: 0 0 0 1px var(--nk-line); }
.nk-dupe p { margin: 0 0 6px; }
.nk-dupe small { color: var(--nk-mut); }
.nk-dupe label { display: flex; gap: 8px; align-items: center; padding: 3px 0; cursor: pointer; }
.nk-dupe input { accent-color: var(--nk-acc); }
.nk-clean { margin: 0 0 8px; border-radius: 12px; background: var(--nk-field); box-shadow: 0 0 0 1px var(--nk-line); overflow: hidden; }
.nk-clean .cr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; width: 100%; padding: 11px 14px; border: 0; background: none; text-align: left; cursor: pointer; }
.nk-clean .cr small { grid-row: 2; color: var(--nk-mut); }
.nk-clean .cr > span { grid-row: 1 / 3; grid-column: 2; align-self: center; font-weight: 600; }
.nk-clean .rv { padding: 0 14px 12px; border-top: 1px solid var(--nk-line); }
.nk-clean .rv p { margin: 8px 0; display: flex; flex-direction: column; }
.nk-clean .rv small { color: var(--nk-mut); }

/* Inspector */
.nk-insp { width: 270px; display: flex; flex-direction: column; gap: 12px; padding: 14px; border-left: 1px solid var(--nk-line); overflow-y: auto; min-height: 0; scrollbar-width: thin; }
.nk-insp[hidden] { display: none; }
.nk-pv { position: relative; width: 100%; aspect-ratio: var(--ar, 4 / 3); border-radius: 12px; overflow: hidden; background: var(--nk-card2); box-shadow: 0 0 0 1px var(--nk-line); flex: none; }
.nk-insp .nk-pv { max-height: 300px; width: min(100%, calc(300px * var(--ar))); margin: 0 auto; }
.nk-pv .more { position: absolute; right: 8px; bottom: 8px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border: 0; border-radius: 999px; font-size: 11.5px !important; font-weight: 600 !important; color: #222 !important; background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); cursor: pointer; box-shadow: 0 1px 4px rgba(0, 0, 0, .2); }
.nk-pv .more .ic { width: 13px; height: 13px; }
.nk-acts { display: flex; gap: 6px; }
.nk-box { padding: 12px; border-radius: 12px; background: var(--nk-field); box-shadow: 0 0 0 1px var(--nk-line); }
.nk-box .lab { display: flex; align-items: center; justify-content: space-between; margin: 0; font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--nk-mut); }
.nk-fav { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border: 0; border-radius: 8px; background: none; box-shadow: inset 0 0 0 1px var(--nk-line); text-transform: none; letter-spacing: 0; font-size: 12px !important; font-weight: 600 !important; color: var(--nk-ink) !important; cursor: pointer; }
.nk-fav .ic { width: 13px; height: 13px; }
.nk-fav[aria-pressed="true"] { background: var(--nk-sel); color: var(--nk-acc-ink) !important; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nk-acc) 40%, transparent); }
.nk-fav[aria-pressed="true"] .ic { fill: currentColor; }
.nk-box .tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 10px 0 0; }
.nk-box .tg { display: inline-flex; align-items: center; gap: 3px; padding: 2px 4px 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: color-mix(in srgb, #d9468f 13%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, #d9468f 30%, transparent); }
.nk-box .tg button { border: 0; background: none; padding: 0 3px; cursor: pointer; color: var(--nk-mut); }
.nk-box .tags input { flex: 1; min-width: 90px; padding: 4px 8px; border: 0; border-radius: 7px; background: color-mix(in srgb, var(--nk-ink) 6%, transparent); color: var(--nk-ink); font: 12px var(--font); outline: none; }
.nk-box .tags input:focus { box-shadow: 0 0 0 1.5px var(--nk-acc); }
.nk-box .coll { display: flex; align-items: center; gap: 6px; margin: 10px 0 0; color: var(--nk-mut); font-size: 12px; }
.nk-box .coll .ic { width: 13px; height: 13px; }
.nk-box.info .kind { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--nk-mut); }
.nk-box.info .kind i { width: 6px; height: 6px; border-radius: 50%; }
.nk-box.info .nm { margin: 4px 0 10px; padding-bottom: 10px; border-bottom: 1px solid color-mix(in srgb, var(--nk-acc) 35%, transparent); font-family: var(--font-serif); font-size: 16px; font-weight: 700; overflow-wrap: anywhere; }
.nk-box dl { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 7px 10px; margin: 0; }
.nk-box dt { font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--nk-mut); padding-top: 2px; }
.nk-box dd { margin: 0; font-size: 12.5px; overflow-wrap: anywhere; }

/* Quick Look */
.nk-ql { position: absolute; inset: 0; z-index: 20; display: grid; place-items: center; padding: 20px; background: rgba(18, 16, 24, .58); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: nkFade .2s both; }
.nk-ql[hidden] { display: none; }
@keyframes nkFade { from { opacity: 0; } }
.nk-ql-box { width: min(620px, 100%); text-align: center; animation: nkIn .28s var(--ease) both; }
.nk-pv.big { width: min(100%, calc(430px * var(--ar))); margin: 0 auto; box-shadow: 0 20px 60px rgba(0, 0, 0, .45); }
.nk-ql .cap { margin: 14px 0 4px; color: #fff; font-size: 14px; }
.nk-ql .cap i, .nk-ql .cap span { color: rgba(255, 255, 255, .75); }
.nk-ql .hint { margin: 0; color: rgba(255, 255, 255, .6); font-size: 12px; }
.nk-ql kbd { background: rgba(255, 255, 255, .12); color: #fff; box-shadow: none; }

/* Quick Search */
.nk-qs { position: absolute; inset: 0; z-index: 30; display: flex; justify-content: center; align-items: flex-start; padding: 40px 16px 16px; background: rgba(12, 10, 20, .28); animation: nkFade .15s both; }
.nk-qs[hidden] { display: none; }
.nk-qs-panel { width: min(600px, 100%); max-height: 100%; display: flex; flex-direction: column; border-radius: 16px; background: var(--nk-bg); box-shadow: 0 0 0 1px var(--nk-line), 0 30px 80px rgba(0, 0, 0, .35); overflow: hidden; animation: nkIn .25s var(--ease) both; }
.nk-qs-field { display: flex; align-items: center; gap: 10px; margin: 12px; padding: 0 14px; height: 50px; border-radius: 13px; background: var(--nk-field); box-shadow: 0 0 0 2px var(--nk-acc), 0 0 0 6px color-mix(in srgb, var(--nk-acc) 15%, transparent); }
.nk-qs-field > .ic { width: 18px; height: 18px; color: var(--nk-acc-ink); }
.nk-qs-field .nk-field input, .nk-qs-field .nk-mirror { font-size: 18px; line-height: 50px; }
.nk-qs-body { flex: 1; min-height: 120px; overflow-y: auto; padding: 4px 8px 8px; border-top: 1px solid var(--nk-line); scrollbar-width: thin; }
.nk-qs-body > .kick { margin: 8px 10px 6px; }
.nk-qs-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; padding: 5px 10px; border: 0; border-radius: 9px; background: none; text-align: left; cursor: pointer; }
.nk-qs-row[aria-selected="true"] { background: var(--nk-sel); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nk-acc) 35%, transparent); }
.nk-qs-row .t { min-width: 0; display: flex; flex-direction: column; }
.nk-qs-row .t b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nk-qs-row small { font-size: 11.5px; color: var(--nk-mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nk-thumb.xs { width: 40px; aspect-ratio: 1; border-radius: 6px; }
.nk-qs-none { padding: 20px 10px; color: var(--nk-mut); text-align: center; }
.nk-qs-pv { padding: 12px; text-align: center; }
.nk-qs-pv .nk-pv { width: min(100%, calc(260px * var(--ar))); margin: 0 auto; }
.nk-qs-pv > p { margin: 10px 0 0; font-size: 13px; }
.nk-qs-pv > p b { font-family: var(--font-serif); font-size: 15px; }
.nk-qs-keys { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; padding: 7px 10px; border-top: 1px solid var(--nk-line); font-size: 11.5px; color: var(--nk-mut); }
.nk-qs-keys button { display: inline-flex; align-items: center; gap: 5px; padding: 3px 6px; border: 0; border-radius: 6px; background: none; color: var(--nk-mut) !important; cursor: pointer; }
.nk-qs-keys button:hover { background: color-mix(in srgb, var(--nk-ink) 6%, transparent); color: var(--nk-ink) !important; }
.nk-qs-keys .r { margin-left: auto; }

/* ───────── Pictures, drawn (they scale with their box) ───────── */
.nk-art { position: absolute; inset: 0; overflow: hidden; container-type: inline-size; }
.nk-art > svg { display: block; width: 100%; height: 100%; }
.nk-art p { margin: 0; }
.nk-hl { color: #1c1a12 !important; border-radius: 2px; background: linear-gradient(#ffd84a, #ffd84a) no-repeat 0 0 / 100% 100%; box-shadow: 0 0 0 .18em #ffd84a, 0 0 0 calc(.18em + 1px) rgba(214, 160, 0, .7); animation: nkMark .55s .1s var(--ease) both; }
@keyframes nkMark { from { background-size: 0 100%; box-shadow: none; } }
.a-receipt { background: repeating-linear-gradient(90deg, #6f4426 0 7%, #7d4d2c 7% 13%, #74472a 13% 20%); }
.a-receipt .cup { position: absolute; right: 5cqw; top: 3cqw; width: 22cqw; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #3b2416 0 36%, #6a4630 37% 42%, #ece8e0 43% 68%, #cfc9be 69%); box-shadow: 0 1.5cqw 3cqw rgba(0, 0, 0, .35); }
.a-receipt .paper { position: absolute; left: 14cqw; top: 9cqw; width: 60cqw; padding: 4cqw 4cqw 5cqw; background: #f7f4ec; color: #2b2620; transform: rotate(-3deg); font: 2.9cqw/1.5 Menlo, var(--font-mono); white-space: nowrap; box-shadow: 0 1cqw 3cqw rgba(0, 0, 0, .35); }
.a-receipt .h { text-align: center; font-weight: 700; font-size: 4.4cqw; letter-spacing: .12em; }
.a-receipt .c { text-align: center; font-size: 2.7cqw; margin-bottom: 2cqw !important; }
.a-receipt .rr { display: flex; justify-content: space-between; gap: 2cqw; }
.a-receipt .rr span:first-child { min-width: 0; overflow: hidden; }
.a-receipt .t { font-weight: 700; margin-top: 2cqw !important; padding-top: 1.5cqw; border-top: 1px dashed #8a8273; font-size: 3.6cqw; }
.a-receipt .bars { height: 5cqw; margin-top: 2cqw !important; background: repeating-linear-gradient(90deg, #222 0 .45cqw, transparent .45cqw 1.1cqw, #222 1.1cqw 1.4cqw, transparent 1.4cqw 2.2cqw); }
.a-menu { background: #6b4a2e; }
.a-menu .board { position: absolute; inset: 4.5cqw; padding: 5cqw 6cqw; border-radius: 1cqw; background: radial-gradient(circle at 30% 20%, #33443b, #1f2924 75%); color: #f2efe6; font: italic 5.4cqw/1.4 var(--font-serif); }
.a-menu .h { font-size: 7.5cqw; font-weight: 700; margin-bottom: 2cqw !important; text-decoration: underline; text-decoration-thickness: .4cqw; text-underline-offset: 1.2cqw; }
.a-menu .nk-hl { color: #1c1a12 !important; }
.a-mood { background: #f6efe4; }
.a-mood > span:not(.dots) { position: absolute; border-radius: 1.5cqw; }
.a-mood .t1 { left: 5cqw; top: 6cqw; width: 44cqw; height: 38cqw; }
.a-mood .t2 { left: 52cqw; top: 6cqw; width: 43cqw; height: 18cqw; }
.a-mood .t3 { left: 72cqw; top: 27cqw; width: 23cqw; height: 34cqw; }
.a-mood b { position: absolute; left: 53cqw; top: 26cqw; font: 700 13cqw/1 var(--font-serif); color: #1c2340; }
.a-mood .dots { position: absolute; left: 5cqw; top: 49cqw; display: flex; gap: 1.6cqw; }
.a-mood .dots i { width: 6cqw; height: 6cqw; border-radius: 50%; }
.a-mood p { position: absolute; left: 5cqw; top: 59cqw; font-size: 3.4cqw; color: #5d5448; font-weight: 600; }
.a-onb { background: linear-gradient(135deg, #efe8ff, #fde7f0); display: flex; align-items: center; justify-content: center; gap: 4%; }
.a-onb .ph { width: 25cqw; height: 52cqw; border: 1.3cqw solid #1e1b2e; border-radius: 4.5cqw; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3cqw; padding: 2cqw; text-align: center; }
.a-onb .ph i { width: 9cqw; height: 9cqw; border-radius: 50%; border: 2.4cqw solid var(--c); }
.a-onb .ph p { font-size: 2.9cqw; font-weight: 700; color: #222; line-height: 1.2; }
.a-onb .ph span { width: 14cqw; height: 3.6cqw; border-radius: 2cqw; background: var(--c); }
.a-onb .p0 { --c: #7b5cff; } .a-onb .p1 { --c: #ee5f93; } .a-onb .p2 { --c: #2bab8f; }
.a-shot { background: linear-gradient(135deg, #d9d2fb, #f5d3e3); }
.a-shot.s-chart { background: linear-gradient(135deg, #f6c8b4, #f2a5a0); }
.a-shot.s-notes { background: linear-gradient(135deg, #c9e0f6, #dfe9f3); }
.a-shot.s-invoice { background: linear-gradient(135deg, #e2e6ec, #cdd5df); }
.a-shot .win { position: absolute; inset: 4cqw 4cqw -3cqw; display: grid; grid-template: 5.5cqw 1fr / 21cqw 1fr; border-radius: 2cqw; overflow: hidden; background: #fff; color: #222; box-shadow: 0 1cqw 4cqw rgba(0, 0, 0, .2); }
.a-shot .bar { grid-column: 1 / 3; display: flex; gap: 1cqw; align-items: center; padding: 0 2.2cqw; background: #f1eff4; }
.a-shot .bar i { width: 1.7cqw; height: 1.7cqw; border-radius: 50%; background: #ff5f57; } .a-shot .bar i:nth-child(2) { background: #febc2e; } .a-shot .bar i:nth-child(3) { background: #28c840; }
.a-shot .sb { padding: 3cqw 2.5cqw; background: #f6f4f8; }
.a-shot .sb b { display: block; height: 1.6cqw; width: 80%; margin-bottom: 2.6cqw; border-radius: 1cqw; background: #dcd8e4; }
.a-shot .sb b:first-child { background: #b9abf5; }
.a-shot .ct { padding: 3.5cqw 4.5cqw; font: 3.5cqw/1.55 var(--font); }
.a-shot .h { font-weight: 700; font-size: 5cqw; line-height: 1.3; margin-bottom: 1cqw !important; }
.a-shot .s { color: #777; font-size: 3.1cqw; }
.a-shot .chk::before { content: ""; display: inline-block; width: 2.6cqw; height: 2.6cqw; margin-right: 1.6cqw; vertical-align: -.3cqw; border: .35cqw solid #a99de0; border-radius: .7cqw; }
.a-shot .bars { display: flex; align-items: flex-end; gap: 1.4cqw; height: 26cqw; margin-top: 3cqw; }
.a-shot .bars i { flex: 1; border-radius: .7cqw .7cqw 0 0; background: linear-gradient(#a690ff, #7b5cff); }
.a-shot .big { font-size: 5.6cqw; font-weight: 700; margin-top: 2cqw !important; }
.a-shot .ln { height: 1.6cqw; margin-top: 2.4cqw !important; border-radius: 1cqw; background: #e6e6ea; }
.a-shot .ln.short { width: 60%; }
.a-video .play { position: absolute; left: 50%; top: 50%; width: 15cqw; height: 15cqw; margin: -7.5cqw 0 0 -7.5cqw; border-radius: 50%; background: rgba(255, 255, 255, .88); box-shadow: 0 1cqw 4cqw rgba(0, 0, 0, .25); }
.a-video .play::after { content: ""; position: absolute; left: 41%; top: 31%; border-left: 5.5cqw solid #333; border-top: 3.4cqw solid transparent; border-bottom: 3.4cqw solid transparent; }
.a-video .dur { position: absolute; right: 3cqw; bottom: 3cqw; padding: .4cqw 1.6cqw; border-radius: 1cqw; background: rgba(0, 0, 0, .6); color: #fff; font: 600 3.8cqw var(--font); }
.a-video .mini { position: absolute; inset: 18cqw 12cqw 14cqw; display: flex; align-items: flex-end; gap: 2cqw; }
.a-video .mini i { flex: 1; background: #a690ff; border-radius: .6cqw .6cqw 0 0; }
.a-video .mini i:nth-child(1) { height: 30%; } .a-video .mini i:nth-child(2) { height: 42%; } .a-video .mini i:nth-child(3) { height: 38%; } .a-video .mini i:nth-child(4) { height: 55%; } .a-video .mini i:nth-child(5) { height: 62%; } .a-video .mini i:nth-child(6) { height: 74%; } .a-video .mini i:nth-child(7) { height: 90%; background: #7b5cff; }
.a-music { display: grid; place-items: center; background: linear-gradient(135deg, #ff9a6b, #d9468f); }
.a-music.pod { background: linear-gradient(135deg, #5b5bd6, #a06bff); }
.a-music span { font-size: 24cqw; line-height: 1; color: rgba(255, 255, 255, .92); }
.a-icon, .a-doc { background: var(--nk-card2); }
.a-icon { display: grid; place-items: center; }
.a-icon .ic { width: 30cqw; height: 36cqw; border-radius: 3cqw; display: grid; place-items: center; font: 800 6cqw var(--font); color: #fff; letter-spacing: .05em; }
.a-icon .ic.zip { background: repeating-linear-gradient(#5a4210 0 1.5cqw, #f1d58a 1.5cqw 3cqw) 50% 0 / 3cqw 45% no-repeat, linear-gradient(#e9c46a, #c9952a); }
.a-icon .ic.dmg { width: 34cqw; height: 34cqw; border-radius: 7cqw; background: radial-gradient(circle, #6e6f78 0 10%, #d9dae0 11% 40%, #c3c4cc 41%), linear-gradient(#e6e6ea, #b9bac2); box-shadow: 0 1cqw 3cqw rgba(0, 0, 0, .2); }
.a-icon .app { width: 34cqw; height: 34cqw; border-radius: 8cqw; display: grid; place-items: center; font: 800 16cqw var(--font); color: #fff; box-shadow: 0 1cqw 3cqw rgba(0, 0, 0, .25); }
.a-icon .figma { background: linear-gradient(135deg, #f24e1e, #a259ff 55%, #1abcfe); }
.a-icon .slack { background: linear-gradient(135deg, #36c5f0, #2eb67d 40%, #ecb22e 70%, #e01e5a); }
.a-doc .pg { position: absolute; left: 30cqw; top: 8cqw; width: 40cqw; height: 58cqw; padding: 7cqw 4.5cqw; border-radius: 1.5cqw; background: #fff; box-shadow: 0 1cqw 3cqw rgba(0, 0, 0, .15); }
.a-doc .pg i { display: block; height: 1.4cqw; margin-bottom: 2.4cqw; border-radius: 1cqw; background: #dcdce2; }
.a-doc .pg i:nth-of-type(3n) { width: 68%; }
.a-doc .ext { position: absolute; right: -4cqw; bottom: 6cqw; padding: .6cqw 1.8cqw; border-radius: 1cqw; background: #4a72d9; color: #fff; font: 800 4cqw var(--font); }
.a-doc .pdf .ext { background: #d93a3a; } .a-doc .xlsx .ext { background: #1f8a4c; } .a-doc .md .ext, .a-doc .txt .ext { background: #6b6b74; }

/* ───────── Small windows ───────── */
.nk.narrow { height: 600px; }
.nk.narrow .nk-top { grid-template-columns: auto minmax(0, 1fr) auto; }
.nk.narrow .nk-tb-insp { display: none; }
.nk.narrow .nk-body { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
.nk.narrow .nk-side { flex-direction: row; overflow-x: auto; overflow-y: hidden; padding: 6px 8px; gap: 4px; border-right: 0; border-bottom: 1px solid var(--nk-line); }
.nk.narrow .nk-side .sec, .nk.narrow .nk-status, .nk.narrow .nk-nav small, .nk.narrow .nk-nav[data-view="recents"], .nk.narrow .nk-nav[data-view="k:app"], .nk.narrow .nk-nav[data-view="k:music"] { display: none; }
.nk.narrow .nk-nav { width: auto; flex: none; padding: 5px 9px; }
.nk.narrow .nk-main { padding: 16px 14px 24px; }
.nk.narrow .nk-res { margin: 14px -14px 0; padding: 14px 14px 0; }
.nk.narrow .nk-serif { font-size: 21px; }
.nk.narrow .nk-home-h .nk-serif { font-size: 23px; }
.nk.narrow .nk-read { display: none; }
.nk.narrow .nk-grid { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 14px 12px; }
.nk.narrow .nk-day { grid-template-columns: minmax(0, 1fr); gap: 8px; }
.nk.narrow .nk-modes, .nk.narrow .nk-modes > span { flex-wrap: nowrap; }
.nk.narrow .nk-modes { overflow-x: auto; scrollbar-width: none; margin-right: -14px; padding-right: 14px; }
.nk.narrow .nk-modes button { flex: none; }
.nk.narrow .nk-modes .favbtn span { display: none; }
.nk.narrow .nk-askbar > input, .nk.narrow .nk-field input, .nk.narrow .nk-mirror { font-size: 15px; }
.nk.narrow .nk-qs { padding: 12px 8px; }
.nk.narrow .nk-qs-keys button:nth-child(n+3):not(.r) { display: none; }
.nk.narrow .nk-simbar { flex-wrap: wrap; }
.nk.narrow .nk-simbar .nk-btn { margin-left: 0; }
.nk.narrow .k { display: none; }

/* ───────── "Describe it" examples ───────── */
.nk-why { display: grid; gap: 10px; }
.nk-why > div { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.15fr); align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.nk-why .q { font-weight: 600; font-size: 15px; }
.nk-why .q::before { content: "“"; color: var(--muted); } .nk-why .q::after { content: "”"; color: var(--muted); }
.nk-why .arrow { color: var(--faint); }
.nk-why .r b { display: block; font-size: 14px; overflow-wrap: anywhere; }
.nk-why .r i { font-family: var(--font-serif); color: var(--muted); font-size: 14.5px; }
@media (max-width: 600px) { .nk-why > div { grid-template-columns: 1fr; gap: 4px; } .nk-why .arrow { display: none; } }

/* ───────── "Words inside images" ───────── */
.nk-langs { max-width: 820px; margin: 0 auto; }
.nk-lang-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.nk-lang-tabs button { padding: 7px 14px; border: 0; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font: 500 14.5px var(--font); color: var(--text); cursor: pointer; }
.nk-lang-tabs button:hover { box-shadow: inset 0 0 0 1px var(--line-2); }
.nk-lang-tabs button[aria-selected="true"] { color: #fff; background: linear-gradient(135deg, var(--b1), var(--b2)); box-shadow: none; }
.nk-lang-card { display: grid; gap: 16px; margin: 20px auto 0; max-width: 560px; padding: 22px; border-radius: var(--radius); background: var(--card); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); }
.nk-lang-q { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 12px; background: var(--sunk); font-size: 17px; font-weight: 600; }
.nk-lang-q svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.nk-lang-paper { width: min(100%, 380px); margin: 0 auto; padding: 18px 22px; border-radius: 6px; background: #fbf8f1; color: #2b2620; font: 16px/1.75 var(--font-mono); transform: rotate(-1.2deg); box-shadow: 0 10px 30px rgba(40, 30, 10, .18), 0 0 0 1px rgba(40, 30, 10, .08); }
.nk-lang-paper p { margin: 0; }
.nk-lang-paper p:first-child { font-weight: 700; }
.nk-lang-note { margin: 0; text-align: center; color: var(--muted); font-size: 14.5px; }
.nk-lang-note i { font-family: var(--font-serif); }
.nk-lang-foot { margin: 20px auto 0; max-width: 740px; text-align: center; color: var(--muted); font-size: 15px; }
.nk-lang-foot b { color: var(--text); font-weight: 600; }
.nk-guide { margin-top: 28px; }

@media (prefers-reduced-motion: reduce) { .nk-card, .nk-hl, .nk-ql, .nk-ql-box, .nk-qs, .nk-qs-panel { animation: none; } }
