.schedule-intro { padding-bottom: 12px; }
.schedule-description { max-width: 960px; color: var(--text2); font-size: 1rem; }
.schedule-catalog { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin-top: 24px; }
.schedule-catalog-link { display: flex; align-items: center; gap: 14px; min-width: 0; min-height: 88px; padding: 18px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.schedule-catalog-link:hover { border-color: var(--blue); background: var(--surface-hover); }
.schedule-catalog-link > .ui-icon:first-child { width: 28px; height: 28px; flex-basis: 28px; color: var(--blue); }
.schedule-catalog-link > .ui-icon:last-child { margin-left: auto; }
.schedule-catalog-link span { min-width: 0; }
.schedule-catalog-link strong, .schedule-catalog-link small { display: block; }
.schedule-catalog-link strong { font-size: 1rem; line-height: 1.35; }
.schedule-catalog-link small { margin-top: 4px; color: var(--text3); font-size: .83rem; }
.schedule-note { max-width: 960px; margin-top: 14px; color: var(--text3); font-size: .84rem; }
.schedule-faq-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; gap: 14px; }
.schedule-faq details { min-width: 0; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.schedule-faq summary { min-height: 64px; padding: 18px; cursor: pointer; font-weight: 600; font-size: .95rem; }
.schedule-faq details[open] summary { border-bottom: 1px solid var(--border); }
.schedule-faq details > div { padding: 18px; color: var(--text2); font-size: .9rem; }
.schedule-faq a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.schedule-faq p { margin: 0; }
@media (max-width:720px) {
  .schedule-intro { padding-bottom: 8px; }
  .schedule-description { font-size: .94rem; }
  .schedule-catalog, .schedule-faq-grid { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .schedule-catalog-link { padding: 16px; min-height: 84px; gap: 12px; }
  .schedule-catalog-link strong { font-size: .95rem; }
  .schedule-catalog-link small { font-size: .8rem; }
  .schedule-faq summary, .schedule-faq details > div { padding: 16px; }
}

.current-version-link { display: flex; align-items: center; gap: 18px; width: 100%; max-width: 960px; margin: 0 0 24px; padding: 20px 22px; border: 2px solid var(--blue); border-radius: 14px; background: linear-gradient(110deg, rgba(59,130,246,.19), var(--surface) 70%); box-shadow: 0 14px 30px var(--shadow); transition: background .18s, box-shadow .18s; }
.current-version-link[hidden] { display: none; }
.current-version-link:hover { background: linear-gradient(110deg, rgba(59,130,246,.27), var(--surface) 70%); box-shadow: 0 16px 32px var(--shadow); }
.current-version-link > .ui-icon:first-child { width: 46px; height: 46px; flex-basis: 46px; padding: 10px; color: #fff; border-radius: 11px; background: var(--blue); }
.current-version-link > .ui-icon:last-child { width: 22px; height: 22px; flex-basis: 22px; margin-left: auto; color: var(--blue); }
.current-version-link span { min-width: 0; }
.current-version-link strong, .current-version-link small { display: block; }
.current-version-link strong { font-size: clamp(1.12rem,2vw,1.42rem); line-height: 1.3; }
.current-version-link small { margin-top: 5px; color: var(--text2); font-size: .9rem; }
@media (max-width:480px) {
  .current-version-link { gap: 10px; padding: 15px; }
  .current-version-link > .ui-icon:first-child { width: 38px; height: 38px; flex-basis: 38px; padding: 8px; }
  .current-version-link > .ui-icon:last-child { width: 17px; height: 17px; flex-basis: 17px; }
  .current-version-link strong { font-size: 1.05rem; }
  .current-version-link small { font-size: .8rem; }
}

.current-version-link small:first-child { margin: 0 0 7px; color: var(--blue); font-size: .75rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.current-version-link small:last-child { margin-top: 8px; }
.martrans-description { margin: -6px 0 18px; color: var(--text2); font-size: .9rem; }
.martrans-subheading { margin: 22px 0 12px; }
.store-fallback-icon { display: grid; place-items: center; width: 48px; height: 48px; flex: 0 0 48px; border-radius: 10px; color: #fff; background: #2379b5; font-size: 1.5rem; line-height: 1; }
@media (max-width:480px) {
  .current-version-link small:first-child { font-size: .7rem; }
  .store-fallback-icon { width: 42px; height: 42px; flex-basis: 42px; }
}

.current-version-link { border-color: #22c55e; background: linear-gradient(110deg, rgba(34,197,94,.2), var(--surface) 72%); }
.current-version-link:hover { background: linear-gradient(110deg, rgba(34,197,94,.28), var(--surface) 72%); }
.current-version-link > .ui-icon:first-child { background: #15803d; }
.current-version-link > .ui-icon:last-child, .current-version-link small:first-child { color: #4ade80; }
[data-theme="light"] .current-version-link { border-color: #15803d; background: linear-gradient(110deg, rgba(34,197,94,.14), var(--surface) 72%); }
[data-theme="light"] .current-version-link:hover { background: linear-gradient(110deg, rgba(34,197,94,.22), var(--surface) 72%); }
[data-theme="light"] .current-version-link > .ui-icon:last-child, [data-theme="light"] .current-version-link small:first-child { color: #166534; }

.app-group { margin-top: 22px; padding: 22px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2); box-shadow: 0 8px 22px var(--shadow); }
.app-group-header { padding: 2px 2px 18px; border-bottom: 1px solid var(--border); }
.app-group-kind { color: var(--blue); font-size: .76rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.app-group-header h3 { margin: 4px 0 8px; font-size: clamp(1.3rem, 2vw, 1.65rem); line-height: 1.25; }
.app-group-header p { max-width: 920px; color: var(--text2); font-size: .95rem; }
.app-group .platform-section { margin-top: 16px; background: var(--surface); box-shadow: none; }
.app-group .install-help { margin-top: 16px; }
@media (max-width:720px) {
  .app-group { margin-top: 18px; padding: 16px; }
  .app-group-header { padding-bottom: 16px; }
  .app-group-header p { font-size: .9rem; }
}

/* Fill the existing page column with the version banner on desktop. */
@media (min-width: 1021px) {
  .current-version-link { max-width: none; }
}

/* Place the first application card directly below the sticky header. */
html { scroll-padding-top: 76px; }
#install { padding-top: 0; scroll-margin-top: 0; }
#install > .app-group:first-of-type { margin-top: 0; }
#install .visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
/* Each application keeps its own horizontally scrollable screenshot row. */
.app-screenshots { min-width: 0; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); }
.app-screenshots-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.app-screenshots-heading h4 { margin: 0; font-size: 1rem; }
.app-screenshots-controls { display: flex; gap: 8px; flex: 0 0 auto; }
.app-screenshots-controls button { width: 38px; height: 38px; padding: 0; color: var(--text); border: 1px solid var(--border); border-radius: 9px; background: var(--surface); font: inherit; font-size: 1.3rem; cursor: pointer; }
.app-screenshots-controls button:hover:not(:disabled) { border-color: var(--blue); background: var(--surface-hover); }
.app-screenshots-controls button:disabled { opacity: .4; cursor: default; }
.app-screenshots-track { display: flex; gap: 12px; min-width: 0; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-inline: contain; scrollbar-width: thin; padding-bottom: 10px; }
.app-screenshot { display: block; flex: 0 0 208px; overflow: hidden; scroll-snap-align: start; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.app-screenshot:hover, .app-screenshot:focus-visible { border-color: var(--blue); }
.app-screenshot img { display: block; width: 100%; height: auto; aspect-ratio: 768 / 1366; object-fit: contain; }
@media (max-width: 720px) {
  .app-screenshot { flex-basis: min(58vw, 208px); }
}
@media (prefers-reduced-motion: reduce) {
  .app-screenshots-track { scroll-behavior: auto; }
}

/* Match the app title icons to the Android platform icon frame. */
.app-group-header h3 { display: flex; align-items: center; gap: 12px; }
.app-group-header h3 .label-icon { width: 44px; height: 44px; flex: 0 0 44px; }
@media (max-width: 480px) {
  .app-group-header h3 .label-icon { width: 40px; height: 40px; flex-basis: 40px; }
}

/* Larger rounded app icons and names in the two group headings. */
.app-group-header h3 { font-size: clamp(1.55rem, 2.6vw, 2rem); gap: 14px; }
.app-group-header h3 .label-icon { width: 60px; height: 60px; flex: 0 0 60px; border-radius: 14px; }
.app-group-header h3 .label-icon img { width: 50px; height: 50px; border-radius: 10px; }
@media (max-width: 480px) {
  .app-group-header h3 { font-size: 1.5rem; gap: 12px; }
  .app-group-header h3 .label-icon { width: 52px; height: 52px; flex-basis: 52px; border-radius: 12px; }
  .app-group-header h3 .label-icon img { width: 44px; height: 44px; border-radius: 9px; }
}

/* Two application versions inside the existing green homepage banner. */
.current-version-link--apps { align-items: center; }
.current-version-link--apps .current-version-body { display: block; flex: 1 1 auto; min-width: 0; }
.current-version-link--apps .current-version-eyebrow { margin: 0; }
.current-version-apps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 11px; }
.current-version-app { display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 76px; padding: 10px 12px; border: 1px solid rgba(74,222,128,.3); border-radius: 11px; background: rgba(255,255,255,.045); }
.current-version-app:only-child { grid-column: 1 / -1; }
.current-version-app img { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 11px; object-fit: cover; }
.current-version-app-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.current-version-app strong { display: block; font-size: 1.12rem; line-height: 1.25; }
.current-version-app-version { display: block; color: var(--text2); font-size: .82rem; line-height: 1.35; }
.current-version-cta { display: block; margin-top: 12px; color: var(--text2); font-size: .88rem; }
[data-theme="light"] .current-version-app { border-color: rgba(21,128,61,.26); background: rgba(255,255,255,.72); }
@media (max-width: 720px) {
  .current-version-apps { grid-template-columns: minmax(0, 1fr); gap: 9px; }
  .current-version-app { min-height: 64px; padding: 8px 10px; }
  .current-version-app img { width: 42px; height: 42px; flex-basis: 42px; border-radius: 9px; }
  .current-version-app strong { font-size: 1.06rem; }
  .current-version-app-version { font-size: .78rem; }
}
