@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');

html,
body {
  font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen,
    Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
  padding: 0;
  margin: 0;
  line-height: 1.6;
  font-size: 18px;
  background: #ffffff;
  color: #0f1115;
}

body.dark {
  background: #1B1C1D;
  color: #f5f6f8;
}

* {
  box-sizing: border-box;
}

a {
  color: #0070f3;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}
.git-form {
  padding: 10px 0;
}

/* Navigation styles */
.nav {
  box-sizing: border-box;
  padding: 14px 48px;
  display: flex;
  align-items: center;
  font-size: 15px;
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(15, 17, 21, 0.06);
  z-index: 100000;
}

.nav.clean {
  backdrop-filter: none;
}

body.dark .nav {
  background: rgba(27,28,29,0.96);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.logo:hover {
  text-decoration: none;
}

.logo {
  color: black;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand {
  letter-spacing: -0.5px;
  font-size: 22px;
  font-weight: 700;
  display: inline-block;
}

body.dark .brand,
body.dark .logo {
  color: #f5f6f8;
}

.nav img {
  margin-right: 0;
}

.navLinks {
  display: flex;
  gap: 18px;
  margin-left: auto;
  justify-content: flex-end;
  align-items: center;
}

.navItem {
  color: rgba(0,0,0,0.8);
  padding: 8px 0;
  font-weight: 500;
}

.navItem:hover {
  color: #000;
}

body.dark .navItem {
  color: rgba(255,255,255,0.85);
}

body.dark .navItem:hover {
  color: #fff;
}

.navActions {
  margin-left: auto;
  display: flex;
  gap: 10px;
  align-items: center;
}

.pillButton,
.ghostButton,
.btn {
  font-size: 15px;
  font-weight: 600;
  border-radius: 999px;
  padding: 10px 20px;
  border: 2px solid #0f1115;
  background: #0f1115;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.pillButton:hover,
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
  text-decoration: none;
}

.pillButton.primary {
  background: #0f1115;
  border-color: #0f1115;
  color: #fff;
}

.ghostButton {
  background: transparent;
  color: #0f1115;
  border-color: rgba(15,17,21,0.12);
  box-shadow: none;
}

.ghostButton:hover {
  background: rgba(15,17,21,0.04);
}

body.dark .pillButton,
body.dark .btn {
  background: #f5f6f8;
  color: #0f1115;
  border-color: #f5f6f8;
}

body.dark .ghostButton {
  color: #f5f6f8;
  border-color: rgba(255,255,255,0.18);
}

body.dark .ghostButton:hover {
  background: rgba(255,255,255,0.06);
}

.btn.inverse {
  background: transparent;
  color: #0f1115;
  border-color: rgba(15,17,21,0.15);
  box-shadow: none;
}

.btn.inverse:hover {
  background: rgba(15,17,21,0.06);
}

body.dark .btn.inverse {
  color: #f5f6f8;
  border-color: rgba(255,255,255,0.2);
}

body.dark .btn.inverse:hover {
  background: rgba(255,255,255,0.08);
}

.pillButton:active,
.btn:active {
  transform: translateY(0);
}

/* Container styles */
.container {
  /* legacy */
}

.page {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 40px 24px 80px;
}

.contentBlock {
  width: 100%;
  margin: 0;
}

.hero {
  text-align: center;
  padding: 60px 0 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.heroLogo {
  text-align: center;
}
.heroLogo img {
  width: 220px;
  height: 220px;
  object-fit: contain;
  filter: drop-shadow(0 18px 30px rgba(0,0,0,0.08));
}

.heroEyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  color: rgba(0,0,0,0.6);
  margin: 0;
}

body.dark .heroEyebrow {
  color: rgba(255,255,255,0.7);
}

.hero h1 {
  font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen,
    Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
  font-size: 52px;
  line-height: 1.05;
  letter-spacing: -2px;
  margin: 0;
}

.heroSubtitle {
  max-width: 760px;
  margin: 8px auto 0;
  color: rgba(0,0,0,0.65);
  font-size: 18px;
}

body.dark .heroSubtitle {
  color: rgba(255,255,255,0.75);
}

.heroActions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  justify-content: center;
}

.heroCaption {
  color: rgba(0,0,0,0.55);
  font-size: 15px;
  flex-basis: 100%;
  text-align: center;
  margin-top: 4px;
}

body.dark .heroCaption {
  color: rgba(255,255,255,0.7);
}

.hero .pillButton {
  padding: 12px 28px;
  font-size: 16px;
}

.sectionHeader.minimal {
  text-align: left;
}

.sectionHeader.minimal .title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.sectionHeader.minimal .description {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

/* Header styles */
/* Legacy hero styles retained for other pages */

.highlightList {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
  margin: 20px 0 15px;
}

.highlight {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 12px 15px;
  color: rgba(255,255,255,0.9);
  font-size: 15px;
}

.highlight i {
  color: rgba(255,255,255,0.8);
  margin-top: 2px;
}

.detailPage {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.detailHeader {
  text-align: center;
  padding: 40px 20px 20px;
}

.detailHeader h1 {
  margin: 0 0 15px;
  font-size: 48px;
  letter-spacing: -1px;
}

.detailHeader p {
  margin: 0 auto 20px;
  max-width: 640px;
  color: rgba(0,0,0,0.65);
}

.detailHeader .backLink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  color: royalblue;
  font-weight: 600;
}

.detailHeader .backLink:hover {
  text-decoration: underline;
}

body.dark .detailHeader p {
  color: rgba(255,255,255,0.75);
}

/* Items container styles */
.itemsContainer {
  box-sizing: border-box;
  padding: 30px 10px 10px;
}

.itemsContainer .title {
  font-size: 30px;
  line-height: 30px;
  font-weight: 700;
  text-align: left;
}

body.dark .itemsContainer .title {
  color: white; 
}

.itemsContainer .description {
  text-align: left;
  color: rgba(0,0,0,0.65);
  margin-bottom: 20px;
  margin-top: 10px;
}

body.dark .itemsContainer .description {
  color: rgba(255,255,255,0.8);
}

.items {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  margin-top: 10px;
}

.card {
  background: #ffffff;
  border-radius: 14px;
  padding: 16px;
  border: 1px solid rgba(15, 17, 21, 0.08);
  box-shadow: 0 16px 30px rgba(0,0,0,0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

body.dark .card {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.08);
  box-shadow: none;
}

.newsGrid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.newsSection {
  padding-bottom: 40px;
}

/* Download page */
.downloadPage {
  max-width: 960px;
  margin: 0 auto;
  padding: 60px 16px 100px;
  text-align: center;
}

.downloadLogo {
  display: flex;
  justify-content: center;
}

.downloadHeroTitle {
  font-size: 44px;
  letter-spacing: -1px;
  margin: 10px 0 6px;
}

.downloadSubtitle {
  color: rgba(0,0,0,0.6);
  margin: 0 auto 28px;
  max-width: 640px;
}

body.dark .downloadSubtitle {
  color: rgba(255,255,255,0.75);
}

.downloadLogo img {
  width: 160px;
  height: 160px;
  object-fit: contain;
}

.downloadOptions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 0 auto 24px;
}

.downloadCard {
  border: 1px solid rgba(15,17,21,0.08);
  border-radius: 16px;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(180deg, #ffffff 0%, #f9fafc 100%);
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  min-height: 300px;
  cursor: pointer;
}

.downloadCard:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0,0,0,0.12);
  border-color: rgba(15,17,21,0.18);
}

.downloadCard.selected {
  border-color: #0f1115;
  box-shadow: 0 16px 34px rgba(0,0,0,0.14);
}

.downloadCard .osHead {
  display: grid;
  gap: 6px;
  justify-items: center;
  text-align: center;
}

.downloadCard .osIcon {
  font-size: 28px;
}

.downloadCard .osLabel {
  font-weight: 600;
}

.downloadCard .osNote {
  margin: 0;
  color: rgba(0,0,0,0.62);
  font-size: 15px;
  line-height: 1.4;
}

.downloadBtn {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(15,17,21,0.14);
  background: #0f1115;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.downloadBtn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.12);
  background: #181b22;
  border-color: #0f1115;
  text-decoration: none;
}

.downloadBtn.disabled {
  cursor: not-allowed;
  background: rgba(15,17,21,0.12);
  border-color: rgba(15,17,21,0.12);
  color: rgba(15,17,21,0.65);
  box-shadow: none;
}

.downloadBtn.disabled:hover {
  transform: none;
  box-shadow: none;
}

.downloadAction {
  max-width: 600px;
  margin: 12px auto 0;
  display: grid;
  gap: 8px;
  text-align: center;
}

.downloadHint {
  font-size: 14px;
  color: rgba(0,0,0,0.6);
}

@media(max-width: 560px) {
  .archButtons {
    grid-template-columns: 1fr;
  }
}

.downloadCard.macCard {
  gap: 12px;
}

.macCard .osIcon,
.macCard .osLabel {
  justify-self: center;
  text-align: center;
}

.macCard .osNote {
  color: rgba(0,0,0,0.6);
}

.archButtons {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 2fr));
  gap: 10px;
  margin-top: 6px;
}

