.semnal-app-link {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .5rem;
    color: inherit;
    font: 700 .8rem/1.25 var(--sans, system-ui, sans-serif);
    text-decoration: none;
}

.semnal-app-link:hover { text-decoration: underline; }
.masthead-tools .semnal-app-link { color: #f3bd55; white-space: nowrap; }
.masthead-tools .semnal-app-link:hover { text-decoration: none; }
.semnal-app-download-icon {
    position: relative;
    flex: 0 0 18px;
    height: 18px;
    background:
        linear-gradient(currentColor, currentColor) center 2px / 1.5px 9px no-repeat,
        linear-gradient(currentColor, currentColor) center 15px / 14px 1.5px no-repeat;
}

.semnal-app-download-icon::after {
    position: absolute;
    top: 6px;
    left: 6px;
    width: 6px;
    height: 6px;
    border: solid currentColor;
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg);
    content: '';
}

@media (max-width: 350px) {
    .masthead:has(.semnal-app-link:not([hidden])) { gap: 8px; }
    .masthead:has(.semnal-app-link:not([hidden])) .brand-name { font-size: clamp(1.3rem, 6.7vw, 1.45rem); }
}

@media (display-mode: standalone) {
    .masthead-tools .semnal-app-link, .semnal-app-link { display: none; }
}

.semnal-app-install {
    color-scheme: light;
    background: #f8f6f0;
    color: #14273a;
    font: 1rem/1.6 system-ui, sans-serif;
    text-size-adjust: 100%;
}

.semnal-app-install body { margin: 0; }

.semnal-app-wrap {
    box-sizing: border-box;
    width: min(100% - 2rem, 55rem);
    margin-inline: auto;
}

.semnal-app-topbar { border-bottom: 3px solid #f3bd55; background: #14273a; }
.semnal-app-topbar .semnal-app-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    column-gap: 1rem;
    padding-block: .7rem;
}

.semnal-app-topbar a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: #fff;
    text-decoration: none;
}

.semnal-app-topbar a:hover { text-decoration: underline; }
.semnal-app-wordmark { font: 700 1.55rem/1 Georgia, serif; }
.semnal-app-wordmark span { color: #f3bd55; }
.semnal-app-read { gap: .4rem; font-size: .9rem; font-weight: 650; }

.semnal-app-content { padding-block: clamp(2.5rem, 7vw, 5rem); }
.semnal-app-intro {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: clamp(1.2rem, 4vw, 2rem);
    margin-bottom: 2rem;
}

.semnal-app-icon {
    box-sizing: border-box;
    width: clamp(4.5rem, 13vw, 6rem);
    height: auto;
    border: 1px solid #ddd7c9;
    border-radius: 22%;
    background: #f8f6f0;
    box-shadow: 0 .45rem 1.25rem #14273a13;
}

.semnal-app-intro h1 {
    margin: 0 0 .55rem;
    color: #14273a;
    font: 700 clamp(2.05rem, 6vw, 3.55rem)/1.07 Georgia, serif;
    letter-spacing: -.035em;
    text-wrap: balance;
}

.semnal-app-intro p { margin: 0; color: #465463; }

.semnal-app-button {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    margin-bottom: 1.5rem;
    padding: .65rem 1rem;
    border: 1px solid #14273a;
    border-radius: .35rem;
    background: #14273a;
    color: #fff;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.semnal-app-device .semnal-app-button { margin-bottom: 1rem; }
.semnal-app-button:hover { background: #233d56; }
.semnal-app-install :focus-visible { outline: 3px solid #b16a15; outline-offset: 3px; }
.semnal-app-topbar :focus-visible { outline-color: #f3bd55; }
.semnal-app-status,
.semnal-app-browser-note {
    margin: 0 0 1.25rem;
    padding: .75rem 1rem;
    border-left: 3px solid #b16a15;
    background: #f1e9d8;
}

.semnal-app-status:empty { display: none; }

.semnal-app-devices {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
    gap: 1rem;
}

.semnal-app-device {
    padding: 1.1rem 1.25rem;
    border: 1px solid #ded9ce;
    border-top: 2px solid #14273a;
    background: #fffdf8;
}

.semnal-app-device h2 { margin: 0 0 .65rem; font: 700 1.5rem/1.2 Georgia, serif; }
.semnal-app-device ol { margin: 0; padding-inline-start: 1.5rem; }
.semnal-app-device li + li { margin-top: .5rem; }
.semnal-app-device li::marker { color: #14273a; font-weight: 700; }
.semnal-app-install [hidden], .semnal-app-link[hidden] { display: none; }

@media (max-width: 29rem) {
    .semnal-app-intro { grid-template-columns: 1fr; }
    .semnal-app-intro h1 { text-wrap: initial; }
}
