/* Tooltip buttons */
.share-btn,
.view-btn {
    cursor: pointer;
    padding: 5px 10px;
    background-color: #333;
    color: #fff;
    font-size: 14px;
    border-radius: 5px;
    margin-left: 5px;
}

/* =========================================================================
   Share dialog

   Replaces a native prompt() + alert() pair. Sharing a compliance document
   outside the company deserves to say what is being sent and to whom, check
   the address, and report the result in place — none of which a browser
   dialog can do.
   ====================================================================== */
.fse-share {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(8, 32, 43, 0.55);
    animation: fse-share-fade 160ms ease-out both;
}

.fse-share__box {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 14px;
    padding: 24px 24px 20px;
    box-shadow: 0 24px 60px rgba(8, 32, 43, 0.28);
    animation: fse-share-rise 200ms cubic-bezier(.22,.68,.36,1) both;
}

.fse-share__title {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 700;
    color: #12455a;
    line-height: 1.25;
}

.fse-share__file {
    margin: 0 0 18px;
    font-size: 13px;
    color: #6b8794;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.fse-share__label {
    display: block;
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 600;
    color: #12586e;
}

.fse-share__input {
    width: 100%;
    padding: 11px 13px;
    font-size: 14px;
    border: 1px solid #cfdce3;
    border-radius: 9px;
    outline: none;
    transition: border-color 140ms ease, box-shadow 140ms ease;
}

.fse-share__input:focus {
    border-color: #14a6b5;
    box-shadow: 0 0 0 3px rgba(20, 166, 181, 0.16);
}

.fse-share__input.is-invalid {
    border-color: #dc6a55;
    box-shadow: 0 0 0 3px rgba(220, 106, 85, 0.14);
}

.fse-share__msg { margin: 8px 0 0; font-size: 12.5px; line-height: 1.45; }
.fse-share__msg--err { color: #b0452f; }

.fse-share__hint {
    margin: 10px 0 0;
    font-size: 12px;
    color: #8aa2ae;
    line-height: 1.5;
}

.fse-share__foot {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.fse-share__btn {
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 140ms ease, border-color 140ms ease, color 140ms ease, transform 80ms ease;
}

.fse-share__btn--ghost {
    background: #fff;
    color: #5d7683;
    border-color: #d7e3e9;
}

.fse-share__btn--ghost:hover { background: #f3f8fa; color: #12586e; }

.fse-share__btn--go { background: #0f607c; color: #fff; }
.fse-share__btn--go:hover { background: #12586e; }
.fse-share__btn--go:disabled { opacity: 0.6; cursor: default; }
.fse-share__btn:active { transform: translateY(1px); }

.fse-share__btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(20, 166, 181, 0.25);
}

@keyframes fse-share-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes fse-share-rise {
    from { opacity: 0; transform: translateY(10px) scale(0.985); }
    to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .fse-share, .fse-share__box { animation: none !important; }
    .fse-share__btn:active { transform: none !important; }
}

/* Outcome notices — replaced alert() calls. They report, they do not ask. */
.fse-notice {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    z-index: 100001;
    max-width: min(460px, calc(100vw - 32px));
    padding: 12px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    box-shadow: 0 10px 30px rgba(8, 32, 43, 0.20);
    animation: fse-notice-in 200ms cubic-bezier(.22,.68,.36,1) both;
}

.fse-notice--ok  { background: #eef9fb; color: #0f4c5c; border: 1px solid #a8d9e4; }
.fse-notice--err { background: #fdf1ee; color: #a5432c; border: 1px solid #f0c0b3; }

@keyframes fse-notice-in {
    from { opacity: 0; transform: translateX(-50%) translateY(8px); }
    to   { opacity: 1; transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .fse-notice { animation: none !important; }
}