.archButton {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  border: 1px solid rgba(15,17,21,0.14);
  border-radius: 12px;
  padding: 12px 12px;
  background: #f8f9fb;
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease, background 0.15s ease, color 0.15s ease;
  cursor: pointer;
  flex-wrap: wrap;
}

.archButton:hover {
  border-color: rgba(15,17,21,0.24);
  box-shadow: 0 10px 22px rgba(0,0,0,0.08);
  transform: translateY(-1px);
  text-decoration: none;
}

.archButton .archBadge {
  display: none;
  background: rgba(15,17,21,0.08);
  color: #0f1115;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 700;
}

.archButton.active {
  border-color: #0f1115;
  background: #0f1115;
  color: #fff;
  box-shadow: 0 12px 26px rgba(0,0,0,0.12);
}

.archButton.recommended {
  border-color: rgba(15,17,21,0.24);
}

.archButton.recommended .archBadge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.14);
  color: #fff;
}

.archHint {
  margin-top: 4px;
  font-size: 13px;
  color: rgba(0,0,0,0.6);
}

.macCard .archHint {
  text-align: center;
}

.downloadCTA {
  margin-top: 10px;
  display: grid;
  gap: 8px;
  justify-items: center;
}

.downloadCTA .heroCaption {
  margin: 0;
}

