.home-share-widget,
.home-share-widget * {
    box-sizing: border-box;
}

.home-share-widget {
    position: fixed;
    right: 18px;
    bottom: 260px;
    z-index: 10000;
    font-family: "Courier New", monospace;
}

.home-share-launcher {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1px;
    width: 56px;
    height: 56px;
    padding: 0;
    border: 2px solid #00ee66;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #1b9a57, #07542b);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .6), 0 0 12px rgba(0, 255, 102, .3);
    color: #fff;
    cursor: pointer;
    font: 700 9px "Courier New", monospace;
}

.home-share-launcher svg {
    display: block;
    width: 23px;
    height: 23px;
    fill: currentColor;
}

.home-share-launcher:hover {
    background: radial-gradient(circle at 35% 30%, #25bb70, #076b38);
}

.home-share-panel {
    position: fixed;
    right: 88px;
    bottom: 12px;
    width: min(328px, calc(100vw - 105px));
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
    padding: 16px;
    border: 1px solid #00ff66;
    border-radius: 14px;
    background: #07100d;
    color: #f4f8f5;
    box-shadow: 0 14px 42px rgba(0, 0, 0, .8);
}

.home-share-panel[hidden] {
    display: none;
}

.home-share-title {
    display: block;
    color: #00ff66;
    font-size: 15px;
    letter-spacing: 1px;
}

.home-share-description,
.home-share-hint,
.home-share-status {
    color: #b7c8bd;
    font-size: 11px;
    line-height: 1.5;
}

.home-share-description {
    margin: 4px 22px 10px 0;
}

.home-share-close {
    position: absolute;
    right: 10px;
    top: 9px;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font-size: 25px;
}

.home-share-choice,
.home-share-actions,
.home-share-networks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
}

.home-share-choice button,
.home-share-actions button,
.home-share-actions a,
.home-share-networks a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 6px;
    border: 1px solid #31634a;
    border-radius: 6px;
    background: #10231a;
    color: #f4f8f5;
    cursor: pointer;
    font: 600 12px "Courier New", monospace;
    text-decoration: none;
    text-align: center;
}

.home-share-choice button[aria-pressed="true"],
.home-share-actions button:first-child {
    border-color: #00ff66;
    background: #135532;
}

.home-share-qr-link {
    display: block;
    width: 166px;
    height: 166px;
    margin: 12px auto 6px;
    padding: 6px;
    border-radius: 7px;
    background: #fff;
}

.home-share-qr-link img {
    display: block;
    width: 100%;
    height: 100%;
    image-rendering: pixelated;
}

.home-share-hint {
    margin: 0 0 12px;
    text-align: center;
}

.home-share-actions a:last-child {
    grid-column: 1 / -1;
}

.home-share-networks {
    margin-top: 12px;
}

.home-share-choice button:hover,
.home-share-actions button:hover,
.home-share-actions a:hover,
.home-share-networks a:hover {
    background: #1e5637;
}

.home-share-widget :focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.home-share-status {
    min-height: 16px;
    margin: 9px 0 0;
}

@media (max-width: 768px) {
    .home-share-widget { right: 12px; bottom: 222px; }
    .home-share-launcher { width: 48px; height: 48px; font-size: 8px; }
    .home-share-launcher svg { width: 19px; height: 19px; }
    .home-share-panel { right: 76px; width: min(328px, calc(100vw - 92px)); }
}

@media (max-width: 480px) {
    .home-share-widget { right: 8px; bottom: 199px; }
    .home-share-launcher { width: 42px; height: 42px; font-size: 7px; }
    .home-share-launcher svg { width: 17px; height: 17px; }
    .home-share-panel { right: 64px; width: min(328px, calc(100vw - 76px)); }
}