.icon { width: 24px; height: 24px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.github-logo { display: block; width: 24px; height: 24px; flex-shrink: 0; object-fit: contain; }
:root[data-theme="dark"] .github-logo { filter: invert(1); }
#release-link .github-logo { filter: brightness(0) invert(1); }
:root[data-theme="dark"] #release-link .github-logo { filter: brightness(0); }
.brand-mark { width: 40px; height: 40px; padding: 9px; border-radius: 13px; color: var(--on-primary); background: var(--primary); }
.card { position: relative; background: var(--surface-bright); padding: 28px; border: 1px solid var(--outline-variant); border-radius: var(--radius-md); transition: background var(--motion), box-shadow var(--motion); }
.card-heading { display: flex; align-items: center; gap: 14px; width: 100%; min-width: 0; margin-bottom: 16px; }
.card-heading > h3 { flex: 1; min-width: 0; margin: 0; overflow-wrap: anywhere; }
.card-heading > .card-icon { flex-shrink: 0; }
.card p { color: var(--on-surface-variant); font-size: .95rem; line-height: 1.65; }
.card-icon { width: 48px; height: 48px; padding: 12px; border-radius: var(--radius-sm); background: var(--primary-container); color: var(--on-primary-container); }
.feature-grid .card { padding: 24px 20px; }
.feature-grid h3 { font-size: 1.05rem; }
.button { min-height: 48px; display: inline-flex; justify-content: center; align-items: center; gap: 10px; padding: 12px 22px; border: 1px solid transparent; border-radius: 999px; font-size: .9rem; font-weight: 650; line-height: 1.4; text-decoration: none; transition: filter var(--motion), box-shadow var(--motion), background var(--motion); }
.button:hover { filter: brightness(.95); box-shadow: var(--shadow); }
.filled { background: var(--primary); color: var(--on-primary); }
.tonal { background: var(--secondary-container); color: var(--on-secondary-container); }
.text-button { background: transparent; color: var(--primary); }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border: 1px solid var(--outline-variant); border-radius: 10px; font-size: .78rem; font-weight: 550; color: var(--on-surface-variant); }
.chip .icon { width: 17px; height: 17px; }
.icon-button { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 10px; border: 0; border-radius: 999px; background: var(--secondary-container); color: var(--on-secondary-container); }
#menu { background: transparent; color: var(--on-surface-variant); border-radius: 12px; }
#menu:hover { color: var(--on-surface); }
.control-select { min-height: 44px; max-width: 160px; padding: 8px 12px; color: var(--on-surface); border: 1px solid var(--outline-variant); border-radius: 999px; background: var(--surface-container-low); cursor: pointer; font-size: .85rem; }
/* Same capsule and circular active buttons as CRYONUM Site. */
.segmented { display: inline-flex; align-items: center; padding: 2px; border-radius: 999px; background: var(--surface-container-low); border: 1px solid var(--outline-variant); }
.segmented__btn { border: 0; background: transparent; color: var(--on-surface-variant); display: inline-grid; place-items: center; flex: 0 0 auto; width: 40px; height: 40px; padding: 0; border-radius: 50%; font-size: 1rem; line-height: 1; transition: background var(--motion), color var(--motion); }
.segmented__btn:hover { color: var(--on-surface); background: var(--secondary-container); }
.segmented__btn.is-active { background: var(--primary); color: var(--on-primary); }
.language-control .segmented__btn { font-size: .8rem; font-weight: 600; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: .75rem; letter-spacing: .1em; font-weight: 700; color: var(--primary); }
.notice { display: flex; align-items: flex-start; gap: 16px; padding: 20px 24px; margin-top: 24px; background: var(--secondary-container); color: var(--on-secondary-container); border-radius: var(--radius-sm); font-size: .9rem; }
.notice > .icon { margin-top: 3px; }
.provision-notice { margin: 0 0 24px; }
.step-card { display: block; }
.step-card .card-heading { gap: 12px; margin: 0; }
.step-card .card-heading > h3 { font-size: 1.05rem; }
.step-card .button, .step-card .chip { margin-top: 22px; }
.step-card > .step-summary { list-style: none; cursor: pointer; margin-bottom: 0; }
.step-summary::-webkit-details-marker { display: none; }
.step-summary:focus-visible { border-radius: var(--radius-sm); }
.step-card[open] > .step-summary .faq-item__caret { color: var(--primary); transform: rotate(225deg) translate(-.1rem, -.1rem); }
.step-content { min-width: 0; width: 100%; padding-top: 16px; }
.cover-guide-grid { align-items: start; margin-bottom: 32px; }
.cover-guide-section + .cover-guide-section { margin-top: 20px; }
.cover-guide-section h4 { margin: 0 0 8px; font-size: .95rem; line-height: 1.4; }
.cover-guide-section p, .cover-guide-section ol { margin: 0; color: var(--on-surface-variant); font-size: .9rem; line-height: 1.6; overflow-wrap: anywhere; }
.cover-guide-section ol { padding-left: 1.25rem; }
.cover-guide-section li + li { margin-top: 8px; }
pre { max-width: 100%; white-space: pre-wrap; overflow-wrap: anywhere; background: var(--surface-container-low); padding: 16px; border: 1px solid var(--outline-variant); border-radius: 12px; font: .75rem/1.8 var(--mono); color: var(--on-surface); margin: 22px 0 0; }
.screenshot-carousel { --screenshot-base-height: min(500px, max(100px, calc(100svh - var(--carousel-topbar-height, 134px) - 190px))); --screenshot-height: min(calc(var(--screenshot-base-height) * 1.25), max(100px, calc(100svh - var(--carousel-topbar-height, 134px) - 120px))); width: min(100%, max(240px, calc(var(--screenshot-height) / 2.05 + 16px))); margin-inline: auto; }
.screenshot-track { display: flex; position: relative; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab; }
.screenshot-track::-webkit-scrollbar { display: none; }
.screenshot-track.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.screenshot-card { flex: 0 0 100%; min-width: 0; margin: 0; text-align: center; padding: 0; display: flex; flex-direction: column; align-items: center; scroll-snap-align: start; scroll-snap-stop: always; }
.screenshot-image { display: block; width: 100%; height: var(--screenshot-height); object-fit: contain; }
.screenshot-placeholder { height: var(--screenshot-height); min-height: 0; overflow: hidden; justify-content: center; display: flex; flex-direction: column; align-items: center; padding: 20px; gap: 16px; }
.carousel-dots { display: flex; justify-content: center; align-items: center; gap: 0; margin-top: 8px; }
.carousel-dot { width: 28px; height: 44px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 999px; background: transparent; }
.carousel-dot::before { content: ""; width: .28rem; height: .28rem; border-radius: inherit; background: var(--outline); transition: width var(--motion), height var(--motion), background var(--motion); }
.carousel-dot.is-active::before { width: .875rem; height: .875rem; background: var(--primary); }
.carousel-dot:hover::before { background: var(--primary); }
.preview-toolbar { height: 8px; width: 42%; border-radius: 10px; background: var(--surface-container-high); }
.screenshot-placeholder > .icon { width: 64px; height: 64px; color: var(--primary); margin-top: 16px; stroke-width: 1; }
.preview-lines { width: 100%; display: grid; gap: 12px; }
.preview-lines i { height: 14px; border-radius: 10px; background: var(--surface-container-high); }
.preview-lines i:last-child { width: 65%; }
.screenshot-card figcaption { font-weight: 550; padding-top: 18px; }
.release-history { min-width: 0; width: 100%; margin-top: 28px; }
.release-history__toggle { list-style: none; display: flex; align-items: center; justify-content: center; width: 100%; gap: 7px; min-height: 48px; padding: 10px 0; color: var(--primary); font-size: .9rem; font-weight: 650; cursor: pointer; }
.release-history__label { text-align: center; }
.release-history__toggle::-webkit-details-marker { display: none; }
.release-history[open] .faq-item__caret { transform: rotate(225deg) translate(-.1rem, -.1rem); }
.release-history__panel { width: 100%; padding-top: 20px; }
.release-card-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.release-card-top h3 { margin: 0; color: var(--primary); }
time { color: var(--on-surface-variant); font-size: .8rem; font-family: var(--mono); }
.inline-link { display: inline-block; margin-top: 20px; font-size: .9rem; font-weight: 600; }
.faq-list { display: grid; gap: 12px; }
/* CRYONUM-style FAQ cards, using this site's light/dark color tokens. */
.faq-item { overflow: clip; background: var(--surface-bright); border: 1px solid var(--outline-variant); border-radius: var(--radius-md); box-shadow: var(--shadow); transition: border-color var(--motion), box-shadow var(--motion); }
.faq-item[open] { border-color: var(--primary); box-shadow: var(--shadow); }
.faq-item__button { list-style: none; cursor: pointer; width: 100%; background: linear-gradient(90deg, color-mix(in srgb, var(--primary-container) 35%, transparent), transparent); color: var(--on-surface); text-align: left; padding: 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-weight: 700; transition: background var(--motion); }
.faq-item__button::-webkit-details-marker { display: none; }
.faq-item__button:hover { background: linear-gradient(90deg, var(--primary-container), color-mix(in srgb, var(--primary-container) 35%, transparent)); }
.faq-item__button:focus-visible { outline-offset: -4px; border-radius: var(--radius-md); }
.faq-item__question { flex: 1; min-width: 0; padding-right: 16px; overflow-wrap: anywhere; }
.faq-item__caret { width: .75rem; height: .75rem; border-right: .14rem solid currentColor; border-bottom: .14rem solid currentColor; flex: none; transform: rotate(45deg) translateY(-.15rem); transition: transform var(--motion), color var(--motion); }
.faq-item[open] .faq-item__caret { color: var(--primary); transform: rotate(225deg) translate(-.1rem, -.1rem); }
.faq-item__panel { padding: 0 24px 24px; color: var(--on-surface-variant); line-height: 1.7; }
.download-card { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); column-gap: 64px; row-gap: 28px; padding: 32px 0; background: transparent; color: var(--on-surface); }
.download-copy { align-self: center; }
.download-card h2 { margin: 0 0 20px; }
.download-card .button { margin-top: 0; }
.download-copy > p { max-width: 600px; }
.release-status { font-size: .8rem; margin-top: 16px; color: var(--on-surface-variant); }
.release-metadata { display: grid; gap: 18px; min-width: 0; margin: 0; align-self: center; }
.release-metadata div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: baseline; gap: 12px; }
.release-metadata dt { font-size: .8rem; color: var(--on-surface-variant); }
.release-metadata dd { min-width: 0; margin: 0; font: 500 1rem var(--font); overflow-wrap: anywhere; }
.download-note { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 12px; padding-top: 2px; color: var(--on-surface-variant); font-size: .9rem; }
.download-note .icon { margin-top: 2px; color: var(--primary); }
.card.link-card { display: block; text-decoration: none; color: var(--on-surface); }
.link-card:hover { background: var(--surface-container); box-shadow: var(--shadow); }
.link-card-copy { display: flex; align-items: flex-end; gap: 16px; }
.link-card-copy > p { flex: 1; min-width: 0; }
.link-arrow { color: var(--primary); }
.material-dialog { width: min(520px, calc(100% - 32px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px))); max-height: calc(100dvh - 32px - env(safe-area-inset-top, 0px) - var(--safe-area-bottom)); padding: 32px; border: 1px solid var(--outline-variant); border-radius: 28px; background: var(--surface-container); color: var(--on-surface); box-shadow: var(--shadow); }
.material-dialog::backdrop { background: var(--scrim); backdrop-filter: blur(4px); }
.dialog-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.material-dialog h2 { font-size: 1.6rem; margin-bottom: 16px; }
.material-dialog p { font-size: .95rem; color: var(--on-surface-variant); }
.material-dialog .button { margin-top: 24px; }
.qr-preview { margin: 24px 0; text-align: center; }
.qr-image { width: 100%; max-width: 400px; margin-inline: auto; overflow: hidden; background: #fff; border-radius: 12px; }
.qr-image canvas, .qr-image img { display: block; width: 100%; height: auto; }
.qr-preview figcaption { margin-top: 12px; color: var(--on-surface-variant); font-size: .9rem; overflow-wrap: anywhere; }
#qr-status { margin-top: 16px; }
.qr-instructions .button { margin-top: 12px; }
/* User-supplied app screenshot inside the decorative phone frame. */
.orb { position: absolute; border-radius: 50%; z-index: -1; }
.orb-one { width: 450px; height: 450px; background: var(--primary-container); opacity: .65; }
.orb-two { width: 200px; height: 200px; right: 0; top: 20px; background: var(--tertiary-container); opacity: .8; }
.phone { width: 280px; position: relative; border: 8px solid var(--phone-frame); border-radius: 44px; background: var(--phone-surface); box-shadow: var(--phone-shadow), inset 0 0 0 1px var(--outline-variant); transform: rotate(5deg); overflow: hidden; }
.screenshot-card .phone-upright { width: min(100%, calc(var(--screenshot-height) / 2.05 + 16px)); height: calc(var(--screenshot-height) + 16px); flex-shrink: 0; transform: none; box-shadow: inset 0 0 0 1px var(--outline-variant); }
/* Opaque screen backing, independent of the site theme, as in CRYONUM's viewer.
   Match each JPG's background so contain sizing leaves no contrasting bands. */
.phone[data-screen] { background: var(--screen-background); box-shadow: var(--phone-shadow); }
.phone[data-screen="main"] { --screen-background: #121318; }
.phone[data-screen="calculator"] { --screen-background: #171719; }
.phone[data-screen="calendar"] { --screen-background: #141118; }
.phone[data-screen="notes"] { --screen-background: #141118; }
.screenshot-card .phone-upright[data-screen] { box-shadow: none; }
.phone-screen { display: block; width: 100%; height: auto; }
.visual-caption { position: absolute; bottom: -14px; font-size: .7rem; color: var(--on-surface-variant); }

.cover-feature-logo { padding: 0; background: transparent; border-radius: 0; object-fit: contain; }

/* ADB instructions and accessible command copy controls. */
.adb-instructions, .qr-instructions { width: 100%; margin: 20px 0 0; padding-left: 22px; display: grid; gap: 18px; color: var(--on-surface-variant); font-size: .95rem; }
.adb-instructions li, .qr-instructions li { min-width: 0; padding-left: 4px; }
.adb-instructions li::marker, .qr-instructions li::marker { color: var(--primary); font-weight: 650; }
.adb-instructions li > p, .qr-instructions li > p { margin-top: 8px; }
.command-block { width: calc(100% + 26px); margin: 12px 0 0 -26px; border: 1px solid var(--outline-variant); border-radius: 12px; background: var(--surface-container-low); }
.command-block pre { min-width: 0; max-width: none; margin: 0; padding: 0 12px 14px; border: 0; background: transparent; white-space: normal; overflow-wrap: normal; line-height: 1.75; }
.command-block code { user-select: text; overflow-wrap: anywhere; }
.command-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 6px 4px 12px; }
.command-label { font: 500 .7rem var(--mono); color: var(--on-surface-variant); }
.command-token { white-space: nowrap; }
.command-copy { border-radius: 10px; }
.command-copy:disabled { cursor: wait; opacity: .6; }
.step-card .adb-help { margin-top: 16px; font-size: .8rem; }
.step-card .copy-status { min-height: 1.65em; margin-top: 12px; font-size: .85rem; color: var(--primary); }