body.dark .downloadCard {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.1);
  box-shadow: none;
}

body.dark .downloadCard.selected {
  border-color: rgba(255,255,255,0.4);
  box-shadow: none;
}

body.dark .macCard .osNote,
body.dark .archHint {
  color: rgba(255,255,255,0.78);
}

body.dark .downloadCard .osNote {
  color: rgba(255,255,255,0.78);
}

body.dark .archButton {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
}

body.dark .archButton:hover {
  border-color: rgba(255,255,255,0.24);
  box-shadow: none;
}

body.dark .archButton .archBadge {
  background: rgba(255,255,255,0.12);
  color: #f5f6f8;
}

body.dark .archButton.recommended {
  border-color: rgba(255,255,255,0.28);
}

body.dark .downloadBtn {
  background: #f5f6f8;
  color: #0f1115;
  border-color: #f5f6f8;
  box-shadow: none;
}

body.dark .downloadBtn:hover {
  background: #ffffff;
  color: #0f1115;
  border-color: #ffffff;
  box-shadow: 0 10px 22px rgba(0,0,0,0.24);
}

body.dark .downloadBtn.disabled {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
}

body.dark .downloadHint {
  color: rgba(255,255,255,0.75);
}

.item {
  box-sizing: border-box;
  display: flex;
  padding-bottom: 20px;
  align-items: center;
}

.item img {
  border-radius: 10px;
  flex-shrink: 0;
  max-width: 100px;
  height: auto;
}

.item .col {
  flex-grow: 1;
  padding-right: 15px;
  box-sizing: border-box;
  overflow-wrap: break-word;
  min-width: 0;
}

.positioning,
.comparison,
.pitch {
  box-sizing: border-box;
  padding: 40px 30px;
  max-width: 1100px;
  margin: 0 auto;
}

.positioning {
  background: #f8f9fb;
}

body.dark .positioning {
  background: rgba(255,255,255,0.03);
}

.sectionHeader h2 {
  margin-bottom: 10px;
  font-size: 36px;
  line-height: 1.1;
}

.sectionHeader p {
  margin: 0;
  color: rgba(0,0,0,0.7);
}

body.dark .sectionHeader p {
  color: rgba(255,255,255,0.75);
}

.positioningGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.positioningCard {
  background: white;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

body.dark .positioningCard {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: none;
}

.positioningCard h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

.positioningCard p {
  margin-top: 0;
  color: rgba(0,0,0,0.7);
}

body.dark .positioningCard p {
  color: rgba(255,255,255,0.75);
}

.positioningCard ul {
  margin: 15px 0 0;
  padding-left: 20px;
  color: rgba(0,0,0,0.8);
}

body.dark .positioningCard ul {
  color: rgba(255,255,255,0.8);
}

.comparison h2,
.pitch h2 {
  text-align: center;
  margin-bottom: 25px;
  font-size: 32px;
}

.tableWrapper {
  overflow-x: auto;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.04);
}

