/* The native Today journal, shown partway down its list of entries. */
.app-preview {
  width: 100%;
  min-height: 100%;
  margin: 0;
  padding: 1.2rem 0 1rem;
  display: grid;
  justify-items: center;
  align-content: center;
  row-gap: .85rem;
  position: relative;
  container-type: inline-size;
}

.app-preview__device {
  color-scheme: light;
  font: clamp(13px, 2.8cqw, 16px)/1.3 system-ui, sans-serif;
  position: relative;
  width: 17.1em;
  aspect-ratio: .52;
  padding: .36em;
  border: 1px solid #453d43;
  border-radius: 2.18em;
  background: linear-gradient(120deg, #8a8384, #252227 14%, #19181b 70%, #777278 92%, #262328);
  box-shadow: .08em .12em 0 #9d9193 inset, .17em .18em .1em #241e23,
              .65em 1.15em 1.6em -.45em #24131d82;
  transform: rotate(-1.5deg);
}
.app-preview__device::before {
  content: "";
  position: absolute;
  right: -.17em;
  top: 8em;
  height: 2.8em;
  width: .14em;
  background: #635b60;
  border-radius: 0 .1em .1em 0;
}
.app-preview__screen {
  width: 100%;
  height: 100%;
  border-radius: 1.78em;
  border: .16em solid #141317;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #faf6ef;
  color: #2b2820;
  font-family: Georgia, serif;
  text-align: left;
}
.app-preview__status {
  height: 2em;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  padding: .24em 1.14em 0;
  color: #262521;
}
.app-preview__status > span:first-child { font: 700 .67em/1 system-ui, sans-serif; }
.app-preview__status svg { width: 2.1em; height: .8em; }
.app-preview__island {
  position: absolute;
  left: 50%;
  top: .4em;
  width: 3.7em;
  height: .9em;
  border-radius: 1em;
  background: #171619;
  transform: translateX(-50%);
}
.app-preview__nav {
  flex: none;
  padding: .08em .5em .53em;
  text-align: center;
  font: 600 1.12em/1.4 Georgia, serif;
}
.app-preview__entries {
  min-height: 0;
  flex: 1;
  overflow: hidden;
  padding: .32em .65em 0;
}
.app-preview__entry {
  padding: .68em;
  border: 1px solid #e5dccb;
  border-radius: .68em;
  background: #f1eadd;
}
.app-preview__entry + .app-preview__entry { margin-top: .45em; }
.app-preview__mat {
  padding: .4em;
  margin-bottom: .55em;
  background: #fff;
  border: 1px solid #e6ded1;
  box-shadow: 0 .15em .35em #2b282012;
}
.app-preview__mat img {
  display: block;
  width: 100%;
  height: 9.55em;
  object-fit: cover;
  object-position: center 48%;
}
.app-preview__title { font: 600 1.12em/1.28 Georgia, serif; }
.app-preview__body { margin-top: .23em; font: .93em/1.48 Georgia, serif; }
.app-preview__meta {
  margin-top: .62em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .35em;
  color: #655f55;
  font: 500 .67em/1.3 system-ui, sans-serif;
}
.app-preview__meta span:last-child { display: inline-flex; align-items: center; gap: .35em; }
.app-preview__meta svg, .app-preview__bar svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}
.app-preview__meta svg { width: 1.05em; height: 1.05em; }
.app-preview__bar {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #e5dccb;
  padding: .53em .86em .35em;
  background: #faf6ef;
}
.app-preview__bar svg { width: 1.15em; height: 1.15em; }
.app-preview__add, .app-preview__camera {
  height: 2.45em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 2em;
}
.app-preview__add {
  gap: .28em;
  padding: 0 .83em;
  background: #7e6435;
  color: #faf6ef;
  font: 650 .95em/1 system-ui, sans-serif;
}
.app-preview__camera { width: 2.45em; border: 1px solid #a8894e; color: #765b32; background: #f1eadd; }
.app-preview__home {
  width: 4.7em;
  height: .22em;
  flex: none;
  border-radius: 1em;
  background: #2b2820;
  margin: .3em auto .34em;
}
.app-preview__caption {
  order: 2;
  padding: .18rem .64rem;
  border-radius: .4rem;
  color: #382a34;
  background: #fff6e9ed;
  font: 600 .72rem/1.35 system-ui, sans-serif;
  letter-spacing: .015em;
}
.app-preview__sr, .app-preview__selector input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.app-preview__selector {
  order: 1;
  position: relative;
  display: flex;
  padding: .18rem;
  margin: 0 0 -.5rem;
  min-width: 0;
  max-width: 100%;
  border: 1px solid #d7c4b6;
  border-radius: 3rem;
  background: #fff6e9;
  box-shadow: 0 2px 8px #2b182632;
}
.app-preview__selector label { cursor: pointer; margin: 0; min-width: 0; }
.app-preview__selector label span {
  display: grid;
  align-content: center;
  min-width: min(4.9rem, 32cqw);
  min-height: 2.4rem;
  border-radius: 3rem;
  padding: 0 .7rem;
  text-align: center;
  font: 600 .82rem/1 system-ui, sans-serif;
  color: #54354c;
}
.app-preview__selector input:checked + span { background: #442b4b; color: #fff6e9; }
.app-preview__selector input:focus-visible + span { outline: 2px solid #664c91; outline-offset: 3px; }
.app-preview__finder { display: none; position: relative; background: #211d17; }
.app-preview:has(#sample-camera:checked) .app-preview__timeline { display: none; }
.app-preview:has(#sample-camera:checked) .app-preview__finder { display: flex; }
.app-preview__live { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% center; }
.app-preview__finder .app-preview__status { color: #fff; background: linear-gradient(#211d1770, transparent); }
.app-preview__tools, .app-preview__finder-bottom {
  position: relative;
  z-index: 1;
  font-family: system-ui, sans-serif;
}
.app-preview__tools { display: flex; align-items: center; justify-content: space-between; gap: .12em; padding: .2em .48em; }
.app-preview__tools span, .app-preview__lenses {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 2em;
  color: #fff6e9;
  background: #211d17c9;
}
.app-preview__tools span { gap: .25em; min-width: 2.18em; height: 2.1em; padding: 0 .48em; font-size: .62em; font-weight: 700; }
.app-preview__tools svg {
  width: 1.2em; height: 1.2em; fill: none; stroke: currentColor;
  stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.9;
}
.app-preview__tools span.app-preview__private { color: #f7d594; background: #4d4028de; border: 1px solid #bca171; }
.app-preview__finder-bottom {
  margin-top: auto;
  display: grid;
  justify-items: center;
  gap: .72em;
  padding: 1em 0 .1em;
  background: linear-gradient(transparent, #211d1770);
}
.app-preview__lenses { gap: .25em; padding: .2em; font-size: .65em; font-weight: 650; }
.app-preview__lenses > * { padding: .43em .56em; }
.app-preview__lenses b { border-radius: 2em; background: #8674488f; color: #ffdf9f; }
.app-preview__shutter {
  width: 3.6em; aspect-ratio: 1; border-radius: 50%; border: .18em solid #faf6ef;
  background: #faf6ef; box-shadow: inset 0 0 0 .22em #292621;
}
.app-preview__finder .app-preview__home { background: #fff6e9; }
@media (max-width: 49.99rem) {
  .app-preview__device { transform: none; }
  .app-preview__selector { order: -1; margin: 0 0 .4rem; }
  .app-preview__selector label span { min-height: 2.75rem; }
}
@container (max-width: 14rem) {
  .app-preview__selector { flex-direction: column; width: min(100%, 10rem); border-radius: 1rem; }
  .app-preview__selector label span { min-width: 0; padding-inline: .25em; overflow-wrap: anywhere; }
}
@media (forced-colors: active) {
  .app-preview__selector input:checked + span { outline: 2px solid Highlight; }
}
