:root {
    color: #1f2933;
    background: #f5f6f7;
    font-family: Arial, sans-serif;
    line-height: 1.5;
}

body {
    margin: 0;
}

.portal {
    width: min(900px, calc(100% - 48px));
    margin: 48px auto;
}

header,
section,
.notice {
    margin-bottom: 24px;
}

h1,
h2,
p {
    margin-top: 0;
}

#lead-context {
    display: block;
    margin-top: 4px;
    color: #52606d;
    font-size: 1rem;
    font-weight: 400;
}

.skeleton {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 4px;
    background: #e1e5e8;
}

.skeleton::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgb(255 255 255 / 65%), transparent);
    content: '';
    transform: translateX(-100%);
    animation: skeleton-shimmer 1.4s ease-in-out infinite;
}

.skeleton-lead {
    width: min(240px, 65vw);
    height: 1rem;
    margin-top: 8px;
}

.skeleton-line {
    height: 0.85rem;
    margin-bottom: 8px;
}

.skeleton-line-long {
    width: min(680px, 95%);
}

.skeleton-line-medium {
    width: min(480px, 72%);
}

.skeleton-line-title {
    width: min(310px, 80%);
    height: 1rem;
}

.skeleton-line-short {
    width: min(220px, 58%);
}

.proposal-skeleton {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
}

.skeleton-radio {
    width: 14px;
    height: 14px;
    margin-top: 4px;
    border-radius: 50%;
}

.proposal-skeleton-content {
    min-width: 0;
}

#proposal-skeleton[hidden] {
    display: none;
}

@keyframes skeleton-shimmer {
    100% {
        transform: translateX(100%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .skeleton::after {
        animation: none;
    }
}

.notice,
.status,
.proposal {
    padding: 16px;
    border: 1px solid #c8ced3;
    background: #fff;
}

.notice {
    border-color: #b08a2e;
    background: #fff8e5;
}

fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.proposal-list {
    display: grid;
    gap: 12px;
    margin: 16px 0;
}

.proposal label {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: start;
    cursor: pointer;
}

.proposal-reference,
.proposal-dates {
    display: block;
    color: #52606d;
    font-size: 0.9rem;
}

.proposal-year {
    display: block;
}

button {
    padding: 10px 16px;
    border: 1px solid #1f2933;
    background: #1f2933;
    color: #fff;
    font: inherit;
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.contract-actions {
    display: grid;
    justify-items: start;
    gap: 12px;
}

.contract-actions[hidden] {
    display: none;
}

.success {
    border-color: #27824a;
    background: #eefaf2;
}

.error {
    border-color: #b42318;
    background: #fff1f0;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