.comparison table {
  width: 100%;
  border-collapse: collapse;
  min-width: 540px;
}

.comparison th,
.comparison td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  background: white;
}

.comparison thead th {
  background: rgba(65, 105, 225, 0.1);
  font-weight: 600;
}

body.dark .comparison th,
body.dark .comparison td {
  background: rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

body.dark .comparison thead th {
  background: rgba(65, 105, 225, 0.15);
}

.pitchGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.pitchCard {
  background: #f8f9fb;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid rgba(15, 23, 42, 0.05);
}

body.dark .pitchCard {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
}

.pitchCard h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 20px;
}

.pitchCard p {
  margin: 0;
  color: rgba(0,0,0,0.75);
}

body.dark .pitchCard p {
  color: rgba(255,255,255,0.75);
}

.item .title {
  line-height: 20px;
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 8px;
  color: rgba(0,0,0,0.9);
}

body.dark .item .title {
  color: white; 
}

.item .description {
  font-size: 14px;
  line-height: 18px;
  padding: 0 0 0px 0;
  color: rgba(0,0,0,0.8);
  word-break: break-word;
}

body.dark .item .description {
  color: rgba(255,255,255,0.8);
}

.download-container {
  padding: 20px;
  text-align: right;
}

a.card:hover {
  text-decoration: none !important;
  border-color: rgba(15,17,21,0.2);
  box-shadow: 0 18px 36px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}

a.card {
  text-decoration: none;
  box-sizing: border-box;
}

.btn:hover {
  text-decoration: none;
}

/* Responsive styles */
@media(max-width: 720px) {
  .items {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  
  .nav {
    padding: 12px 16px;
    flex-wrap: wrap;
    gap: 8px 12px;
  }

  .navLinks {
    margin-left: 0;
    gap: 10px;
    flex: 1 1 100%;
    justify-content: center;
    order: 3;
    flex-wrap: wrap;
  }

  .navActions {
    gap: 8px;
    margin-left: 0;
    order: 2;
    flex: 1 1 100%;
    justify-content: center;
  }

  .brand {
    font-size: 20px;
  }

  .page {
    padding: 24px 16px 60px;
  }

  .hero {
    padding: 40px 0 20px;
  }

  .heroLogo img {
    width: 180px;
    height: 180px;
  }

  .hero h1 {
    font-size: 40px;
  }
}

@media(max-width: 480px) {
  .items {
    grid-template-columns: 1fr;
  }
}

/* App page specific styles */

/* Override container max-width to match original */
.container {
  max-width: none;
}

/* Tab navigation styles matching utilStyles.tab */
.tab {
  display: flex;
  align-items: center;
  margin: 0 auto;
  background: white;
  box-sizing: border-box;
}

body.dark .tab {
  background: #1B1C1D;
}

.tab .filler {
  width: 1px;
  flex-grow: 1;
}

.tab .stretch {
  width: 1px;
  flex-grow: 1;
}

.tab button {
  background: none;
  border: none;
  color: rgba(0,0,0,0.6);
  padding: 1rem 2rem;
  font-size: 16px;
  font-weight: normal;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 8px;
}

body.dark .tab button {
  color: white;
  /*
  color: rgba(255,255,255,0.6);
  */
}

.tab button.selected {
  color: rgba(0,0,0,0.9);
  font-weight: bold;
  border-bottom: 2px solid royalblue;
}

body.dark .tab button.selected {
  color: royalblue;
}

.tab button:hover {
  color: rgba(0,0,0,0.9);
}

body.dark .tab button:hover {
  color: white;
}

/* Grid layout matching utilStyles.grid */
.grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
  /*
  padding: 0 1rem;
  */
  padding:1rem;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Sidebar styles matching the Tweet component area */
aside {
  background: none;
  padding: 0;
  border-radius: 0;
}

aside h2 {
  margin: 10px;
  font-size: 25px;
  letter-spacing: -1px;
  color: rgba(0,0,0,0.9);
  font-weight: bold;
}

body.dark aside h2 {
  color: white;
}

/* Search input matching utilStyles.input */
.input {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid cornflowerblue;
  border-radius: 4px;
  font-size: 18px;
  margin: 10px 0 0;
  background: white;
  box-sizing: border-box;
}

body.dark .input {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.2);
  color: white;
}

.input:focus {
  outline: none;
  border-color: royalblue;
}

