/* Live demo, ported from the canvas component Demo.dc.html (wall "coast", controls "keycaps", Show row "s7", Vim switch on). */
.nfd { font-family: var(--font); color: var(--fg); display: flex; flex-direction: column; gap: 14px 20px; width: 100%; }
.nfd-screen { position: relative; width: 100%; aspect-ratio: 16 / 10; min-height: 460px; border-radius: 22px; overflow: hidden; background: #D6E8F7; box-shadow: 0 30px 70px rgba(20,40,90,.22), 0 0 0 1px rgba(20,40,90,.08); font-size: 13px; line-height: 1.35; }
.nfd-wall { position: absolute; inset: 0; width: 100%; height: 100%; }
.nfd-menubar { position: absolute; left: 0; right: 0; top: 0; height: 28px; display: flex; align-items: center; gap: 18px; padding: 0 14px; background: rgba(255,255,255,.58); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); font-size: 13px; z-index: 5; }
.nfd-menubar strong { font-weight: 800; }
.nfd-icon { margin-left: auto; display: flex; align-items: center; padding: 2px 6px; border-radius: 6px; }
.nfd-icon.on { background: rgba(20,35,60,.12); }
.nfd-clock { font: inherit; font-size: 13px; color: inherit; background: none; border: 0; padding: 2px 4px; cursor: pointer; white-space: nowrap; }
.nfd-bg-win { position: absolute; left: 6%; top: 12%; width: 46%; height: 58%; border-radius: 14px; background: rgba(255,255,255,.82); box-shadow: 0 16px 40px rgba(20,40,90,.18); padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.nfd-lights { display: flex; gap: 6px; align-items: center; }
.nfd-lights i { width: 11px; height: 11px; border-radius: 50%; background: #CBD3DE; }
.nfd-line { display: block; height: 8px; border-radius: 4px; background: #E6EBF2; }
.nfd-win { position: absolute; left: 12%; top: 18%; width: 48%; min-height: 50%; border-radius: 14px; background: #FFFFFF; box-shadow: 0 24px 60px rgba(20,40,90,.3); padding: 16px 20px 22px; display: flex; flex-direction: column; gap: 10px; z-index: 3; animation: nfd-pop .28s cubic-bezier(.2,.9,.3,1.2); }
.nfd-win[hidden] { display: none; }
.nfd-win-top { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: #5B6A83; }
.nfd-win-close { width: 11px; height: 11px; padding: 0; border: 0; border-radius: 50%; background: #AAB4C3; cursor: pointer; }
.nfd-win-title { font-size: 22px; font-weight: 800; letter-spacing: -.01em; margin-top: 8px; }
.nfd-win-body { font-size: 16px; color: var(--muted); }
.nfd-row { position: relative; padding: 11px 14px 11px 42px; border-radius: 22px; background: rgba(255,255,255,.93); box-shadow: 0 4px 14px rgba(20,40,80,.14); display: flex; flex-direction: column; text-align: left; cursor: pointer; outline: 3px solid transparent; outline-offset: 3px; transition: outline-color .18s, transform .18s; }
.nfd-row.ring { outline-color: var(--ring); }
.nfd-row.press { transform: scale(.97); }
.nfd-row-head { display: flex; justify-content: space-between; color: #5B6A83; font-size: 11px; }
.nfd-row strong { font-weight: 700; }
.nfd-dot { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; margin-right: 6px; }
.nfd-badge { position: absolute; left: 9px; top: 9px; width: 22px; height: 22px; border-radius: 50%; background: var(--ring); color: var(--ring-ink); font-weight: 800; font-size: 12px; line-height: 22px; text-align: center; opacity: 0; transform: scale(.5); transition: opacity .2s ease .32s, transform .2s ease .32s; }
.nfd-side.badged .nfd-badge { opacity: 1; transform: scale(1); }
.nfd-banner { position: absolute; right: 12px; top: 40px; width: min(340px, 60%); z-index: 4; padding-left: 16px; animation: nfd-in .3s ease; }
.nfd-banner[hidden] { display: none; }
.nfd-side { position: absolute; right: 12px; top: 40px; bottom: 12px; width: min(340px, 60%); display: flex; flex-direction: column; gap: 10px; z-index: 4; transform: translateX(calc(100% + 40px)); transition: transform .38s cubic-bezier(.2,.8,.2,1); }
.nfd-side.open { transform: translateX(0); }
.nfd-widgets { margin-top: auto; display: flex; gap: 10px; }
.nfd-widgets span { flex: 1; height: 120px; border-radius: 22px; background: rgba(255,255,255,.55); }
.nfd-hud { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 6; display: flex; align-items: center; gap: 12px; max-width: calc(100% - 32px); padding: 13px 22px; border-radius: 18px; background: rgba(16,26,46,.82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #FFFFFF; font-size: 20px; font-weight: 600; line-height: 1.35; box-shadow: 0 10px 30px rgba(10,20,40,.25); }
.nfd-hud-key { min-width: 1.6em; padding: 3px 10px; border-radius: 8px; background: var(--ring); color: var(--ring-ink); font-weight: 800; text-align: center; animation: nfd-pop .18s ease; }
.nfd-hud-key[hidden] { display: none; }

.nfd-controls { display: flex; flex-direction: column; align-items: center; gap: 18px; padding-top: 10px; }
.nfd-keys { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.nfd-cap { font: inherit; min-width: 72px; height: 68px; padding: 8px 12px; border: 0; border-radius: 14px; background: #FFFFFF; color: var(--fg); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; box-shadow: 0 5px 0 #BFCDE2, 0 8px 18px rgba(20,40,90,.14); transition: transform .08s, box-shadow .08s; }
.nfd-cap:active { transform: translateY(4px); box-shadow: 0 1px 0 #BFCDE2, 0 3px 8px rgba(20,40,90,.14); }
.nfd-cap.hot { background: var(--ring); }
.nfd-cap b { font-size: 20px; font-weight: 800; line-height: 1.1; }
.nfd-cap small { font-size: 11px; font-weight: 600; color: #5B6A83; }
.nfd-cap.hot small { color: var(--ring-ink); }

.nfd-show { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 14px; font-size: 14px; font-weight: 600; color: #5B6A83; }
.nfd-segs { display: inline-flex; gap: 10px; }
.nfd-seg { font: inherit; font-size: 14px; font-weight: 700; border: 0; padding: 10px 20px; border-radius: 999px; cursor: pointer; background: #FFFFFF; color: var(--fg); box-shadow: inset 0 0 0 1px rgba(20,35,60,.1), 0 2px 8px rgba(20,40,90,.10); }
.nfd-seg:hover { box-shadow: inset 0 0 0 1px rgba(20,35,60,.2), 0 4px 12px rgba(20,40,90,.14); }
.nfd-seg[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--ring), 0 2px 8px rgba(20,40,90,.10); }
.nfd-ghost { font: inherit; font-size: 14px; font-weight: 700; border: 0; background: transparent; color: var(--accent); padding: 8px 12px; border-radius: 999px; cursor: pointer; }
.nfd-ghost:hover { background: rgba(29,95,209,.08); }
.nfd-switch { font: inherit; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--fg); background: none; border: 0; padding: 2px 0; cursor: pointer; }
.nfd-track { position: relative; width: 36px; height: 22px; border-radius: 999px; background: #C3CCD9; transition: background .2s; }
.nfd-knob { position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: left .2s; }
.nfd-switch[aria-checked="true"] .nfd-track { background: var(--ring); }
.nfd-switch[aria-checked="true"] .nfd-knob { left: 16px; }
.nfd-note { margin: -6px 0 0; font-size: 13px; color: #5B6A83; text-align: center; }

@keyframes nfd-pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes nfd-in { from { transform: translateY(-10px); opacity: 0; } to { transform: none; opacity: 1; } }

/* The still picture shown on phones */
.still { margin: 10px 0 0; width: 100%; flex-direction: column; gap: 12px; }
.scr { position: relative; height: 420px; border-radius: 22px; overflow: hidden; box-shadow: 0 18px 40px rgba(20,60,120,.18); background: linear-gradient(180deg, #8EC3F0 0%, #BFDDF6 55%, #E8F1F8 100%); }
.scr .bar { position: absolute; top: 0; left: 0; right: 0; height: 22px; background: rgba(255,255,255,.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.scr .side { position: absolute; top: 34px; right: 10px; width: 232px; display: flex; flex-direction: column; gap: 10px; }
.scr .card { position: relative; height: 64px; padding: 11px 12px 0 46px; border-radius: 16px; background: rgba(255,255,255,.86); box-shadow: 0 2px 8px rgba(20,60,120,.12); font-size: 13px; line-height: 1.3; }
.scr .card b { display: block; font-size: 13.5px; }
.scr .card span { color: #5A6A82; }
.scr .card i { position: absolute; left: 12px; top: 14px; width: 24px; height: 24px; border-radius: 7px; }
.scr .badge { position: absolute; left: -12px; top: 20px; width: 24px; height: 24px; border-radius: 50%; background: var(--ring); color: var(--ring-ink); font: 800 13px/24px var(--font); text-align: center; font-style: normal; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.scr .ring { position: absolute; right: 7px; top: 31px; width: 238px; height: 70px; border: 3px solid var(--ring); border-radius: 19px; animation: nfd-step 4.5s steps(1) infinite; }
@keyframes nfd-step { 0% { transform: translateY(0); } 33.3% { transform: translateY(74px); } 66.6% { transform: translateY(148px); } }
.scr .key { position: absolute; left: 16px; bottom: 18px; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 14px; background: rgba(255,255,255,.9); box-shadow: 0 4px 14px rgba(20,60,120,.16); font-weight: 700; font-size: 14px; }
.scr .cap { font-size: 14px; padding: 2px 8px; }
.still figcaption { text-align: center; font-size: 15px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .scr .ring { animation: none; } }
