/* windows.css — window frames. Only the Credits window exists so far. */

/* ---- Credits window: fully translucent liquid glass ----
   No opaque fills anywhere — the lens (glass-window.js) refracts the
   wallpaper behind the whole window; everything on top is text and hairlines.
   Animate transform only: opacity would stop the lens seeing the wallpaper. */
.glass-window {
  position: fixed;
  z-index: 600;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px) saturate(1.5); /* fallback when the lens can't run */
  -webkit-backdrop-filter: blur(14px) saturate(1.5);
  color: rgba(255, 255, 255, 0.95);
  font-family: "SF Pro Display", -apple-system, system-ui, sans-serif;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    inset 0 -1px 0 rgba(255, 255, 255, 0.12),
    0 18px 60px rgba(0, 0, 0, 0.3);
  animation: glass-window-open 320ms cubic-bezier(0.34, 1.25, 0.42, 1) both;
}

.glass-window.is-closing {
  transform: scale(0.94);
  transition: transform 180ms ease-in;
  pointer-events: none;
}

@keyframes glass-window-open {
  from { transform: scale(0.92) translateY(14px); }
  to   { transform: none; }
}

.glass-window__bar {
  position: relative;
  z-index: 1; /* above the lens */
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  cursor: grab;
  user-select: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.glass-window__title {
  font-size: 15px;
  font-weight: 600;
  text-shadow: 0 1px 8px rgba(10, 20, 40, 0.3);
}

.glass-window__close {
  position: absolute;
  right: 14px;
  top: 50%;
  width: 28px;
  height: 28px;
  padding: 0;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: inherit;
  cursor: pointer;
  transition: background-color 160ms ease;
}

.glass-window__close svg { width: 12px; height: 12px; }

.glass-window__close:hover { background: rgba(255, 255, 255, 0.28); }

.glass-window__body {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 22px 28px 28px;
  text-align: center;
  text-shadow: 0 1px 10px rgba(10, 20, 40, 0.28);
}

/* translucent scrollbar — the default one is an opaque white slab */
.glass-window__body {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
}
.glass-window__body::-webkit-scrollbar { width: 10px; }
.glass-window__body::-webkit-scrollbar-track { background: transparent; }
.glass-window__body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border: 3px solid transparent;
  background-clip: padding-box;
  border-radius: 999px;
}
body[data-wallpaper-mode="light"] .glass-window__body {
  scrollbar-color: rgba(0, 0, 0, 0.3) transparent;
}
body[data-wallpaper-mode="light"] .glass-window__body::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.25);
  background-clip: padding-box;
}