.input::placeholder {
  color: rgba(0,0,0,0.5);
}

body.dark .input::placeholder {
  color: rgba(255,255,255,0.5);
}

/* Items container matching utilStyles.minimalItemsContainer */
.minimalItemsContainer {
  margin: 0 auto;
  box-sizing: border-box;
}

/* Description styling */
.description {
  color: rgba(0,0,0,0.7);
  margin-bottom: 1rem;
  margin: 0 auto 1rem auto;
}

body.dark .description {
  color: rgba(255,255,255,0.8);
}

/* Items grid matching utilStyles.minimal_items */
.minimal_items {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

/* Apps section header */
.apps-header {
  margin: 10px;
  font-size: 25px;
  letter-spacing: -1px;
  color: rgba(0,0,0,0.9);
  font-weight: bold;
}

body.dark .apps-header {
  color: white;
}

/* Community info styles matching original */
.community {
  background: rgba(0,0,200, 0.04);
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

body.dark .community {
  background: rgba(0,0, 250, 0.06);
  color: white;
  border: 2px solid rgba(0,0,250, 0.2);
}


.community_item:last-child {
  margin-bottom: 0;
}

.community_item h3 {
  margin: 0 0 10px 0;
  color: rgba(0,0,0,0.9);
  padding-left: 10px;
  border-left: 10px solid black;
}
body.dark .community_item h3 {
  border-color: white;
}

body.dark .community_item h3 {
  color: white;
}

.community_item div {
  font-size: 14px;
  line-height: 16px;
  margin-bottom: 10px;
}

/* Download button styles */
.download-section {
  background: rgba(0,0,0,0.03);
  border-radius: 8px;
  padding: 20px;
  margin: 10px 0;
}

body.dark .download-section {
  background: rgba(255,255,255,0.03);
}

#downloadSection {
  font-size: 14px;
}
#downloadSection h3 {
  margin: 0;
}
body.dark #downloadSection {
  color: white;
}

.tab button.download-btn, #downloadSection button.download-btn, #downloadSection a.download-btn  {
  background: royalblue;
  color: white;
  border: 2px solid royalblue;
  padding: 5px 20px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s ease;
  display: inline;
}

.tab button.download-btn:hover, #downloadSection button.download-btn:hover, #downloadSection a.download-btn:hover  {
  background: transparent;
  color: royalblue;
  text-decoration: none;
}

.download-input {
  width: 100%;
  padding: 10px;
  margin: 2px 0;
  border: 2px solid rgba(0,0,0,0.1);
  border-radius: 4px;
  font-size: 14px;
}

body.dark .download-input {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.1);
  color: white;
}

/* Tweet styles and embedded tweet containers */
.tweet-item {
  margin-bottom: 15px;
  width: 100%;
}

.tweet-placeholder {
  background: rgba(0,0,0,0.05);
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
  font-size: 14px;
  color: rgba(0,0,0,0.7);
  text-align: center;
}

body.dark .tweet-placeholder {
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.7);
}

/* Twitter iframe styling */
.tweet-item iframe {
  max-width: 100% !important;
  width: 100% !important;
}

/* Loading spinner animation - matching item page */
.loading-spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
  width: 100%;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 4px solid rgba(0,0,0,0.1);
  border-top: 4px solid rgba(0,0,0,0.8);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

body.dark .spinner {
  border: 4px solid rgba(255,255,255,0.1);
  border-top: 4px solid rgba(255,255,255,0.8);
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-text {
  margin-left: 10px;
  color: #666;
  font-size: 14px;
}

body.dark .loading-text {
  color: rgba(255,255,255,0.6);
}

/* Ensure twitter widgets fit in sidebar */
aside .tweet-item {
  max-width: 100%;
  overflow: hidden;
}

/* Responsive adjustments for app page */
@media (max-width: 768px) {
  .grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  aside {
    order: 2;
  }
  
  .tab {
    flex-direction: column;
    align-items: stretch;
    padding: 0;
  }
  
  .tab button {
    margin: 0;
    text-align: center;
    padding: 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
  }
  
  body.dark .tab button {
    border-bottom-color: rgba(255,255,255,0.1);
  }
  
  .tab .filler, .tab .stretch {
    display: none;
  }
}

/* Cancel button variant */
.download-btn.cancel {
  background: transparent;
  color: royalblue;
  margin-left: 10px;
}

/* Hidden element utility class */
.hidden {
  display: none;
}
