:root {
  --cream: #fff4cc;
  --panel: #f8bc40;
  --panel-light: #ffd26a;
  --panel-dark: #bc6028;
  --brown: #603818;
  --brown-deep: #2f1f18;
  --icon-brown: #6b3b18;
  --deep: #302018;
  --green: #00a848;
  --red: #d83828;
  --link: #1557a6;
  --card: #ffe0a3;
  --page-bg: #f4f4f6;
  --shadow: rgba(48, 32, 24, 0.24);
}
* {
  box-sizing: border-box;
}
html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  overflow-x: hidden;
  background: var(--page-bg);
}
body {
  color: var(--deep);
  font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
  font-size: 13px;
  line-height: 1.55;
  -webkit-font-smoothing: none;
  text-rendering: geometricPrecision;
}
html[lang="zh-Hans"] body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html[lang="zh-Hans"] .brand-logo,
html[lang="zh-Hans"] .top-language-switch,
html[lang="zh-Hans"] .note-meta,
html[lang="zh-Hans"] .store-badge,
html[lang="zh-Hans"] .real-app-icon {
  font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
}
a {
  color: var(--link);
  font-weight: 900;
}
.app-page {
  width: 100vw;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 28px 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--page-bg);
}
.retro-window {
  width: min(1540px, calc(100vw - 68px));
  height: calc(100vh - 56px);
  height: calc(100dvh - 56px);
  min-height: min(620px, calc(100dvh - 56px));
  display: grid;
  grid-template-columns: 220px 306px minmax(560px, 1fr);
  grid-template-rows: 38px minmax(0, 1fr);
  border: 4px solid var(--deep);
  border-radius: 14px;
  overflow: hidden;
  background: var(--cream);
  box-shadow: 0 26px 56px var(--shadow);
}
.top-left-bar {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
  padding: 0 12px;
  background: var(--brown);
  border-right: 4px solid var(--deep);
  border-bottom: 4px solid var(--deep);
}
.top-main-bar {
  grid-column: 2 / -1;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 0 14px;
  background: var(--panel);
  border-bottom: 4px solid var(--deep);
}
.top-main-fill {
  flex: 1;
  min-width: 0;
}
.window-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}
.dot {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid var(--deep);
  display: inline-block;
}
.dot.red {
  background: #ff5f57;
}
.dot.yellow {
  background: #ffbd2e;
}
.dot.green {
  background: #28c840;
}
.top-language-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  width: 122px;
}
.top-language-switch a {
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--deep);
  background: var(--cream);
  color: var(--deep);
  font-size: 11px;
  font-weight: 900;
  text-decoration: none;
}
.top-language-switch a.active {
  background: var(--green);
  color: var(--cream);
}
/* Sidebar */
.sidebar {
  grid-column: 1;
  grid-row: 2;
  min-height: 0;
  overflow: hidden;
  background: var(--panel-dark);
  color: var(--cream);
  border-right: 4px solid var(--deep);
  padding: 0 13px 12px;
  display: flex;
  flex-direction: column;
}
.brand-area {
  display: flex;
  justify-content: center;
  color: var(--cream);
  text-decoration: none;
  margin-left: -13px;
  margin-right: -13px;
  margin-bottom: 0;
  padding: 21px 0 20px;
  background: var(--brown);
  border-bottom: 4px solid var(--deep);
  pointer-events: none;
}
.brand-logo {
  display: grid;
  gap: 9px;
  line-height: 0.88;
  text-align: center;
  font-weight: 900;
  letter-spacing: 0.5px;
  font-size: 25px;
}
.brand-logo span {
  display: block;
}
.brand-retro {
  color: #ffffff;
}
.brand-notes {
  color: var(--cream);
}
.folder-nav {
  display: grid;
  gap: 0;
  margin-top: 0;
  margin-left: -13px;
  margin-right: -13px;
  margin-bottom: 0;
  pointer-events: none;
}
.folder-item {
  display: flex;
  align-items: center;
  min-height: 41px;
  padding-left: 24px;
  padding-right: 12px;
  color: var(--cream);
  background: transparent;
  border: 0;
  text-decoration: none;
  font-size: 15px;
  font-weight: 900;
}
.folder-item.selected {
  width: 100%;
  background: var(--panel);
  color: var(--deep);
  border-top: 0;
  border-bottom: 4px solid var(--deep);
  border-left: 0;
  border-right: 0;
  box-shadow: none;
}
.sidebar-spacer {
  flex: 1;
  min-height: 18px;
  background: var(--panel-dark);
  pointer-events: none;
}
.sidebar-actions {
  display: grid;
  gap: 8px;
}
.sidebar-large-button,
.sidebar-small-button {
  flex-shrink: 0;
  pointer-events: none;
  box-shadow: none;
  margin: 0;
}
.sidebar-large-button {
  border: 4px solid var(--deep);
  padding: 12px 10px;
  text-align: center;
  font-weight: 900;
}
.sidebar-large-button strong,
.sidebar-large-button span {
  display: block;
}
.sidebar-large-button strong {
  font-size: 15px;
  line-height: 1.15;
}
.sidebar-large-button span {
  font-size: 11px;
  line-height: 1.25;
}
.voice-note-button {
  background: var(--green);
  color: var(--cream);
}
.recall-button {
  background: var(--panel);
  color: var(--deep);
}
.sidebar-small-button {
  height: 37px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  color: var(--deep);
  border: 4px solid var(--deep);
  font-size: 14px;
  font-weight: 900;
}
/* Notes column */
.notes-column {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--panel);
  border-right: 4px solid var(--deep);
  padding: 14px;
}
.notes-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  border-bottom: 0;
  padding: 0;
  margin-bottom: 7px;
}
.notes-toolbar h1 {
  margin: 0;
  font-size: 15px;
  line-height: 1.1;
  font-weight: 900;
}
.notes-toolbar p {
  margin: 3px 0 0;
  font-size: 11px;
  font-weight: 900;
  color: var(--brown);
}
.search-field {
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 10px;
  background: var(--cream);
  border: 3px solid var(--deep);
  color: rgba(48, 32, 24, 0.62);
  font-size: 13px;
  margin-top: 0;
  margin-bottom: 12px;
}
.note-list {
  height: calc(100% - 82px);
  overflow-y: auto;
  padding-right: 2px;
  display: grid;
  align-content: start;
  gap: 12px;
}
.note-card {
  display: flex;
  min-height: 116px;
  padding: 11px 12px;
  background: var(--card);
  color: var(--deep);
  border: 3px solid var(--deep);
  text-decoration: none;
  box-shadow: 4px 4px 0 rgba(48, 32, 24, 0.38);
}
.note-card:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 rgba(48, 32, 24, 0.45);
}
.note-card.selected {
  min-height: 116px;
  background: var(--green);
  color: var(--cream);
}
.note-card-body {
  width: 100%;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.note-card strong {
  display: block;
  font-size: 14px;
  line-height: 1.2;
  margin-bottom: 7px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.note-preview {
  margin: 0 0 7px;
  font-size: 11px;
  line-height: 1.45;
  font-weight: 700;
}
html[lang="zh-Hans"] .note-preview {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-weight: 600;
}
.note-meta {
  margin: auto 0 0;
  font-size: 10px;
  line-height: 1.35;
  opacity: 0.78;
}
/* Editor */
.editor-column {
  grid-column: 3;
  grid-row: 2;
  min-width: 0;
  min-height: 0;
  background: var(--cream);
  overflow: hidden;
}
.editor-content {
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  padding: 30px 38px 54px;
  background: var(--cream);
}
html[lang="zh-Hans"] .editor-content {
  font-weight: 400;
  letter-spacing: 0;
}
.editor-content h1 {
  margin: 0 0 18px;
  font-size: clamp(32px, 4.2vw, 50px);
  line-height: 1.05;
  letter-spacing: -1.2px;
  font-weight: 900;
}
html[lang="zh-Hans"] .editor-content h1 {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-weight: 800;
  letter-spacing: -0.6px;
}
.editor-content h2 {
  margin: 30px 0 10px;
  font-size: 22px;
  line-height: 1.2;
  padding-bottom: 7px;
  border-bottom: 3px solid var(--deep);
  font-weight: 900;
  background: transparent;
}
html[lang="zh-Hans"] .editor-content h2 {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-weight: 700;
}
.editor-content p {
  margin: 12px 0;
  font-size: 13px;
  max-width: 860px;
}
html[lang="zh-Hans"] .editor-content p,
html[lang="zh-Hans"] .editor-content li {
  font-size: 14px;
  line-height: 1.82;
  font-weight: 400;
}
.editor-content ul,
.editor-content ol {
  max-width: 860px;
  border: 3px solid var(--deep);
  background: rgba(255, 255, 255, 0.22);
  padding: 16px 20px 16px 34px;
  margin: 16px 0;
}
.editor-content li {
  margin: 6px 0;
  font-size: 13px;
}
.editor-content a {
  color: var(--link);
  font-weight: 900;
}
/* Home download note */
.download-note {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  gap: 24px;
  align-items: center;
  max-width: 900px;
  border: 0;
  background: linear-gradient(90deg, #2f1f18, #603818);
  color: var(--cream);
  padding: 24px;
  margin: 0 0 28px;
  box-shadow: none;
}
.download-note h1 {
  color: var(--cream);
  margin-bottom: 8px;
  font-size: clamp(28px, 4vw, 44px);
}
.download-subtitle {
  color: rgba(255, 244, 204, 0.88);
  max-width: 620px;
  margin: 0 0 20px;
  font-size: 14px;
}
.download-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.store-badge {
  min-width: 170px;
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  border: 2px solid var(--deep);
  background: var(--cream);
  color: var(--deep);
  font-size: 11px;
  font-weight: 900;
  text-decoration: none;
  border-radius: 0;
  box-shadow: none;
  font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
}
.store-badge:hover {
  background: var(--green);
  color: var(--cream);
  transform: none;
}
.real-app-icon {
  width: 166px;
  height: 166px;
  position: relative;
  background: var(--brown-deep);
  display: flex;
  align-items: center;
  justify-content: center;
}
.real-app-icon-panel {
  width: 124px;
  height: 106px;
  background: var(--icon-brown);
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 18px;
}
.real-app-icon-panel span {
  display: block;
  font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
  font-weight: 900;
  line-height: 0.9;
}
.real-app-icon-retro {
  color: #ffffff;
  font-size: 25px;
}
.real-app-icon-notes {
  color: var(--cream);
  font-size: 25px;
}
.real-app-icon-base {
  position: absolute;
  left: 35px;
  right: 35px;
  bottom: 25px;
  height: 12px;
  background: #c4642a;
}
/* Responsive */
@media (max-width: 1240px) {
  .app-page {
    padding: 24px;
  }
  .retro-window {
    width: calc(100vw - 48px);
    height: calc(100vh - 48px);
    grid-template-columns: 180px 270px minmax(420px, 1fr);
  }
  .brand-logo {
    font-size: 21px;
  }
  .download-note {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 920px) {
  html,
  body {
    height: auto;
    overflow: auto;
  }
  .app-page {
    height: auto;
    min-height: 100vh;
    align-items: stretch;
    padding: 14px;
  }
  .retro-window {
    width: calc(100vw - 28px);
    height: auto;
    min-height: auto;
    display: block;
    overflow: visible;
    border-radius: 12px;
  }
  .top-left-bar,
  .top-main-bar {
    min-height: 38px;
    border-right: none;
  }
  .top-main-bar {
    display: flex;
  }
  .sidebar,
  .notes-column,
  .editor-column {
    border-right: none;
  }
  .sidebar {
    min-height: auto;
    border-bottom: 4px solid var(--deep);
  }
  .brand-area {
    margin-bottom: 0;
  }
  .folder-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-left: 0;
    margin-right: 0;
    pointer-events: none;
  }
  .folder-item {
    justify-content: center;
    border: 2px solid rgba(255, 244, 204, 0.55);
    min-height: 30px;
    padding: 0 6px;
  }
  .folder-item.selected {
    border: 3px solid var(--deep);
  }
  .sidebar-spacer,
  .sidebar-large-button,
  .sidebar-small-button {
    display: none;
  }
  .notes-column {
    border-bottom: 4px solid var(--deep);
  }
  .note-list {
    height: auto;
    overflow: visible;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }
  .note-card,
  .note-card.selected {
    min-height: 142px;
  }
  .editor-column {
    min-height: auto;
  }
  .editor-content {
    height: auto;
    max-height: none;
    overflow: visible;
  }
}
@media (max-width: 680px) {
  body {
    font-size: 13px;
  }
  .app-page {
    padding: 0;
  }
  .retro-window {
    width: 100vw;
    border-left: none;
    border-right: none;
    border-radius: 0;
  }
  .folder-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 10px;
  }
  .note-list {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .note-card,
  .note-card.selected {
    min-height: 138px;
  }
  .note-card strong {
    font-size: 16px;
  }
  .note-preview {
    font-size: 13px;
    line-height: 1.45;
  }
  .note-meta {
    font-size: 12px;
  }
  .editor-content {
    padding: 22px 18px 34px;
  }
  .editor-content h1 {
    font-size: 31px;
  }
  .download-note {
    padding: 20px;
    text-align: center;
    justify-items: center;
  }
  .download-copy {
    width: 100%;
  }
  .download-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  .download-badges {
    display: grid;
    justify-items: center;
  }
  .store-badge {
    width: 100%;
  }
  .real-app-icon {
    width: 138px;
    height: 138px;
    justify-self: center;
    margin-left: auto;
    margin-right: auto;
  }
  .real-app-icon-panel {
    width: 104px;
    height: 88px;
  }
  .real-app-icon-retro,
  .real-app-icon-notes {
    font-size: 21px;
  }
}
@media (max-width: 430px) {
  .top-left-bar {
    min-height: 34px;
    padding: 0 8px;
  }

  .window-dots {
    gap: 7px;
  }

  .dot {
    width: 18px;
    height: 18px;
  }

  .top-main-bar {
    min-height: 34px;
    padding: 0 8px;
  }

  .top-language-switch {
    width: 112px;
    gap: 5px;
  }

  .top-language-switch a {
    height: 24px;
    font-size: 10px;
  }

  .brand-area {
    padding: 18px 0 17px;
  }

  .brand-logo {
    font-size: 22px;
    gap: 7px;
  }

  .sidebar {
    padding: 0 8px 10px;
  }

  .folder-nav {
    margin-top: 10px;
    gap: 6px;
  }

  .folder-item {
    min-height: 30px;
    font-size: 12px;
    padding: 0 6px;
  }

  .notes-column {
    padding: 10px 8px 12px;
  }

  .notes-toolbar h1 {
    font-size: 14px;
  }

  .notes-toolbar p {
    font-size: 10px;
  }

  .search-field {
    height: 32px;
    font-size: 12px;
    margin-bottom: 10px;
  }

  .note-list {
    gap: 10px;
  }

  .note-card,
  .note-card.selected {
    min-height: 138px;
    padding: 12px 14px;
  }

  .note-card strong {
    font-size: 16px;
  }

  .note-preview {
    font-size: 13px;
    line-height: 1.45;
  }

  .note-meta {
    font-size: 12px;
  }

  .editor-content {
    padding: 20px 10px 34px;
  }

  .editor-content h1 {
    font-size: 28px;
    letter-spacing: -0.7px;
  }

  .editor-content h2 {
    font-size: 19px;
    margin-top: 26px;
  }

  .editor-content p {
    font-size: 12px;
  }

  .editor-content ul,
  .editor-content ol {
    padding: 14px 16px 14px 28px;
  }

  .download-note {
    margin: 0 0 24px;
    padding: 18px 12px;
    gap: 16px;
    text-align: center;
    justify-items: center;
  }

  .download-copy {
    width: 100%;
  }

  .download-note h1 {
    font-size: 26px;
    letter-spacing: -0.5px;
  }

  .download-subtitle {
    font-size: 12px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 14px;
  }

  .download-badges {
    gap: 8px;
    justify-items: center;
  }

  .store-badge {
    min-width: 0;
    width: 100%;
    min-height: 28px;
    font-size: 10px;
  }

  .real-app-icon {
    width: 104px;
    height: 104px;
    justify-self: center;
    margin-left: auto;
    margin-right: auto;
  }

  .real-app-icon-panel {
    width: 78px;
    height: 66px;
    gap: 10px;
  }

  .real-app-icon-retro,
  .real-app-icon-notes {
    font-size: 16px;
  }

  .real-app-icon-base {
    left: 24px;
    right: 24px;
    bottom: 18px;
    height: 8px;
  }
}
@media (orientation: landscape) and (max-width: 960px) and (max-height: 500px) {
  .folder-nav {
    margin-top: 10px;
  }

  .download-note {
    text-align: center;
    justify-items: center;
  }

  .download-copy {
    width: 100%;
  }

  .download-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .download-badges {
    justify-content: center;
    justify-items: center;
  }

  .real-app-icon {
    justify-self: center;
    margin-left: auto;
    margin-right: auto;
  }
}
@media (min-width: 681px) and (max-width: 920px) and (min-height: 600px) {
  html,
  body {
    height: 100%;
    overflow: hidden;
  }

  .app-page {
    height: 100dvh;
    min-height: 0;
    padding: 14px;
    align-items: stretch;
  }

  .retro-window {
    width: calc(100vw - 28px);
    height: calc(100dvh - 28px);
    max-height: calc(100dvh - 28px);
    overflow-y: auto;
  }

  .folder-nav {
    margin-top: 10px;
  }

  .note-list {
    align-items: stretch;
  }

  .note-card,
  .note-card.selected {
    min-height: 130px;
    padding: 13px 14px;
  }

  .note-card strong {
    font-size: 16px;
  }

  .note-preview {
    font-size: 13px;
    line-height: 1.45;
  }

  .note-meta {
    font-size: 12px;
  }

  .download-note {
    text-align: center;
    justify-items: center;
  }

  .download-copy {
    width: 100%;
  }

  .download-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .download-badges {
    justify-content: center;
    justify-items: center;
  }

  .real-app-icon {
    justify-self: center;
    margin-left: auto;
    margin-right: auto;
  }
}
@media (min-width: 921px) and (max-width: 1240px) and (min-height: 600px) {
  .app-page {
    height: 100dvh;
    min-height: 0;
    padding: 18px 24px;
  }

  .retro-window {
    width: calc(100vw - 48px);
    height: calc(100dvh - 36px);
    max-height: calc(100dvh - 36px);
  }

  .note-list {
    align-items: stretch;
  }

  .note-card,
  .note-card.selected {
    min-height: 128px;
    padding: 12px 13px;
  }

  .note-card strong {
    font-size: 15px;
  }

  .note-preview {
    font-size: 12px;
    line-height: 1.45;
  }

  .note-meta {
    font-size: 11px;
  }

  .download-note {
    text-align: center;
    justify-items: center;
  }

  .download-copy {
    width: 100%;
  }

  .download-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .download-badges {
    justify-content: center;
    justify-items: center;
  }

  .real-app-icon {
    justify-self: center;
    margin-left: auto;
    margin-right: auto;
  }
}
@media (min-width: 1241px) and (max-width: 1400px) and (orientation: landscape) {
  .app-page {
    height: 100dvh;
    min-height: 0;
    padding: 18px 24px;
    align-items: stretch;
  }

  .retro-window {
    width: calc(100vw - 48px);
    height: calc(100dvh - 36px);
    max-height: calc(100dvh - 36px);
  }
}

/* Typography system: readable across Apple, Android, and desktop browsers */
body {
  font-family: ui-monospace, "SFMono-Regular", "Cascadia Mono", "Roboto Mono", Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html[lang="zh-Hans"] body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans CJK SC", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
}
.top-language-switch a {
  font-size: 12px;
  font-weight: 800;
}
.folder-item {
  font-size: 16px;
  line-height: 1.25;
}
.sidebar-large-button strong {
  font-size: 16px;
}
.sidebar-large-button span {
  font-size: 12px;
  line-height: 1.35;
}
.sidebar-small-button {
  font-size: 15px;
}
.notes-toolbar h1 {
  font-size: 17px;
  line-height: 1.2;
}
.notes-toolbar p {
  font-size: 12px;
  line-height: 1.4;
}
.search-field {
  font-size: 15px;
}
.note-card strong {
  font-size: 15px;
  line-height: 1.3;
}
.note-preview {
  font-size: 13px;
  line-height: 1.55;
  font-weight: 600;
}
.note-meta {
  font-size: 11px;
  line-height: 1.45;
}
.editor-content {
  font-size: 17px;
}
.editor-content h1 {
  font-size: clamp(38px, 4.4vw, 56px);
  line-height: 1.08;
  letter-spacing: -1.1px;
  margin-bottom: 24px;
}
.editor-content h2 {
  font-size: clamp(24px, 2vw, 30px);
  line-height: 1.22;
  margin: 38px 0 16px;
  padding-bottom: 10px;
}
.editor-content p,
.editor-content li {
  font-size: clamp(16px, 1.15vw, 18px);
  line-height: 1.72;
  font-weight: 400;
}
.editor-content p {
  max-width: 76ch;
  margin: 16px 0;
}
.editor-content ul,
.editor-content ol {
  max-width: 76ch;
  padding: 20px 24px 20px 42px;
  margin: 20px 0 28px;
}
.editor-content li {
  margin: 8px 0;
}
html[lang="zh-Hans"] .editor-content p,
html[lang="zh-Hans"] .editor-content li {
  font-size: clamp(16px, 1.15vw, 18px);
  line-height: 1.85;
  font-weight: 400;
}
html[lang="zh-Hans"] .editor-content h1 {
  font-size: clamp(38px, 4.2vw, 54px);
  line-height: 1.12;
}
html[lang="zh-Hans"] .editor-content h2 {
  font-size: clamp(24px, 2vw, 30px);
  line-height: 1.35;
}
.editor-content.privacy-content h1 {
  font-size: clamp(34px, 3.6vw, 46px);
  line-height: 1.1;
  max-width: 100%;
  overflow-wrap: normal;
  word-break: normal;
}
html[lang="zh-Hans"] .editor-content.privacy-content h1 {
  font-size: clamp(34px, 3.5vw, 46px);
}

.download-note h1 {
  font-size: clamp(36px, 4.3vw, 54px);
  line-height: 1.08;
}
.download-subtitle {
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.55;
}
.store-badge {
  min-height: 38px;
  font-size: 13px;
  line-height: 1.3;
}
@media (max-width: 920px) {
  .editor-content {
    padding: 30px 28px 48px;
  }
  .editor-content p,
  .editor-content li,
  html[lang="zh-Hans"] .editor-content p,
  html[lang="zh-Hans"] .editor-content li {
    font-size: 17px;
  }
}
@media (max-width: 680px) {
  body {
    font-size: 16px;
  }
  .editor-content {
    padding: 26px 18px 40px;
  }
  .editor-content h1,
  html[lang="zh-Hans"] .editor-content h1 {
    font-size: clamp(32px, 10vw, 40px);
  }
  .editor-content.privacy-content h1,
  html[lang="zh-Hans"] .editor-content.privacy-content h1 {
    font-size: clamp(28px, 8.5vw, 36px);
  }
  .editor-content h2,
  html[lang="zh-Hans"] .editor-content h2 {
    font-size: 23px;
    margin-top: 32px;
  }
  .editor-content p,
  .editor-content li,
  html[lang="zh-Hans"] .editor-content p,
  html[lang="zh-Hans"] .editor-content li {
    font-size: 17px;
    line-height: 1.75;
  }
  .note-card strong {
    font-size: 17px;
  }
  .note-preview {
    font-size: 15px;
  }
  .note-meta {
    font-size: 13px;
  }
  .download-note h1 {
    font-size: clamp(30px, 9vw, 38px);
  }
  .download-subtitle {
    font-size: 16px;
  }
  .store-badge {
    min-height: 38px;
    font-size: 13px;
  }
}
@media (max-width: 430px) {
  .editor-content {
    padding-left: 14px;
    padding-right: 14px;
  }
  .folder-item {
    font-size: 14px;
  }
  .top-language-switch a {
    font-size: 12px;
  }
}


/* Exact app-icon artwork: preserve the complete square image at every breakpoint. */
.real-app-icon {
  width: 166px;
  height: 166px;
  aspect-ratio: 1 / 1;
  position: relative;
  display: block;
  overflow: hidden;
  background: transparent;
  flex: 0 0 auto;
}
.real-app-icon-image {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: center;
}
.real-app-icon-panel,
.real-app-icon-base {
  display: none;
}

/* Retro app-family selector */
.family-page { min-height:100vh; background:#f8bc40; padding:28px; display:grid; place-items:center; }
.family-window { width:min(1120px,calc(100vw - 40px)); border:5px solid #302018; border-radius:18px; overflow:hidden; background:#fff4cc; box-shadow:12px 12px 0 rgba(48,32,24,.18); }
.family-topbar { min-height:54px; padding:0 16px; background:#f8bc40; border-bottom:5px solid #302018; display:flex; align-items:center; justify-content:space-between; }
.family-content { padding:clamp(28px,6vw,76px); }
.family-eyebrow { margin:0 0 8px; color:#603818; font-weight:900; letter-spacing:.16em; }
.family-content h1 { margin:0; color:#302018; font-size:clamp(32px,4.6vw,58px); line-height:1.08; }
html[lang="en"] .family-content h1 { font-size:clamp(30px,3.7vw,48px); line-height:1.10; max-width:900px; }
.family-subtitle { margin:18px 0 34px; font-size:clamp(16px,2vw,21px); color:#603818; }
.family-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; }
.family-card { min-height:360px; padding:26px; border:4px solid #302018; display:grid; grid-template-columns:104px 1fr; grid-template-rows:1fr auto; gap:22px; align-items:start; }
.family-card-retrofind { background:#00a848; color:#fff4cc; }
.family-card-retrodisk { background:#c4642a; color:#fff4cc; }
.family-card img { width:104px; height:104px; object-fit:contain; border:3px solid #302018; }
.family-card h2 { margin:0 0 12px; font-size:clamp(28px,4vw,44px); }
.family-card p { margin:0; font-size:17px; line-height:1.6; }
.family-card a,.family-back { display:inline-flex; align-items:center; justify-content:center; min-height:46px; padding:8px 18px; border:3px solid #302018; background:#fff4cc; color:#302018; font-weight:900; text-decoration:none; }
.family-card a { grid-column:1 / -1; }
.family-card a:hover,.family-back:hover { background:#f8bc40; }
.family-back { margin-top:28px; }
/* Real iPhone landscape: keep both cards visible without horizontal clipping. */
@media (orientation: landscape) and (max-height: 500px) {
  .family-page {
    min-height: 100dvh;
    padding: 8px;
    place-items: stretch;
    overflow-x: hidden;
  }
  .family-window {
    width: calc(100vw - 16px);
    min-height: calc(100dvh - 16px);
    border-width: 4px;
    border-radius: 12px;
    box-shadow: 7px 7px 0 rgba(48,32,24,.16);
  }
  .family-topbar {
    min-height: 42px;
    padding: 0 10px;
    border-bottom-width: 4px;
  }
  .family-content {
    padding: 18px 22px 20px;
  }
  .family-eyebrow {
    margin-bottom: 4px;
    font-size: 11px;
  }
  .family-content h1,
  html[lang="en"] .family-content h1 {
    max-width: none;
    font-size: clamp(25px,4vw,34px);
    line-height: 1.04;
    white-space: nowrap;
  }
  .family-subtitle {
    margin: 8px 0 14px;
    font-size: 13px;
  }
  .family-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 12px;
  }
  .family-card {
    box-sizing: border-box;
    min-width: 0;
    min-height: 250px;
    padding: 14px;
    border-width: 3px;
    grid-template-columns: 70px minmax(0,1fr);
    grid-template-rows: minmax(0,1fr) auto;
    gap: 12px;
    overflow: hidden;
  }
  .family-card img {
    width: 70px;
    height: 70px;
    border-width: 2px;
  }
  .family-card-copy {
    min-width: 0;
    overflow: hidden;
  }
  .family-card h2 {
    margin: 0 0 7px;
    font-size: clamp(22px,3.5vw,30px);
    line-height: 1;
    overflow-wrap: anywhere;
  }
  .family-card p {
    font-size: 11px;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }
  .family-card a,
  .family-back {
    min-height: 34px;
    padding: 5px 10px;
    border-width: 2px;
    font-size: 11px;
  }
  .family-back {
    margin-top: 12px;
  }
}

@media (max-width:760px) {
  .family-page { padding:0; place-items:stretch; }
  .family-window { width:100%; min-height:100vh; border-left:0; border-right:0; border-radius:0; }
  .family-content { padding:28px 16px 42px; }
  .family-content h1 { font-size:clamp(30px,9vw,42px); }
  html[lang="en"] .family-content h1 { font-size:clamp(27px,7.5vw,36px); }
  .family-grid { grid-template-columns:1fr; }
  .family-card { min-height:0; grid-template-columns:82px 1fr; padding:20px; }
  .family-card img { width:82px; height:82px; }
}
