aboutsummaryrefslogtreecommitdiffstats
path: root/assets.json
diff options
context:
space:
mode:
Diffstat (limited to 'assets.json')
0 files changed, 0 insertions, 0 deletions
>110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073
/* Public Sans, the coinos.io face (OFL, one variable-weight file each way).
   font-display swap: the system stack paints first and the face lands when
   the file has; offline before the first fetch, the fallback stays. */
@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/PublicSans.woff2") format("woff2");
}
@font-face {
  font-family: "Public Sans";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("/PublicSans-Italic.woff2") format("woff2");
}
/* Bitcoin Wallet — hand-rolled CSS. Clean light "paper wallet" look. */

:root {
  --bg: #eef0f3;
  --paper: #ffffff;
  --ink: #15171a;
  --muted: #6b7280;
  --faint: #9aa1ac;
  --line: #e6e8ec;
  --line-strong: #d4d8de;
  --accent: #15171a; /* coinos black */
  --accent-hover: #2c3037; /* accent, slightly lifted */
  --accent-fg: #ffffff; /* text on accent */
  --accent-ink: #000000;
  --accent-soft: #ececef;
  /* a button's fill (primary, chosen chip or tab): the accent in light; in
     dark a lifted grey, not a white slab (Adam, 2026-10-18: "Probably
     shouldn't have white buttons in dark mode") */
  --fill: var(--accent);
  --fill-hover: var(--accent-hover);
  --fill-fg: var(--accent-fg);
  --green: #14935a;
  --green-soft: #e7f6ee;
  --green-line: #c4e7d4;
  --red: #c43b3b;
  --red-soft: #fbeaea;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 10px 30px rgba(16, 24, 40, 0.07);
  --surface2: #f7f8fa; /* subtle raised surface (hover, mnemonic cells) */
  --toast-bg: #15171a; /* dark toast on light page */
  --toast-fg: #ffffff;
  --tab-bg: #ffffff; /* tab strip: paper, like the flat cards beside it */
  --tab-border: var(--line);
  --tab-active: #ececef; /* the chosen tab: a quiet grey pill, no shadow */
  --info: #3949ab;
  --info-soft: #eef2ff;
  --info-line: #d4ddfb;
  --radius: 16px;
  --wash: rgba(247, 147, 26, 0.05); /* warm glow behind the page top */
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Dark theme — applied via data-theme="dark" on <html>. */
:root[data-theme="dark"] {
  --bg: #0f1216;
  --paper: #181b21;
  --ink: #e7e9ee;
  --muted: #9aa1ac;
  --faint: #6f7782;
  --line: #2a2f37;
  --line-strong: #3a414b;
  --accent: #ffffff; /* coinos white on dark */
  --accent-hover: #d9dce1; /* accent, slightly dimmed */
  --accent-fg: #0f1216; /* text on accent */
  --accent-ink: #e7e9ee;
  --accent-soft: #262b33;
  --fill: #353b45;
  --fill-hover: #404753;
  --fill-fg: #f3f5f8;
  --green: #2dbd80;
  --green-soft: #14271d;
  --green-line: #235340;
  --red: #e66a6a;
  --red-soft: #2c1a1a;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 30px rgba(0, 0, 0, 0.5);
  --surface2: #20242b;
  --toast-bg: #2c323b; /* raised toast that reads against the dark page */
  --toast-fg: #f3f5f8;
  --tab-bg: #20242b;
  --tab-border: transparent;
  --tab-active: var(--paper);
  --wash: rgba(247, 147, 26, 0.07);
  --info: #9db4ff;
  --info-soft: #1a2030;
  --info-line: #2c3a5e;
}

* { box-sizing: border-box; }

html {
  /* Reserve the scrollbar's gutter always, so it doesn't appear the instant
     the history list fills the page and shrink the viewport — that width
     change re-centered the balance carousel's snapped card, the "slight move
     one last time" after a switch. Stable gutter = no reflow when content
     grows. */
  scrollbar-gutter: stable;
  /* Nothing ever scrolls the page sideways. Anything wider than the screen
     (a strip of chips, a stray wide row) would otherwise let an iPhone
     pinch the page out and pan to it. (On the root element, not body: a
     body that clips becomes the scroll container a sticky rail measures
     against, and the rail would stop sticking.) */
  overflow-x: hidden;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.45;
}

#app {
  max-width: 560px;
  margin: 0 auto;
  padding: 24px 16px 24px;
  /* A column the height of the window, so the footer sits at the bottom of
     short screens instead of floating under the content. svh, not dvh: dvh
     can resolve to the tall viewport (URL bar hidden) at first paint, which
     puts the footer just below the fold until you scroll — the phone browser
     showing its address bar is the case that has to fit. */
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

/* ---- typography ---- */
h1, h2, h3 { margin: 0; font-weight: 650; letter-spacing: -0.01em; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 13px; }
/* The reading size for a post or a message — the copy you actually read,
   as opposed to a caption or a row subtitle, which is what .small is for.
   Post bodies wore .small (13px) and a feed of them read like footnotes on
   a phone. 16px is Amethyst's own default for a note body, and at the
   inherited 1.45 line-height the line pitch lands within a pixel of what
   Amethyst renders. Measured on a Pixel 9, side by side. */
.note-text { font-size: 16px; }
.mono { font-family: var(--mono); }
.center { text-align: center; }
.break { word-break: break-all; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
summary { cursor: pointer; }

/* breathing room when an input is scrolled to the top for the keyboard */
input { scroll-margin-top: 12px; }
/* room below the recipient candidates so the field can scroll to the top
   even when the page would otherwise be too short (the margin sits under
   the keyboard, never seen) */
@media (pointer: coarse) { .send-suggest { margin-bottom: 45vh; } }

/* ---- layout helpers ---- */
.row { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.col { display: flex; flex-direction: column; gap: 10px; }
.grow { flex: 1; }
.gap6 { gap: 6px; }
.mt8 { margin-top: 8px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; }
.hidden { display: none !important; }

/* ---- brand / header ---- */
.brand { display: flex; align-items: center; gap: 10px; }
.logo-full { height: 40px; flex: none; color: var(--ink); display: grid; place-items: center; }
.logo-full svg { height: 40px; width: auto; display: block; }
.brand h1 { font-size: 19px; }

.badge {
  font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px;
  border: 1px solid var(--line-strong); color: var(--muted); white-space: nowrap;
}
.badge.dot::before {
  content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--green); margin-right: 6px; vertical-align: middle;
}
.badge.off.dot::before { background: var(--faint); }
.badge.live { color: var(--green); border-color: var(--green-line); background: var(--green-soft); }
.badge.live.dot::before { animation: pulse 1.5s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.badge.testnet { color: var(--accent-ink); border-color: var(--accent); background: var(--accent-soft); }

/* ---- card ---- */
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px;
}
.card + .card { margin-top: 16px; }

/* ---- balance card ---- */
/* Account identity at a glance: a symbol beside the label and a colored
   hairline across the card's crown — spending wears lightning + the ark
   mark (violet), savings the bitcoin disc (orange). Inset shadow stacks
   with the card's own and clips to the radius; no layout shift. */
.face-ico { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; line-height: 1; flex-shrink: 0; }
.face-ico.save { color: #f7931a; }
.face-ico.spend { color: #7c3aed; }
/* No drop shadow on the balance cards: it smeared as they slid and sat oddly
   against the Receive/Send bar beneath. The colour stripe stays. */
.balance, .history-card { box-shadow: none; }
.balance.face-spending { box-shadow: inset 0 3px 0 rgba(124, 58, 237, .55); }
.balance.face-savings { box-shadow: inset 0 3px 0 rgba(247, 147, 26, .6); }
.balance .amt { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; font-family: var(--mono); }
.balance .amt .unit { font-size: 18px; color: var(--muted); margin-left: 6px; font-weight: 600; }
.balance .usd { color: var(--muted); margin-top: 2px; }
.balance .split { margin-top: 14px; display: flex; gap: 22px; }
.balance .split .k { font-size: 12px; color: var(--faint); text-transform: uppercase; letter-spacing: .04em; }
.balance .split .v { font-family: var(--mono); font-size: 14px; }
.balance .split .v.pending { color: var(--accent-ink); }

/* ---- tabs ---- */
.page-pick { width: auto; padding: 6px 28px 6px 10px; font-size: 13px; border-radius: 9px; background-color: var(--paper); }
.tabs { display: flex; gap: 4px; background: var(--tab-bg); border: 1px solid var(--tab-border); border-radius: 12px; padding: 4px; margin: 16px 0; }
.tabs button {
  flex: 1; border: 0; background: transparent; padding: 9px 4px; border-radius: 9px;
  font: inherit; font-weight: 600; font-size: 14px; color: var(--muted); cursor: pointer;
}
.tabs button.active { background: var(--tab-active); color: var(--ink); }

/* ---- buttons ---- */
button, .btn {
  font: inherit; font-weight: 600; cursor: pointer; border-radius: 11px;
  border: 1px solid var(--line-strong); background: var(--paper); color: var(--ink);
  padding: 11px 16px; transition: filter .12s, background .12s, border-color .12s;
  /* no double-tap-zoom arbitration: taps commit immediately on mobile */
  touch-action: manipulation;
}
button:hover { background: var(--surface2); }
button:active { transform: translateY(1px); }
button:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--fill); border-color: var(--fill); color: var(--fill-fg); }
.btn-primary:hover { background: var(--fill-hover); border-color: var(--fill-hover); }
.btn-ghost { background: transparent; }
.btn-sm { padding: 7px 11px; font-size: 13px; border-radius: 9px; }
.btn-sm.on { border-color: var(--accent); color: var(--accent); }
.btn-block { width: 100%; display: block; }
.btn-danger { color: var(--red); border-color: var(--red); background: var(--red-soft); }
.iconbtn { padding: 9px 11px; line-height: 1; }

/* ---- inputs ---- */
label.field { display: block; }
.field .lab { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; display: block; }
input[type=text], input[type=search], input[type=password], input[type=number], textarea, select {
  width: 100%; font: inherit; color: var(--ink); background: var(--paper);
  border: 1px solid var(--line-strong); border-radius: 11px; padding: 11px 13px;
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }
/* Custom caret so it isn't crammed against the right border (native is fixed). */
select {
  -webkit-appearance: none; appearance: none; padding-right: 38px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="%236b7280" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M6 9l6 6 6-6"/></svg>');
  background-repeat: no-repeat; background-position: right 14px center;
}
textarea { resize: vertical; min-height: 84px; font-family: var(--mono); font-size: 15px; }
/* The composers' text field (src/rich-text.js): a textarea to look at and
   type in, contenteditable underneath so keyboards offer GIFs and images. */
coinos-text {
  display: block; width: 100%; box-sizing: border-box; font: inherit; color: var(--ink); background: var(--paper);
  border: 1px solid var(--line-strong); border-radius: 11px; padding: 11px 13px;
  white-space: pre-wrap; overflow-wrap: anywhere; overflow-y: auto; line-height: 1.4; cursor: text;
}
coinos-text:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }
/* a picture or video on its way: shrinking, then uploading (mediaBar) */
.media-progress { display: flex; flex-direction: column; gap: 4px; }
.media-progress-pct { font-variant-numeric: tabular-nums; }
.media-progress-track { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.media-progress-fill { height: 100%; background: var(--accent); border-radius: 3px; transition: width .2s linear; }
coinos-text[data-empty]::before { content: attr(placeholder); color: var(--muted); pointer-events: none; }
/* the hint is text in the flow, so the caret would blink after it: gone once you're in */
coinos-text[data-empty]:focus::before { content: none; }
.chat-compose coinos-text { flex: 1; min-width: 0; min-height: var(--chat-control-size); padding: 10px 13px; line-height: 22px; max-height: 120px; }
.mono-input { font-family: var(--mono); }
.input-group { display: flex; gap: 8px; }
.input-group input { flex: 1; }
/* the send recipient: one line that wraps and grows, so the whole address
   is in view (rows set from its length; see destRows) */
textarea.send-dest {
  flex: 1; min-height: 0; resize: none; overflow-y: auto; line-height: 1.4;
  font-size: inherit; word-break: break-all; white-space: pre-wrap;
}
/* the hint in the page's own face: narrower than the address font, so it
   fits the one line beside Paste and Scan on a phone */
textarea.send-dest::placeholder { font-family: var(--sans); }
/* Paste and Scan stay one line tall at the top as a long address grows the
   field (a flex row stretches them to its full height otherwise) */
.input-group:has(> textarea.send-dest) > button { align-self: flex-start; height: calc(1.4rem + 24px); }

/* unit toggle */
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden; }
.seg button { border: 0; border-radius: 0; padding: 9px 14px; background: var(--paper); }
.seg button.active { background: var(--accent-soft); color: var(--accent-ink); }
/* The profile's Posts / Replies tabs sit right on white cards: a soft-grey
   active tab beside a white one read as the WHITE one being selected (its
   colour matched the posts under it). So these take the feed chips' look:
   the chosen tab solid accent, the other one quiet (Adam, 2026-10-16). */
.prof-tabs button { background: var(--surface2); color: var(--muted); }
.prof-tabs button.active { background: var(--fill); color: var(--fill-fg); }

/* ---- address / qr ---- */
.qr { width: 220px; height: 220px; display: block; border-radius: 12px; border: 1px solid var(--line); }
.addr-box {
  font-family: var(--mono); font-size: 15px; color: var(--ink); background: var(--surface2); border: 1px dashed var(--line-strong);
  border-radius: 11px; padding: 12px 14px; word-break: break-all; text-align: center;
}
/* the profile's npub: solid frame, copy icon beside the key */
.npub-box {
  display: flex; align-items: center; gap: 10px; width: 100%; cursor: pointer;
  text-align: left; font-size: 13px; line-height: 1.45; border-style: solid;
}
.npub-box .npub-text { flex: 1; min-width: 0; }
.npub-box .npub-copy { flex: none; display: flex; color: var(--muted); }
.npub-box:hover .npub-copy { color: var(--ink); }
/* quiet edit/copy affordances living inside the address box */
.addr-editable { position: relative; padding-right: 62px; }
.addr-actions {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  display: flex; align-items: center;
}
.addr-actions button {
  background: none; border: none; box-shadow: none; padding: 5px; line-height: 0;
  color: var(--muted); cursor: pointer;
}
.addr-actions button:hover { color: var(--ink); background: none; }
.addr-actions button:active { transform: none; }
.path { font-family: var(--mono); font-size: 12px; color: var(--faint); }

/* ---- mnemonic grid ---- */
/* Three columns read ACROSS — 1 2 3 on the first line, 4 5 6 on the next —
   the way a printed sheet is read. Two columns (a phone) run DOWN instead,
   the way a hand copies a list: the first column is 1–6, not 1,3,5,…; that
   row count comes from the word count (--rows-2, set inline). */
/* minmax(0, 1fr), not 1fr: a 1fr column won't shrink below its word, so an
   eight-letter word ("resemble") pushed the third column out past the
   card's padding. The cells are a touch tighter so every BIP-39 word (eight
   letters at most) still fits whole in a third of a narrow card. */
.words { display: grid; grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.words .w {
  display: flex; align-items: baseline; gap: 5px; background: var(--surface2); min-width: 0;
  border: 1px solid var(--line); border-radius: 10px; padding: 9px 8px; font-family: var(--mono);
}
.words .w .n { color: var(--faint); font-size: 12px; width: 16px; flex-shrink: 0; text-align: right; }
.words .w .t { font-weight: 600; }
.warn-box {
  background: var(--accent-soft); border: 1px solid var(--accent); color: var(--accent-ink);
  border-radius: 11px; padding: 12px 14px; font-size: 14px;
}

/* ---- lists (tx / utxo) ---- */
.list { display: flex; flex-direction: column; }
.item { display: flex; align-items: center; gap: 12px; padding: 13px 2px; border-top: 1px solid var(--line); }
/* the middle column may shrink: a long name chip beside the label then
   ellipsizes on one line instead of breaking mid-name and pushing the
   amount about */
.item > .grow { min-width: 0; }
.item:first-child { border-top: 0; }
.ico { width: 34px; height: 34px; border-radius: 9px; flex: none; display: grid; place-items: center; font-size: 16px; }
.ico.in { background: var(--green-soft); color: var(--green); }
.ico.out { background: var(--red-soft); color: var(--red); }
.amount-pos { color: var(--green); font-family: var(--mono); font-weight: 600; }
.amount-neg { color: var(--red); font-family: var(--mono); font-weight: 600; }
.amount { font-family: var(--mono); font-weight: 600; }
.tag { font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px; white-space: nowrap; flex: none; }
.tag.pending { background: var(--accent-soft); color: var(--accent-ink); }
.tag.conf { background: var(--green-soft); color: var(--green); }

/* coin control rows */
.coin { display: flex; align-items: center; gap: 11px; padding: 11px 2px; border-top: 1px solid var(--line); }
.coin:first-child { border-top: 0; }
.coin input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--accent); }
/* the Spending coins table: labels once in the header, numbers right-
   aligned in tabular figures; on a narrow screen the WRAPPER scrolls
   sideways so the page itself never does */
