/* Contextual Share panel — sibling to private Project Note */

.share-control {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: calc(env(safe-area-inset-top, 0px) + 3.5rem) 1rem 2rem;
    box-sizing: border-box;
    background: rgba(26, 24, 20, 0.35);
}

.share-control[hidden] {
    display: none !important;
}

.share-control-panel {
    width: min(100%, 26rem);
    max-height: min(85vh, 32rem);
    overflow: auto;
    padding: 1.25rem 1.35rem 1.5rem;
    border-radius: 0.5rem;
    background: #faf8f4;
    color: #1a1a1a;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.18);
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 0.95rem;
    line-height: 1.45;
    position: relative;
}

.share-control-close {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    width: 2rem;
    height: 2rem;
    border: none;
    background: none;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    color: #5c554a;
}

.share-control-heading {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.share-control-help {
    margin: 0 0 1rem;
    color: #5c554a;
    font-size: 0.88rem;
}

.share-control-preview {
    margin: 0 0 1rem;
    padding: 0.85rem 1rem;
    border-radius: 0.35rem;
    background: rgba(255, 255, 255, 0.7);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.92rem;
    line-height: 1.55;
    max-height: 10rem;
    overflow: hidden;
}

.share-control-action {
    display: block;
    width: 100%;
    margin: 0.35rem 0 0;
    padding: 0.65rem 1rem;
    border: 1px solid rgba(17, 17, 17, 0.15);
    border-radius: 0.35rem;
    background: #fff;
    font-size: 0.95rem;
    cursor: pointer;
}

.share-control-action:first-of-type {
    margin-top: 0.5rem;
}

.share-control-action[hidden] {
    display: none !important;
}

.share-control-note {
    margin: 0.75rem 0 0;
    font-size: 0.82rem;
    color: #6b6458;
    min-height: 1.2em;
}
