.linker-project-shell,
.linker-project-shell * {
    box-sizing: border-box;
}

.linker-project-shell {
    --linker-project-ink: #14261f;
    --linker-project-green: #116c4e;
    position: fixed;
    z-index: 9991;
    right: clamp(12px, 2vw, 28px);
    bottom: clamp(78px, 2vw + 66px, 96px);
    width: min(440px, calc(100vw - 24px));
    padding: 16px;
    border: 1px solid rgba(20, 38, 31, .14);
    border-radius: 18px;
    background: rgba(255, 255, 255, .97);
    color: var(--linker-project-ink);
    font-family: Inter, "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    box-shadow: 0 16px 48px rgba(15, 38, 29, .18);
    backdrop-filter: blur(12px);
}

.linker-project-shell__content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3px 12px;
}

.linker-project-shell__eyebrow {
    grid-column: 1 / -1;
    color: var(--linker-project-green);
    font-size: .72rem;
    font-weight: 750;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.linker-project-shell__title {
    min-width: 0;
    overflow: hidden;
    font-size: 1rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.linker-project-shell__phase {
    align-self: center;
    color: #5f6e68;
    font-size: .78rem;
}

.linker-project-shell__next {
    grid-column: 1 / -1;
    max-height: 0;
    margin: 0;
    overflow: hidden;
    color: #44524d;
    font-size: .88rem;
    line-height: 1.45;
    opacity: 0;
    transition: max-height .2s ease, margin .2s ease, opacity .2s ease;
}

.linker-project-shell.is-expanded .linker-project-shell__next,
.linker-project-shell[data-project-expanded="true"] .linker-project-shell__next {
    max-height: 8rem;
    margin-top: 7px;
    opacity: 1;
}

.linker-project-shell__support {
    color: #64716c;
}

.linker-project-shell__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
}

.linker-project-shell__state {
    border: 0;
    background: transparent;
    color: #687670;
    font: inherit;
    font-size: .76rem;
}

button.linker-project-shell__state.is-retry {
    cursor: pointer;
    color: #9b3b24;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.linker-project-shell__open {
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--linker-project-green);
    cursor: pointer;
    font: inherit;
    font-size: .84rem;
    font-weight: 700;
    text-decoration: none;
}

