.offers-page,
.offer-details-page {
    max-width: 1500px;
    padding: 2.75rem 2rem 3rem !important;
    color: #172033;
}

.offers-heading {
    margin-bottom: 2rem;
}

.offers-heading h1 {
    margin: 0;
    color: #111827;
    font-size: clamp(2rem, 3vw, 2.65rem);
    font-weight: 700;
    letter-spacing: -0.045em;
}

.offers-heading p {
    margin: 0.35rem 0 0;
    color: #53637d;
    font-size: 1rem;
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.offer-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid #dce4ef;
    border-radius: 1rem;
    background: #fff;
}

.offer-card__accent {
    height: 0.28rem;
    background: #343d46;
}

.offer-card__top {
    padding: 1.25rem 1.35rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.offer-card__icon,
.offers-empty__icon,
.offer-response-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #53637d;
    background: #eef2f7;
}

.offer-card__icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
}

.offer-card__icon svg {
    width: 1.15rem;
    height: 1.15rem;
}

.offer-status {
    padding: 0.38rem 0.7rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.offer-status > span {
    width: 0.38rem;
    height: 0.38rem;
    border-radius: 999px;
    background: currentColor;
}

.offer-status--pending {
    color: #b45309;
    background: #fef3c7;
}

.offer-status--accepted {
    color: #15803d;
    background: #dcfce7;
}

.offer-status--muted {
    color: #64748b;
    background: #eef2f7;
}

.offer-card__body {
    padding: 1.15rem 1.35rem 1.35rem;
}

.offer-revised {
    display: inline-block;
    margin-bottom: 0.45rem;
    color: #7c3aed;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.offer-card__body h2 {
    margin: 0;
    color: #111827;
    font-size: 1.3rem;
    font-weight: 700;
}

.offer-card__body > p {
    margin: 0.35rem 0 1.35rem;
    color: #64748b;
    font-size: 0.9rem;
}

.offer-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.offer-meta > div {
    padding: 0.8rem;
    border-radius: 0.75rem;
    background: #f4f7fa;
}

.offer-meta span,
.offer-meta strong {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.offer-meta span {
    margin-bottom: 0.25rem;
    color: #8da0bf;
    font-size: 0.7rem;
}

.offer-meta span svg {
    width: 0.75rem;
    height: 0.75rem;
}

.offer-meta strong {
    color: #263246;
    font-size: 0.86rem;
    font-weight: 700;
}

.offer-card__footer {
    margin-top: auto;
    padding: 1rem 1.35rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid #e4eaf2;
    background: #fafbfd;
}

.offer-card__footer > span {
    color: #64748b;
    font-size: 0.8rem;
}

.offer-btn {
    min-height: 2.65rem;
    padding: 0.65rem 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border: 1px solid transparent;
    border-radius: 0.62rem;
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.offer-btn svg {
    width: 0.9rem;
    height: 0.9rem;
}

.offer-btn--primary {
    color: #fff;
    background: #202a3c;
}

.offer-btn--primary:hover {
    color: #fff;
    background: #111827;
}

.offer-btn--secondary {
    color: #334155;
    border-color: #d5deea;
    background: #fff;
}

.offer-btn--secondary:hover {
    color: #111827;
    border-color: #aebbcf;
}

.offer-btn--success {
    color: #fff;
    background: #168246;
}

.offer-btn--success:hover {
    color: #fff;
    background: #116b39;
}

.offer-btn--danger {
    color: #b42318;
    border-color: #f1c3bf;
    background: #fff5f4;
}

.offer-btn--danger:hover {
    color: #912018;
    background: #fee4e2;
}

.offer-btn--quiet {
    color: #64748b;
    border-color: #d5deea;
    background: transparent;
}

.offer-btn--quiet:hover {
    color: #334155;
    background: #f3f6fa;
}

.offers-empty {
    padding: 4.5rem 1.5rem;
    text-align: center;
    border: 1px solid #dce4ef;
    border-radius: 1rem;
    background: #fff;
}

.offers-empty__icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    border-radius: 1rem;
}

.offers-empty__icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

.offers-empty h2 {
    margin: 0 0 0.45rem;
    color: #111827;
    font-size: 1.2rem;
}

.offers-empty p {
    margin: 0 auto 1.25rem;
    color: #64748b;
}

.offer-details-page {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: start;
    gap: 1.25rem;
}

.offer-details-nav {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.offer-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #475569;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
}

.offer-back-link:hover {
    color: #111827;
}

.offer-back-link svg {
    width: 0.95rem;
    height: 0.95rem;
}

.offer-document,
.offer-response-card {
    border: 1px solid #dce4ef;
    border-radius: 1rem;
    background: #fff;
}

.offer-document {
    overflow: hidden;
}

.offer-document__header {
    padding: 1.5rem 1.75rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    border-bottom: 1px solid #dce4ef;
}

.offer-document__brand img {
    display: block;
    max-width: 180px;
    height: 52px;
    object-fit: contain;
    object-position: left center;
}

.offer-document__identity {
    display: grid;
    justify-items: end;
    text-align: right;
}

.offer-document__identity span {
    color: #8da0bf;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.offer-document__identity strong {
    margin-top: 0.2rem;
    color: #263246;
    font-size: 0.9rem;
}

.offer-document__identity time {
    margin-top: 0.15rem;
    color: #64748b;
    font-size: 0.8rem;
}

.offer-document__identity b {
    margin-top: 0.45rem;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    color: #7c3aed;
    background: #f3e8ff;
    font-size: 0.68rem;
    text-transform: uppercase;
}

.offer-document__intro {
    padding: 1.5rem 1.75rem;
}

.offer-document__intro p {
    margin: 0 0 0.25rem;
    color: #8da0bf;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.offer-document__intro h1 {
    margin: 0 0 0.35rem;
    color: #111827;
    font-size: 1.45rem;
}

.offer-document__intro span {
    display: block;
    color: #64748b;
    font-size: 0.84rem;
}

.offer-role-summary {
    margin: 0 1.75rem;
    padding: 1rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    border-radius: 0.85rem;
    background: #f3f6fa;
}

.offer-role-summary span,
.offer-role-summary strong {
    display: block;
}

.offer-role-summary span {
    margin-bottom: 0.2rem;
    color: #8da0bf;
    font-size: 0.7rem;
}

.offer-role-summary strong {
    color: #263246;
    font-size: 0.86rem;
    overflow-wrap: anywhere;
}

.offer-document__content {
    padding: 1.65rem 1.75rem 2rem;
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.7;
}

.offer-greeting {
    color: #263246;
    font-weight: 700;
}

.offer-letter-section {
    padding: 1.15rem 0;
    border-bottom: 1px solid #edf1f6;
}

.offer-letter-section h2 {
    margin: 0 0 0.55rem;
    color: #263246;
    font-size: 1rem;
    font-weight: 700;
}

.offer-letter-copy > :last-child {
    margin-bottom: 0;
}

.offer-section-lead {
    margin-top: 0;
}

.offer-salary-table {
    overflow: hidden;
    border: 1px solid #dce4ef;
    border-radius: 0.75rem;
}

.offer-salary-row {
    padding: 0.75rem 0.9rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid #e8edf4;
}

.offer-salary-row:first-child {
    border-top: 0;
}

.offer-salary-row--total {
    color: #111827;
    background: #f3f6fa;
    font-weight: 700;
}

.offer-signoff {
    margin-top: 1.5rem;
}

.offer-signoff span,
.offer-signoff strong {
    display: block;
}

.offer-signoff strong {
    color: #263246;
}

.offer-response-card {
    position: sticky;
    top: 5rem;
    padding: 1.35rem;
}

.offer-response-card__heading {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #e4eaf2;
}

.offer-response-card__icon {
    width: 2.7rem;
    height: 2.7rem;
    flex: 0 0 auto;
    border-radius: 0.75rem;
}

.offer-response-card__icon svg {
    width: 1.1rem;
    height: 1.1rem;
}

.offer-response-card__heading p {
    margin: 0;
    color: #b45309;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
}

.offer-response-card__heading h2 {
    margin: 0.15rem 0 0;
    color: #111827;
    font-size: 1.05rem;
}

.offer-response-form,
.offer-form-field {
    display: grid;
    gap: 0.5rem;
}

.offer-response-form {
    gap: 1rem;
}

.offer-form-field label {
    margin: 0 !important;
    color: #334155;
    font-size: 0.82rem;
    font-weight: 700;
}

.offer-form-field input,
.offer-form-field textarea {
    width: 100%;
    border: 1px solid #d5deea;
    border-radius: 0.65rem;
    background: #fff;
    color: #172033;
    font-size: 0.86rem;
}

.offer-form-field input {
    min-height: 2.8rem;
    padding: 0.65rem 0.75rem;
}

.offer-form-field textarea {
    padding: 0.75rem;
    resize: vertical;
}

.offer-form-field input:focus,
.offer-form-field textarea:focus {
    outline: none;
    border-color: #7085a3;
    box-shadow: 0 0 0 3px rgba(112, 133, 163, 0.15);
}

.offer-form-field small {
    color: #64748b;
    font-size: 0.72rem;
}

.offer-response-actions {
    display: grid;
    gap: 0.6rem;
}

.offer-response-summary {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.offer-response-summary > span {
    width: 2.6rem;
    height: 2.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 999px;
}

.offer-response-summary > span svg {
    width: 1.15rem;
    height: 1.15rem;
}

.offer-response-summary--accepted > span {
    color: #15803d;
    background: #dcfce7;
}

.offer-response-summary--muted > span {
    color: #64748b;
    background: #eef2f7;
}

.offer-response-summary h2 {
    margin: 0;
    color: #111827;
    font-size: 1.05rem;
}

.offer-response-summary p {
    margin: 0.3rem 0 0;
    color: #64748b;
    font-size: 0.84rem;
    line-height: 1.55;
}

.offer-response-summary small {
    display: block;
    margin-top: 0.65rem;
    color: #64748b;
    line-height: 1.5;
}

.offer-response-summary small strong {
    color: #334155;
}

.offer-btn:focus-visible,
.offer-back-link:focus-visible {
    outline: 3px solid rgba(59, 130, 246, 0.3);
    outline-offset: 2px;
}

@media (max-width: 1099.98px) {
    .offer-details-page {
        grid-template-columns: 1fr;
    }

    .offer-response-card {
        position: static;
    }
}

@media (max-width: 767.98px) {
    .offers-grid {
        grid-template-columns: 1fr;
    }

    .offer-role-summary {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .offers-page,
    .offer-details-page {
        padding: 1.5rem 0.85rem 2rem !important;
    }

    .offer-card__footer,
    .offer-document__header,
    .offer-details-nav {
        align-items: flex-start;
        flex-direction: column;
    }

    .offer-card__footer .offer-btn,
    .offer-details-nav .offer-btn {
        width: 100%;
    }

    .offer-meta {
        grid-template-columns: 1fr;
    }

    .offer-document__identity {
        justify-items: start;
        text-align: left;
    }

    .offer-document__intro,
    .offer-document__content,
    .offer-document__header {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .offer-role-summary {
        margin-left: 1rem;
        margin-right: 1rem;
    }
}

@media print {
    body.dashboard-shell-mode .sidebar-panel,
    body.dashboard-shell-mode .topbar-shell,
    body.dashboard-shell-mode .main-footer,
    .offer-details-nav,
    .offer-response-card {
        display: none !important;
    }

    body.dashboard-shell-mode .content-wrapper {
        margin: 0 !important;
        background: #fff !important;
    }

    .offer-details-page {
        display: block;
        max-width: none;
        padding: 0 !important;
    }

    .offer-document {
        border: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .offers-page *,
    .offer-details-page * {
        transition: none !important;
    }
}
