/* Notch concept demo. Accent comes from the app's --c1 / --c2; the warm light under the notch echoes its icon. */
.nx-stage { position: relative; height: 580px; margin-top: 28px; border: 1px solid var(--line-strong); border-radius: 22px; overflow: hidden; background: radial-gradient(70% 55% at 50% 0, rgba(255,181,119,.55), transparent 70%), radial-gradient(80% 60% at 12% 100%, #7a2a10, transparent 70%), radial-gradient(70% 60% at 95% 85%, #2f3d63, transparent 70%), #160c0a; color: #fff; user-select: none; -webkit-user-select: none; }
.nx-menubar { display: flex; gap: 18px; align-items: center; height: 32px; padding: 0 16px; background: rgba(0,0,0,.25); font: 500 12px var(--sans); }

.nx-island { position: absolute; top: 0; left: 50%; translate: -50% 0; width: 190px; height: 32px; background: #000; border-radius: 0 0 16px 16px; z-index: 3; transition: width .45s cubic-bezier(.25,1.25,.35,1), height .45s cubic-bezier(.25,1.25,.35,1), border-radius .45s; }
.nx-island::before, .nx-island::after { content: ""; position: absolute; top: 0; width: 12px; height: 12px; }
.nx-island::before { right: 100%; background: radial-gradient(circle at 0 100%, transparent 11.5px, #000 12px); }
.nx-island::after { left: 100%; background: radial-gradient(circle at 100% 100%, transparent 11.5px, #000 12px); }
.nx-island[data-state="live"] { width: min(420px, 100% - 28px); height: 40px; box-shadow: 0 14px 34px -14px color-mix(in srgb, var(--c1) 75%, transparent); }
.nx-island[data-state="ask"] { display: grid; grid-template-rows: auto auto; gap: 8px; width: min(480px, 100% - 28px); height: 104px; padding: 10px 14px; border-radius: 0 0 26px 26px; box-shadow: 0 16px 36px rgba(0,0,0,.55), 0 0 30px color-mix(in srgb, var(--c1) 40%, transparent); }
.nx-island .nx-asking { display: flex; align-items: center; gap: 10px; min-width: 0; text-align: left; font: 500 13px var(--sans); }
.nx-asking > span:last-child { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.nx-asking code { color: var(--c1); font: 600 12.5px var(--mono); }
.nx-answer { display: flex; justify-content: flex-end; gap: 8px; }
.nx-island .nx-no { padding: 8px 18px; border-radius: 12px; background: #2a221e; font: 700 13px var(--sans); }
.nx-island .nx-no:hover { background: #7a2a22; }
.nx-burst { display: inline-flex; flex: none; color: var(--c1); }
.nx-burst.on { animation: nx-spin 4s linear infinite; }
.nx-right { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.nx-count { display: flex; align-items: center; gap: 3px; font: 700 11px var(--mono); color: var(--c1); }
.nx-island .nx-count svg { width: 13px; height: 13px; }

.nx-claude { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 12px; }
.nx-sessions { display: flex; flex-direction: column; gap: 4px; min-height: 0; }
.nx-island .nx-sessions > button { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 12px; text-align: left; }
.nx-island .nx-sessions > button.on { background: #1f1a16; }
.nx-sessions i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #6d635c; }
.nx-sessions i.working { background: var(--c1); animation: nx-pulse .9s ease-in-out infinite alternate; }
.nx-sessions i.waiting { background: #ffd23f; box-shadow: 0 0 10px 2px #ffd23f; }
.nx-sessions i.done { background: #4ade80; }
.nx-sessions i.denied { background: #ff5f57; }
@keyframes nx-pulse { to { opacity: .3; } }
.nx-sessions span { display: grid; min-width: 0; font: 700 12.5px var(--sans); }
.nx-sessions em { font: 500 10.5px var(--sans); color: #a89f99; }
.nx-island .nx-sessions > .nx-replay { margin-top: auto; padding: 4px 10px; font: 600 10.5px var(--mono); color: #8d8682; }
.nx-detail { display: flex; flex-direction: column; gap: 7px; min-width: 0; min-height: 0; padding: 10px 12px; border-radius: 16px; background: #120e0c; overflow: hidden; }
.nx-detail ul { display: grid; gap: 4px; padding: 0; list-style: none; font: 500 11.5px var(--mono); color: #d8cfc8; }
.nx-detail li::before { content: "› "; color: var(--c1); }
.nx-req { display: grid; gap: 6px; margin-top: auto; padding: 9px 10px; border: 1px solid #ffd23f55; border-radius: 12px; background: #1d1710; }
.nx-req code { padding: 5px 8px; border-radius: 7px; background: #000; font: 600 12px var(--mono); overflow-wrap: anywhere; user-select: text; -webkit-user-select: text; }
.nx-req div { display: flex; justify-content: flex-end; gap: 8px; }
.nx-island .nx-req button { padding: 6px 14px; font-size: 12px; }

.nx-island[data-state="open"] { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 22px 34px minmax(0, 1fr) 34px; row-gap: 8px; width: min(660px, 100% - 28px); height: 382px; padding: 0 14px 12px; border-radius: 0 0 30px 30px; box-shadow: 0 18px 40px rgba(0,0,0,.55); }
.nx-island[data-state="mini"] { width: min(380px, 100% - 28px); height: 34px; border-radius: 0 0 17px 17px; }
.nx-island .nx-mini { display: grid; grid-template-columns: 15px minmax(0, 1fr) 9px minmax(0, 1fr); align-items: center; gap: 10px; width: 100%; height: 100%; padding: 0 14px; text-align: left; }
.nx-name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 600 12.5px var(--sans); }
.nx-end { display: flex; justify-content: flex-end; align-items: center; gap: 9px; font: 700 12.5px var(--sans); font-variant-numeric: tabular-nums; }
.nx-end .paused { color: #8d8a92; }
.nx-island[data-state="card"] { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 20px minmax(0, 1fr); column-gap: 10px; width: min(520px, 100% - 28px); height: 116px; padding: 0 20px 14px; border-radius: 0 0 28px 28px; box-shadow: 0 18px 40px rgba(0,0,0,.55); }
.nx-island > .nx-lens { grid-column: 1 / -1; place-self: center; }
.nx-island button { border: 0; padding: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.nx-island button:focus-visible { outline: 2px solid var(--c1); outline-offset: 2px; }
.nx-island svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.nx-island .nx-face { display: grid; grid-template-columns: 26px minmax(0, 1fr) 26px; align-items: center; gap: 10px; width: 100%; height: 100%; padding: 0 14px; }
.nx-island[data-state="idle"] .nx-face { display: grid; grid-template-columns: 1fr; justify-items: center; }
.nx-lens { width: 9px; height: 9px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #38466b, #07080d 70%); box-shadow: 0 0 0 2px #14151a; }
.nx-thumb, .nx-art, .nx-song i { background: repeating-conic-gradient(from 8deg at 50% 118%, color-mix(in srgb, var(--a1) 70%, transparent) 0 7deg, transparent 7deg 18deg), radial-gradient(circle at 50% 110%, var(--a1), var(--a2) 38%, var(--a3) 85%); }
.nx-thumb { width: 24px; height: 24px; border-radius: 7px; }
.nx-live { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 600 13px var(--sans); text-align: center; }
.nx-eq { display: flex; align-items: center; justify-content: flex-end; gap: 2px; height: 16px; }
.nx-eq i { width: 3px; height: 4px; border-radius: 2px; background: var(--c1); }
.nx-eq.on i { animation: nx-eq .5s ease-in-out infinite alternate; }
.nx-eq i:nth-child(2) { animation-delay: .15s; } .nx-eq i:nth-child(3) { animation-delay: .3s; } .nx-eq i:nth-child(4) { animation-delay: .08s; }
@keyframes nx-eq { to { height: 15px; } }

.nx-body { min-height: 0; }
.nx-body.enter { animation: nx-in .3s ease-out; }
.nx-body > div { height: 100%; }
@keyframes nx-in { from { opacity: 0; translate: 0 -6px; } }
.nx-island .nx-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.nx-mark { display: inline-flex; flex: none; align-items: center; gap: 2px; padding: 5px 4px; border-radius: 6px; background: #f4efe9; }
.nx-mark i { width: 7px; height: 7px; border-radius: 50%; background: #14100d; }
.nx-mark i:last-child { background: var(--c2); }
.nx-seg { display: flex; gap: 2px; padding: 3px; border-radius: 11px; background: #1b1b1e; }
.nx-island .nx-seg button { padding: 5px 12px; border-radius: 8px; font: 600 12px var(--sans); color: #a5a2a8; }
.nx-island .nx-seg button.on { background: #38383d; color: #fff; }
.nx-island .nx-bottom { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-width: 0; padding-top: 6px; border-top: 1px solid #222126; }
.nx-tools { display: flex; gap: 4px; }
.nx-island .nx-tools button { position: relative; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #a5a2a8; }
.nx-island .nx-tools button:hover { background: #1b1b1e; color: #fff; }
.nx-island .nx-tools button.on { background: #2c2c31; color: var(--c1); }
.nx-tools b { position: absolute; top: -2px; right: -2px; min-width: 14px; border-radius: 99px; background: var(--c2); color: #fff; font: 700 9px/14px var(--sans); }
.nx-island .nx-song { display: flex; align-items: center; gap: 8px; min-width: 0; height: 30px; padding: 0 11px 0 4px; border-radius: 99px; background: #1b1b1e; font: 600 12px var(--sans); }
.nx-island .nx-song.on { background: #2c2c31; }
.nx-song i { flex: none; width: 22px; height: 22px; border-radius: 50%; }
.nx-song span:not(.nx-eq) { max-width: 108px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.nx-song .nx-eq i { width: 3px; height: 4px; border-radius: 2px; background: var(--c1); }
.nx-song .nx-eq.on i { animation: nx-eq .5s ease-in-out infinite alternate; }

.nx-island small { font: 600 10.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #a89f99; }
.nx-island em { font-style: normal; }
.nx-island .nx-round { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: #fff; color: #14100d; font-size: 11px; }
.nx-island .nx-go { padding: 8px 18px; border-radius: 12px; background: var(--c1); color: #1a0d04; font: 700 13px var(--sans); }

.nx-island .nx-batt { display: flex; flex: none; align-items: center; gap: 7px; height: 30px; margin-left: auto; padding: 0 11px; border-radius: 99px; background: #1b1b1e; font: 700 11.5px var(--sans); }
.nx-island .nx-batt.on { background: #2c2c31; color: var(--c1); }
.nx-cell { position: relative; display: inline-block; flex: none; width: 22px; height: 11px; padding: 2px; border: 1px solid #77737d; border-radius: 4px; }
.nx-cell::after { content: ""; position: absolute; top: 3px; right: -3px; width: 2px; height: 3px; border-radius: 0 2px 2px 0; background: #77737d; }
.nx-cell i { display: block; height: 100%; border-radius: 1px; background: #4ade80; }
.nx-cell.mid i { background: #f5b32f; }
.nx-cell.low i { background: #ff5f57; }
.nx-what small .nx-power { display: flex; align-items: center; gap: 5px; margin-left: auto; }
.nx-island .nx-power svg { width: 13px; height: 13px; }

.nx-island[data-state="device"] { display: grid; grid-template-rows: 20px minmax(0, 1fr); width: min(460px, 100% - 28px); height: 100px; padding: 0 20px 14px; border-radius: 0 0 28px 28px; box-shadow: 0 18px 40px rgba(0,0,0,.55); animation: nx-in .3s ease-out; }
.nx-island .nx-joined { display: flex; align-items: center; gap: 14px; min-width: 0; text-align: left; }
.nx-gadget { display: grid; flex: none; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #1b1b1e; }
.nx-island .nx-gadget svg { width: 24px; height: 24px; }
.nx-who { display: grid; gap: 2px; min-width: 0; }
.nx-who b { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 700 13.5px var(--sans); }
.nx-island .nx-who small { font: 500 11.5px var(--sans); letter-spacing: 0; text-transform: none; color: #a5a2a8; }
.nx-joined .nx-who small { color: #4ade80; }
.nx-island .nx-joined.gone .nx-who small { color: #a5a2a8; }
.nx-parts { display: flex; justify-content: flex-end; gap: 14px; margin-left: auto; }
.nx-parts > span { display: grid; justify-items: center; gap: 3px; }
.nx-island .nx-parts small { font: 500 9.5px var(--mono); letter-spacing: .06em; color: #8d8a92; }
.nx-parts em { font: 700 11px var(--sans); }

.nx-devices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 8px; }
.nx-device { display: grid; grid-template-columns: auto minmax(0, 1fr); align-content: center; align-items: center; gap: 9px 11px; min-width: 0; min-height: 0; padding: 8px 12px; border-radius: 18px; background: #141318; overflow: hidden; }
.nx-device .nx-parts { grid-column: 1 / -1; justify-content: space-around; margin: 0; }
.nx-device.off { opacity: .5; }

.nx-ring { position: relative; display: grid; flex: none; place-items: center; width: 54px; height: 54px; }
.nx-ring i { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(#f1ede9 calc(var(--p) * 1%), #34343a 0); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px)); mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px)); }
.nx-ring b { font: 700 16px var(--sans); }
.nx-ring.tiny { width: 15px; height: 15px; }
.nx-ring.tiny i { -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px)); mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px)); }

.nx-island .nx-peek { display: flex; align-items: center; gap: 16px; min-width: 0; text-align: left; }
.nx-what { display: grid; flex: 1; gap: 5px; min-width: 0; }
.nx-island .nx-what small, .nx-island .nx-now small { display: flex; align-items: center; gap: 7px; font: 600 12px var(--sans); letter-spacing: 0; text-transform: none; color: #a5a2a8; }
.nx-what small u, .nx-now small u { width: 7px; height: 7px; border-radius: 50%; background: #6d6a70; text-decoration: none; }
.nx-what small u.on, .nx-now small u.on { background: #4ade80; box-shadow: 0 0 8px #4ade80; }
.nx-what small .nx-count, .nx-what small .nx-eq { margin-left: 4px; }
.nx-what .nx-eq { height: 12px; }
.nx-what > strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 700 15.5px var(--sans); }
.nx-prog { height: 4px; border-radius: 4px; background: #34343a; overflow: hidden; }
.nx-prog i { display: block; height: 100%; border-radius: 4px; background: #f1ede9; transition: width 1s linear; }
.nx-foot { display: flex; justify-content: space-between; gap: 12px; min-width: 0; font: 500 11.5px var(--sans); color: #a5a2a8; }
.nx-foot em { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.nx-foot em:first-child { flex: none; }
.nx-island[data-state="card"] > .nx-act { display: flex; align-items: center; gap: 9px; padding-left: 4px; }
.nx-island .nx-circle { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #2c2c31; font-size: 10px; }
.nx-island .nx-circle.nx-yes { background: var(--c1); color: #1a0d04; }
.nx-island .nx-circle svg { width: 18px; height: 18px; stroke-width: 2.6; }

.nx-today { display: grid; grid-template-columns: 196px minmax(0, 1fr); gap: 14px; }
.nx-now { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; min-height: 0; padding: 14px; border-radius: 20px; background: radial-gradient(90% 70% at 80% 0, color-mix(in srgb, var(--c2) 30%, transparent), transparent), #19181d; overflow: hidden; }
.nx-now .nx-ring { width: 66px; height: 66px; margin-bottom: 4px; }
.nx-now .nx-ring b { font-size: 19px; }
.nx-now > strong { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font: 700 14px/1.3 var(--sans); overflow-wrap: anywhere; }
.nx-now > span:not(.nx-ring) { font: 500 11.5px var(--sans); color: #a5a2a8; }
.nx-now.empty { justify-content: center; }
.nx-now > .nx-act { display: flex; gap: 7px; margin-top: auto; }
.nx-island .nx-now .nx-act button { display: flex; align-items: center; gap: 5px; padding: 7px 12px; border-radius: 99px; font: 700 11.5px var(--sans); }
.nx-island .nx-now .nx-soft { background: #34343a; }
.nx-island .nx-now .nx-act svg { width: 13px; height: 13px; stroke-width: 2.6; }
.nx-next { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; min-width: 0; min-height: 0; }
.nx-next p { display: flex; justify-content: space-between; padding: 2px 4px 4px; font: 500 11.5px var(--sans); color: #a5a2a8; }
.nx-next p b { color: #e6e3e8; font-size: 12.5px; }
.nx-next ul { display: grid; grid-template-columns: minmax(0, 1fr); grid-auto-rows: minmax(0, 1fr); grid-template-rows: repeat(4, minmax(0, 1fr)); min-height: 0; padding: 0; list-style: none; }
.nx-next li { display: flex; align-items: center; gap: 11px; min-width: 0; padding: 0 4px; border-top: 1px solid #222126; }
.nx-next li span { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 600 12.5px var(--sans); }
.nx-next li em { font: 500 11.5px var(--sans); color: #a5a2a8; }
.nx-next li.none { color: #a5a2a8; font: 500 12.5px var(--sans); }
.nx-island .nx-tick { flex: none; width: 17px; height: 17px; border: 2px solid var(--t); border-radius: 50%; }
.nx-island .nx-tick:hover { background: var(--t); }
.nx-island .nx-join { padding: 3px 10px; border-radius: 99px; background: #2c2c31; font: 700 10.5px var(--sans); }
.nx-add { display: flex; align-items: center; gap: 9px; padding: 7px 4px 0; border-top: 1px solid #222126; color: #a5a2a8; }
.nx-add input { flex: 1; min-width: 0; padding: 3px 0; border: 0; background: none; color: #fff; font: 500 12.5px var(--sans); user-select: text; -webkit-user-select: text; }
.nx-add input:focus { outline: none; }
.nx-add:focus-within { border-top-color: var(--c1); }
.nx-island .nx-key { flex: none; padding: 3px 8px; border-radius: 7px; background: #222126; font: 600 10.5px var(--mono); }

.nx-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.nx-island .nx-week button { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; min-height: 0; padding: 10px 4px; border-radius: 16px; background: #141318; overflow: hidden; }
.nx-island .nx-week button.on { background: #222027; box-shadow: inset 0 0 0 1px var(--c1); }
.nx-week strong { margin-bottom: 4px; font: 700 18px var(--sans); }
.nx-week i { width: 70%; height: 7px; border-radius: 4px; background: var(--t); opacity: .85; }
.nx-week em { margin-top: auto; font: 600 10.5px var(--mono); color: #a5a2a8; }

.nx-music { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 16px; }
.nx-art { border-radius: 18px; }
.nx-art.on { animation: nx-breathe 2.4s ease-in-out infinite alternate; }
@keyframes nx-breathe { to { filter: brightness(1.22) saturate(1.15); } }
.nx-info { display: flex; flex-direction: column; justify-content: center; gap: 9px; min-width: 0; }
.nx-info strong { font: 700 21px/1.2 var(--sans); min-height: 2.4em; }
.nx-seek { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; font: 500 11px var(--mono); color: #a89f99; }
.nx-island .nx-bar { height: 14px; background: linear-gradient(#332c28, #332c28) center / 100% 4px no-repeat; }
.nx-bar i { display: block; height: 4px; border-radius: 4px; background: var(--c1); }
.nx-keys { display: flex; justify-content: center; align-items: center; gap: 24px; font-size: 12px; }

.nx-focus { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 14px; }
.nx-modes { display: grid; gap: 4px; align-content: stretch; }
.nx-island .nx-modes button { padding: 0 14px; border-radius: 12px; text-align: left; font: 600 13px var(--sans); color: #a89f99; }
.nx-island .nx-modes button.on { background: #1f1a16; color: #fff; box-shadow: inset 3px 0 0 var(--c1); }
.nx-rules { display: grid; grid-template-rows: auto repeat(3, 1fr); min-width: 0; }
.nx-big { display: flex; justify-content: space-between; align-items: center; padding-bottom: 6px; }
.nx-big strong { font: 700 34px var(--mono); }
.nx-island [role="switch"] { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid #231e1a; text-align: left; font: 600 12.5px var(--sans); }
[role="switch"] i { position: relative; flex: none; width: 32px; height: 18px; border-radius: 99px; background: #3a332e; transition: background .2s; }
[role="switch"] i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: translate .2s; }
[role="switch"][aria-checked="true"] i { background: var(--c2); }
[role="switch"][aria-checked="true"] i::after { translate: 14px 0; }

.nx-ai { display: grid; grid-template-rows: minmax(0, 1fr) auto auto; gap: 8px; }
.nx-reply { display: flex; align-items: center; gap: 14px; min-height: 0; padding: 0 14px; border-radius: 18px; background: linear-gradient(120deg, color-mix(in srgb, var(--c2) 38%, #100b09), #100b09 70%); }
.nx-reply p { overflow: hidden; font: 600 15px/1.35 var(--sans); overflow-wrap: anywhere; }
.nx-spark { flex: none; color: var(--c1); filter: drop-shadow(0 0 8px var(--c1)); }
.nx-island .nx-spark svg { width: 30px; height: 30px; fill: currentColor; }
.nx-spark.on { animation: nx-spin 1s linear infinite; }
@keyframes nx-spin { to { rotate: 360deg; } }
.nx-asks { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.nx-island .nx-asks button { flex: none; padding: 6px 11px; border-radius: 99px; background: #1b1613; font: 600 11.5px var(--sans); }
.nx-island .nx-asks button:hover { background: color-mix(in srgb, var(--c1) 24%, #111); }
.nx-askbox { display: flex; gap: 8px; }
.nx-askbox input { flex: 1; min-width: 0; padding: 8px 12px; border: 1px solid #302824; border-radius: 12px; background: #0e0b09; color: #fff; font: 500 13px var(--sans); user-select: text; -webkit-user-select: text; }
.nx-askbox input:focus { outline: 2px solid var(--c1); border-color: transparent; }

.nx-stash { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 8px; }
.nx-shelf { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 6px; min-height: 0; padding: 5px; border: 1px dashed #4a403a; border-radius: 18px; }
.nx-shelf p { grid-column: 1 / -1; grid-row: 1 / -1; place-self: center; color: #a89f99; font: 500 13px var(--sans); text-align: center; }
.nx-item { position: relative; display: flex; align-items: center; gap: 8px; min-width: 0; padding: 0 5px 0 8px; overflow: hidden; border-radius: 12px; background: #17120f; }
.nx-item i { flex: none; display: grid; place-items: center; width: 28px; height: 34px; border-radius: 6px; background: linear-gradient(160deg, var(--c1), var(--c2)); color: #1a0d04; font: 700 8.5px var(--mono); font-style: normal; text-transform: uppercase; }
.nx-item > span { flex: 1; display: grid; min-width: 0; }
.nx-item b, .nx-item small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.nx-item b { font: 600 11.5px var(--sans); }
.nx-item small { font: 500 10px var(--mono); color: #a89f99; }
.nx-item.done small { color: #7ee2a0; }
.nx-item > em { flex: none; font: 700 10px var(--mono); font-style: normal; color: #7ee2a0; }
.nx-item u { position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; background: var(--c1); transform-origin: left; animation: nx-fill linear both; }
@keyframes nx-fill { from { scale: 0 1; } to { scale: 1 1; } }
.nx-island .nx-item .nx-small { flex: none; padding: 4px 9px; border-radius: 99px; background: #2a221d; font: 700 10.5px var(--sans); }
.nx-island .nx-item .nx-small:hover { background: color-mix(in srgb, var(--c1) 30%, #111); }
.nx-island .nx-item .nx-x { flex: none; padding: 4px; color: #a89f99; }
.nx-squeeze { display: flex; align-items: center; gap: 10px; min-width: 0; }
.nx-squeeze img { width: 26px; height: 26px; border-radius: 22%; }
.nx-island .nx-squeeze [role="switch"] { gap: 8px; padding: 0; border: 0; font-size: 12px; }
.nx-squeeze em { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-align: right; font: 700 10.5px var(--mono); font-style: normal; color: #7ee2a0; }
.nx-island .nx-squeeze .nx-go { flex: none; padding: 6px 12px; font-size: 11.5px; }

.nx-list { display: grid; grid-auto-rows: minmax(46px, 1fr); overflow-y: auto; scrollbar-width: thin; scrollbar-color: #3a3a40 transparent; }
.nx-island .nx-list > * { display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 0 8px; border-top: 1px solid #231e1a; text-align: left; }
.nx-list > :first-child { border-top: 0 !important; }
.nx-island .nx-list button[data-do="clip"]:hover { background: #17120f; }
.nx-island .nx-list .nx-saved { cursor: grab; }
.nx-island .nx-list button.nx-saved:hover { background: #17120f; }
.nx-saved > small { color: #7ee2a0; }
.nx-item[draggable="true"] { cursor: grab; }
.nx-folder { position: relative; display: grid; justify-items: center; align-content: start; gap: 7px; width: 108px; padding: 6px; border: 0; border-radius: 10px; background: none; color: #fff; font: 500 11px var(--sans); cursor: pointer; }
.nx-folder:hover { background: rgba(255,255,255,.1); }
.nx-folder > i { position: relative; width: 58px; height: 44px; margin-top: 8px; border-radius: 4px 8px 8px 8px; background: linear-gradient(#8fd0ff, #3d8fd9); }
.nx-folder > i::before { content: ""; position: absolute; left: 0; bottom: 100%; width: 26px; height: 8px; border-radius: 6px 8px 0 0; background: #8fd0ff; }
.nx-folder b { position: absolute; top: 4px; right: 18px; min-width: 18px; border-radius: 99px; background: var(--c2); font: 700 10.5px/18px var(--sans); }
.nx-folder b[hidden] { display: none; }
.nx-demo { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.nx-list span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 600 13px var(--sans); }
.nx-list span em { margin-left: 10px; font: 500 11.5px var(--sans); color: #a89f99; }
.nx-list > button > em { font: 700 10px var(--mono); text-transform: uppercase; color: var(--c1); }
.nx-dot { display: inline-block; width: 13px; height: 13px; margin-right: 8px; border-radius: 4px; background: #e8662a; vertical-align: -2px; }

.nx-desk { position: absolute; left: 0; right: 0; bottom: 64px; display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; padding: 0 12px; }
/* nothing going on: two dots that behave like eyes */
.nx-island[data-state="idle"] { width: 168px; height: 34px; }
.nx-eyes { position: relative; display: inline-flex; justify-content: center; align-items: center; gap: 20px; height: 20px; translate: var(--ex, 0) var(--ey, 0); transition: translate .25s ease-out; }
.nx-eyes i { width: 11px; height: 14px; border-radius: 50%; background: #f4efe9; box-shadow: 0 0 10px rgba(244,239,233,.45); transition: width .16s, height .16s, border-radius .16s, rotate .16s, background .16s; }
.nx-eyes i:nth-of-type(2) { background: var(--c1); box-shadow: 0 0 10px color-mix(in srgb, var(--c1) 70%, transparent); }
.nx-eyes b { position: absolute; left: 100%; top: -4px; margin-left: 6px; opacity: 0; font: 700 10px var(--sans); color: #8d8a92; }
[data-mood="blink"] .nx-eyes i, [data-mood="wink"] .nx-eyes i:nth-of-type(2) { height: 2px; border-radius: 2px; }
[data-mood="wide"] .nx-eyes i { width: 16px; height: 18px; }
[data-mood="happy"] .nx-eyes i { width: 14px; height: 8px; border: 3px solid #f4efe9; border-bottom: 0; border-radius: 14px 14px 0 0; background: none; box-shadow: none; }
[data-mood="happy"] .nx-eyes i:nth-of-type(2) { border-color: var(--c1); background: none; }
[data-mood="sad"] .nx-eyes i { height: 6px; border-radius: 6px; rotate: -18deg; }
[data-mood="sad"] .nx-eyes i:nth-of-type(2) { rotate: 18deg; }
[data-mood="sad"] .nx-eyes { animation: nx-no .35s ease-in-out 3; }
[data-mood="sleep"] .nx-eyes i { height: 2px; border-radius: 2px; box-shadow: none; opacity: .65; }
[data-mood="sleep"] .nx-eyes b { animation: nx-zz 2s ease-in-out infinite; }
@keyframes nx-no { 25% { margin-left: -9px; } 75% { margin-left: 9px; } }
@keyframes nx-zz { 40% { opacity: 1; } 100% { opacity: 0; translate: 8px -9px; } }

/* first-run greeting: the dots wake and blink, then hello is written */
.nx-island[data-state="hello"] { display: grid; grid-template-rows: 20px minmax(0, 1fr); width: min(470px, 100% - 28px); height: 228px; padding: 0 20px 16px; border-radius: 0 0 36px 36px; box-shadow: 0 20px 50px rgba(0,0,0,.6), 0 0 44px color-mix(in srgb, var(--c1) 22%, transparent); }
.nx-island .nx-hello { display: grid; grid-template-rows: minmax(0, 1fr) auto; justify-items: center; align-items: center; min-height: 0; }
.nx-hello > * { grid-column: 1; }
.nx-hello .nx-eyes { grid-row: 1; gap: 34px; scale: 2.2; animation: nx-wake 1.9s ease-in-out both; }
.nx-hello .nx-eyes i { animation: nx-wink 1.9s ease-in-out both; }
.nx-hello .nx-eyes b { display: none; }
.nx-island .nx-script { grid-row: 1; width: min(320px, 100%); height: auto; max-height: 100%; stroke: none; }
.nx-script path { fill: none; stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; opacity: 0; animation: nx-write 2.9s cubic-bezier(.45,.05,.4,1) 1.8s forwards; }
.nx-sign { grid-row: 2; display: flex; align-items: center; gap: 9px; font: 600 14px var(--sans); animation: nx-rise .6s ease-out 4.7s both; }
@keyframes nx-wake { 0% { opacity: 0; scale: .3; } 18%, 82% { opacity: 1; scale: 2.2; } 100% { opacity: 0; scale: 1.4; } }
@keyframes nx-wink { 0%, 34%, 44%, 56%, 66%, 100% { transform: scaleY(1); } 39%, 61% { transform: scaleY(.12); } }
@keyframes nx-write { 0% { stroke-dashoffset: 1; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 1; } }
@keyframes nx-rise { from { opacity: 0; translate: 0 8px; } }

.nx-quiet i .nx-eyes { gap: 8px; }
.nx-quiet i .nx-eyes i { width: 7px; height: 10px; }
.nx-again i em { font: italic 700 14px var(--serif, cursive); color: var(--c1); }
.nx-bt { display: flex; align-items: center; gap: 10px; padding: 7px 16px 7px 8px; border: 1px solid var(--line-strong); border-radius: 99px; background: #100b09; color: #fff; font: 600 12.5px var(--sans); cursor: pointer; }
.nx-bt:hover { background: #231a15; }
.nx-bt > i { display: grid; place-items: center; width: 46px; height: 30px; border-radius: 99px; background: #000; font-style: normal; }
.nx-bt svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.nx-bt:not(.nx-quiet)[aria-pressed="false"] > i { opacity: .45; }
.nx-quiet[aria-pressed="true"] > i { box-shadow: 0 0 0 2px var(--c1); }
.nx-file { display: grid; justify-items: center; gap: 7px; width: 108px; padding: 6px; border: 0; border-radius: 10px; background: none; color: #fff; font: 500 11px var(--sans); cursor: grab; overflow-wrap: anywhere; }
.nx-file:hover { background: rgba(255,255,255,.1); }
.nx-file i { display: grid; place-items: center; width: 42px; height: 52px; border-radius: 7px; background: #f7efe3; color: #7a2a10; font: 700 10.5px var(--mono); font-style: normal; text-transform: uppercase; }
.nx-out { position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 10px 14px; border-radius: 12px; background: rgba(0,0,0,.5); font: 500 12.5px var(--mono); overflow-wrap: anywhere; }

@media (max-width: 620px) {
  .nx-menubar span { display: none; }
  .nx-stage { height: 640px; }
  .nx-desk { gap: 4px; padding: 0 4px; }
  .nx-file, .nx-folder { width: 72px; padding: 4px 2px; font-size: 10px; }
  .nx-bt { padding-right: 12px; font-size: 11.5px; }
  .nx-saved span em { display: none; }
  .nx-island[data-state="open"] { height: 410px; padding: 0 10px 10px; }
  .nx-island[data-state="device"] { padding: 0 12px 12px; }
  .nx-joined .nx-gadget, .nx-joined .nx-who small { display: none; }
  .nx-joined .nx-parts { gap: 9px; }
  .nx-devices { gap: 5px; }
  .nx-device { padding: 6px; }
  .nx-device .nx-gadget { width: 30px; height: 30px; }
  .nx-batt .nx-cell, .nx-what small .nx-power { display: none; }
  .nx-island[data-state="card"] { column-gap: 6px; padding: 0 12px 12px; }
  .nx-island .nx-peek { gap: 10px; }
  .nx-peek .nx-ring { width: 40px; height: 40px; }
  .nx-foot em:last-child, .nx-what small .nx-eq { display: none; }
  .nx-island[data-state="card"] > .nx-act { flex-direction: column; justify-content: center; gap: 5px; }
  .nx-island .nx-circle { width: 31px; height: 31px; }
  .nx-top .nx-mark { display: none; }
  .nx-island .nx-top { gap: 4px; }
  .nx-island .nx-seg button { padding: 5px 6px; font-size: 11px; }
  .nx-island .nx-tools button { width: 28px; }
  .nx-tools { gap: 2px; }
  .nx-today { grid-template-columns: 112px minmax(0, 1fr); gap: 8px; }
  .nx-now { padding: 9px; }
  .nx-now .nx-ring { width: 48px; height: 48px; }
  .nx-now > .nx-act { flex-direction: column; align-self: stretch; }
  .nx-island .nx-now .nx-act button { justify-content: center; padding: 6px; }
  .nx-next li { gap: 7px; }
  .nx-next li em, .nx-add .nx-key { display: none; }
  .nx-week { gap: 3px; }
  .nx-music { grid-template-columns: 76px minmax(0, 1fr); gap: 10px; }
  .nx-info strong { font-size: 16px; }
  .nx-focus { grid-template-columns: 80px minmax(0, 1fr); gap: 9px; }
  .nx-shelf { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-rows: 44px; overflow-y: auto; }
  .nx-squeeze em { font-size: 0; }
  .nx-claude { grid-template-columns: 96px minmax(0, 1fr); gap: 8px; }
  .nx-sessions em { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .nx-hello .nx-eyes { display: none; }
  .nx-script path { animation: none; stroke-dashoffset: 0; opacity: 1; }
  .nx-sign, [data-mood] .nx-eyes, [data-mood] .nx-eyes b { animation: none; }
  .nx-island, .nx-body.enter, .nx-burst.on, .nx-sessions i.working, .nx-eq.on i, .nx-art.on, .nx-spark.on, .nx-item u, .nx-song .nx-eq.on i, .nx-prog i { animation: none; transition: none; }
}
