/* Styles used by the existing (v1) app screens. Copied from the original index.html and lightly adapted
   to the new shell; each app is restyled in its own phase. */
.navbar { position: sticky; top: -54px; z-index: 3; display: flex; align-items: center; justify-content: space-between; min-height: 98px;
  padding: 54px 8px 0; margin-top: -54px; background: #f2f2f7e6; backdrop-filter: blur(20px) saturate(1.5); -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: .5px solid #3c3c4330; }
.navbar .title { font-weight: 600; font-size: 17px; position: absolute; left: 90px; right: 90px; bottom: 12px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.navbar .back { border: 0; background: none; color: var(--blue); font-size: 17px; display: flex; align-items: center; gap: 2px; padding: 10px 6px; }
.navbar .back svg { width: 12px; height: 20px; }
.navbar.root { border-bottom-color: transparent; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.dark .navbar { background: #121214e6; border-color: #ffffff1f; }
.dark .navbar.root { background: transparent; }
.content { padding: 6px 18px 14px; }
.content h1 { font-size: 34px; font-weight: 700; margin: 4px 0 10px; letter-spacing: -.5px; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: .5px solid #3c3c4330; cursor: pointer; }
.dark .row { border-color: #ffffff22; }
.avatar { width: 47px; height: 47px; border-radius: 50%; display: grid; place-items: center; background: #d5d8e1; color: #50586a; font-weight: bold; flex-shrink: 0; }
.info { flex: 1; min-width: 0; }
.info b { font-size: 15px; }
.info p { font-size: 13px; color: #8a8a8e; margin: 3px 0 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.date { font-size: 12px; color: #8a8a8e; }
.tag { border-radius: 20px; background: #e5e5ea; color: #111; padding: 6px 12px; font-size: 13px; border: 0; white-space: nowrap; }
.dark .tag { background: #2c2c2e; color: #fff; }
.search { width: 100%; border: 0; background: #7676801f; border-radius: 10px; padding: 9px 12px; margin: 4px 0 12px; outline: none; font-size: 16px; }
.dark .search { background: #7676803d; color: #fff; }
.msg { max-width: 80%; width: fit-content; padding: 8px 12px; margin: 6px 0; border-radius: 18px; font-size: 15px; line-height: 1.5; white-space: pre-wrap; user-select: text; -webkit-user-select: text; }
.mine { margin-right: auto; background: #d9fdd3; }
.theirs { margin-left: auto; background: #fff; }
.dark .mine { background: #2f2f33; color: #fff; }
.dark .theirs { background: transparent; color: #fff; }
.chatbg { background: #efe7de; min-height: calc(100% - 100px); padding: 12px; }
.compose { display: flex; gap: 8px; padding: 8px 10px 10px; background: #f6f6f6f2; position: sticky; bottom: -34px; }
.compose input { flex: 1; border: .5px solid #ccc; background: #fff; padding: 8px 12px; border-radius: 20px; min-width: 0; outline: none; }
.compose button, .primary { border: 0; background: var(--blue); color: #fff; border-radius: 18px; padding: 8px 15px; }
.gridphotos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.gridphotos img { width: 100%; aspect-ratio: 1; object-fit: cover; cursor: pointer; display: block; }
.fullphoto { width: 100%; max-height: 62vh; object-fit: contain; display: block; }
.note { background: #fff; border-radius: 12px; padding: 13px 15px; margin: 8px 0; cursor: pointer; }
.note p { white-space: pre-wrap; line-height: 1.6; margin: 4px 0 0; }
.card { background: #fff; border-radius: 14px; padding: 15px; margin: 10px 0; }
.dark .card { background: #1c1c1e; }
.small { color: #8a8a8e; font-size: 12.5px; }
.calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.day { border: 0; background: #fff; min-height: 46px; border-radius: 10px; position: relative; }
.day.mark::after { content: ''; position: absolute; bottom: 6px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: #FF3B30; }
.day.sel { background: #FF3B30; color: #fff; }
.day.sel::after { background: #fff; }
a { color: var(--blue); }