.credits__hero h2 {
  margin: 0;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.credits__hero p {
  margin: 4px 0 24px;
  opacity: 0.8;
  font-size: 14px;
}

.credits__group { margin-bottom: 20px; }

.credits__group h3 {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.65;
}

.credits__group p {
  margin: 2px 0;
  font-size: 17px;
}

/* resize hit areas (invisible) */
.glass-window__resize { position: absolute; z-index: 2; }
.glass-window__resize--n  { top: -4px; left: 20px; right: 20px; height: 9px; cursor: ns-resize; }
.glass-window__resize--s  { bottom: -4px; left: 20px; right: 20px; height: 9px; cursor: ns-resize; }
.glass-window__resize--e  { right: -4px; top: 20px; bottom: 20px; width: 9px; cursor: ew-resize; }
.glass-window__resize--w  { left: -4px; top: 20px; bottom: 20px; width: 9px; cursor: ew-resize; }
.glass-window__resize--ne { top: -4px; right: -4px; width: 22px; height: 22px; cursor: nesw-resize; }
.glass-window__resize--nw { top: -4px; left: -4px; width: 22px; height: 22px; cursor: nwse-resize; }
.glass-window__resize--se { bottom: -4px; right: -4px; width: 22px; height: 22px; cursor: nwse-resize; }
.glass-window__resize--sw { bottom: -4px; left: -4px; width: 22px; height: 22px; cursor: nesw-resize; }

/* light mode: black text */
body[data-wallpaper-mode="light"] .glass-window { color: #000; }
body[data-wallpaper-mode="light"] .glass-window__body,
body[data-wallpaper-mode="light"] .glass-window__title {
  text-shadow: 0 1px 8px rgba(255, 255, 255, 0.55);
}

@media (prefers-reduced-motion: reduce) {
  .glass-window { animation-duration: 0.01ms; }
  .glass-window.is-closing { transition-duration: 0.01ms; }
}

/* ---- shared bits for the Notepad + File Explorer ---- */
.glass-button {
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: inherit;
  font: 500 13px/1 "SF Pro Display", -apple-system, system-ui, sans-serif;
  text-shadow: inherit;
  cursor: pointer;
  transition: background-color 160ms ease, opacity 160ms ease;
}
.glass-button:hover:not(:disabled) { background: rgba(255, 255, 255, 0.28); }
.glass-button:disabled { opacity: 0.4; cursor: default; }

/* app windows that manage their own layout instead of centered text */
.notepad-window .glass-window__body,
.files-window .glass-window__body,
.settings-window .glass-window__body {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  text-align: left;
}

.notepad__editor,
.notepad__preview,
.files__list {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
}
body[data-wallpaper-mode="light"] .notepad__editor,
body[data-wallpaper-mode="light"] .notepad__preview,
body[data-wallpaper-mode="light"] .files__list { scrollbar-color: rgba(0, 0, 0, 0.3) transparent; }

.md > :first-child { margin-top: 0; }
.md h1, .md h2, .md h3, .md h4, .md h5, .md h6 { margin: 1.1em 0 0.4em; line-height: 1.25; letter-spacing: -0.01em; }
.md h1 { font-size: 1.7em; } .md h2 { font-size: 1.4em; } .md h3 { font-size: 1.2em; }
.md h4, .md h5, .md h6 { font-size: 1em; }
.md p { margin: 0.6em 0; }
.md ul, .md ol { margin: 0.6em 0; padding-left: 1.5em; }
.md code {
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.18);
  font: 0.9em ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
.md pre { margin: 0.8em 0; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.14); overflow-x: auto; }
.md pre code { padding: 0; background: none; }
.md blockquote { margin: 0.8em 0; padding-left: 14px; border-left: 3px solid rgba(255, 255, 255, 0.5); opacity: 0.85; }
.md hr { border: 0; border-top: 1px solid rgba(255, 255, 255, 0.35); margin: 1.2em 0; }
.md a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* ---- Calculator: the iPhone Calculator — black, solid iOS colors, round keys ----
   Deliberately NOT glass: the real app is opaque black. */
body[data-wallpaper-mode] .calc-window,
.calc-window {
  background: #000;
  color: #fff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-color: rgba(255, 255, 255, 0.14);
}
.calc-window .glass-window__lens { display: none; }
.calc-window .glass-window__bar { border-bottom: 0; }
.calc-window .glass-window__title,
.calc-window .glass-window__body { text-shadow: none; }
.calc-window .glass-window__close { background: #333; border-color: transparent; }
.calc-window .glass-window__close:hover { background: #4a4a4a; }

.calc-window .glass-window__body {
  display: flex;
  flex-direction: column;
  padding: 0 14px 18px;
  overflow: hidden;
  text-align: left;
  container-type: size;
}

.calc__display {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 0 10px 8px;
  overflow: hidden;
}

.calc__value {
  font: 300 84px/1 "SF Pro Display", -apple-system, system-ui, sans-serif;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* keys stay perfectly round: the pad keeps a 4:5 shape that fits the window */
.calc__pad {
  flex: 0 0 auto;
  align-self: center;
  width: min(100%, calc((100cqh - 90px) * 0.8));
  aspect-ratio: 4 / 5;
  container-type: inline-size;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(5, 1fr);
  gap: 3.4cqw;
}

.calc__key {
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #333;
  color: #fff;
  font: 400 9cqw/1 "SF Pro Display", -apple-system, system-ui, sans-serif;
  text-shadow: none;
  cursor: pointer;
  transition: background-color 90ms ease;
}
.calc__key:active { background: #737373; transition: none; }
.calc__key--zero { grid-column: span 2; text-align: left; padding-left: 8.4cqw; }

.calc__key--fn { background: #a5a5a5; color: #000; }
.calc__key--fn:active { background: #d9d9d9; }

.calc__key--op { background: #ff9f0a; color: #fff; font-size: 11cqw; font-weight: 300; }
.calc__key--op:active { background: #fcc78f; }
.calc__key--op.is-active { background: #fff; color: #ff9f0a; }

/* ---- Files: the iPhone Files app (opaque iOS colors, light + dark) ---- */
.files-window,
.settings-window {
  --plain: #000;
  --grouped: #000;
  --card: #1c1c1e;
  --sep: #38383a;
  --label: #fff;
  --label2: #8e8e93;
  --blue: #0a84ff;
  --search-bg: #1c1c1e;
  --search-fill: #1c1c1e;
  --barbg: rgba(30, 30, 30, 0.94);
  background: var(--plain);
  color: var(--label);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-color: var(--sep);
}
body[data-wallpaper-mode="light"] .files-window,
body[data-wallpaper-mode="light"] .settings-window {
  --plain: #fff;
  --grouped: #f2f2f7;
  --card: #fff;
  --sep: #c6c6c8;
  --label: #000;
  --label2: #8a8a8e;
  --blue: #007aff;
  --search-bg: #eeeef0;
  --search-fill: #eeeef0;
  --barbg: rgba(249, 249, 249, 0.94);
  color: var(--label);
}
.files-window:has([data-id="browse"]) { background: var(--grouped); }
.files-window .glass-window__lens { display: none; }
.settings-window .glass-window__lens { display: none; }
.files-window .glass-window__bar { border-bottom: 0; }
.settings-window .glass-window__bar { border-bottom: 0; }
.files-window .glass-window__title,
.files-window .glass-window__body,
.settings-window .glass-window__title,
.settings-window .glass-window__body { text-shadow: none; }
.files-window .glass-window__close { background: var(--search-bg); border-color: transparent; }
.settings-window .glass-window__close { background: var(--search-bg); border-color: transparent; }
.files-window .glass-window__body,
.settings-window .glass-window__body {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  text-align: left;
}
.files-window button,
.settings-window button { font-family: "SF Pro Display", -apple-system, system-ui, sans-serif; }

.ios {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  font-family: "SF Pro Display", -apple-system, system-ui, sans-serif;
  color: var(--label);
}
.ios svg { display: block; }
.ios__stage { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; }

.ios__screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--plain);
}
.ios__screen[data-id="browse"] { background: var(--grouped); }
.ios__screen.is-push { animation: ios-push 340ms cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.ios__screen.is-pop { animation: ios-pop 340ms cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes ios-push { from { transform: translateX(38%); } to { transform: none; } }
@keyframes ios-pop { from { transform: translateX(-24%); } to { transform: none; } }

/* nav bar: back button, inline title (appears on scroll), actions */
.ios__nav {
  flex: 0 0 44px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 10px;
  border-bottom: 1px solid transparent;
  transition: border-color 160ms ease;
}
.ios__screen.is-scrolled .ios__nav { border-bottom-color: var(--sep); }
.ios__nav-title {
  font-size: 17px;
  font-weight: 600;
  opacity: 0;
  transition: opacity 160ms ease;
  white-space: nowrap;
}
.ios__screen.is-scrolled .ios__nav-title,
.ios__nav-title.is-selecting { opacity: 1; }
.ios__nav-left { justify-self: start; min-width: 0; }
.ios__nav-right { justify-self: end; display: flex; align-items: center; gap: 14px; }

.ios__back {
  display: flex;
  align-items: center;
  gap: 2px;
  max-width: 100%;
  padding: 6px 4px 6px 0;
  border: 0;
  background: none;
  color: var(--blue);
  font-size: 17px;
  cursor: pointer;
}
.ios__back svg { width: 22px; height: 22px; flex: 0 0 auto; }
.ios__back span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ios__text-btn {
  padding: 6px 4px;
  border: 0;
  background: none;
  color: var(--blue);
  font-size: 17px;
  cursor: pointer;
}
.ios__text-btn.is-bold { font-weight: 600; }
.ios__round-btn {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--search-fill);
  color: var(--blue);
  cursor: pointer;
}
.ios__round-btn svg { width: 16px; height: 16px; }

.ios__scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(128, 128, 128, 0.5) transparent;
}
.ios__large {
  margin: 0;
  padding: 2px 16px 8px;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

.ios__search {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  box-sizing: border-box;
  margin: 0 16px 14px;
  padding: 0 8px;
  border-radius: 10px;
  background: var(--search-fill);
  color: var(--label2);
}
.ios__search > svg { width: 17px; height: 17px; flex: 0 0 auto; }
.ios__search input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--label);
  font: 17px/1 "SF Pro Display", -apple-system, system-ui, sans-serif;
}
.ios__search input::placeholder { color: var(--label2); }
.ios__clear { padding: 0; border: 0; background: none; color: var(--label2); cursor: pointer; }
.ios__clear svg { width: 17px; height: 17px; }

/* Browse home: bold section titles + inset rounded cards */
.ios__section { margin: 6px 16px 8px; font-size: 22px; font-weight: 700; letter-spacing: 0.01em; }
.ios__card { margin: 0 16px 18px; border-radius: 12px; background: var(--card); overflow: hidden; }
.ios__loc {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  background: none;
  color: var(--label);
  font-size: 17px;
  text-align: left;
  cursor: pointer;
}
.ios__loc + .ios__loc::before {
  content: "";
  position: absolute;
  top: 0;
  left: 54px;
  right: 0;
  height: 1px;
  background: var(--sep);
}
.ios__loc-icon { display: grid; place-items: center; width: 28px; height: 28px; color: var(--blue); }
.ios__loc-icon svg { width: 26px; height: 26px; }
.ios__loc-icon .ios__folder { width: 28px; height: 24px; }
.ios__loc-name { flex: 1 1 auto; }
.ios__chev { width: 14px; height: 14px; flex: 0 0 auto; margin-left: auto; color: var(--label2); stroke-width: 2.6; }

/* file / folder list */
.ios__row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  cursor: pointer;
  outline: none;
}
.ios__row:active { background: rgba(128, 128, 128, 0.18); }
.ios__row::after {
  content: "";
  position: absolute;
  left: 68px;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--sep);
}
.ios__row:last-child::after { display: none; }
.ios__thumb { display: grid; place-items: center; width: 40px; height: 44px; flex: 0 0 auto; }
.ios__folder { width: 42px; height: 35px; }
.ios__file { width: 30px; height: 38px; }
.ios__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
.ios__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 17px; }
.ios__sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--label2); }

.ios__select {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  box-sizing: border-box;
  border: 1.5px solid var(--label2);
  border-radius: 50%;
  color: transparent;
}
.ios__select .ios__check { width: 14px; height: 14px; stroke-width: 3; }
.ios__row.is-picked .ios__select { border-color: var(--blue); background: var(--blue); color: #fff; }

.ios__count { margin: 14px 0 18px; text-align: center; font-size: 15px; color: var(--label2); }
.ios__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 70px 24px;
  text-align: center;
  color: var(--label2);
}
.ios__empty strong { font-size: 22px; font-weight: 600; }
.ios__empty span { font-size: 15px; }

/* bottom tab bar / select toolbar */
.ios__bar {
  flex: 0 0 auto;
  display: flex;
  justify-content: space-around;
  padding: 6px 0 12px;
  border-top: 1px solid var(--sep);
  background: var(--barbg);
}
.ios__tab, .ios__tool {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-width: 90px;
  padding: 2px 8px;
  border: 0;
  background: none;
  color: var(--label2);
  font-size: 10px;
  cursor: pointer;
}
.ios__tab svg, .ios__tool svg { width: 26px; height: 26px; }
.ios__tab.is-active { color: var(--blue); }
.ios__tool { color: var(--blue); }
.ios__tool:disabled { color: var(--label2); opacity: 0.55; cursor: default; }

@media (prefers-reduced-motion: reduce) {
  .ios__screen.is-push, .ios__screen.is-pop { animation-duration: 0.01ms; }
}

/* ---- Settings: the iPhone Settings app (shares the .ios__* nav styling) ---- */
.settings-window .ios__screen { background: var(--grouped); }
.settings-window { background: var(--grouped); }

/* colored rounded-square icon tile */
.set__tile {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 29px;
  height: 29px;
  border-radius: 7px;
  color: #fff;
}
.set__tile svg { width: 19px; height: 19px; }
.settings-window .ios__loc + .ios__loc::before { left: 55px; }

/* small-caps section header above a group */
.set__header {
  margin: 4px 32px 7px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--label2);
}

/* Appearance: two phone previews with radio marks */
.set__appearance { display: flex; justify-content: center; gap: 38px; padding: 18px 14px 16px; }
.set__mode {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--label);
  cursor: pointer;
}
.set__mode-label { font-size: 15px; }
.set__phone {
  position: relative;
  width: 72px;
  height: 124px;
  box-sizing: border-box;
  border: 3px solid rgba(128, 128, 128, 0.45);
  border-radius: 14px;
  overflow: hidden;
}
.set__phone--light { background: linear-gradient(160deg, #a9d7ff, #e9fbe9 60%, #ffd9c2); }
.set__phone--dark { background: linear-gradient(160deg, #0b1630, #26134a 60%, #3a1b3d); }
.set__phone::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 50%;
  width: 34px;
  height: 14px;
  transform: translateX(-50%);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.7);
}
.set__phone--dark::before { background: rgba(255, 255, 255, 0.35); }
.set__phone::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  height: 14px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.45);
}
.set__phone--dark::after { background: rgba(255, 255, 255, 0.2); }
.set__mode.is-on .set__phone { border-color: var(--blue); }
.set__mode.is-on .ios__select { border-color: var(--blue); background: var(--blue); color: #fff; }

/* Wallpaper grid */
.set__walls {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 12px;
  margin: 0 16px 18px;
}
.set__wall {
  position: relative;
  aspect-ratio: 3 / 4;
  padding: 0;
  border: 3px solid transparent;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  outline: 1px solid rgba(128, 128, 128, 0.35);
  outline-offset: -1px;
  cursor: pointer;
}
.set__wall.is-on { border-color: var(--blue); outline: 0; }
.set__wall .ios__select {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 22px;
  height: 22px;
  border-color: #fff;
  background: rgba(0, 0, 0, 0.25);
  color: transparent;
}
.set__wall.is-on .ios__select { border-color: var(--blue); background: var(--blue); color: #fff; }

/* ---- Notepad: the iPhone Notes look (yellow accent, opaque, light + dark) ---- */
.notepad-window {
  --plain: #000;
  --sep: #38383a;
  --label: #fff;
  --label2: #8e8e93;
  --blue: #ffd60a; /* Notes' yellow accent (reused by the shared .ios__* nav styles) */
  --seg-bg: #1c1c1e;
  --seg-on: #636366;
  --search-bg: #1c1c1e;
  background: var(--plain);
  color: var(--label);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-color: var(--sep);
}
body[data-wallpaper-mode="light"] .notepad-window {
  --plain: #fff;
  --sep: #d1d1d6;
  --label: #000;
  --label2: #8a8a8e;
  --blue: #d79a00;
  --seg-bg: #eeeef0;
  --seg-on: #fff;
  --search-bg: #eeeef0;
  color: var(--label);
}
.notepad-window .glass-window__lens { display: none; }
.notepad-window .glass-window__bar { border-bottom: 0; }
.notepad-window .glass-window__title,
.notepad-window .glass-window__body { text-shadow: none; }
.notepad-window .glass-window__close { background: var(--search-bg); border-color: transparent; }
.notepad-window button, .notepad-window input, .notepad-window textarea {
  font-family: "SF Pro Display", -apple-system, system-ui, sans-serif;
}

.np { background: var(--plain); }
.np .ios__nav { border-bottom-color: var(--sep); }
.np .ios__text-btn:disabled { color: var(--label2); cursor: default; }

/* Edit / Preview segmented control */
.np__seg {
  display: flex;
  padding: 2px;
  border-radius: 9px;
  background: var(--seg-bg);
}
.np__seg button {
  padding: 4px 16px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--label);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.np__seg button.is-on { background: var(--seg-on); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); }

/* the page: date, big bold title, then the writing area */
.np__page {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 6px 20px 0;
}
.np__date { margin: 6px 0 10px; text-align: center; font-size: 12px; color: var(--label2); }
.np__title {
  flex: 0 0 auto;
  width: 100%;
  padding: 0;
  margin-bottom: 6px;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--label);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-shadow: none;
}
.np__title::placeholder { color: var(--label2); }

