/* A cropped display edge: the notch, with just enough Mac around it. */
.notch-story { max-width: 920px; margin: 0 auto; }
.notch-scene { --notch-tint: #c0a0f4; --notch-camera: 156px; position: relative; height: 280px; padding-top: 38px; transform: translateY(var(--notch-rise, 0px)); }
.notch-display { position: absolute; inset: 32px 0 0; overflow: hidden; border: 5px solid #27272b; border-bottom: 0; border-radius: 26px 26px 0 0; background: radial-gradient(ellipse at 50% 0, #e7e2f1 0, #f1eff5 45%, var(--bg) 85%); box-shadow: 0 -1px 0 #5b5b60; mask-image: linear-gradient(#000 0%, #000 28%, transparent 95%); -webkit-mask-image: linear-gradient(#000 0%, #000 28%, transparent 95%); }
.notch-menubar { height: 36px; padding: 0 22px; display: flex; align-items: center; justify-content: space-between; font-size: 10px; color: #64616c; background: #ffffff38; }
.notch-menubar > span:first-child { font-weight: 600; }
.notch-menubar > span:last-child { display: flex; align-items: center; gap: 10px; font-variant-numeric: tabular-nums; }
.notch-menubar svg { width: 19px; height: 11px; }
.notch-demo { position: absolute; z-index: 1; top: 37px; left: 50%; translate: -50% 0; width: 280px; height: 36px; overflow: hidden; border-radius: 0 0 13px 13px; background: #050505; color: #edeff5; box-shadow: 0 8px 18px -14px #0008; transition: width .65s cubic-bezier(.22,1,.36,1), height .65s cubic-bezier(.22,1,.36,1), border-radius .65s, box-shadow .65s; }
.notch-scene[data-expanded="true"] .notch-demo { width: 344px; height: 104px; border-radius: 0 0 22px 22px; box-shadow: 0 18px 28px -18px #20172966; }
.notch-header { display: grid; grid-template-columns: 1fr var(--notch-camera) 1fr; align-items: center; height: 36px; padding: 0 8px; }
.notch-camera { display: grid; place-items: center; height: 36px; }
.notch-camera i { width: 5px; height: 5px; border-radius: 50%; background: #12151b; box-shadow: inset 0 0 1px #2a354e; }
.notch-art { display: flex; align-items: center; justify-content: center; min-width: 0; gap: 5px; }
.notch-art img { flex: none; width: 26px; height: 26px; max-width: none; object-fit: contain; }
.notch-art img[hidden] { display: none; }
.notch-art > span { max-width: 0; overflow: hidden; opacity: 0; font-size: 10px; color: var(--notch-tint); white-space: nowrap; transition: max-width .5s, opacity .4s; }
.notch-scene[data-expanded="true"] .notch-art > span { max-width: 34px; opacity: 1; }
.notch-time { text-align: center; font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.notch-details { height: 68px; display: flex; align-items: center; gap: 10px; padding: 0 16px; opacity: 0; transform: translateY(-5px); transition: opacity .3s, transform .5s var(--ease); }
.notch-scene[data-expanded="true"] .notch-details { opacity: 1; transform: none; transition-delay: .12s; }
.notch-action, .notch-secondary { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; color: #b7becc; }
.notch-action { background: #c0a0f414; color: var(--notch-tint); font-size: 14px; }
.notch-item { flex: 1; min-width: 0; }
.notch-item b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 500; }
.notch-item small { display: block; font-size: 10px; color: #9d9ba5; margin-top: 3px; }
.notch-secondary.join { width: 40px; font-size: 10px; background: #edeff514; border-radius: 16px; color: #edeff5; }
.notch-scene[data-phase="reminder"] { --notch-tint: #f5b94a; }
.notch-scene[data-phase="meeting"] { --notch-tint: #ff8a80; }
.notch-scene[data-phase="reminder"] .notch-time, .notch-scene[data-phase="meeting"] .notch-time { color: var(--notch-tint); }
.notch-controls { position: relative; display: flex; justify-content: center; align-items: center; min-height: 36px; margin-top: -28px; }
.notch-controls p { font-size: 13px; color: var(--ink-3); text-align: center; letter-spacing: -.01em; }
.notch-controls button { position: absolute; right: 12px; width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; cursor: pointer; color: var(--ink-3); transition: color .2s, border-color .2s; }
.notch-controls button:hover { color: var(--ink); border-color: var(--line-2); }
.notch-controls button[hidden] { display: none; }
.notch-controls button svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; fill: none; }
.notch-controls button:focus-visible { outline: 2px solid var(--lilac-2); outline-offset: 4px; }
.notch-story.is-running .notch-scene[data-phase="focus"] .notch-art img { animation: notch-breathe 4s ease-in-out infinite; }
@keyframes notch-breathe { 50% { transform: translateY(-.6px) scale(.96); } }
@media (max-width: 600px) {
  .notch-scene { height: 240px; --notch-camera: 124px; }
  .notch-display { inset-inline: -8px; border-width: 4px; border-radius: 20px 20px 0 0; }
  .notch-demo { top: 36px; width: 252px; }
  .notch-scene[data-expanded="true"] .notch-demo { width: min(316px, 100%); }
  .notch-menubar { padding-inline: 12px; font-size: 9px; }
  .notch-menubar svg { display: none; }
  .notch-details { padding-inline: 12px; gap: 8px; }
  .notch-controls { padding-right: 36px; padding-left: 8px; }
  .notch-controls p { font-size: 12px; }
  .notch-controls button { right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .notch-scene { transform: none; }
  .notch-demo, .notch-details, .notch-art > span { transition: none; }
  .notch-story.is-running .notch-art img { animation: none; }
}