.coin-scroll { overflow-x: auto; margin: 4px -2px 0; -webkit-overflow-scrolling: touch; }
.coin-table { border-collapse: collapse; width: 100%; font-size: 13.5px; white-space: nowrap; }
.coin-table th {
  text-align: left; font-weight: 600; font-size: 12px; color: var(--muted);
  padding: 4px 5px 8px; border-bottom: 1px solid var(--line-strong);
}
.coin-table td { padding: 10px 5px; border-top: 1px solid var(--line); vertical-align: middle; }
.coin-table tbody tr:first-child td { border-top: 0; }
.coin-table th:first-child, .coin-table td:first-child { width: 22px; padding-left: 2px; padding-right: 2px; }
.coin-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.coin-table td.warn { color: var(--accent-ink); font-weight: 600; }
.coin-table tr.clickable { cursor: pointer; }
.coin-table input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; display: block; }

/* ---- review / summary ---- */
.summary { background: var(--surface2); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.summary .line { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 14px; align-items: baseline; }
.summary .line .k { color: var(--muted); flex: none; }
.summary .line .v { font-family: var(--mono); text-align: right; min-width: 0; word-break: break-word; }

/* ---- misc ---- */
.notice { border-radius: 11px; padding: 11px 13px; font-size: 14px; }
.notice.err { background: var(--red-soft); color: var(--red); border: 1px solid #f1c9c9; }
.notice.ok { background: var(--green-soft); color: var(--green); border: 1px solid var(--green-line); }
.notice.info { background: var(--info-soft); color: var(--info); border: 1px solid var(--info-line); }
.spinner {
  width: 18px; height: 18px; border: 2px solid var(--line-strong); border-top-color: var(--accent);
  border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; vertical-align: middle;
}
.spinner.sm { width: 13px; height: 13px; border-width: 2px; }

/* ---- qr scanner overlay ---- */
.scan-overlay { position: fixed; inset: 0; z-index: 60; background: #000; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.scan-overlay video { width: 100%; height: 100%; object-fit: cover; }
.scan-frame { position: absolute; width: min(70vw, 260px); height: min(70vw, 260px); border: 3px solid #fff; border-radius: 18px; box-shadow: 0 0 0 9999px rgba(0,0,0,0.45); }
.scan-hint { position: absolute; bottom: 70px; left: 0; right: 0; text-align: center; color: #fff; font-size: 14px; padding: 0 24px; text-shadow: 0 1px 3px rgba(0,0,0,0.7); }
.scan-close {
  position: absolute; top: 16px; right: 16px; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(0,0,0,0.5); color: #fff; border: 1px solid rgba(255,255,255,0.4);
  font-size: 18px; line-height: 1; cursor: pointer;
  /* the base button rule's 11px/16px padding shoved the glyph off-center
     inside this fixed circle — center it properly and drop the padding */
  display: flex; align-items: center; justify-content: center; padding: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%);
  background: var(--toast-bg); color: var(--toast-fg); padding: 10px 16px; border-radius: 10px;
  font-size: 14px; box-shadow: var(--shadow); z-index: 300; opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.words .w.masked .t { color: var(--faint); letter-spacing: 2px; }

.check-badge {
  width: 64px; height: 64px; border-radius: 50%; flex: none;
  background: var(--green-soft); color: var(--green);
  display: grid; place-items: center; font-size: 34px; font-weight: 700;
}
.footer { margin-top: auto; padding-top: 28px; padding-bottom: 8px; }
.footer a { color: var(--accent-ink); font-weight: 600; }

/* Clickable unit labels (BTC/sats) — look like text, toggle the global unit. */
.unit-tag {
  background: none; border: 0; padding: 0; margin: 0; font: inherit; cursor: pointer;
  color: var(--muted); font-weight: 600;
  border-radius: 0;
  border-bottom: 1px dotted var(--line-strong);
}
.unit-tag:hover { background: none; color: var(--accent-ink); border-bottom-color: var(--accent); }
.unit-tag:active { transform: none; }
.divider { height: 1px; background: var(--line); margin: 16px 0; border: 0; }
hr.divider { margin: 16px 0; }
.linklike { background: none; border: 0; padding: 0; color: var(--accent-ink); font-weight: 600; cursor: pointer; }
.linklike:hover { text-decoration: underline; background: none; }

/* ---- how it works ---- */

/* two columns up to 480px: three thirds of a card that narrow leave an
   eight-letter word no room either side */
@media (max-width: 480px) {
  .words { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: minmax(0, 1fr); grid-template-rows: repeat(var(--rows-2, 6), auto); }
}
@media (max-width: 420px) {
  .words { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: minmax(0, 1fr); grid-template-rows: repeat(var(--rows-2, 6), auto); }
  .balance .amt { font-size: 28px; }
}

/* Icon dropdown (receive mode) — a <select> can't render SVG in options. */
.icon-select-btn {
  width: 100%; display: flex; align-items: center; gap: 9px;
  font: inherit; color: var(--ink); background: var(--paper);
  border: 1px solid var(--line-strong); border-radius: 11px; padding: 11px 13px; cursor: pointer;
}
.icon-select-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: -1px; }
.icon-select-menu {
  background: var(--paper); border: 1px solid var(--line-strong); border-radius: 11px;
  padding: 5px; box-shadow: 0 10px 28px rgba(0,0,0,.18); display: flex; flex-direction: column; gap: 2px;
}
.icon-select-item {
  display: flex; align-items: center; gap: 9px; width: 100%;
  font: inherit; color: var(--ink); background: transparent;
  border: 0; border-radius: 8px; padding: 10px 10px; cursor: pointer; text-align: left;
}
.icon-select-item:hover { background: var(--hover, rgba(128,128,128,.12)); }
.icon-select-item.active { background: var(--accent-soft, rgba(247,147,26,.14)); }
.sel-ico { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; flex-shrink: 0; font-size: 16px; line-height: 1; }
.sel-ico svg { display: block; }

/* Messages — Concord community chat. */
/* An open conversation fills the window. Its header and composer stay put;
   only the message log scrolls. Let flex layout account for the brand header
   and padding instead of subtracting a fixed estimate from the viewport. */
html:has(#app .chat-card), body:has(#app .chat-card) { overflow: hidden; }
#app:has(.chat-card) {
  height: 100vh;
  height: var(--chat-viewport-height, 100dvh);
  min-height: 0;
}
#app:has(.chat-card) > .footer { display: none; }
#app > .col:has(> .chat-card) { flex: 1; min-height: 0; }
#app > .col:has(> .chat-card) > :not(.chat-card) { flex-shrink: 0; }
.chat-card {
  padding: 0; overflow: hidden; display: flex; flex-direction: column;
  flex: 1; min-height: 0;
}
.chat-card > :not(.chat-log) { flex-shrink: 0; }
.chat-card > :is(.chat-invite, .chat-members) { flex-shrink: 1; min-height: 0; }
.chat-head { padding: 14px 16px 10px; border-bottom: 1px solid var(--line); flex: 0 0 auto; }
.chat-title { font-weight: 650; }
.chat-log {
  flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior-y: contain; padding: 12px 14px;
  display: flex; flex-direction: column; gap: 10px; background: var(--surface2);
}
.chat-row { display: flex; gap: 9px; align-items: flex-start; }
.chat-row.grouped { margin-top: -6px; }
.chat-avatar {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; object-fit: cover;
  background: var(--accent-soft);
}
.ava-img { background-size: cover; background-position: center; }
.chat-avatar.fallback {
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 650; color: var(--muted); text-transform: uppercase;
}
.chat-avatar.spacer { background: transparent; height: 0; }
.chat-body { min-width: 0; flex: 1; }
.chat-meta { display: flex; align-items: baseline; gap: 7px; margin-bottom: 2px; }
.chat-name { font-size: 15px; font-weight: 650; }
.chat-badge {
  font-size: 10px; font-weight: 650; color: var(--accent-fg); background: var(--accent);
  border-radius: 5px; padding: 1px 5px; margin-left: 5px; vertical-align: 1px;
}
.chat-time { font-size: 12px; color: var(--faint); }
.chat-bubble {
  position: relative; display: inline-block; max-width: 100%;
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  padding: 7px 11px; font-size: 16px; line-height: 1.45;
  overflow-wrap: break-word; white-space: pre-wrap;
}
/* the messages surfaces run edge to edge on phones, like the notes feed —
   the card walls step outside #app's padding and the borders/radius go */
@media (max-width: 520px) {
  .chat-page {
    margin-left: -16px; margin-right: -16px;
    border-left: none; border-right: none; border-radius: 0;
  }
}
.chat-edited { font-size: 11px; color: var(--faint); }
.chat-del {
  position: absolute; top: -7px; right: -7px; width: 18px; height: 18px;
  display: none; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong); border-radius: 50%;
  background: var(--paper); color: var(--muted); font-size: 12px; line-height: 1; cursor: pointer;
  /* the global button padding (11px 16px) floors the border-box past 18px
     wide and turns the circle into an oval — a fixed-size round button
     must zero it */
  padding: 0;
}
.chat-row:hover .chat-del { display: flex; }
/* Telegram-style message action sheet: quick reactions + actions, opened by
   a tap on any bubble (rides the confirm-pop backdrop). */
.msg-sheet { width: 100%; max-width: 300px; gap: 2px; }
.msg-sheet-emojis { display: flex; gap: 4px; margin-bottom: 8px; }
.msg-sheet-emojis button {
  flex: 1; font-size: 19px; line-height: 1; padding: 8px 0;
  border: 1px solid var(--line); border-radius: 10px; background: var(--paper);
}
.msg-sheet-emojis button.on { border-color: var(--accent); }
.msg-sheet-item {
  display: flex; gap: 12px; align-items: center; text-align: left;
  border: none; background: none; padding: 11px 8px; font-weight: 550; border-radius: 10px;
}
.msg-sheet-item:hover { background: var(--surface2); }
.msg-sheet-ico { width: 20px; text-align: center; color: var(--muted); flex-shrink: 0; }
/* the quoted message a reply carries, and the composer's replying-to bar */
.chat-quote {
  display: flex; flex-direction: column; gap: 0; margin-bottom: 4px;
  border-left: 3px solid var(--accent); background: var(--surface2);
  border-radius: 6px; padding: 3px 8px; font-size: 12px; max-width: 100%;
}
.chat-quote-name { font-weight: 650; }
.chat-quote-text {
  color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.reply-bar {
  display: flex; align-items: center; gap: 8px; padding: 7px 12px;
  border-top: 1px solid var(--line); background: var(--surface2); flex: 0 0 auto;
}
/* Reactions sit INSIDE the bubble, tucked under the text (Telegram-style).
   The pill tint/border derive from the bubble's own text colour, so they read
   correctly on both the plain bubble and the accent "me" bubble. */
.chat-reacts { display: flex; gap: 5px; margin-top: 5px; flex-wrap: wrap; }
.chat-react {
  font-size: 12px; border-radius: 10px; padding: 1px 7px;
  background: color-mix(in srgb, currentColor 13%, transparent);
  border: 1px solid transparent;
}
.chat-react.clickable { cursor: pointer; }
.chat-react.on { border-color: color-mix(in srgb, currentColor 55%, transparent); font-weight: 600; }
/* zap tally: a little bolt + sats, amber on both themes; .on = we zapped it */
.zap-tally { display: inline-flex; align-items: center; gap: 2px; font-size: 11px; font-weight: 650; color: #e6a800; white-space: nowrap; flex-shrink: 0; }
.zap-tally.chat-react { font-size: 12px; padding: 1px 7px 1px 5px; }
.zap-tally.clickable { cursor: pointer; }
/* the one-tap ⚡ beside someone else's chat bubble */
.chat-line { display: flex; align-items: center; gap: 4px; }
.chat-row.dm.mine .chat-line { justify-content: flex-end; }
.chat-line > .chat-bubble { min-width: 0; }
.chat-zap {
  flex-shrink: 0; width: 28px; height: 28px; padding: 0; border: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: none; color: var(--muted); cursor: pointer;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
.chat-zap:hover { color: #e6a800; background: var(--paper); }
.chat-zap svg { width: 17px; height: 17px; }
/* A tap-local lightning strike, followed by a floating amount and embers. */
.zap-fx { position: fixed; inset: 0; z-index: 10000; pointer-events: none; overflow: hidden; contain: strict; }
.zap-fx-impact { position: absolute; left: var(--zap-x); top: var(--zap-y); width: 0; height: 0; color: #ffc83d; }
.zap-fx-bolt { position: absolute; width: 82px; height: 180px; left: -41px; bottom: 0; fill: #fff5c2; filter: drop-shadow(0 0 5px #fff3a1) drop-shadow(0 0 13px #ff9d00); transform-origin: 50% 100%; animation: zap-strike 430ms ease-out both; }
.zap-fx-flash, .zap-fx-ring { position: absolute; left: -28px; top: -28px; width: 56px; height: 56px; border-radius: 50%; animation: zap-impact 550ms 60ms ease-out both; }
.zap-fx-flash { background: radial-gradient(circle, #fffce0, #ffca45 25%, #ff980066 50%, transparent 70%); }
.zap-fx-ring { border: 2px solid #ffd76a; box-shadow: 0 0 12px #ffad32, inset 0 0 10px #ffad3266; animation-name: zap-ring; }
.zap-fx-amount { position: absolute; left: var(--zap-label-x); top: -60px; display: flex; align-items: baseline; gap: 6px; white-space: nowrap; color: #fff2ad; text-shadow: 0 2px 2px #713500, 0 0 9px #ff9c00, 0 0 22px #ff9500aa; animation: zap-amount 1450ms cubic-bezier(.16, 1, .3, 1) both; }
.zap-fx-amount strong { font-size: clamp(34px, 9vw, 48px); font-weight: 900; line-height: 1; letter-spacing: -.045em; }
.zap-fx-amount span { font-size: 13px; font-weight: 800; letter-spacing: .04em; }
.zap-fx-spark { position: absolute; width: 10px; height: 3px; left: -5px; top: -2px; border-radius: 3px; background: #ffe997; box-shadow: 0 0 6px #ffaf20; animation: zap-spark 720ms var(--delay) ease-out both; }
.zap-fx-spark.ember { left: calc(var(--zap-label-x) - 2px); top: -80px; width: 3px; height: 3px; background: #fff4c2; animation-duration: 750ms; }
@keyframes zap-strike {
  0% { opacity: 0; transform: scaleY(.15); }
  16%, 38% { opacity: 1; transform: scaleY(1); }
  65% { opacity: .8; }
  100% { opacity: 0; transform: scaleY(1.04); }
}
@keyframes zap-impact { 0% { opacity: 1; transform: scale(.2); } 100% { opacity: 0; transform: scale(2.4); } }
@keyframes zap-ring { 0% { opacity: .9; transform: scale(.25); } 100% { opacity: 0; transform: scale(2); } }
@keyframes zap-amount {
  0% { opacity: 0; transform: translate(-50%, 35px) scale(.35) rotate(-9deg); }
  16% { opacity: 1; transform: translate(-50%, -8px) scale(1.2) rotate(-5deg); }
  30% { opacity: 1; transform: translate(-50%, -4px) scale(1) rotate(-3deg); }
  58% { opacity: 1; filter: blur(0); }
  100% { opacity: 0; transform: translate(-50%, -65px) scale(1.08) rotate(2deg); filter: blur(3px); }
}
@keyframes zap-spark {
  0% { opacity: 0; transform: translate(0, 0) rotate(var(--angle)) scale(.4); }
  12% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--angle)) scale(.1); }
}
@media (prefers-reduced-motion: reduce) {
  .zap-fx-bolt, .zap-fx-flash, .zap-fx-ring, .zap-fx-spark { display: none; }
  .zap-fx-amount { animation: zap-amount-reduced 1200ms ease-out both; }
  @keyframes zap-amount-reduced { 0%, 65% { opacity: 1; transform: translateX(-50%); } 100% { opacity: 0; transform: translateX(-50%); } }
}
/* A zap in flight: the chip lands the moment you tap and breathes until the
   payment settles — the bolt carries the pulse, the number stays readable. */
.zap-tally.flying { animation: zap-breathe 1.15s ease-in-out infinite; }
.zap-tally.flying svg { animation: zap-flicker 1.15s ease-in-out infinite; transform-origin: center; }
@keyframes zap-breathe { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes zap-flicker { 0%, 100% { transform: scale(.82); } 50% { transform: scale(1.12); } }
@media (prefers-reduced-motion: reduce) {
  .zap-tally.flying, .zap-tally.flying svg { animation: none; opacity: .7; }
}
.chat-compose {
  --chat-control-size: 44px;
  display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line);
  align-items: center; flex: 0 0 auto;
}
.chat-compose > button {
  flex: none; height: var(--chat-control-size); min-width: var(--chat-control-size);
  padding: 0 11px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
}
.chat-compose input, .chat-compose textarea {
  flex: 1; min-width: 0; font: inherit; color: var(--ink); background: var(--paper);
  border: 1px solid var(--line-strong); border-radius: 11px; padding: 10px 13px;
}
.chat-compose textarea { resize: none; max-height: 120px; overflow-y: auto; line-height: 1.4; }
.chat-compose input:focus-visible, .chat-compose textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: -1px; }

/* Messages v2 — home lists, DM threads, invite panel. */
.chat-back { font-size: 22px; line-height: 1; padding: 2px 10px 4px; flex-shrink: 0; }
.chat-thread-row { display: flex; gap: 10px; align-items: center; cursor: pointer; }
/* list rows read at message size: names 16, previews/member counts 15 —
   the generic .small (13px) made the inbox feel like fine print */
.chat-thread-row .chat-name { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-thread-row .small { font-size: 15px; }
.chat-preview { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread-when { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; }
.thread-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); flex-shrink: 0; }
.chat-thread-row > .thread-dot { margin-right: 8px; }
.chat-thread-row.unread .chat-name { font-weight: 700; }
.chat-thread-row.unread .chat-preview { color: var(--ink); }
.chat-invite { padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--surface2); flex: 0 0 auto; max-height: 40vh; overflow-y: auto; }
.chat-invite input { font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--line-strong); border-radius: 9px; padding: 7px 10px; min-width: 0; }
.chat-row.dm { justify-content: flex-start; }
.chat-row.dm.mine { justify-content: flex-end; }
.chat-row.dm .chat-body { max-width: 82%; }
.chat-row.dm.mine .chat-body { text-align: right; }
.chat-bubble.me { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); text-align: left; }
/* a link inside the accent-colored own bubble: the page's link color is
   calibrated against the PAGE background, not the bubble's (in dark mode a
   near-white link sat on the white bubble) — take the bubble's own
   foreground and let the underline say "link" */
.chat-bubble.me a { color: inherit; text-decoration: underline; }
/* dark mode: the white accent was a glaring slab among dark bubbles — your
   own messages sit a step lighter than everyone else's instead */
:root[data-theme="dark"] .chat-bubble.me { --me-bubble: #343a44; background: var(--me-bubble); color: #eef0f3; border-color: var(--me-bubble); }
.chat-row.dm .chat-time { font-size: 10px; color: var(--faint); margin-top: 2px; }

/* Profile note feed: inline images stay contained, links wrap. */
/* never cropped: the column's width at the picture's own shape, up to a
   height a tall one can't grief the feed past (it narrows instead: --ar,
   its width/height, keeps the frame to the picture) */
.note-img { display: block; max-width: min(100%, calc(min(560px, 70vh) * var(--ar, 100))); max-height: min(560px, 70vh); border-radius: 10px; margin-top: 6px; object-fit: contain; }
.note-img.clickable { cursor: zoom-in; }
/* a picture still loading when its row was frozen: a fixed box, fitted inside */
.note-img.note-img-late { width: 100%; max-width: 100%; aspect-ratio: 4 / 3; height: auto; background: rgba(127,127,127,.08); }
/* The row under a post: reply, boost, quote, react, zap — spread across the
   post's full width so each is a comfortable target, quiet until one carries
   a count or you've used it. */
.note-post { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 8px 10px; align-items: center; }
.note-content { display: contents; }
.note-content > * { grid-column: 1 / -1; min-width: 0; }
.note-content > .note-header { grid-column: 2; grid-row: 1; }
.note-content > .note-text { font-size: 18px; line-height: 1.5; }
.note-acts { margin-top: 8px; gap: 4px; width: 100%; }
.note-acts > .note-act { flex: 1 1 0; min-width: 0; justify-content: center; padding-inline: 2px; }
/* server comparison table (Settings → Advanced → Ark server) */
.cmp-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.cmp-table th { text-align: left; font-weight: 600; padding: 4px 6px; border-bottom: 1px solid var(--line); }
.cmp-table td { padding: 5px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp-table td.k { color: var(--muted); width: 38%; }
.cmp-table tr:last-child td { border-bottom: 0; }
/* point of sale */
.input-group input.pos-amount, input.pos-amount { font-size: 40px; font-weight: 700; text-align: right; letter-spacing: -.5px; padding: 8px 12px; height: auto; line-height: 1.2; }
.pos-big { font-size: 34px; font-weight: 700; line-height: 1.1; letter-spacing: -.5px; }
.pos-tips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; }
.pos-tip { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface2); color: var(--ink); cursor: pointer; }
.pos-tip.on { border-color: var(--fill); background: var(--fill); color: var(--fill-fg); }
.pos-tip.on .muted { color: inherit; opacity: .8; }
.pos-tip-label { font-size: 20px; font-weight: 600; }
.pos-total { font-size: 22px; font-weight: 600; margin-top: 4px; }
.pos-qr svg { width: min(260px, 70vw); height: auto; display: block; }
.pos-check { width: 64px; height: 64px; border-radius: 50%; background: var(--green, #2e7d32); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 34px; }
.pos-sale.faint { opacity: .55; }
.pos-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; }
.pos-key { padding: 14px 0; font-size: 22px; font-weight: 600; border: 1px solid var(--line); border-radius: 12px; background: var(--surface2); color: var(--ink); cursor: pointer; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.pos-key:active { background: var(--fill); color: var(--fill-fg); }
.pos-key.del { font-weight: 400; }
/* the feeds row: pills that scroll sideways, the one on screen filled */
.feed-chips { gap: 6px; flex-wrap: nowrap; overflow-x: auto; margin: 0 -14px; padding: 2px 14px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.feed-chips::-webkit-scrollbar { display: none; }
/* with a mouse: a thin bar says the strip scrolls, and it drags (app.js) */
@media (hover: hover) and (pointer: fine) {
  .feed-chips { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; padding-bottom: 6px; cursor: grab; }
  .feed-chips::-webkit-scrollbar { display: block; height: 6px; }
  .feed-chips::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 3px; }
  .feed-chips.dragging { cursor: grabbing; user-select: none; }
  .feed-chips.dragging .feed-chip { pointer-events: none; }
}
.feed-chip { flex: 0 0 auto; border: 1px solid var(--line); background: var(--surface2); color: var(--muted); border-radius: 999px; padding: 5px 12px; font-size: 14px; line-height: 1.2; cursor: pointer; white-space: nowrap; max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.feed-chip.on { background: var(--fill); color: var(--fill-fg); border-color: var(--fill); }
.feed-chip.add { font-weight: 600; padding: 5px 11px; }
.note-act {
  background: none; border: 0; padding: 4px 6px; margin: 0; line-height: 1;
  color: var(--faint); display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  border-radius: 8px;
}
.note-act:hover { background: var(--surface2); color: var(--ink); }
.note-act.on { color: #e0245e; }
.note-act.on[aria-label="Boost"] { color: var(--green); }
/* the zap button carries the sats tally: amber once anyone has zapped, the
   number in amber too; breathing while our own zap is in the air */
.note-act.note-zap.zapped, .note-act.note-zap.zapped .note-act-n { color: #e6a800; }
/* holdable: no text selection or callout while the finger rests on it */
.note-act.note-zap, .zap-tally.clickable { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.note-act.note-zap[aria-disabled] { cursor: default; }
.note-act.note-zap[aria-disabled]:hover { background: none; color: var(--faint); }
.note-act.note-zap.zapped[aria-disabled]:hover { color: #e6a800; }
.note-act.note-zap.flying { animation: zap-breathe 1.15s ease-in-out infinite; }
.note-act.note-zap.flying svg { animation: zap-flicker 1.15s ease-in-out infinite; transform-origin: center; }
@media (prefers-reduced-motion: reduce) {
  .note-act.note-zap.flying, .note-act.note-zap.flying svg { animation: none; opacity: .7; }
}
.note-act-emoji { font-size: 17px; line-height: 1; }
.note-act-n { font-size: 12px; font-weight: 600; color: var(--muted); }
.note-who-toggle.on { color: var(--muted); }
.note-who-toggle[aria-disabled] { opacity: .3; cursor: default; }
.note-who-toggle[aria-disabled]:hover { background: none; color: var(--faint); }
.note-who-chev { display: flex; transition: transform .2s; }
.note-who-chev.open { transform: rotate(180deg); }
/* who reacted, boosted and zapped: opened by the chevron on the bar */
.note-who { margin-top: 6px; padding: 8px 10px; gap: 8px; background: var(--surface2); border: 1px solid var(--line); border-radius: 10px; font-size: 13px; }
.note-who-line { gap: 10px; align-items: flex-start; min-width: 0; }
.note-who-lead { flex: 0 0 22px; display: flex; justify-content: center; color: var(--muted); padding-top: 3px; }
.note-who-people { gap: 6px 10px; align-items: center; min-width: 0; }
.note-who-person { display: inline-flex; align-items: center; gap: 5px; padding: 2px 6px 2px 2px; border: 0; background: transparent; color: var(--ink); font: inherit; border-radius: 999px; cursor: pointer; min-width: 0; }
.note-who-person:hover { background: var(--surface); }
.note-who-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px; }
.note-who-sats { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.alert-row.fresh { background: var(--accent-soft, rgba(128,128,128,.08)); border-radius: 8px; padding-left: 8px !important; padding-right: 8px !important; margin: 0 -8px; }
.alert-excerpt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* The attach button sits between Post and Cancel: a square the size of the
   buttons beside it, not the sliver a .btn-sm made of a 20px icon. */
.attach-btn {
  flex: 0 0 auto; width: 48px; align-self: stretch; min-height: 44px;
  display: flex; align-items: center; justify-content: center; padding: 0;
}
/* beside a growing reply box the icons keep their size, sat on the baseline */
.thread-reply .reply-tools .attach-btn { height: 40px; }
/* the profile's action row: a label never breaks inside its button — when
   four don't fit across, the row wraps a whole button to the next line */
.prof-actions > button { white-space: nowrap; }
/* the field inside the panel: a quiet hairline, the panel is the frame */
.thread-reply .thread-reply-input { border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 10px; }
.thread-reply .thread-reply-input:focus { border-color: var(--ink); outline: none; }
/* Preview, Cancel and Reply: one size, the icon buttons' height */
.thread-reply .reply-tools .compose-preview-toggle,
.thread-reply .reply-tools .thread-reply-cancel, .thread-reply .reply-tools .thread-reply-send {
  height: 40px; padding: 0 18px; border-radius: 10px; font-size: 15px; line-height: 38px; box-sizing: border-box;
}
/* A picture, full screen: the image centred on a dark ground, everything
   else out of the way. Fixed to the viewport (svh, so a phone's address bar
   can't push it), and above every other layer including the toast. */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  background: rgba(8, 10, 14, .94); padding: 16px;
  animation: lightbox-in .12s ease-out;
  touch-action: none; /* pinch and drag are the picture's own (see attachZoom) */
}
/* Nothing scrolls behind a picture that fills the screen — and the reserved
   scrollbar gutter (see html, top of file) stands down with it, or it shows
   as a pale stripe beside an otherwise full-screen image. Fixed positioning
   is sized to the viewport WITHOUT that gutter, so this is the only way to
   reach the edge. No layout shift worth the name: it happens under the
   backdrop. */
html.no-scroll { overflow: hidden; scrollbar-gutter: auto; }
.lightbox img {
  max-width: 100%; max-height: 100svh; max-height: 100vh;
  object-fit: contain; border-radius: 6px; cursor: zoom-out;
  user-select: none; -webkit-user-select: none; transform-origin: center center; will-change: transform;
}
.lightbox-x {
  position: absolute; top: max(10px, env(safe-area-inset-top)); right: 10px;
  width: 40px; height: 40px; padding: 0; font-size: 26px; line-height: 1;
  border-radius: 999px; border: 0; color: #fff; background: rgba(255, 255, 255, .14);
}
.lightbox-x:hover { background: rgba(255, 255, 255, .24); }
@keyframes lightbox-in { from { opacity: 0; } to { opacity: 1; } }
.note-video { display: block; width: 100%; height: auto; max-height: var(--vid-cap); object-fit: contain; border-radius: 10px; margin-top: 6px; background: #000; }
/* a video plays by itself, muted, while it is on screen; the corner button
   turns the sound on (see autoplay in messages.js) */
.note-video-box { position: relative; display: block; max-width: 100%; margin-top: 6px; }
.note-video-box .note-video { margin-top: 0; }
/* the height a feed clip may take: the whole screen on a phone, three
   quarters of it on a computer (a portrait clip on a 1920 screen ran off it) */
:root { --vid-cap: 100vh; }
@media (min-width: 900px) { :root { --vid-cap: 75vh; } }
/* with a mouse: the big play/pause in the middle, while the pointer is over the clip */
.vid-pp {
  position: absolute; left: 50%; top: 50%; z-index: 2; width: 64px; height: 64px; margin: -32px 0 0 -32px; padding: 0;
  border: 0; border-radius: 50%; background: rgba(18, 18, 18, .6); color: #fff; cursor: pointer;
  display: none; align-items: center; justify-content: center;
}
.vid-pp:hover { background: rgba(18, 18, 18, .85); }
.vid-pp-i { width: 0; height: 0; margin-left: 5px; border-style: solid; border-width: 13px 0 13px 22px; border-color: transparent transparent transparent #fff; }
.vid-pp.playing .vid-pp-i { width: 20px; height: 24px; margin: 0; border-width: 0 7px; border-color: #fff; }
.has-mouse .note-video-box:hover .vid-pp, .vid-pp:focus-visible { display: flex; }
/* the moments bar is the clip's only seek bar: the middle button is its play
   control on a touch screen too, up whenever the clip is paused */
.note-video-box.own-bar .vid-pp:not(.playing) { display: flex; }
.note-video-box:has(.vid-heavy) .vid-pp { display: none; }
.vid-sound {
  position: absolute; top: 8px; left: 8px; z-index: 2; margin: 0; padding: 4px 10px; border: 0;
  border-radius: 999px; background: rgba(18, 18, 18, .7); color: #fff; font-size: 13px; line-height: 1.3;
  cursor: pointer; display: inline-flex; align-items: center; gap: 5px;
}
.vid-sound:hover { background: rgba(18, 18, 18, .9); }
/* A quoted note, inside the post that quotes it: its own little card, so the
   two voices don't run together. Context, not another post to act on — the
   action row stops at the outer post. */
.quote-card {
  margin-top: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface2); display: flex; flex-direction: column; gap: 4px;
}
.quote-card.clickable { cursor: pointer; }
.quote-card.clickable:hover { border-color: var(--line-strong); }
.quote-loading { flex-direction: row; align-items: center; gap: 8px; }
/* a quote inside a quote: one line */
.quote-mini { display: flex; align-items: center; gap: 6px; margin-top: 6px; padding: 5px 8px; min-width: 0;
  border: 1px solid var(--line); border-radius: 8px; white-space: nowrap; overflow: hidden; }
.quote-mini .quote-name { flex-shrink: 0; }
.quote-mini-text { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
/* An audio link as a player (a podcast on Blossom, a voice note). */
.note-audio { margin: 8px 0; padding: 10px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface2); display: flex; flex-direction: column; gap: 6px; white-space: normal; }
.note-audio-head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.note-audio-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.note-audio audio { width: 100%; height: 40px; }
/* A referenced article or list (nostr:naddr). The cover's box is fixed, so
   the row doesn't grow under the reader when the picture lands. */
.addr-article { padding: 0 0 10px; overflow: hidden; gap: 6px; }
.addr-article > :not(.addr-cover) { margin: 0 10px; }
.addr-cover { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; display: block; background: var(--line); }
.addr-title { font-weight: 650; font-size: 1.05em; line-height: 1.3; }
.addr-summary { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; white-space: normal; }
/* Live streams (NIP-53): the row of what's on above a feed, a profile's
   "on now", a post's card, and the stream's own page (player over chat). */
/* a face whose person is streaming now: a red ring, and LIVE under the bigger ones */
.chat-avatar.live-ring { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px #e0245e; position: relative; overflow: visible; }
.chat-avatar.mini.live-ring { box-shadow: 0 0 0 1px var(--paper), 0 0 0 2.5px #e0245e; }
.chat-avatar.live-ring:not(.mini)::after { content: 'LIVE'; position: absolute; left: 50%; bottom: -7px; transform: translateX(-50%);
  padding: 0 4px; border-radius: 3px; font-size: 9px; font-weight: 700; line-height: 13px; letter-spacing: .04em;
  color: #fff; background: #e0245e; box-shadow: 0 0 0 2px var(--paper); text-transform: none; }
.live-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px 10px; padding: 2px 0 4px; }
.live-past-title { margin: 6px 0 0; font-size: 15px; }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #e0245e; margin-right: 5px; vertical-align: 1px; }
.live-tile { display: flex; flex-direction: column; gap: 5px; padding: 0; text-align: left;
  background: none; border: 0; color: inherit; cursor: pointer; min-width: 0; }
.live-cover { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden;
  background: var(--line) center / cover no-repeat; }
.live-badge { display: inline-block; padding: 1px 6px; border-radius: 4px; font-size: 11px; font-weight: 700;
  letter-spacing: .04em; color: #fff; background: #555; line-height: 1.5; flex-shrink: 0; }
.live-badge.live { background: #e0245e; }
.live-cover .live-badge { position: absolute; top: 6px; left: 6px; }
.live-viewers { position: absolute; bottom: 6px; left: 6px; padding: 1px 6px; border-radius: 4px; font-size: 11px;
  color: #fff; background: rgba(0, 0, 0, .6); }
.live-tile-title { font-weight: 600; font-size: 14px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden; }
.live-tile-host { align-items: center; min-width: 0; }
.live-tile-host .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-banner { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid #e0245e;
  border-radius: 10px; background: none; color: inherit; cursor: pointer; text-align: left; min-width: 0; }
.live-banner-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.live-card { flex-direction: row; align-items: center; gap: 10px; }
.live-card .live-cover { flex: 0 0 120px; width: 120px; }
.live-title { margin: 0; min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-player { width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 10px; overflow: hidden; }
.live-frame { width: 100%; height: 100%; }
.live-video { width: 100%; height: 100%; display: block; background: #000; }
.live-still { border-radius: 0; height: 100%; display: flex; flex-direction: column; gap: 10px; align-items: center; justify-content: center; }
.live-rec-link { background: var(--paper); color: var(--ink); text-decoration: none; }
.live-say { padding: 6px 12px; border-radius: 8px; color: #fff; background: rgba(0, 0, 0, .65); font-size: 14px; text-align: center; }
/* the top padding is headroom for a hat on the first line's face: a scroller clips what rises out of it */
.live-chat { display: flex; flex-direction: column; gap: 8px; max-height: 46vh; min-height: 120px; overflow-y: auto; overscroll-behavior: contain; padding-top: 12px; }
.live-line { display: flex; gap: 8px; align-items: flex-start; min-width: 0; }
.live-line-body { min-width: 0; overflow-wrap: anywhere; white-space: pre-wrap; line-height: 1.35; }
.live-zap .live-line-body b { color: var(--accent); }
.live-chat .chat-row { padding-right: 2px; }
/* on phones the stream is the page, the way Nostrich lays one out: the
   picture runs edge to edge and the chat under it is a plain full-width
   list of lines, no bubbles — the card walls step outside #app's padding */
@media (max-width: 520px) {
  .live-page > .card {
    margin-left: -16px; margin-right: -16px; padding: 10px 0 12px;
    border-left: none; border-right: none; border-radius: 0; box-shadow: none;
  }
  .live-page > .live-chat-card { margin-top: 0; padding-top: 6px; border-top: none; }
  .live-page > .card > :not(.live-player, .live-chat) { margin-left: 14px; margin-right: 14px; }
  .live-page .live-player { border-radius: 0; }
  .live-page .live-chat { padding: 10px 14px 0; max-height: 60vh; }
  .live-page .live-title { font-size: 17px; }
  .live-chat .chat-row { gap: 10px; }
  .live-chat .chat-bubble { display: block; background: transparent; border: 0; border-radius: 0; padding: 0; font-size: 15px; }
  .live-chat .chat-quote { margin-bottom: 2px; }
}
.bc-preview.mirror { transform: scaleX(-1); }
.bc-bar .bc-clock { font-variant-numeric: tabular-nums; font-weight: 650; }
.go-live-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #e0245e; box-shadow: 0 0 0 3px rgba(224, 36, 94, .25); }
.go-live-btn { display: inline-flex; align-items: center; gap: 8px; }
.go-live-title { width: 100%; }
.article-title { font-size: 1.35em; font-weight: 700; line-height: 1.25; margin-bottom: 6px; white-space: normal; }
.article-h1, .article-h2, .article-h3 { font-weight: 650; line-height: 1.3; margin: 10px 0 2px; white-space: normal; }
.article-h1 { font-size: 1.2em; } .article-h2 { font-size: 1.1em; } .article-h3 { font-size: 1em; }
/* A poll (NIP-88): each option a row with its share of the vote as a bar
   behind the label. Only the bar's width changes as votes arrive, so the
   post never changes height under the reader. */
.poll { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.poll-opt {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 8px;
  width: 100%; min-height: 40px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface2); color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.poll-opt.static { cursor: inherit; min-height: 34px; padding: 6px 10px; }
.poll-opt:not(.static):hover { border-color: var(--line-strong); }
.poll-opt.mine { border-color: var(--accent); }
.poll-bar { position: absolute; inset: 0 auto 0 0; background: var(--line); transition: width .3s ease; pointer-events: none; }
.poll-opt.mine .poll-bar { background: var(--line-strong); }
.poll-label { position: relative; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.poll-opt.mine .poll-label { font-weight: 600; }
.poll-pct { position: relative; font-variant-numeric: tabular-nums; color: var(--muted); font-size: 14px; }
.poll-foot { margin-top: 2px; }
/* Posts that landed while you were reading further down. Floats over the
   feed near the top, out of the way of the thumb, and takes you up to them
   when tapped. Fixed, not sticky: the feed is the page scroller, and a
   sticky element inside the card would scroll away with the card. */
#app:has(> .app-bottom-nav) { padding-bottom: calc(82px + env(safe-area-inset-bottom, 0px)); }
.app-bottom-nav {
  /* Edge to edge like a system bar; the buttons stay over the page column. */
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 30; display: flex; justify-content: center; box-sizing: border-box;
  padding: 6px max(4px, calc((100% - 560px) / 2)) calc(6px + env(safe-area-inset-bottom, 0px));
  background: var(--paper); border-top: 1px solid var(--line);
  box-shadow: 0 -4px 18px rgba(0, 0, 0, .06);
}
.app-nav-button {
  display: flex; flex: 1; min-width: 0; flex-direction: column; align-items: center;
  justify-content: center; gap: 3px; min-height: 52px; padding: 4px;
  border: 0; border-radius: 12px; background: transparent; color: var(--muted); font-size: 11px;
  cursor: pointer; transition: color .15s ease, background-color .15s ease;
}
@media (hover: hover) { .app-nav-button:hover { color: var(--ink); } }
.app-nav-button > span:first-child { display: flex; position: relative; }
.app-nav-wide { display: none; }
.header-search { display: none; width: 240px; padding: 8px 14px; border-radius: 999px; font-size: 14px; }
.app-nav-button[aria-current="page"] { background: var(--accent-soft); color: var(--ink); font-weight: 600; }
.app-nav-button.unread > span:first-child::after {
  content: ''; position: absolute; top: -2px; right: -4px; width: 7px; height: 7px;
  border-radius: 50%; background: var(--green); border: 1px solid var(--paper);
}
.feed-post-fab {
  /* the "write a post" button floats over the feed's bottom right, above
     the nav, inside the page column */
  position: fixed; z-index: 25;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 82px);
  right: max(16px, calc((100% - 560px) / 2 + 16px));
  display: inline-flex; align-items: center; gap: 7px; width: auto;
  padding: 12px 18px; border-radius: 999px; font-weight: 600;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .22);
}
.feed-compose-icon { display: flex; flex-shrink: 0; }
.feed-compose-icon .compose-pen { stroke: #14935a; }
.feed-compose-icon .compose-pen-fill { fill: #14935a; opacity: .18; }
.feed-page .feed-new-pill {
  bottom: calc(env(safe-area-inset-bottom, 0px) + 82px);
}
/* a phone is too narrow for it beside the Post button: it rides above */
@media (max-width: 480px) {
  .feed-page .feed-new-pill { bottom: calc(env(safe-area-inset-bottom, 0px) + 142px); }
}
.feed-new-pill {
  /* Rides at the bottom of the window, where a thumb already is; the tap
     takes the reader up to the new posts. */
  position: fixed; bottom: calc(env(safe-area-inset-bottom, 0px) + 18px);
  left: 50%; transform: translateX(-50%);
  z-index: 30; width: auto; padding: 12px 24px; border-radius: 999px;
  background: var(--fill); color: var(--fill-fg); border: none;
  font-size: 16px; font-weight: 650; cursor: pointer;
  touch-action: none; user-select: none; -webkit-user-select: none; /* it swipes away */
  box-shadow: 0 3px 12px rgba(0, 0, 0, .28);
  animation: pill-in .18s ease-out;
}
/* the generic button hover (a light surface) and press (a 1px drop, which
   REPLACED the centring transform and threw the pill half its width to the
   right, out from under the pointer, so the tap never landed) stay off it */
.feed-new-pill:hover { background: var(--fill-hover); color: var(--fill-fg); }
.feed-new-pill:active { transform: translate(-50%, 1px); }
/* the count bumps each time it changes: a fresh node per value replays it */
.feed-new-pill .n { display: inline-block; min-width: 1.1em; text-align: center; animation: pill-bump .32s cubic-bezier(.2,.9,.3,1.4); }
@keyframes pill-bump {
  from { transform: scale(1.7); opacity: .4; }
  to { transform: scale(1); opacity: 1; }
}
@keyframes pill-in {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* What a draft will look like once it's out there. Framed and labelled, so
   it can hold real post content — pictures, players, quoted notes — without
   ever being mistaken for the post itself. */
.draft-preview {
  border: 1px dashed var(--line-strong); border-radius: 10px;
  padding: 10px 12px; background: var(--surface2);
  display: flex; flex-direction: column; gap: 6px;
}
.draft-preview-tag {
  font-size: 11px; font-weight: 650; letter-spacing: .04em;
  text-transform: uppercase; color: var(--faint);
}
.attach-btn.on { color: var(--accent-ink); border-color: var(--accent); }
.quote-card .note-text { font-size: 14px; }
.quote-name { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quote-card .note-img { max-height: 220px; max-width: min(100%, calc(220px * var(--ar, 100))); }
.quote-card .yt-embed { margin-top: 4px; }

/* A YouTube link, shown as the video it is: the still, a play button, and a
   corner link out. The player replaces all of it on the first tap — see
   youtubeEmbed for why it isn't there from the start. */
.yt-embed {
  position: relative; margin-top: 6px; border-radius: 10px; overflow: hidden;
  background: #000; aspect-ratio: 16 / 9; max-width: 100%;
}
.yt-embed img.yt-poster, .yt-embed iframe {
  display: block; width: 100%; height: 100%; border: 0;
  object-fit: cover; /* hqdefault is 4:3 with bars; cover trims them */
}
.yt-play {
  position: absolute; inset: 0; margin: 0; padding: 0; border: 0; border-radius: 0;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  background: rgba(0, 0, 0, .18); color: #fff;
}
.yt-play > span {
  width: 62px; height: 44px; border-radius: 11px; background: rgba(18, 18, 18, .78);
  display: flex; align-items: center; justify-content: center; padding-left: 3px;
  transition: background .12s;
}
.yt-play:hover { background: rgba(0, 0, 0, .28); }
.yt-play:hover > span { background: #e00; }
.yt-open {
  position: absolute; top: 6px; right: 8px; color: #fff; font-size: 15px; line-height: 1;
  padding: 4px 7px; border-radius: 8px; background: rgba(18, 18, 18, .6); text-decoration: none;
}
.yt-open:hover { background: rgba(18, 18, 18, .85); text-decoration: none; }
/* over a playing clip: a tap takes it full screen; YouTube's control bar
   along the bottom is left uncovered, and full screen it all is */
.yt-shield { position: absolute; left: 0; right: 0; top: 0; bottom: 52px; z-index: 1; cursor: pointer; }
.yt-embed:fullscreen { border-radius: 0; aspect-ratio: auto; width: 100%; height: 100%; }
.yt-embed:fullscreen .yt-shield { display: none; }
.yt-embed:fullscreen iframe { object-fit: contain; }
/* A link, as the card its page describes: picture on top, title, a line,
   the site. The whole card is the link. */
.link-card {
  display: block; margin-top: 6px; border: 1px solid var(--line); border-radius: 10px;
  overflow: hidden; color: inherit; text-decoration: none; background: var(--surface2);
}
.link-card:hover { text-decoration: none; border-color: var(--line-strong); }
.link-thumb { display: block; width: 100%; max-height: 220px; object-fit: cover; background: var(--surface2); }
.link-meta { padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.link-title, .link-desc {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere;
}
.link-title { font-weight: 600; line-height: 1.3; }
.link-site { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.quote-card .link-thumb { max-height: 140px; }
/* the profile notes feed: page-scrolled (no inner scrollbox); on phones it
   runs edge to edge — the card walls step outside #app's padding */
.notes-feed { padding: 2px 14px; }
/* rows scrolled well out of view are not in the DOM: a spacer stands in
   at their measured height, so the page keeps its length (see listWindow) */
.feed-spacer { display: block; flex: 0 0 auto; }
@media (max-width: 520px) {
  .notes-feed {
    margin-left: -16px; margin-right: -16px;
    border-left: none; border-right: none; border-radius: 0;
  }
}
/* Inside the chat page the posts ARE the page, not a card sitting in one:
   they step out through its padding to the container's own edge and drop the
   inner walls, leaving one continuous list with a hairline top and bottom. */
.chat-page .notes-feed {
  margin-left: -20px; margin-right: -20px;
  border-left: none; border-right: none; border-radius: 0;
  box-shadow: none;
}
/* A post that arrived while you were reading wears a tint until any of it
   comes on screen; then it fades to the plain page over three seconds. The
   side shadows carry the tint through the list's padding to its edges. */
.notes-feed > .row { transition: background-color 3s ease-out, box-shadow 3s ease-out; }
.notes-feed > .row.note-fresh {
  /* 9% was a whisper on white; dark mode keeps it (the green carries more there) */
  --fresh-bg: color-mix(in srgb, var(--green) 16%, var(--paper));
  background-color: var(--fresh-bg);
  box-shadow: -14px 0 0 var(--fresh-bg), 14px 0 0 var(--fresh-bg);
}


:root[data-theme="dark"] .notes-feed > .row.note-fresh { --fresh-bg: color-mix(in srgb, var(--green) 9%, var(--paper)); }

/* Inline move-money panel on the balance card. */
.balance-move { gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); text-align: left; }
/* balance carousel: the other face peeks at the card's edge and drags into
   place — native scroll-snap does the physics. Full-bleed inside the card
   so the peeking neighbor touches the card wall. */
/* A page-level strip of whole balance CARDS: full-bleed past the app column
   so the neighbor card peeks in from the screen edge. The negative margins +
   matching padding enlarge the clip box so card shadows aren't cropped. */
.bal-carousel {
  position: relative; /* offsetParent for the slides: offsetLeft math stays container-relative */
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin: -16px; padding: 16px; scrollbar-width: none; -ms-overflow-style: none;
  touch-action: pan-x pan-y;
}
.bal-carousel::-webkit-scrollbar { display: none; }
/* Isolate each card's layout + paint from the rest of the page: the history
   list building in below (and the balance number ticking) can't invalidate
   the carousel's layer, and the scroll stays on the compositor even while the
   main thread is busy with boot work. */
.bal-slide {
  flex: 0 0 calc(100% - 40px); scroll-snap-align: center; min-width: 0;
  /* layout containment (not paint — that would clip the card's own shadow):
     the history list building in below and the balance ticking can't force
     the slide to reflow, so the scroll stays on the compositor during boot */
  contain: layout;
}
.bal-carousel .card + .card { margin-top: 0; }
.bal-carousel { cursor: grab; } /* touch never shows a cursor — no media-query hedging */
.bal-carousel.grabbing, .bal-carousel.grabbing * { cursor: grabbing; user-select: none; }
.balance-move .seg { display: flex; width: 100%; }
.balance-move .seg button { flex: 1; }
.send-suggest { max-height: 260px; overflow-y: auto; }
.clickable { cursor: pointer; }
.profile-avatar { width: 64px; height: 64px; font-size: 18px; }
/* profile cover: full-bleed across the top of the profile card; the avatar
   row overlaps it so the face sits half on the cover, half on paper */
.profile-banner {
  height: 118px; margin: -20px -20px 0; background-size: cover; background-position: center;
  border-radius: var(--radius) var(--radius) 0 0;
}
/* The overlap must move the row's DIRECT child: when a hat is worn that's
   the .hat-wrap — pulling the avatar up inside the wrap left the hat
   behind, planted on the face. */
.profile-banner + .row > .profile-avatar,
.profile-banner + .row > .hat-wrap { margin-top: -26px; }
.profile-banner + .row .profile-avatar {
  border: 3px solid var(--paper); box-sizing: content-box;
}
.zap-chip { display: inline-flex; gap: 5px; align-items: center; cursor: pointer; background: var(--surface2); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px 1px 2px; min-width: 0; max-width: 100%; }
.zap-chip > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-avatar.mini { width: 18px; height: 18px; font-size: 8px; flex-shrink: 0; }
/* A feed row is the one place a face is the point, not a label on a line —
   Amethyst gives it 55dp; at our 30px it read as a bullet beside the post.
   The thumbnail we cache is sized to cover this (see THUMB_PX), so a bigger
   circle costs no extra network. */
.chat-avatar.note-avatar { width: 44px; height: 44px; font-size: 15px; }
.chat-avatar.fallback { position: relative; overflow: hidden; }
.chat-avatar.fallback .punk { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.header-avatar { padding: 0; border: none; background: none; cursor: pointer; display: flex; }
.chat-typing { display: flex; align-items: center; gap: 7px; padding: 2px 4px 6px; min-height: 20px; }
.typing-dots { display: inline-flex; gap: 3px; align-items: center; }
.typing-dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--muted); animation: typing-bounce 1.2s infinite ease-in-out; }
.typing-dots i:nth-child(2) { animation-delay: .15s; }
.typing-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes typing-bounce { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.chat-members { flex: 0 0 auto; max-height: min(260px, 40vh); overflow-y: auto; border-bottom: 1px solid var(--line); }
.ava-wrap { position: relative; display: inline-flex; flex-shrink: 0; }
.ava-wrap.online::after {
  content: ''; position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px;
  border-radius: 50%; background: #3fbf5f; box-shadow: 0 0 0 2px var(--paper);
}
.small.is-online { color: #3fbf5f; }
.online-count { color: #3fbf5f; }
.iconbtn.bell.on { color: var(--ink); }
.header-msgs { position: relative; padding: 4px; border: none; background: none; cursor: pointer; display: flex; color: var(--muted); }
.header-msgs:hover { color: var(--ink); }
.header-msgs .hm-ico { display: flex; transition: transform .15s ease; }
.header-msgs:hover .hm-ico { transform: scale(1.08); }
.header-msgs.unread { color: var(--ink); }
.header-msgs.unread::after {
  content: ''; position: absolute; top: 2px; right: 2px; width: 9px; height: 9px;
  border-radius: 50%; background: var(--red);
  /* No entrance animation: render() rebuilds the whole DOM, so a pop here
     replayed on every repaint and read as the dot flashing. It either says
     someone is waiting or it doesn't. */
  box-shadow: 0 0 0 2px var(--bg);
}
.chat-avatar.header-ava { width: 30px; height: 30px; font-size: 11px; }
.composer-options { margin-inline-start: auto; flex-shrink: 0; }
.compose-preview-toggle[aria-pressed="true"] { background: var(--accent-soft); color: var(--ink); }
/* the post composer: Preview and Cancel stand as tall as Post and the
   attach square beside them, in the same type */
.post-actions .composer-options > button { padding: 11px 16px; font-size: inherit; border-radius: 11px; min-height: 44px; }
.copy-ico { flex-shrink: 0; background: none; border: none; padding: 2px; color: var(--muted); cursor: pointer; display: flex; }
.copy-ico:hover { color: var(--ink); }
.settings-nav { text-align: left; font-weight: 600; padding: 14px 16px; position: relative; }
.settings-nav::after { content: '›'; position: absolute; right: 16px; color: var(--faint); font-weight: 400; }
.avatar-menu-wrap { position: relative; display: inline-flex; }
.menu-backdrop { position: fixed; inset: 0; z-index: 40; }
.avatar-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 41; min-width: 170px; }
.chat-avatar.fallback.loading { background: var(--surface2); }

/* hats: a supporter hat perched above any avatar. The wrapper takes the
   avatar's place in the layout; the hat overflows upward, clicks fall
   through it. */
.hat-wrap { position: relative; display: inline-flex; flex-shrink: 0; }
.ava-hat { position: absolute; left: 50%; z-index: 1; pointer-events: none; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .28)); }
.ava-hat svg { display: block; width: 100%; height: auto; }
.hat-row { display: flex; gap: 12px; align-items: center; padding: 9px 2px; }
.hat-row + .hat-row { border-top: 1px solid var(--line); }
.hat-demo { position: relative; display: inline-flex; width: 34px; height: 34px; flex-shrink: 0; margin-top: 12px; }
.hat-demo-head { width: 100%; height: 100%; border-radius: 50%; background: var(--accent-soft); }
.hat-btn { white-space: nowrap; flex-shrink: 0; }
.hat-btn.wearing { background: var(--fill); border-color: var(--fill); color: var(--fill-fg); }
.hat-btn.confirm { border-color: var(--green); color: var(--green); }

/* a small centered confirm popup over a dimmed page */
.confirm-pop-backdrop {
  position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .45);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.confirm-pop { width: 100%; max-width: 340px; }

/* staging builds: an unmissable stamp across the header logo */
.brand.staging, .brand.beta { position: relative; }
.staging-badge, .beta-badge {
  position: absolute; left: 2px; bottom: -3px; z-index: 2; pointer-events: none;
  background: #f7931a; color: #fff; font-size: 9px; font-weight: 750;
  letter-spacing: .06em; text-transform: uppercase; line-height: 1;
  padding: 2px 6px; border-radius: 5px; transform: rotate(-6deg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}
.staging-badge { background: #6d28d9; }
.wallet-row-btn { font-size: 19px; line-height: 1; padding: 8px 12px; }
.chat-avatar.header-ava.fallback { align-items: center; justify-content: center; display: flex; color: var(--muted); }

/* ============================ motion & polish ============================ */
/* Navigation animates (the renderer adds .anim-page only when the visible
   page changed); background repaints re-create the DOM silently. */
@keyframes rise-in { from { opacity: 0; transform: translateY(10px); } }
.anim-page { animation: rise-in .32s cubic-bezier(.16, .84, .3, 1) both; }

@keyframes menu-pop { from { opacity: 0; transform: translateY(-6px) scale(.95); } }
.anim-menu { animation: menu-pop .2s cubic-bezier(.2, .9, .3, 1.35) both; transform-origin: top right; }

@keyframes unfold-in { from { opacity: 0; transform: translateY(-10px); } }
.anim-unfold { animation: unfold-in .28s cubic-bezier(.16, .84, .3, 1) both; }

@keyframes flash-green { 0% { color: var(--green); } 100% { color: inherit; } }
.amt-flash { animation: flash-green 1.2s ease-out; }

/* the success check pops and rings, once, when its page arrives */
@keyframes check-pop { 0% { transform: scale(.3); opacity: 0; } 60% { transform: scale(1.12); } 100% { transform: scale(1); opacity: 1; } }
@keyframes check-ring { from { box-shadow: 0 0 0 0 color-mix(in srgb, var(--green) 45%, transparent); } to { box-shadow: 0 0 0 30px transparent; } }
.anim-page .check-badge { animation: check-pop .55s cubic-bezier(.34, 1.56, .64, 1) both, check-ring 1.1s ease-out .25s both; }

/* Auto-pay card: the badge is a spinner ring while paying, then flips to the
   green success check with a pop — one node, so the transition is smooth and
   nothing around it shifts. */
.autopay-badge { position: relative; transition: background .3s ease, color .3s ease; }
.autopay-card:not(.paid) .autopay-badge { background: var(--accent-soft); color: transparent; animation: none; }
.autopay-card:not(.paid) .autopay-badge::after {
  content: ''; position: absolute; inset: -7px; border-radius: 50%;
  border: 2px solid var(--line-strong); border-top-color: var(--accent);
  animation: spin .7s linear infinite;
}
.autopay-card.paid .autopay-badge { animation: check-pop .5s cubic-bezier(.34, 1.56, .64, 1) both, check-ring 1.1s ease-out .2s both; }
.autopay-foot { min-height: 1.15em; }
@media (prefers-reduced-motion: reduce) {
  .autopay-card:not(.paid) .autopay-badge::after { animation: none; }
  .autopay-card.paid .autopay-badge { animation: none; }
}

/* micro-interactions */
button, .btn { transition: filter .12s, background .15s, border-color .15s, box-shadow .15s, transform .1s; }
.btn-primary:hover { filter: brightness(1.15); }
.tabs button, .seg button { transition: background .18s, color .18s, box-shadow .18s; }
.item { transition: background .15s; border-radius: 10px; }
.item:hover { background: var(--surface2); }
.clickable { transition: transform .15s ease; }
.chat-avatar.clickable:hover { transform: scale(1.07); }
.header-avatar .chat-avatar { transition: transform .15s ease; }
.header-avatar:hover .chat-avatar { transform: scale(1.08); }
input[type=text], input[type=search], input[type=password], input[type=number], textarea, select { transition: border-color .15s, box-shadow .15s; }
.settings-nav::after { transition: transform .18s ease, color .18s; }
.settings-nav:hover::after { transform: translateX(3px); color: var(--ink); }

/* atmosphere: a faint warm wash pooling at the top, plus film grain */
body {
  background-image: radial-gradient(900px 420px at 50% -160px, var(--wash), transparent 70%);
  background-attachment: fixed;
  /* our swipe-nav owns horizontal gestures; keep the browser's edge-back out */
  overscroll-behavior-x: none;
}
body::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 2147483647;
  opacity: .028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (prefers-reduced-motion: reduce) {
  .anim-page, .anim-menu, .anim-unfold, .anim-tab-left, .anim-tab-right, .amt-flash, .check-badge { animation: none !important; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
/* tab carousel: only the content pane moves, with a soft cross-fade */
@keyframes tab-in-left { from { opacity: .2; transform: translateX(26px); } }
@keyframes tab-in-right { from { opacity: .2; transform: translateX(-26px); } }
/* will-change promotes the sliding pane to its own compositor layer BEFORE
   the animation's first frame — without it, a slow re-render mid-slide let
   Chrome expose unpainted tiles (gray strips) at the viewport edges */
.anim-tab-left { animation: tab-in-left .26s cubic-bezier(.25, .8, .35, 1) both; will-change: transform, opacity; }
.anim-tab-right { animation: tab-in-right .26s cubic-bezier(.25, .8, .35, 1) both; will-change: transform, opacity; }

/* ---- onboarding wizard + tour ---- */
/* width:100%, not just max-width: with auto margins the flex item doesn't
   stretch, and the punks strip's intrinsic width (12 avatars, ~780px — a
   scroll container still reports its full content width) would size the
   column to the 420px cap even on narrower phones, overflowing the page. */
.onb { width: 100%; max-width: 420px; margin: 8vh auto 0; padding: 0 8px; }
.onb-title { margin: 0; font-size: 26px; letter-spacing: -0.02em; }
/* The line between making your own keys and signing in with someone else's
   account. Without it the four buttons read as four equal choices. */
.onb-or {
  display: flex; align-items: center; gap: 12px; margin: 4px 0 -4px;
  color: var(--faint); font-size: 13px;
}
.onb-or::before, .onb-or::after {
  content: ''; flex: 1; height: 1px; background: var(--line);
}
.onb-hero { margin-bottom: 8px; }
.onb-punks { display: flex; gap: 10px; overflow-x: auto; padding: 6px 2px; }
.onb-punk { width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0; cursor: pointer; border: 3px solid transparent; transition: transform .15s, border-color .15s; }
.onb-punk:hover { transform: scale(1.08); }
.onb-punk.sel { border-color: var(--accent); transform: scale(1.08); }
.onb-avatar { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; align-self: center; box-shadow: var(--shadow); transition: opacity .15s; }
/* the cover sits behind the avatar, which overlaps its bottom edge — the
   profile page's own layout, so what they pick is what they'll see */
.onb-look { display: flex; flex-direction: column; align-items: center; }
.onb-look .onb-avatar { width: 120px; height: 120px; margin-top: -60px; border: 4px solid var(--bg); position: relative; }
.onb-cover { position: relative; width: 100%; aspect-ratio: 3 / 1; border-radius: 14px; background: var(--surface2) center / cover no-repeat; touch-action: pan-y; user-select: none; transition: background-image .2s, opacity .15s; }
.onb-cover-nav { position: absolute; bottom: 8px; width: 34px; height: 34px; border-radius: 50%; border: none; padding: 0; background: rgba(0,0,0,.45); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.onb-cover-nav:hover { background: rgba(0,0,0,.65); }
.onb-cover-nav.prev { left: 8px; }
.onb-cover-nav.next { right: 8px; }
.onb-cover-count { position: absolute; left: 10px; top: 8px; font-size: 11px; color: #fff; background: rgba(0,0,0,.45); padding: 2px 8px; border-radius: 10px; }
.onb-cover-upload { position: absolute; right: 8px; top: 8px; width: 32px; height: 32px; border-radius: 50%; border: none; padding: 0; background: rgba(0,0,0,.45); color: #fff; font-size: 15px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.onb-cover-upload:hover { background: rgba(0,0,0,.65); }
.onb-confetti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
.onb-confetti i { position: absolute; top: -12px; width: 9px; height: 14px; opacity: .9; animation: confetti-fall 2.8s ease-in forwards; }
.onb-confetti i:nth-child(4n) { background: #f7931a; }
.onb-confetti i:nth-child(4n+1) { background: #ffd166; }
.onb-confetti i:nth-child(4n+2) { background: var(--green); }
.onb-confetti i:nth-child(4n+3) { background: #b84fe8; }
.onb-confetti i:nth-child(1) { left: 6%; animation-delay: 0s; } .onb-confetti i:nth-child(2) { left: 12%; animation-delay: .3s; }
.onb-confetti i:nth-child(3) { left: 19%; animation-delay: .1s; } .onb-confetti i:nth-child(4) { left: 26%; animation-delay: .5s; }
.onb-confetti i:nth-child(5) { left: 33%; animation-delay: .2s; } .onb-confetti i:nth-child(6) { left: 40%; animation-delay: .65s; }
.onb-confetti i:nth-child(7) { left: 47%; animation-delay: .05s; } .onb-confetti i:nth-child(8) { left: 54%; animation-delay: .4s; }
.onb-confetti i:nth-child(9) { left: 61%; animation-delay: .15s; } .onb-confetti i:nth-child(10) { left: 68%; animation-delay: .55s; }
.onb-confetti i:nth-child(11) { left: 75%; animation-delay: .25s; } .onb-confetti i:nth-child(12) { left: 82%; animation-delay: .7s; }
.onb-confetti i:nth-child(13) { left: 89%; animation-delay: .35s; } .onb-confetti i:nth-child(14) { left: 95%; animation-delay: .6s; }
.onb-confetti i:nth-child(15) { left: 15%; animation-delay: .8s; } .onb-confetti i:nth-child(16) { left: 45%; animation-delay: .9s; }
.onb-confetti i:nth-child(17) { left: 70%; animation-delay: 1s; } .onb-confetti i:nth-child(18) { left: 30%; animation-delay: 1.1s; }
@keyframes confetti-fall { 0% { transform: translateY(-10px) rotate(0); } 100% { transform: translateY(105vh) rotate(560deg); } }
@media (prefers-reduced-motion: reduce) { .onb-confetti i { animation: none; display: none; } }
.onb-check { width: 96px; height: 96px; font-size: 52px; align-self: center; margin: 6px 0; }
/* the nostr mark heading the sign-in steps: big, centered, gently afloat */
.onb-mark { align-self: center; margin-bottom: -4px; animation: mark-float 4.5s ease-in-out infinite; }
.onb-mark svg { width: 72px; height: 72px; filter: drop-shadow(0 8px 22px rgba(184, 79, 232, .35)); }
@keyframes mark-float { 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .onb-mark { animation: none; } }
.onb-addr { color: var(--muted); font-family: var(--mono); font-size: 13px; }
/* balance card: one account at a time, dots to flip */
.balance-face { min-height: 78px; }
/* amount input with an inline Max affordance */
.amt-field { position: relative; display: flex; flex: 1; min-width: 0; }
.amt-field input { width: 100%; padding-right: 52px; }
.amt-max {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  padding: 4px 8px; font-size: 12px; font-weight: 600; line-height: 1;
  border: 0; border-radius: 7px; background: var(--accent-soft); color: var(--muted); cursor: pointer;
}
.amt-max:hover { background: var(--surface2); color: var(--ink); }
/* The selected person leads the payment form, with their name below. */
.send-person {
  display: flex; flex-direction: column; align-items: center; align-self: center;
  max-width: 100%; gap: 12px; padding: 12px; border: 0; border-radius: 0;
  background: transparent; text-align: center; font-size: 18px; font-weight: 650;
  overflow-wrap: anywhere;
}
.send-person:hover { background: transparent; }
.chat-avatar.send-avatar { width: 96px; height: 96px; font-size: 28px; }
/* the clickable way to change account (swiping only helps on touch) */
.balance-switch {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
  padding: 6px 12px; font-size: 13px; font-weight: 600;
  color: var(--muted); background: var(--surface2);
  border: 1px solid var(--line); border-radius: 999px; cursor: pointer;
}
.balance-switch:hover { color: var(--ink); border-color: var(--line-strong); }
.balance-switch svg { opacity: .75; }
/* the face's settings: a round icon button, no label */
.balance-gear { width: 34px; height: 34px; padding: 0; justify-content: center; background: none; border: 0; }
.balance-gear:hover { background: none; color: var(--ink); }
/* Move-money row: the action labels are long ("Move to Spending"), so let the
   row wrap to two full-width lines rather than crushing the amount field. */
.balance-move .input-group { flex-wrap: wrap; }
.balance-move .amt-field { flex: 1 1 150px; }
.balance-move .input-group > button { flex: 1 1 150px; }
.chat-signer-off { padding: 6px 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface2); }
.chan-pick { width: auto; min-width: 0; padding: 6px 32px 6px 10px; font-size: 13px; font-weight: 600; border-radius: 9px; background-position: right 10px center; }
.or-split { display: flex; align-items: center; gap: 10px; color: var(--faint); font-size: 13px; }
.or-split::before, .or-split::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.paste-wrap { position: relative; display: block; }
.paste-wrap textarea { display: block; }
.paste-in {
  position: absolute; right: 10px; bottom: 12px; display: flex; align-items: center; gap: 6px;
  padding: 5px 9px; font-size: 12px; font-weight: 600; border-radius: 8px;
  color: var(--muted); background: var(--paper); border: 1px solid var(--line-strong);
}
.paste-in:hover { color: var(--ink); }
.paste-wrap.has-text .paste-in { display: none; }

/* Short screens (a small phone with its address bar showing) — buy back the
   vertical room the footer needs by tightening the frame, not the content. */
@media (max-height: 620px) {
  #app { padding-top: 12px; padding-bottom: 12px; }
  .card:not(.chat-card) { padding: 16px; }
  .profile-banner { margin: -16px -16px 0; }
  .footer { padding-top: 14px; padding-bottom: 0; }
  .tabs { margin: 10px 0; }
}

/* an encrypted picture on its way: a box the picture's shape, then the picture */
.chat-attach-ph { display: block; width: 240px; max-width: 100%; max-height: 320px; margin-top: 6px; border-radius: 10px; background: var(--line); }
.chat-attach { display: inline-block; margin-top: 6px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: top; }
.chat-clip { width: var(--chat-control-size); }
.msg-sheet-emojis button.more { flex: 0 0 40px; font-size: 20px; color: var(--muted); }
.emoji-grid { display: flex; flex-wrap: wrap; gap: 2px; max-height: 260px; overflow-y: auto; }
.emoji-grid button { width: 40px; height: 40px; font-size: 22px; line-height: 1; border: 1px solid transparent; border-radius: 8px; background: none; padding: 0; }
.emoji-grid button.on { border-color: var(--accent); }
.hub-list { max-height: 360px; overflow-y: auto; }
.hub-icon { object-fit: cover; }

/* custom emoji (NIP-30): an inline picture the height of a capital, sat on
   the baseline like the character it stands for */
.cemoji { display: inline-block; height: 1.4em; width: auto; max-width: 3em; vertical-align: -0.35em; object-fit: contain; }
/* a bubble that is nothing but one to three of them shows them big */
.chat-bubble.jumbo .cemoji { height: 2.8em; max-width: 5em; vertical-align: middle; }
.chat-react .cemoji { height: 1.25em; vertical-align: -0.3em; }
.emoji-grid .cemoji { height: 28px; max-width: 36px; vertical-align: middle; }
.msg-sheet-emojis .cemoji { height: 22px; vertical-align: middle; }
/* the :shortcode: strip above the composer */
.emoji-ac { display: flex; flex-wrap: wrap; gap: 4px; }
.emoji-ac:empty { display: none; }
.emoji-ac button {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; font-size: 18px; line-height: 1;
  border: 1px solid var(--line); border-radius: 10px; background: var(--paper);
}
.emoji-ac button .small { font-size: 12px; color: var(--muted); }
.emoji-ac .cemoji { height: 22px; vertical-align: middle; }
/* the packs behind the picker, and the add box */
.emoji-packs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.emoji-pack { display: inline-flex; align-items: center; gap: 2px; }
.emoji-pack .linklike { padding: 0 2px; font-size: 14px; color: var(--muted); }
/* a pack share link (Vector's or ours) as a chip: one tap adds the pack */
.pack-link {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; font-size: 14px; line-height: 1.3;
  border: 1px solid var(--line-strong); border-radius: 10px; background: var(--paper); color: inherit; cursor: pointer;
}
.pack-link:disabled { opacity: 0.7; cursor: default; }
.chat-bubble.me .pack-link { background: transparent; border-color: color-mix(in srgb, currentColor 45%, transparent); }
/* a custom emoji whose picture won't load falls back to its :code: alt text;
   in the 40px grid cell that text must not spill into the next cell */
.emoji-grid button { overflow: hidden; }
.emoji-grid .cemoji { font-size: 8px; }
/* quoted replies and the composer's reply bar run small; their emoji follow */
.chat-quote-text .cemoji { height: 1.25em; vertical-align: -0.3em; }

/* "116 Following · 572 Followers" on a profile; each opens its list below */
.social-line { gap: 6px 16px; align-items: center; flex-wrap: wrap; }
.social-count {
  width: auto; margin: 0; padding: 2px 0; border: 0; background: none; color: var(--muted);
  font-size: 14px; cursor: pointer; border-bottom: 2px solid transparent; border-radius: 0;
}
.social-count b { color: var(--ink); font-weight: 650; }
.social-count .social-n { transition: opacity .25s; }
.social-count .social-n.pending { opacity: 0; }
.social-count:hover { background: none; color: var(--ink); }
.social-count.on { color: var(--ink); border-bottom-color: var(--accent); }

/* ---- feed media views: All / Images / Videos, the grid, the pager ---- */
/* The view strip scrolls sideways like the feed chips above it: five
   chips no longer fit a phone (Conversations joined them), and a flex row
   that neither wraps nor scrolls made the page 42px wider than the screen
   — on an iPhone that is a page you can pinch out of and pan, a blank
   strip down the right (Adam, 2026-10-16). */
.media-modes { gap: 6px; flex-wrap: nowrap; overflow-x: auto; margin: 0 -14px; padding: 2px 14px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.media-modes::-webkit-scrollbar { display: none; }
.media-modes .feed-chip { padding: 4px 12px; font-size: 13px; }
.article-list { gap: 10px; }
.article-list > .quote-card { margin-top: 0; }
.media-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; border-radius: 12px; overflow: hidden; }
.media-tile {
  position: relative; display: block; aspect-ratio: 1; padding: 0; margin: 0; border: 0; border-radius: 0;
  background: var(--surface2); overflow: hidden; cursor: pointer;
}
.media-tile.video { aspect-ratio: 9 / 16; }
/* only wide clips in it: one to a row, the poster whole */
.media-grid.wide { grid-template-columns: 1fr; gap: 6px; }
.media-grid.wide .media-tile.video { aspect-ratio: 16 / 9; }
/* every shape in it: justified rows. A tile starts at its proportions at
   the row height and grows in proportion to them, so a row's tiles share one
   height and fill the width; the filler takes the last row's slack instead
   of stretching its few tiles. */
.media-grid.justified { display: flex; flex-wrap: wrap; --row-h: 140px; }
.media-grid.justified .media-tile { aspect-ratio: var(--ar); flex: var(--ar) 1 calc(var(--ar) * var(--row-h)); min-width: 0; }
.media-grid.justified::after { content: ''; flex: 1000 1 0; }
/* the picture fills the tile without sizing it: a frame-grab <video>'s own
   320px would widen its tile, and the row's height with it */
.media-grid.justified .media-tile > img, .media-grid.justified .media-tile > video { position: absolute; inset: 0; }
@media (max-width: 600px) { .media-grid.justified { --row-h: 100px; } }
.media-tile img, .media-tile video { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.media-tile.broken { display: none; }
.media-tile-play {
  position: absolute; right: 6px; bottom: 6px; color: #fff; font-size: 13px; line-height: 1;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .7); pointer-events: none;
}
.media-pager {
  position: fixed; inset: 0; z-index: 200; background: #000; color: #fff;
  animation: lightbox-in .12s ease-out;
}
.mp-scroll {
  position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain;
  scroll-snap-type: y mandatory; scrollbar-width: none;
  /* slides go in above the loading one at the end: no anchoring to hold it in view */
  overflow-anchor: none;
}
.mp-scroll::-webkit-scrollbar { display: none; }
/* a post: a screen tall, its pictures or clips in a row side by side */
.mp-group {
  position: relative; height: 100vh; height: 100dvh; width: 100%;
  scroll-snap-align: start; scroll-snap-stop: always;
}
.mp-row {
  display: flex; height: 100%; width: 100%; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
}
.mp-row::-webkit-scrollbar { display: none; }
.mp-slide {
  position: relative; flex: 0 0 100%; height: 100%; width: 100%;
  scroll-snap-align: start; scroll-snap-stop: always;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
/* how many in this post, and which: dots along the top */
.mp-dots {
  position: absolute; left: 50%; transform: translateX(-50%); top: calc(max(10px, env(safe-area-inset-top)) + 16px);
  display: flex; gap: 6px; z-index: 2; pointer-events: none;
}
.mp-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .38); box-shadow: 0 0 3px rgba(0, 0, 0, .5); transition: background .15s, transform .15s; }
.mp-dots i.on { background: #fff; transform: scale(1.15); }
.mp-media { max-width: 100%; max-height: 100%; width: 100%; height: 100%; object-fit: contain; display: block; user-select: none; -webkit-user-select: none; }
/* a picture pinches to zoom (attachZoom); one finger at 1× is the pager's swipe.
   Only the slide at rest gets its own layer for that: one on every picture
   kept a full-size texture per slide, and a flight past them stuttered. */
.mp-slide img.mp-media { touch-action: pan-x pan-y; transform-origin: center center; }
.mp-slide.mp-cur img.mp-media { will-change: transform; }
.mp-slide.mp-gone img.mp-media { display: none; }
.mp-missing { display: flex; flex-direction: column; align-items: center; gap: 6px; color: rgba(255, 255, 255, .55); font-size: 15px; text-align: center; padding: 20px; }
.mp-missing-ico { font-size: 44px; opacity: .5; }
/* nothing but the picture until a tap */
.mp-meta, .mp-top { opacity: 0; pointer-events: none; transition: opacity .18s; }
.media-pager.show .mp-meta, .media-pager.show .mp-top { opacity: 1; pointer-events: auto; }
.mp-meta {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: flex-end; gap: 12px;
  padding: 48px 14px max(16px, env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(0, 0, 0, .72), rgba(0, 0, 0, 0));
}
.mp-left { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.mp-author {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; max-width: 100%;
  padding: 0; margin: 0; border: 0; background: none; color: #fff; font-weight: 600; font-size: 15px; cursor: pointer;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .6);
}
.mp-author span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-caption {
  font-size: 14px; line-height: 1.35; color: rgba(255, 255, 255, .92); text-shadow: 0 1px 3px rgba(0, 0, 0, .6);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; overflow-wrap: anywhere;
}
.mp-caption.open { -webkit-line-clamp: unset; max-height: 40vh; overflow-y: auto; }
.mp-caption a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(255, 255, 255, .5); }
.mp-counts { display: flex; flex-direction: column; align-items: center; gap: 14px; flex: 0 0 auto; }
.mp-counts button {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 0; margin: 0; border: 0;
  background: none; color: #fff; font-size: 13px; cursor: pointer; text-shadow: 0 1px 3px rgba(0, 0, 0, .6);
}
.mp-counts .i { font-size: 24px; line-height: 1; display: flex; }
.mp-counts .i svg { width: 28px; height: 28px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .6)); }
/* yours: the heart goes red; the count stays white (a 🤣 of yours left only the number red) */
.mp-like.on .i { color: #ff4d6d; }
.mp-like .i .cemoji { width: 28px; height: 28px; }
/* the emoji sheet over the media pager (z-index 200) */
.confirm-pop-backdrop.over-pager { z-index: 300; }
.mp-zap.on .i { color: #f7b500; }
.mp-top {
  position: absolute; top: max(10px, env(safe-area-inset-top)); left: 10px; right: 10px;
  display: flex; justify-content: space-between; align-items: center;
}
.mp-x, .mp-sound {
  height: 40px; min-width: 40px; padding: 0 12px; font-size: 22px; line-height: 1; border-radius: 999px; border: 0;
  color: #fff; background: rgba(255, 255, 255, .16);
}
.mp-sound { font-size: 15px; }
.mp-sound .off { display: none; }
.mp-top-r { display: flex; align-items: center; gap: 8px; }
.mp-fit { height: 40px; padding: 0 14px; font-size: 14px; font-weight: 600; border-radius: 999px; border: 0; color: #fff; background: rgba(255, 255, 255, .16); }
.media-pager.quiet .mp-top .mp-fit { pointer-events: auto; }
/* a post out of the carousel: its clip not ready to play yet (mp-wait), or
   the wrong way round for the screen (mp-off). Parked far above the screen
   (fixed: out of the scroller's flow and its snap points, no height to
   count) rather than display:none, so its box isn't a zero rect at the
   origin that a "what's at the top left" lookup takes for the slide on
   screen; its clip's poster still loads there. */
.mp-group.mp-wait, .mp-group.mp-off { position: fixed; top: -400vh; left: 0; height: 0; visibility: hidden; pointer-events: none; }
/* over the Videos grid: which shapes */
/* A mouse's way through the pager: arrows, where there is a pointer to
   hover with (a phone swipes). Faint until the pointer is over the pager;
   the sideways pair only when the post has a picture that way. */
.mp-arrows { display: none; }
@media (hover: hover) and (pointer: fine) {
  .mp-arrows { display: contents; }
  .mp-arrow {
    position: absolute; z-index: 3; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    color: #fff; background: rgba(255, 255, 255, .14); opacity: .4; transition: opacity .15s, background .15s;
  }
  .mp-arrow svg { width: 26px; height: 26px; }
  .media-pager:hover .mp-arrow { opacity: .8; }
  .mp-arrow:hover { opacity: 1; background: rgba(255, 255, 255, .28); }
  .mp-up { right: 14px; top: calc(50% - 50px); }
  .mp-down { right: 14px; top: calc(50% + 6px); }
  .mp-ar-left { left: 14px; top: calc(50% - 22px); }
  .mp-ar-right { right: 72px; top: calc(50% - 22px); }
  .media-pager:not(.has-left) .mp-ar-left, .media-pager:not(.has-right) .mp-ar-right { display: none; }
}
.media-pager.quiet .mp-sound .on { display: none; }
.media-pager.quiet .mp-sound .off { display: inline; }
/* muted against our will: the button stays up so the way to sound is plain */
.media-pager.quiet .mp-top { opacity: 1; }
.media-pager.quiet .mp-top .mp-x { opacity: 0; pointer-events: none; }
.media-pager.quiet .mp-top .mp-sound { pointer-events: auto; }
.media-pager.quiet.show .mp-top .mp-x { opacity: 1; pointer-events: auto; }
/* the end of the pager, while more is fetched: a ring sweeping round, three
   sparks orbiting the other way, the play mark breathing in the middle, the
   words with a sheen running through them. Caught up, it all goes still. */
.mp-tail {
  position: relative; height: 100vh; height: 100dvh; width: 100%; box-sizing: border-box;
  scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 26px; text-align: center; padding: 0 32px;
  background: radial-gradient(circle at 50% 46%, rgba(247, 147, 26, .16), rgba(124, 92, 255, .06) 38%, transparent 62%);
}
.mp-loader { position: relative; width: 116px; height: 116px; display: block; }
.mp-loader::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 50%, rgba(247, 147, 26, .2) 58%, #f7931a 76%, #ff4d6d 88%, #a78bfa 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
  animation: mp-spin 1.15s linear infinite;
}
.mp-orbit { position: absolute; inset: -14px; display: block; animation: mp-spin 3.2s linear infinite reverse; }
.mp-orbit i {
  position: absolute; top: 50%; left: 50%; width: 8px; height: 8px; margin: -4px; border-radius: 50%;
  animation: mp-spark 1.6s ease-in-out infinite;
}
.mp-orbit i:nth-child(1) { transform: rotate(0deg) translateX(72px); background: #f7931a; box-shadow: 0 0 12px 2px rgba(247, 147, 26, .8); }
.mp-orbit i:nth-child(2) { transform: rotate(120deg) translateX(72px); background: #ff4d6d; box-shadow: 0 0 12px 2px rgba(255, 77, 109, .8); animation-delay: -.53s; }
.mp-orbit i:nth-child(3) { transform: rotate(240deg) translateX(72px); background: #a78bfa; box-shadow: 0 0 12px 2px rgba(167, 139, 250, .8); animation-delay: -1.06s; }
.mp-core {
  position: absolute; inset: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #fff; background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .22), rgba(255, 255, 255, .06));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
  animation: mp-breathe 1.5s ease-in-out infinite;
}
.mp-core svg { margin-left: 3px; }
.mp-tail-text {
  font-size: 16px; font-weight: 500; letter-spacing: .01em; color: rgba(255, 255, 255, .7);
  background: linear-gradient(100deg, rgba(255, 255, 255, .55) 30%, #fff 50%, rgba(255, 255, 255, .55) 70%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: mp-sheen 2s linear infinite;
}
@keyframes mp-spin { to { transform: rotate(360deg); } }
@keyframes mp-breathe { 0%, 100% { transform: scale(.9); opacity: .7; } 50% { transform: scale(1); opacity: 1; } }
@keyframes mp-spark { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes mp-sheen { from { background-position: 125% 0; } to { background-position: -125% 0; } }
.mp-tail.done { background: none; }
.mp-tail.done .mp-loader::before, .mp-tail.done .mp-orbit, .mp-tail.done .mp-orbit i, .mp-tail.done .mp-core, .mp-tail.done .mp-tail-text { animation: none; }
.mp-tail.done .mp-loader { opacity: .3; }
.mp-tail.done .mp-tail-text { background: none; -webkit-text-fill-color: currentColor; color: rgba(255, 255, 255, .8); }
@media (prefers-reduced-motion: reduce) {
  .mp-loader::before, .mp-orbit, .mp-orbit i, .mp-core, .mp-tail-text { animation: none; }
  .mp-tail-text { background: none; -webkit-text-fill-color: currentColor; }
}

/* a clip's seek bar: a thin line along the bottom, thicker with the details
   up or under a finger; the strip above it is the finger's (no swipe there).
   Lifted clear of the phone's own gesture strip along the bottom edge (which
   a page isn't told about: no safe-area inset for it) and in from the side
   edges, where a drag would be the system's back gesture. */
.media-pager { --mp-seek-lift: calc(env(safe-area-inset-bottom, 0px) + 32px); }
.mp-seek {
  position: absolute; left: 16px; right: 16px; bottom: var(--mp-seek-lift); z-index: 3; height: 28px;
  display: flex; align-items: flex-end; touch-action: none; cursor: pointer; visibility: hidden; opacity: 0;
}
/* out of sight (and out of reach: a tap there must not jump the clip) while
   it plays; up when paused (.show), after a tap near the foot (.reveal), or held */
.mp-seek.ready { visibility: visible; opacity: 0; pointer-events: none; transition: opacity .18s; }
.media-pager.show .mp-seek.ready, .mp-seek.ready.reveal, .mp-seek.ready.drag { opacity: 1; pointer-events: auto; }
/* only the clip on screen's bar, and not while the pager is in motion (a
   finger, a glide, a flight): it goes at once and fades back in on landing */
.mp-slide:not(.mp-cur) .mp-seek, .media-pager.moving .mp-seek { opacity: 0; transition: none; pointer-events: none; }
.mp-seek-track { position: relative; width: 100%; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .28); transition: height .15s; }
.mp-seek-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: inherit; background: #fff; }
.mp-seek-fill::after {
  content: ''; position: absolute; right: -7px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  border-radius: 50%; background: #fff; opacity: 0; transition: opacity .15s;
}
.media-pager.show .mp-seek-track, .mp-seek.drag .mp-seek-track { height: 5px; }
.media-pager.show .mp-seek-fill::after, .mp-seek.drag .mp-seek-fill::after { opacity: 1; }
.mp-seek-time {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); padding: 3px 8px; border-radius: 6px;
  font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; background: rgba(0, 0, 0, .55);
  opacity: 0; pointer-events: none; transition: opacity .12s;
}
.mp-seek.drag .mp-seek-time { opacity: 1; }
/* the details sit clear of the seek bar */
.media-pager.videos .mp-meta { padding-bottom: calc(var(--mp-seek-lift) + 36px); }
/* A wide window: the caption ran the whole width of the screen and the
   counts sat in the far corner (Adam, 1920px across). The words, the
   counts and the seek bar keep to a column under the middle of the screen;
   the gradient behind them still spans it. */
@media (min-width: 900px) {
  .media-pager { --mp-col: 760px; }
  .mp-meta { padding-left: max(14px, calc(50% - var(--mp-col) / 2)); padding-right: max(14px, calc(50% - var(--mp-col) / 2)); }
  .mp-seek { left: max(16px, calc(50% - var(--mp-col) / 2)); right: max(16px, calc(50% - var(--mp-col) / 2)); }
  .mp-caption { font-size: 15px; }
}

/* a clip that waits for a tap: what it costs, over its (blank or still) box */
.vid-heavy {
  position: absolute; inset: 0; z-index: 2; margin: 0; padding: 0; border: 0; border-radius: inherit;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: rgba(0, 0, 0, .45); color: #fff; font-size: 14px; font-weight: 600; cursor: pointer;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .6);
}
.vid-heavy-play {
  width: 56px; height: 56px; border-radius: 50%; background: rgba(255, 255, 255, .2);
  display: flex; align-items: center; justify-content: center; font-size: 22px; padding-left: 4px;
}
/* not the app's button hover (an opaque surface that hid the picture) */
.vid-heavy:hover { background: rgba(0, 0, 0, .3); }
.vid-heavy:hover .vid-heavy-play { background: rgba(255, 255, 255, .3); }
.note-video-box .vid-heavy { min-height: 120px; }
/* before it plays: the picture fills the box, no seek bar or sound button */
.note-video-box.idle .note-video { object-fit: cover !important; }
.note-video-box.idle .vid-sound { display: none; }
/* a clip whose picture this browser can't decode, even as the server's copy:
   its sound plays, this says why the box is black */
.vid-nopic {
  position: absolute; left: 0; right: 0; top: 40%; z-index: 2; padding: 0 16px;
  display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none;
  color: #fff; font-size: 14px; text-align: center; text-shadow: 0 1px 3px rgba(0, 0, 0, .6);
}
.vid-nopic a { color: #fff; text-decoration: underline; pointer-events: auto; }
.media-tile-cost {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: rgba(255, 255, 255, .8); font-size: 12px; font-weight: 600; background: #16181d;
}
.media-tile-badge {
  position: absolute; left: 6px; bottom: 6px; padding: 1px 6px; border-radius: 6px;
  background: rgba(0, 0, 0, .6); color: #fff; font-size: 11px; font-weight: 600; pointer-events: none;
}

/* ---- wide screens ----
   From 900px the bottom nav becomes a rail on the left of a 600px page
   column; from 1220px the wallet rides in a column on the right (walletSide
   in app.js). The fixed floaters (Post, new posts, toasts) sit over the page
   column: --col-mid is its centre, --col-edge its right edge, both measured
   from the window's centre (the grid is centred in it). */
@media (min-width: 900px) {
  :root { --col-mid: -184px; --col-edge: 416px; }
  #app:has(> .app-bottom-nav) {
    max-width: none; display: grid; justify-content: center; align-items: start;
    grid-template-columns: 200px minmax(0, 600px); grid-template-rows: 1fr auto; column-gap: 32px;
  }
  #app:has(> .app-bottom-nav) > * { grid-column: 2; min-width: 0; }
  #app:has(> .app-bottom-nav) { padding-bottom: 24px; }
  .app-nav-wide { display: flex; }
  .app-nav-brand { padding: 0 14px; margin-bottom: 16px; }
  #app:has(> .app-bottom-nav) .brand-header > .brand { display: none; }
  #app:has(> .app-bottom-nav) .brand-header { justify-content: flex-end; }
  /* the rail carries your profile and Settings here; the header trades its
     search icon for a field, which the search page then doesn't repeat */
  #app:has(> .app-bottom-nav) .header-railed { display: none; }
  #app:has(> .app-bottom-nav) .header-search { display: block; }
  #app:has(> .app-bottom-nav) .user-search-main { display: none; }
  .app-nav-profile { min-height: 64px; margin-bottom: 6px; gap: 12px; }
  .app-nav-profile .app-nav-ava { width: 44px; height: 44px; flex-shrink: 0; }
  .app-nav-name { font-weight: 650; color: var(--ink); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  /* an open chat fills the window: its page stretches down the grid row */
  #app > .col:has(> .chat-card) { align-self: stretch; height: 100%; }
  #app > .app-bottom-nav {
    grid-column: 1; grid-row: 1 / span 2; position: sticky; top: 24px; z-index: 5;
    flex-direction: column; justify-content: flex-start; gap: 4px;
    padding: 0; background: none; border: 0; box-shadow: none;
  }
  .app-nav-button {
    flex: none; flex-direction: row; justify-content: flex-start; gap: 14px;
    min-height: 48px; padding: 8px 14px; font-size: 16px;
  }
  .feed-post-fab { right: calc(50% - var(--col-edge) + 16px); bottom: 24px; }
  .feed-new-pill, .feed-page .feed-new-pill { left: calc(50% + var(--col-mid)); bottom: 24px; }
  .toast { left: calc(50% + var(--col-mid)); }
}
@media (min-width: 1220px) {
  :root { --col-mid: -60px; --col-edge: 240px; }
  /* three columns on every page with the nav, the wallet's own included,
     so the page column never jumps sideways between pages */
  #app:has(> .app-bottom-nav) { grid-template-columns: 200px minmax(0, 600px) 320px; }
  #app:has(> .wallet-side) .brand-header:has(.header-search) { display: none; }
  #app > .wallet-side > .header-search { width: 100%; }
  #app > .wallet-side { grid-column: 3; grid-row: 1 / span 2; position: sticky; top: 24px; gap: 12px; }
}
.wallet-side-total {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%;
  padding: 0; border: 0; background: none; color: var(--ink); text-align: left; cursor: pointer;
}
.wallet-side-amount { font-size: 24px; font-weight: 700; letter-spacing: -.01em; }
/* "Translated from Spanish · Show original" under a post's words */
.note-translate { margin-top: 4px; }
.note-translate-btn {
  background: none; border: none; padding: 0; margin: 0; font: inherit; color: var(--muted);
  cursor: pointer; text-decoration: underline; text-underline-offset: 2px; min-height: 0;
}
.note-translate-btn:hover { color: var(--ink); }
/* a zap receipt shown as a row: what was sent, in the zap colour */
.note-zap-line { color: #e6a800; font-weight: 650; }
/* @mention suggestions under a composer */
.mention-ac { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); overflow: hidden; max-height: 280px; overflow-y: auto; }
.mention-ac:empty { display: none; }
.mention-ac .item { cursor: pointer; padding: 6px 10px; }
/* `code` in a post */
.md-code { font-family: var(--mono, ui-monospace, monospace); font-size: .9em; background: color-mix(in srgb, currentColor 9%, transparent); border-radius: 4px; padding: 0 .3em; }

/* GIF picker (gifs.nostr.build) */
.gif-btn { font-weight: 700; font-size: 12px; letter-spacing: .04em; }
.chat-gif { font-weight: 700; font-size: 11px; letter-spacing: .04em; padding: 0 8px; }
.gif-backdrop { align-items: flex-end; padding: 0; }
.gif-sheet { width: 100%; max-width: 560px; height: min(78vh, 640px); gap: 8px; border-radius: 16px 16px 0 0; padding: 12px; }
@media (min-width: 640px) { .gif-backdrop { align-items: center; padding: 24px; } .gif-sheet { border-radius: 16px; } }
.gif-head { align-items: center; }
.gif-head a { color: inherit; text-decoration: underline; }
.gif-search { width: 100%; }
.gif-chips { gap: 6px; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; flex-shrink: 0; }
.gif-chips::-webkit-scrollbar { display: none; }
.gif-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.gif-grid { columns: 2; column-gap: 6px; }
@media (min-width: 640px) { .gif-grid { columns: 3; } }
.gif-tile { padding: 0; border: 0; border-radius: 8px; overflow: hidden; background: #000 center / cover no-repeat; width: 100%; cursor: pointer; display: block; margin: 0 0 6px; break-inside: avoid; }
.gif-search::-webkit-search-cancel-button { cursor: pointer; }
.gif-tile video, .gif-tile img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.gif-note { display: flex; justify-content: center; padding: 32px 0; }
.note-reposted { margin-bottom: 2px; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* a reply shown with the post it answers above it (Conversations, a profile's Replies) */
.note-context { margin-bottom: 6px; }
.note-context-label { margin-bottom: 2px; }
.note-context .quote-card { margin-top: 0; }
.note-context .quote-card .note-text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
/* attach + GIF inside the composer's field, bottom right; the field keeps
   room under its text so a long post never runs beneath them */
.compose-box { position: relative; }
.compose-box > coinos-text { padding-bottom: 42px; }
.compose-tools { position: absolute; right: 6px; bottom: 6px; display: flex; gap: 2px; }
.compose-tool { width: 34px; height: 32px; padding: 0; display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.compose-tool:hover:not(:disabled) { background: var(--line); color: var(--ink); }
.compose-tool.gif-btn { font-size: 11px; width: 38px; }
/* the chat composer: the same tools inside its field, at the right of its
   last line — the field keeps room on that side instead of underneath */
.chat-compose .chat-box { flex: 1; min-width: 0; display: flex; }
.chat-compose .chat-box > coinos-text { flex: 1; padding-bottom: 10px; padding-right: 84px; }
.chat-compose .chat-box > coinos-text:has(+ .compose-tools > :only-child) { padding-right: 48px; }
.chat-compose .chat-box .compose-tools { bottom: 6px; right: 5px; }
.compose-tool.chat-clip { width: 34px; }

/* Always visible, including when the media controls are tucked away. */
.mp-position { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 16px); left: 50%; transform: translateX(-50%); padding: 5px 10px; border-radius: 20px; background: #0009; color: #fff; font-size: 13px; font-variant-numeric: tabular-nums; pointer-events: none; z-index: 5; }
/* the counter shows while the pager is in motion and fades out a moment
   after it settles (the animation restarts each time `moving` comes off) */
.media-pager .mp-position { animation: mp-position-out .4s 1.2s both; }
.media-pager.moving .mp-position { animation: none; opacity: 1; }
@keyframes mp-position-out { from { opacity: 1; } to { opacity: 0; } }
.media-pager.few .mp-position { visibility: hidden; }

/* A call (calls.js): over every page, its picture filling it when there is
   one; minimized, a bar along the top. */
.call-overlay { position: fixed; inset: 0; z-index: 1000; background: #101318; color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: max(28px, env(safe-area-inset-top)) 16px max(28px, env(safe-area-inset-bottom)); }
/* the whole of their picture, whatever its shape and the window's: a phone's
   portrait camera filled a laptop's wide window by cropping to a forehead */
.call-overlay .call-remote { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; display: none; }
/* a call over the whole window: the page under it stays put */
html:has(.call-overlay:not(.call-min)) { overflow: hidden; scrollbar-gutter: auto; }
.call-overlay.has-video .call-remote { display: block; }
.call-overlay.has-video .call-who { position: relative; text-shadow: 0 1px 3px rgba(0, 0, 0, .7); }
.call-overlay.has-video .call-who .call-avatar { display: none; }
.call-who { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 8vh; z-index: 1; }
.call-who .call-avatar { width: 112px; height: 112px; font-size: 32px; }
.call-name { font-size: 22px; font-weight: 650; }
.call-status { font-size: 15px; opacity: .8; font-variant-numeric: tabular-nums; }
.call-local { position: absolute; right: 16px; bottom: 120px; width: 28vw; max-width: 180px; aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: 12px; background: #000; box-shadow: 0 2px 12px rgba(0, 0, 0, .5); z-index: 2; }
.call-local.mirror { transform: scaleX(-1); }
.call-local.sharing { aspect-ratio: 16 / 10; object-fit: contain; background: #000; }
.call-bar { display: flex; gap: 18px; z-index: 2; flex-wrap: wrap; justify-content: center; }
.call-btn { width: 60px; height: 60px; border-radius: 50%; border: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .16); color: #fff; cursor: pointer; padding: 0; }
.call-btn:hover { background: rgba(255, 255, 255, .26); }
.call-btn.on { background: #fff; color: #101318; }
.call-btn.call-hang, .call-btn.call-decline { background: #e0245e; }
.call-btn.call-accept { background: #1fa45a; }
.call-overlay.call-min { inset: 0 0 auto 0; padding: 0; background: none; height: auto; justify-content: flex-start; pointer-events: none; }
.call-min-bar { pointer-events: auto; margin: max(8px, env(safe-area-inset-top)) auto 0; display: flex; align-items: center; gap: 10px;
  padding: 8px 16px; border-radius: 999px; border: 0; background: #1fa45a; color: #fff; font-weight: 600; cursor: pointer; box-shadow: 0 2px 10px rgba(0, 0, 0, .3); }
.call-min-status { font-variant-numeric: tabular-nums; opacity: .9; }
.call-min .call-audio { display: none; }
/* a call in its conversation: a row of its own, centred, a tap calls back */
.chat-row.call-log { justify-content: center; margin: 6px 0; flex-direction: column; align-items: center; gap: 3px; }
.call-log-why { text-align: center; max-width: 320px; }
.call-log-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface2); color: inherit; font-size: 13px; cursor: pointer; }
.call-log-pill .chat-time { margin: 0; font-size: 11px; opacity: .7; }
.call-log-pill svg { width: 16px; height: 16px; }
.chat-row.call-log.missed .call-log-pill { color: var(--red); border-color: color-mix(in srgb, var(--red) 40%, var(--line)); }

/* A post's audio/video timeline: the waveform (audio), and what was said,
   reacted or zapped at a moment, sitting over the bar at that moment. */
.media-timeline { padding: 24px 0 8px; white-space: normal; color: var(--text); }
.note-video-box .media-timeline:not(.has-marks) { display: none; }
.media-time { font-variant-numeric: tabular-nums; }
.media-seek { position: relative; height: 42px; --played: 0%; }
.media-wave { position: absolute; inset: 3px 0; display: flex; align-items: center; gap: 2px;
  background: linear-gradient(to right, var(--accent) var(--played), var(--line) var(--played)); }
.media-wave:empty { height: 4px; top: 19px; }
.media-wave i { flex: 1; background: var(--accent); border-radius: 2px; min-width: 1px; }
.has-wave .media-wave { background: none; }
.has-wave .media-wave::after { content: ''; position: absolute; inset: 0 0 0 var(--played); background: var(--bg, #fff); opacity: .55; pointer-events: none; }
.media-seek input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: .01; cursor: pointer; }
.media-seek:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.media-marks { position: absolute; left: 0; right: 0; top: -22px; height: 22px; pointer-events: none; }
.media-mark, .mp-mark {
  position: absolute; bottom: 0; transform: translateX(-50%); padding: 0 2px; margin: 0; border: 0; background: none;
  font-size: 16px; line-height: 1; cursor: pointer; pointer-events: auto;
}
.media-mark .cemoji, .mp-mark .cemoji { width: 20px; height: 20px; vertical-align: bottom; }
/* the pager's: above its seek bar, there when the bar is */
.mp-marks { position: absolute; left: 0; right: 0; bottom: 10px; height: 26px; pointer-events: none; }
.mp-mark { font-size: 20px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .6)); }
.mp-mark .cemoji { width: 24px; height: 24px; }
.mp-seek-time { max-width: calc(100% - 16px); overflow: hidden; text-overflow: ellipsis; }
.mp-seek.say .mp-seek-time { opacity: 1; }
.mp-marks:not(:empty) ~ .mp-seek-time { bottom: 42px; }
/* ...and a moment the clip plays through floats up off the bar */
.mp-pop {
  position: absolute; bottom: calc(var(--mp-seek-lift) + 12px); z-index: 4; transform: translateX(-50%);
  font-size: 30px; line-height: 1; pointer-events: none; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .6));
  animation: mp-pop 1.6s ease-out forwards;
}
.mp-pop .cemoji { width: 34px; height: 34px; }
@keyframes mp-pop {
  0% { opacity: 0; transform: translate(-50%, 8px) scale(.6); }
  15% { opacity: 1; transform: translate(-50%, 0) scale(1.1); }
  100% { opacity: 0; transform: translate(-50%, -90px) scale(1); }
}
@media (prefers-reduced-motion: reduce) { .mp-pop { animation: none; opacity: 0; } }

.media-moment-detail { overflow-wrap: anywhere; max-height: 72px; overflow-y: auto; margin-top: 5px; }
.media-moment-detail:empty { display: none; }
.live-watching.has-who { cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px; }
.live-who { display: flex; flex-wrap: wrap; gap: 6px; }
.live-who-p { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; border-radius: 999px; background: var(--bg2, rgba(127,127,127,.12)); border: 0; color: inherit; cursor: pointer; }

/* a gift's note: the sender's words above the amount, and the field for them */
.gift-note {
  margin: 0; padding: 8px 12px; max-width: 100%;
  border-left: 3px solid var(--accent); border-radius: 4px;
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  font-style: italic; text-align: left; white-space: pre-wrap; overflow-wrap: anywhere;
}
.gift-note-input { width: 100%; min-height: 0; font-family: var(--sans); }