.np__editor, .np__preview {
  flex: 1 1 auto;
  min-height: 0;
  padding: 0;
  border: 0;
  outline: none;
  resize: none;
  background: transparent;
  color: var(--label);
  font-size: 17px;
  line-height: 1.4;
  text-shadow: none;
  scrollbar-width: thin;
  scrollbar-color: rgba(128, 128, 128, 0.5) transparent;
}
.np__editor::placeholder { color: var(--label2); }
.np__preview { overflow-y: auto; overflow-wrap: anywhere; }
.np__hint { color: var(--label2); }
.np__page[data-view="edit"] .np__preview,
.np__page[data-view="preview"] .np__editor { display: none; }
.np .md code { background: rgba(128, 128, 128, 0.2); }
.np .md pre { background: rgba(128, 128, 128, 0.16); }
.np .md blockquote { border-left-color: var(--blue); }
.np .md hr { border-top-color: var(--sep); }

/* bottom toolbar, like the Notes toolbar */
.np__toolbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px 12px;
  border-top: 1px solid var(--sep);
}
.np__spacer { flex: 1 1 auto; }
.np__tool {
  display: grid;
  place-items: center;
  min-width: 40px;
  height: 36px;
  padding: 0 8px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--blue);
  font-size: 19px;
  cursor: pointer;
}
.np__tool:active { background: rgba(128, 128, 128, 0.2); }
.np__tool svg { width: 24px; height: 24px; }
.np__aa { font-size: 18px; font-weight: 500; }