.linker-project-shell__open:hover,
.linker-project-shell__open:focus-visible {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.linker-project-shell__close {
    position: absolute;
    top: 8px;
    right: 10px;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #7d8a84;
    cursor: pointer;
    font: inherit;
    font-size: 1rem;
    line-height: 1;
}

.linker-project-shell__close:hover,
.linker-project-shell__close:focus-visible {
    background: rgba(20, 38, 31, .08);
    color: #14261f;
}

/* Docked: a quiet pill that never parks over content. Hover/focus expands. */
.linker-project-shell.is-docked {
    width: auto;
    max-width: min(320px, calc(100vw - 24px));
    padding: 9px 38px 9px 14px;
    border-radius: 999px;
}

.linker-project-shell.is-docked .linker-project-shell__eyebrow,
.linker-project-shell.is-docked .linker-project-shell__phase,
.linker-project-shell.is-docked .linker-project-shell__next,
.linker-project-shell.is-docked .linker-project-shell__actions {
    display: none;
}

.linker-project-shell.is-docked .linker-project-shell__title {
    font-size: .84rem;
}

.linker-project-shell.is-docked:hover,
.linker-project-shell.is-docked:focus-within {
    width: min(440px, calc(100vw - 24px));
    padding: 16px;
    border-radius: 18px;
}

.linker-project-shell.is-docked:hover .linker-project-shell__eyebrow,
.linker-project-shell.is-docked:focus-within .linker-project-shell__eyebrow,
.linker-project-shell.is-docked:hover .linker-project-shell__phase,
.linker-project-shell.is-docked:focus-within .linker-project-shell__phase,
.linker-project-shell.is-docked:hover .linker-project-shell__actions,
.linker-project-shell.is-docked:focus-within .linker-project-shell__actions {
    display: flex;
}

.linker-project-shell.is-docked:hover .linker-project-shell__eyebrow,
.linker-project-shell.is-docked:focus-within .linker-project-shell__eyebrow {
    display: block;
}

@media (max-width: 640px) {
    .linker-project-shell {
        right: 10px;
        bottom: 74px;
        width: calc(100vw - 20px);
        padding: 14px;
        border-radius: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .linker-project-shell__next {
        transition: none;
    }
}

.linker-project-product {
    display: grid;
    gap: 8px;
    margin: 14px 0;
    padding: 14px;
    border: 1px solid rgba(20, 38, 31, .14);
    border-radius: 14px;
    background: #f7faf8;
}

.linker-project-product__controls {
    display: grid;
    grid-template-columns: minmax(92px, .35fr) 1fr;
    gap: 7px 10px;
    align-items: end;
}

.linker-project-product__controls label {
    grid-column: 1;
    color: #5f6e68;
    font-size: .76rem;
    font-weight: 700;
}

.linker-project-product__controls input {
    grid-column: 1;
    min-height: 44px;
    width: 100%;
    border: 1px solid rgba(20, 38, 31, .22);
    border-radius: 9px;
    background: #fff;
}

.linker-project-product__controls button,
.linker-project-product__model-check {
    grid-column: 2;
    min-height: 44px;
    border: 1px solid #116c4e;
    border-radius: 9px;
    padding: 9px 16px;
    background: #fff;
    color: #116c4e;
    cursor: pointer;
    font: inherit;
    font-weight: 750;
}

.linker-project-product__model-check {
    grid-column: auto;
}

.linker-project-product__feedback {
    min-height: 1.2em;
    margin: 0;
    color: #466157;
    font-size: .82rem;
}

.linker-project-product__open {
    justify-self: start;
    border: 0;
    padding: 0;
    background: transparent;
    color: #116c4e;
    cursor: pointer;
    font: inherit;
    font-weight: 750;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.linker-project-solution__group + .linker-project-solution__group {
    margin-top: 16px;
}

.linker-project-solution__group h4 {
    margin: 0 0 8px;
    color: #123a5a;
    font-size: 13px;
}

.linker-project-solution__group ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.linker-project-solution__group li {
    display: grid;
    gap: 3px;
    padding: 9px 0;
    border-top: 1px solid #dce6ea;
}

.linker-project-solution__group li span {
    color: #5f6f78;
    font-size: 12px;
    line-height: 1.45;
}

.linker-project-price {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.linker-review {
    width: min(640px, calc(100vw - 32px));
    max-height: min(760px, calc(100vh - 32px));
    overflow: auto;
    margin: auto;
    border: 0;
    border-radius: 22px;
    padding: 0;
    background: #fff;
    color: #17231f;
    font-family: Inter, "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    box-shadow: 0 28px 80px rgba(9, 35, 27, .28);
}

.linker-review:not([open]):not(.is-open) {
    display: none;
}

.linker-review.is-open {
    position: fixed;
    z-index: 100000;
    inset: 16px;
    overflow: auto;
}

.linker-review::backdrop {
    background: rgba(8, 24, 20, .56);
    backdrop-filter: blur(4px);
}

.linker-review__panel {
    padding: clamp(24px, 4vw, 38px);
}

.linker-review__title {
    margin: 0;
    color: #0f2e25;
    font-size: clamp(1.45rem, 3vw, 2rem);
    line-height: 1.15;
    letter-spacing: -.025em;
}

.linker-review__intro {
    margin: 12px 0 0;
    color: #425950;
    font-size: .98rem;
    line-height: 1.6;
}

.linker-review__privacy {
    margin: 9px 0 0;
    color: #64766f;
    font-size: .82rem;
    line-height: 1.5;
}

.linker-review__form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
    margin-top: 26px;
}

.linker-review__field {
    display: grid;
    gap: 7px;
    color: #314840;
    font-size: .8rem;
    font-weight: 720;
}

.linker-review__field:nth-of-type(n + 5),
.linker-review__consent,
.linker-review__status,
.linker-review__actions {
    grid-column: 1 / -1;
}

.linker-review__field input,
.linker-review__field select,
.linker-review__field textarea {
    min-height: 48px;
    width: 100%;
    border: 1px solid #cbd9d4;
    border-radius: 11px;
    padding: 10px 12px;
    background: #fbfdfc;
    color: #17231f;
    font: inherit;
    font-size: .95rem;
}

.linker-review__field textarea {
    min-height: 92px;
    resize: vertical;
}

.linker-review__field input:focus,
.linker-review__field select:focus,
.linker-review__field textarea:focus {
    outline: 3px solid rgba(26, 168, 126, .18);
    border-color: #138763;
}

.linker-review__consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid #dbe7e2;
    border-radius: 10px;
    background: #f6faf8;
    color: #33473f;
    font-size: .9rem;
    line-height: 1.5;
    cursor: pointer;
}

.linker-review__consent:hover {
    border-color: #b9d6cc;
}

.linker-review__consent input {
    flex: 0 0 auto;
    width: 19px;
    height: 19px;
    margin: 2px 0 0;
    accent-color: #116c4e;
    cursor: pointer;
}

.linker-review__status {
    min-height: 1.4em;
    margin: 0;
    color: #116c4e;
    font-size: .86rem;
    font-weight: 700;
}

.linker-review__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.linker-review__actions button {
    min-height: 46px;
    border-radius: 10px;
    padding: 10px 17px;
    cursor: pointer;
    font: inherit;
    font-weight: 760;
}

.linker-review__cancel {
    border: 1px solid #cbd9d4;
    background: #fff;
    color: #3d514a;
}

.linker-review__submit {
    border: 1px solid #116c4e;
    background: #116c4e;
    color: #fff;
}

.linker-review__submit:disabled {
    cursor: wait;
    opacity: .7;
}

@media (max-width: 620px) {
    .linker-review {
        width: calc(100vw - 20px);
        max-height: calc(100vh - 20px);
        border-radius: 17px;
    }

    .linker-review.is-open {
        inset: 10px;
    }

    .linker-review__panel {
        padding: 22px 18px;
    }

    .linker-review__form {
        grid-template-columns: 1fr;
    }

    .linker-review__field,
    .linker-review__consent,
    .linker-review__status,
    .linker-review__actions {
        grid-column: 1;
    }

    .linker-review__actions {
        flex-direction: column-reverse;
    }

    .linker-review__actions button {
        width: 100%;
    }
}
