/* ===== Hero layout when the notch is the centrepiece ===== */
.hero-centered{padding-top:40px}
.hero-solo{max-width:760px;margin:0 auto;text-align:center}
.hero-solo .hero-ctas,.hero-solo .hero-meta{justify-content:center}
.hero-solo .hero-lede{margin-left:auto;margin-right:auto}
.hero-centered .hero-stage{margin-top:36px}
.hero-centered .nnx-wrap{min-height:300px}

/* ===== NotchNest interactive hero notch — built from real SwiftUI source =====
   Tokens mirror AdaptiveColors (app dark mode):
   primary #fff · secondary white/.7 · fill white/.1 · separator white/.21 */
.nnx-wrap{
  --nx-pri:#fff; --nx-sec:rgba(255,255,255,.7); --nx-sec2:rgba(255,255,255,.5);
  --nx-fill:rgba(255,255,255,.10); --nx-fill2:rgba(255,255,255,.05); --nx-sep:rgba(255,255,255,.21);
  --nx-blue:#4aa3ff; --nx-green:#34d399;
  position:relative;width:100%;display:flex;justify-content:center;min-height:300px;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(255,255,255,.05) 0%, transparent 60%),
    linear-gradient(180deg, #2a2a2e 0%, #1a1a1e 55%, #131316 100%);
  border:1px solid var(--border);border-radius:18px;overflow:hidden;
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","SF Pro Display",Inter,sans-serif;
}
.nnx-menubar{position:absolute;top:0;left:0;right:0;height:26px;display:flex;align-items:center;justify-content:space-between;padding:0 12px;font-size:11px;color:#e6e6e6;z-index:1}
.nnx-menubar .l{display:flex;gap:14px;align-items:center}
.nnx-menubar .l b{font-weight:600}
.nnx-menubar .r{display:flex;gap:11px;align-items:center;opacity:.85}
.nnx-cam-dot{width:8px;height:8px;border-radius:50%;background:#36d35a;box-shadow:0 0 8px #36d35a;display:none}
.nnx-wrap.cam-on .nnx-cam-dot{display:inline-block}

/* the notch */
.nnx{position:absolute;top:0;left:50%;transform:translateX(-50%);z-index:10;background:#000;border:1px solid rgba(255,255,255,.06);border-top:0;border-radius:0 0 13px 13px;width:200px;height:30px;overflow:hidden;cursor:pointer;transition:width .44s cubic-bezier(.16,1,.3,1),height .5s cubic-bezier(.16,1,.3,1),border-radius .5s ease;box-shadow:0 8px 30px rgba(0,0,0,.55);will-change:width,height;
  /* Swift-mirrored type scale: .headline 13 · .subheadline 12 · .caption 11 · .caption2 10 */
  --nx-fs-pri:13px; --nx-fs-sec:12px; --nx-fs-cap:11px; --nx-fs-mini:10px;
  --nx-fw-pri:600; --nx-fw-sec:500;
}
.nnx.open{width:min(1040px,97%);height:188px;border-radius:0 0 24px 24px;cursor:default;box-shadow:0 34px 90px rgba(0,0,0,.9)}

/* collapsed pill */
.nnx-pill{position:absolute;inset:0;display:flex;align-items:center;justify-content:space-between;padding:0 13px;opacity:1;transition:opacity .16s ease}
.nnx.open .nnx-pill{opacity:0;pointer-events:none}
.nnx-pill-art{width:18px;height:18px;border-radius:5px;background-size:cover;background-position:center}
.nnx-bars{display:flex;gap:2px;align-items:flex-end;height:13px}
.nnx-bars i{width:2.5px;background:#c8c8c8;border-radius:2px;animation:nnxbar 1s ease-in-out infinite}
.nnx-bars i:nth-child(2){animation-delay:.15s}.nnx-bars i:nth-child(3){animation-delay:.3s}.nnx-bars i:nth-child(4){animation-delay:.45s}
@keyframes nnxbar{0%,100%{height:3px}50%{height:13px}}

/* panel + tabs */
.nnx-panel{position:absolute;inset:0;display:flex;flex-direction:column;opacity:0;transition:opacity .2s ease .14s;pointer-events:none}
.nnx.open .nnx-panel{opacity:1;pointer-events:auto}
.nnx-bar{display:flex;align-items:center;justify-content:space-between;height:24px;padding:2px 12px 0;flex-shrink:0}
.nnx-tabs{display:flex;gap:3px}
.nnx-tab{width:28px;height:24px;border:0;background:transparent;border-radius:8px;color:var(--nx-sec);cursor:pointer;display:inline-flex;align-items:center;justify-content:center;padding:0;transition:background .15s,color .15s}
.nnx-tab svg{width:15px;height:15px}
.nnx-tab:hover{color:#fff;background:var(--nx-fill)}
.nnx-tab.active{color:#fff;background:rgba(255,255,255,.16)}
.nnx-sys{display:flex;gap:4px;align-items:center}
.nnx-sys button{width:22px;height:22px;border:0;background:transparent;border-radius:50%;color:var(--nx-sec);cursor:pointer;display:inline-flex;align-items:center;justify-content:center;padding:0}
.nnx-sys button svg{width:14px;height:14px}
.nnx-sys button:hover{color:#fff;background:var(--nx-fill)}

.nnx-views{flex:1;position:relative;overflow:hidden}
.nnx-view{position:absolute;top:0;left:0;right:0;bottom:4px;opacity:0;transform:translateY(5px);transition:opacity .2s,transform .2s;pointer-events:none}
.nnx-view.show{opacity:1;transform:none;pointer-events:auto}

/* ---- HOME: seamless surface, all modules equal height, 1px separators ---- */
.nnx-home{display:flex;height:100%;align-items:center}
.nnx-mod{padding:4px 12px;display:flex;flex-direction:column;min-width:0;position:relative;height:152px}
.nnx-mod + .nnx-mod::before{content:"";position:absolute;left:0;top:50%;transform:translateY(-50%);height:152px;width:1px;background:var(--nx-sep)}

/* music — album art (square, r22) + controls half, both full height — Swift .headline 13 for title+artist */
.nnx-music{flex-direction:row;gap:10px;align-items:center;width:300px;flex-shrink:0}
.nnx-cover{width:128px;height:128px;border-radius:22px;flex-shrink:0;position:relative;overflow:hidden;background:#222 center/cover no-repeat;image-rendering:auto}
.nnx-cover .sp{position:absolute;bottom:8px;right:8px;width:22px;height:22px;border-radius:50%;background:#1db954;display:flex;align-items:center;justify-content:center}
.nnx-cover .sp svg{width:14px;height:14px;fill:#000}
.nnx-music-meta{flex:1;min-width:0;display:flex;flex-direction:column;justify-content:flex-start;padding-left:4px;padding-top:6px}
.nnx-music-meta .t{font-size:var(--nx-fs-pri);font-weight:var(--nx-fw-pri);letter-spacing:-.01em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.25;color:var(--nx-pri)}
.nnx-music-meta .a{font-size:var(--nx-fs-pri);color:var(--nx-sec);font-weight:var(--nx-fw-sec);margin-bottom:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.25}
.nnx-scrub{height:5px;background:rgba(255,255,255,.25);border-radius:5px;position:relative;cursor:pointer}
.nnx-scrub i{display:block;height:100%;background:#fff;border-radius:5px;width:18%;position:relative}
.nnx-times{display:flex;justify-content:space-between;font-size:var(--nx-fs-cap);font-weight:var(--nx-fw-sec);color:var(--nx-sec);margin-top:6px;font-variant-numeric:tabular-nums}
.nnx-mctl{display:flex;gap:16px;justify-content:center;align-items:center;margin-top:10px}
.nnx-mctl button{background:0;border:0;color:#fff;cursor:pointer;padding:0;display:inline-flex;align-items:center;justify-content:center}
.nnx-mctl button svg{width:20px;height:20px;fill:#fff}
.nnx-mctl .nnx-mplay svg{width:26px;height:26px}

/* calendar — events top, day strip bottom; spacing tuned so day numerals fit fully */
.nnx-cal{width:184px;flex-shrink:0;justify-content:flex-start;overflow:hidden}
.nnx-cal .mh{display:flex;justify-content:space-between;align-items:center;margin-bottom:4px}
.nnx-cal .mh b{font-size:var(--nx-fs-pri);font-weight:var(--nx-fw-pri);color:var(--nx-pri)}
.nnx-cal .mh .ai{color:var(--nx-sec);display:inline-flex}
.nnx-ev{margin-bottom:3px;padding-left:8px;border-left:2.5px solid #c07cf0}
.nnx-ev:last-of-type{margin-bottom:0}
.nnx-ev.g{border-color:var(--nx-green)}
.nnx-ev b{display:block;font-size:var(--nx-fs-sec);font-weight:var(--nx-fw-pri);color:var(--nx-pri);line-height:1.2}
.nnx-ev span{font-size:var(--nx-fs-cap);color:var(--nx-sec);line-height:1.2}
.nnx-days{display:flex;gap:3px;padding-top:2px;margin-top:auto}
.nnx-day{flex:1;text-align:center}
.nnx-day .dn{font-size:var(--nx-fs-mini);font-weight:var(--nx-fw-sec);color:var(--nx-sec);display:block;margin-bottom:1px;line-height:1.1}
.nnx-day b{display:block;font-size:var(--nx-fs-sec);font-weight:var(--nx-fw-sec);color:var(--nx-pri);padding:2px 0;border-radius:6px;line-height:1.1}
.nnx-day.on b{background:var(--nx-fill)}

/* bookmarks — 2-col grid of 32px tiles */
.nnx-bm{width:96px;flex-shrink:0;justify-content:center}
.nnx-bm-grid{display:grid;grid-template-columns:repeat(2,32px);gap:8px;justify-content:center;align-content:center}
.nnx-bm-grid a,.nnx-bm-add{width:32px;height:32px;border-radius:8px;display:flex;align-items:center;justify-content:center;text-decoration:none;background:var(--nx-fill);overflow:hidden}
.nnx-bm-grid a img{width:22px;height:22px;object-fit:contain}
.nnx-bm-add{cursor:pointer;color:var(--nx-sec);font-size:18px;font-weight:300;border:0}

/* notes — default = prompt + note list (edit opens on tap) */
.nnx-notes{width:170px;flex-shrink:0;justify-content:flex-start;overflow:hidden}
.nnx-notes .ph{font-size:var(--nx-fs-sec);color:var(--nx-sec);margin-bottom:10px;cursor:text}
.nnx-note{margin-bottom:9px;display:flex;align-items:flex-start;gap:6px}
.nnx-note .nbody{flex:1;min-width:0}
.nnx-note .ntext{font-size:var(--nx-fs-sec);line-height:1.35;color:var(--nx-pri);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.nnx-note .nts{font-size:var(--nx-fs-mini);color:rgba(255,255,255,.56);margin-top:3px;display:inline-block}
.nnx-note .nbar{height:2.5px;border-radius:2px;margin-top:3px;background:var(--nx-blue)}
.nnx-note .nbar.r{background:#ff5c5c}.nnx-note .nbar.g{background:var(--nx-green)}
.nnx-note .nchk{background:0;border:0;cursor:pointer;color:var(--nx-sec);padding:0;display:inline-flex;flex-shrink:0;margin-top:1px}
.nnx-note .nchk svg{width:13px;height:13px}
/* notes edit mode */
.nnx-notes-edit{display:none;flex:1;flex-direction:row;gap:8px}
.nnx-notes.editing .nnx-notes-list{display:none}
.nnx-notes.editing .nnx-notes-edit{display:flex}
.nnx-notes-edit textarea{flex:1;background:transparent;border:0;color:var(--nx-pri);font:inherit;font-size:var(--nx-fs-sec);line-height:1.35;padding:0;resize:none;outline:0}
.nnx-edit-actions{display:flex;align-items:center;gap:7px;margin-top:6px}
.nnx-edit-actions button{width:24px;height:24px;border-radius:50%;border:0;background:var(--nx-fill);color:var(--nx-pri);cursor:pointer;display:inline-flex;align-items:center;justify-content:center}
.nnx-edit-actions button svg{width:12px;height:12px}
.nnx-edit-actions .sp{flex:1}
.nnx-colors{display:flex;flex-direction:column;gap:5px;padding-top:2px}
.nnx-colors button{width:12px;height:12px;border-radius:50%;border:0;cursor:pointer;padding:0}
.nnx-colors button.r{background:#ff5c5c}.nnx-colors button.b{background:var(--nx-blue)}.nnx-colors button.g{background:var(--nx-green)}
.nnx-colors button.on{outline:2px solid #fff;outline-offset:1px}

/* timer — space-between: mode pill / time+progress / controls */
.nnx-timer{width:150px;flex-shrink:0;align-items:center;justify-content:space-between;text-align:center}
.nnx-tph{display:inline-flex;align-items:center;gap:5px;font-size:var(--nx-fs-cap);font-weight:var(--nx-fw-sec);color:var(--nx-blue);padding:4px 9px;border-radius:999px;background:rgba(74,163,255,.12)}
.nnx-timer.rest .nnx-tph{background:rgba(52,211,153,.12);color:var(--nx-green)}
.nnx-tph .ic{display:inline-flex}
.nnx-tph .ic svg{width:11px;height:11px;fill:currentColor}
.nnx-tph .sprint{color:var(--nx-sec);font-weight:var(--nx-fw-sec);font-size:var(--nx-fs-mini);margin-left:1px}
.nnx-tmid{display:flex;flex-direction:column;align-items:center;gap:7px}
.nnx-timer .tt{font-size:35px;font-weight:500;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-variant-numeric:tabular-nums;line-height:1;color:var(--nx-pri);letter-spacing:-.02em}
.nnx-timer.focus.running .tt{color:var(--nx-blue)}.nnx-timer.rest.running .tt{color:var(--nx-green)}
.nnx-timer .ul{height:2px;width:96px;border-radius:2px;background:rgba(255,255,255,.3);position:relative;overflow:hidden}
.nnx-timer .ul i{position:absolute;left:0;top:0;bottom:0;width:0%;background:var(--nx-blue);transition:width .3s ease}
.nnx-timer.rest .ul i{background:var(--nx-green)}
.nnx-tctl{display:flex;gap:14px;justify-content:center;align-items:center}
.nnx-tctl button{width:26px;height:26px;border-radius:50%;border:0;background:var(--nx-fill);color:var(--nx-pri);cursor:pointer;display:inline-flex;align-items:center;justify-content:center;padding:0}
.nnx-tctl button svg{width:13px;height:13px;fill:var(--nx-pri)}
.nnx-tctl .nnx-tplay{width:34px;height:34px;background:rgba(74,163,255,.2)}
.nnx-timer.rest .nnx-tctl .nnx-tplay{background:rgba(52,211,153,.2)}
.nnx-tctl .nnx-tplay svg{width:16px;height:16px}

/* mirror — round camera puck */
.nnx-mirror{width:150px;flex-shrink:0;align-items:center;justify-content:center;cursor:pointer}
.nnx-mirror .ic{width:110px;height:110px;border-radius:50%;background:radial-gradient(circle at 50% 35%, #2a2a2e 0%, #141417 80%);display:flex;align-items:center;justify-content:center;border:1px solid rgba(255,255,255,.08)}
.nnx-mirror .ic svg{width:34px;height:34px;fill:var(--nx-sec)}
.nnx-mirror .lb{font-size:var(--nx-fs-cap);color:var(--nx-sec);margin-top:9px}
.nnx-mirror video{width:120px;height:120px;object-fit:cover;border-radius:50%;display:none}
.nnx-mirror.live{width:160px}
.nnx-mirror.live .ic,.nnx-mirror.live .lb{display:none}
.nnx-mirror.live video{display:block}

/* ---- TRAY ---- */
.nnx-tray{display:flex;height:100%}
.nnx-tray .ad{width:150px;flex-shrink:0;display:flex;flex-direction:column;align-items:center;justify-content:center;border-right:1px solid var(--nx-sep);color:var(--nx-sec)}
.nnx-tray .ad svg{width:30px;height:30px;fill:var(--nx-sec)}
.nnx-tray .ad .lb{font-size:var(--nx-fs-sec);margin-top:9px}
.nnx-tray .drop{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--nx-sec);border:2px dashed transparent;transition:border-color .15s,background .15s;border-radius:16px;margin:16px;font-size:var(--nx-fs-pri)}
.nnx-tray .drop.over{border-color:var(--nx-blue);background:rgba(74,163,255,.08);color:#cfe6ff}
.nnx-tray .drop svg{width:30px;height:30px;fill:var(--nx-sec);margin-bottom:10px}
.nnx-tray .drop .nudge{font-size:var(--nx-fs-cap);color:var(--nx-blue);margin-top:10px;display:none}
.nnx-tray .drop.dropped .nudge{display:block}

/* ---- GAME ---- */
.nnx-game{height:100%;position:relative;background:#000;border-radius:0 0 26px 26px;overflow:hidden}
.nnx-game canvas{width:100%;height:100%;display:block;image-rendering:pixelated}
.nnx-game .hint{position:absolute;top:10px;right:16px;text-align:right;font-family:ui-monospace,Menlo,monospace;font-size:11px;color:#d9943f;line-height:1.6}
.nnx-game .start{position:absolute;top:42%;left:0;right:0;text-align:center;font-family:ui-monospace,Menlo,monospace;font-weight:700;color:#fff;font-size:14px;letter-spacing:2px}

/* ---- CLIPBOARD ---- */
.nnx-clip{display:flex;flex-direction:column;height:100%;padding:12px 16px 16px}
.nnx-clip-top{display:flex;gap:10px;margin-bottom:12px}
.nnx-search{flex:1;display:flex;align-items:center;gap:8px;background:var(--nx-fill);border-radius:11px;padding:8px 12px;color:var(--nx-sec)}
.nnx-search svg{width:14px;height:14px;fill:var(--nx-sec)}
.nnx-search input{flex:1;background:0;border:0;color:var(--nx-pri);font:inherit;font-size:var(--nx-fs-pri);outline:0}
.nnx-clear{background:var(--nx-fill);border:0;border-radius:11px;color:var(--nx-pri);font-size:var(--nx-fs-sec);padding:0 14px;cursor:pointer;white-space:nowrap}
.nnx-cards{display:flex;gap:10px;overflow-x:auto;flex:1;padding-bottom:6px}
.nnx-cb{width:172px;flex-shrink:0;background:rgba(255,255,255,.05);border-radius:14px;padding:11px;display:flex;flex-direction:column}
.nnx-cb.pinned{background:rgba(74,163,255,.14)}
.nnx-cb .txt{font-size:var(--nx-fs-sec);line-height:1.45;color:var(--nx-pri);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.nnx-cb .meta{display:flex;align-items:center;gap:8px;margin-top:auto;padding-top:10px;font-size:var(--nx-fs-mini);color:var(--nx-sec)}
.nnx-cb .meta .sp{flex:1}
.nnx-cb .meta button{background:0;border:0;cursor:pointer;padding:0;display:inline-flex}
.nnx-cb .meta button svg{width:13px;height:13px;fill:var(--nx-sec)}
.nnx-cb .meta button.del svg{fill:#ff5c5c}
.nnx-cb .meta button.pin.on svg{fill:var(--nx-blue)}

@media (max-width:760px){
  .nnx.open{width:97%;height:320px}
  .nnx-home{overflow-x:auto}
  .nnx-mirror,.nnx-bm{display:none}
}
