:root {
    color-scheme: light;
    --ink: #080808;
    --muted: #5c5c5c;
    --paper: #ffffff;
    --line: rgba(8, 8, 8, .14);
    --yellow: #ffd21e;
    --yellow-dark: #d9a900;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: #0a0a0a;
}

.login-shell {
    position: relative;
    min-height: 100svh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 430px);
    gap: clamp(24px, 4vw, 72px);
    align-items: center;
    padding: clamp(22px, 5vw, 72px);
    overflow: hidden;
}

#planHero,
.hero-shade {
    position: fixed;
    inset: 0;
}

#planHero {
    width: 100%;
    height: 100%;
    display: block;
    background: #070707;
}

.hero-shade {
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, .96) 0%, rgba(255, 255, 255, .82) 35%, rgba(255, 255, 255, .12) 68%, rgba(8, 8, 8, .72) 100%),
        linear-gradient(0deg, rgba(8, 8, 8, .22), transparent 45%);
}

.login-copy,
.login-panel {
    position: relative;
    z-index: 1;
}

.login-copy {
    max-width: 720px;
    align-self: end;
    padding-bottom: min(9vh, 90px);
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 30px;
    padding: 13px 16px;
    border: 1px solid rgba(8, 8, 8, .14);
    background: rgba(255, 255, 255, .74);
}

.brand-lockup img {
    display: block;
    width: 210px;
    height: auto;
}

.brand-lockup span {
    border-left: 1px solid rgba(8, 8, 8, .18);
    padding-left: 14px;
    color: #1d1d1d;
    font-size: .78rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.brand-mark {
    margin-bottom: 28px;
}

.eyebrow,
.panel-kicker {
    margin: 0 0 10px;
    color: #141414;
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

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

h1 {
    margin-bottom: 18px;
    max-width: 10ch;
    font-size: clamp(3.4rem, 9vw, 8.4rem);
    line-height: .88;
    letter-spacing: 0;
}

.lead {
    max-width: 560px;
    margin-bottom: 28px;
    color: #2b2b2b;
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    line-height: 1.5;
}

.status-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.status-strip span {
    border: 1px solid rgba(23, 33, 29, .16);
    background: rgba(255, 255, 255, .62);
    padding: 9px 12px;
    font-size: .9rem;
    font-weight: 700;
}

.login-panel {
    width: 100%;
    justify-self: end;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 8px;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 24px 80px rgba(0, 0, 0, .34);
    backdrop-filter: blur(18px);
}

.panel-head {
    margin-bottom: 22px;
}

.team-strip {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: -6px 0 22px;
    padding: 10px;
    border: 1px solid rgba(8, 8, 8, .1);
    background: #f6f6f6;
}

.face {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #111;
    color: #fff;
    font-size: .72rem;
    font-weight: 900;
}

.face-yellow {
    background: var(--yellow);
    color: #111;
}

.team-text {
    color: #3b3b3b;
    font-size: .86rem;
    line-height: 1.3;
}

h2 {
    margin-bottom: 0;
    font-size: 1.55rem;
    letter-spacing: 0;
}

.alert {
    margin-bottom: 18px;
    border-left: 4px solid var(--yellow);
    background: rgba(255, 210, 30, .18);
    padding: 12px 14px;
    color: #4f3d00;
    font-size: .94rem;
    line-height: 1.45;
}

.login-form {
    display: grid;
    gap: 16px;
}

label {
    display: grid;
    gap: 7px;
    color: #202020;
    font-size: .93rem;
    font-weight: 750;
}

input {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(255, 255, 255, .82);
    color: var(--ink);
    font: inherit;
    padding: 12px 13px;
    outline: none;
}

input:focus {
    border-color: rgba(8, 8, 8, .72);
    box-shadow: 0 0 0 3px rgba(255, 210, 30, .34);
}

button {
    min-height: 50px;
    border: 0;
    border-radius: 6px;
    background: #0b0b0b;
    color: #fff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

button:hover {
    background: #2a2a2a;
}

.text-link {
    color: #111;
    font-size: .9rem;
    font-weight: 750;
    text-align: center;
}

.alert.warn {
    border-left-color: #111;
    word-break: break-word;
}

.portal-shell {
    min-height: 100dvh;
    padding: 24px;
    background: #f2f2f2;
}

.portal-top {
    max-width: 1180px;
    margin: 0 auto 18px;
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 14px 16px;
    border: 1px solid rgba(8, 8, 8, .12);
    border-radius: 8px;
    background: #fff;
}

.portal-top img {
    width: 150px;
    height: auto;
}

.portal-top div {
    display: grid;
    gap: 2px;
}

.portal-top span,
.muted {
    color: var(--muted);
}

.portal-top a {
    margin-left: auto;
    color: #111;
    font-weight: 800;
}

.admin-view-switch {
    margin-left: auto;
    display: inline-flex;
    gap: 4px;
    border: 1px solid rgba(8, 8, 8, .12);
    border-radius: 999px;
    background: #f6f6f6;
    padding: 3px;
}

.admin-view-switch a {
    margin-left: 0;
    border-radius: 999px;
    padding: 6px 10px;
    color: #333;
    font-size: .78rem;
    text-decoration: none;
}

.admin-view-switch a.active {
    background: #111;
    color: #fff;
}

.admin-view-switch + a {
    margin-left: 0;
}

.admin-elha-link {
    margin-left: 0;
    border: 1px solid rgba(8, 8, 8, .14);
    border-radius: 999px;
    background: #fff7cc;
    padding: 7px 11px;
    color: #111;
    font-size: .78rem;
    line-height: 1;
    text-decoration: none;
}

.admin-elha-link:hover {
    background: var(--yellow);
}

.portal-alert,
.portal-card {
    max-width: 1180px;
    margin: 0 auto 14px;
    border: 1px solid rgba(8, 8, 8, .12);
    border-radius: 8px;
    background: #fff;
    padding: 16px;
}

.portal-alert {
    border-left: 4px solid var(--yellow);
}

.portal-list {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    gap: 16px;
}

.contract-card {
    display: grid;
    gap: 16px;
}

.contract-detail {
    max-width: 1180px;
    margin: 0 auto 14px;
}

.back-link {
    display: inline-block;
    margin-bottom: 12px;
    color: #111;
    font-size: .86rem;
    font-weight: 800;
}

.contract-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    border-bottom: 1px solid rgba(8, 8, 8, .1);
    padding-bottom: 14px;
}

.contract-detail > .contract-head {
    border: 1px solid rgba(8, 8, 8, .12);
    border-radius: 8px;
    background: #fff;
    padding: 16px;
}

.contract-head h1 {
    max-width: none;
    margin: 0 0 4px;
    font-size: 1.45rem;
    line-height: 1.15;
}

.contract-head p {
    margin: 0;
    color: var(--muted);
}

.pill {
    border-radius: 999px;
    background: #111;
    color: #fff;
    padding: 5px 9px;
    font-size: .76rem;
    font-weight: 800;
}

.portal-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 14px;
}

.detail-sections {
    grid-template-columns: minmax(0, 1fr);
}

.company-intro,
.team-cards {
    border: 1px solid rgba(8, 8, 8, .12);
    border-radius: 8px;
    background: #fff;
    padding: 18px;
}

.company-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
}

.company-intro h2,
.section-head h2 {
    margin: 0 0 6px;
    font-size: 1.15rem;
}

.company-intro p {
    margin: 0;
    color: #242424;
    line-height: 1.5;
}

.section-kicker {
    margin: 0 0 5px;
    color: var(--muted);
    font-size: .78rem;
    font-weight: 850;
    text-transform: uppercase;
}

.company-actions,
.contact-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.company-actions {
    justify-content: flex-end;
}

.company-actions a,
.contact-links a {
    border-radius: 6px;
    background: #111;
    color: #fff;
    padding: 9px 11px;
    font-size: .86rem;
    font-weight: 850;
    text-decoration: none;
}

.company-actions a + a,
.contact-links a + a {
    background: #f2f2f2;
    color: #111;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.section-head {
    margin-bottom: 12px;
}

.contact-card {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    border: 1px solid rgba(8, 8, 8, .1);
    border-radius: 8px;
    background: #fafafa;
    padding: 13px;
}

.contact-avatar {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--yellow);
    color: #111;
    font-weight: 900;
    object-fit: cover;
}

.contact-card h3 {
    margin: 0 0 4px;
    font-size: .98rem;
}

.contact-card p {
    margin: 0 0 8px;
    color: #242424;
    font-size: .88rem;
    line-height: 1.45;
}

.contact-role {
    color: var(--muted) !important;
    font-weight: 750;
}

.contract-quick-overview {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    gap: 16px;
    align-items: stretch;
    border: 1px solid rgba(8, 8, 8, .12);
    border-radius: 8px;
    background: #fff;
    padding: 16px;
}

.quick-overview-copy {
    display: grid;
    align-content: start;
    gap: 12px;
}

.quick-overview-copy h2 {
    margin: 0;
    font-size: 1.12rem;
}

.quick-overview-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(92px, 1fr));
    gap: 8px;
}

.quick-overview-stats span {
    min-height: 64px;
    border: 1px solid rgba(8, 8, 8, .1);
    border-radius: 8px;
    background: #fafafa;
    padding: 10px;
    color: var(--muted);
    font-size: .78rem;
    font-weight: 800;
}

.quick-overview-stats strong {
    display: block;
    margin-bottom: 3px;
    color: #111;
    font-size: 1.25rem;
}

.contract-cover-panel {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.contract-cover-slider {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(8, 8, 8, .12);
    border-radius: 8px;
    background: #f1f5f9;
}

.contract-cover-slide {
    position: absolute;
    inset: 0;
    display: block;
    min-width: 0;
    margin: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity .32s ease;
}

.contract-cover-slide.is-active {
    position: relative;
    opacity: 1;
    pointer-events: auto;
}

.contract-cover-slide img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.contract-cover-slide figcaption {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    overflow: hidden;
    max-width: calc(100% - 20px);
    border-radius: 6px;
    background: rgba(255, 255, 255, .88);
    color: #111;
    padding: 6px 8px;
    font-size: .78rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.contract-cover-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
}

.contract-cover-dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(8, 8, 8, .22);
}

.contract-cover-dots span.is-active {
    background: #111;
}

.contract-cover-empty {
    display: grid;
    place-content: center;
    gap: 5px;
    min-height: 220px;
    border: 1px dashed rgba(8, 8, 8, .2);
    border-radius: 8px;
    background: #fafafa;
    padding: 18px;
    text-align: center;
}

.contract-cover-empty strong {
    font-size: .92rem;
}

.contract-cover-empty span {
    color: var(--muted);
    font-size: .84rem;
}

.contract-cover-upload {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
    gap: 8px;
    align-items: end;
    margin-top: 2px;
    padding-top: 12px;
    border-top: 1px solid rgba(8, 8, 8, .08);
}

.contract-cover-upload label {
    display: grid;
    gap: 5px;
    min-width: 0;
    color: #202020;
    font-size: .8rem;
    font-weight: 850;
}

.contract-cover-upload input {
    width: 100%;
    min-height: 38px;
    border: 1px solid rgba(8, 8, 8, .14);
    border-radius: 6px;
    padding: 7px;
    background: #fff;
    font: inherit;
    font-size: .78rem;
}

.contract-cover-upload small {
    overflow: hidden;
    color: var(--muted);
    font-size: .74rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.contract-cover-upload button {
    min-height: 38px;
    border: 0;
    border-radius: 6px;
    background: #111;
    color: #fff;
    padding: 0 12px;
    font: inherit;
    font-size: .82rem;
    font-weight: 850;
    cursor: pointer;
}

.portal-sections section,
.portal-section {
    border: 1px solid rgba(8, 8, 8, .1);
    border-radius: 8px;
    padding: 14px;
    background: #fff;
}

.portal-section + .portal-section {
    margin-top: 0;
}

.portal-section summary {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    list-style: none;
}

.portal-section summary::-webkit-details-marker {
    display: none;
}

.portal-section summary::after {
    content: "Otevřít";
    border-radius: 999px;
    background: #f2f2f2;
    padding: 5px 9px;
    color: #333;
    font-size: .76rem;
    font-weight: 850;
}

.portal-section[open] summary {
    margin-bottom: 10px;
}

.portal-section[open] summary::after {
    content: "Zavřít";
}

.portal-section summary > span {
    margin-left: auto;
    color: var(--muted);
    font-size: .8rem;
    font-weight: 800;
}

.portal-sections h2 {
    margin-bottom: 10px;
    font-size: .95rem;
}

.portal-section summary h2 {
    margin: 0;
}

.plan-viewer-section {
    padding: 0;
    overflow: hidden;
}

.plan-viewer-section summary {
    padding: 14px;
}

.plan-viewer-section[open] summary {
    margin-bottom: 0;
    border-bottom: 1px solid rgba(8, 8, 8, .1);
}

.plan-viewer-section iframe {
    display: block;
    width: 100%;
    height: min(760px, calc(100dvh - 160px));
    min-height: 520px;
    border: 0;
    background: #0f172a;
}

.mini-row {
    position: relative;
    display: grid;
    gap: 5px;
    padding: 12px;
    border: 1px solid rgba(8, 8, 8, .08);
    border-radius: 8px;
    background: #fafafa;
}

.portal-item {
    cursor: pointer;
}

.portal-item + .portal-item {
    margin-top: 8px;
}

.portal-item .client-feedback-form,
.portal-item .feedback-thread,
.portal-item .admin-share-form {
    display: none;
}

.portal-item.is-feedback-open .client-feedback-form,
.portal-item.is-feedback-open .feedback-thread,
.portal-item.is-feedback-open .admin-share-form {
    display: grid;
}

.mini-row:first-of-type {
    border-top: 1px solid rgba(8, 8, 8, .08);
    padding-top: 12px;
}

.mini-row strong,
.doc-link,
.thumb-grid a {
    color: #111;
    font-size: .9rem;
}

.mini-row span {
    color: var(--muted);
    font-size: .82rem;
}

.task-status-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    border-radius: 999px;
    background: #eef2ff;
    color: #3730a3 !important;
    padding: 4px 8px;
    font-size: .72rem !important;
    font-weight: 850;
}

.mini-row p {
    margin: 6px 0 0;
    color: #242424;
    font-size: .9rem;
    line-height: 1.45;
}

.contract-summary {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.contract-summary span {
    border: 1px solid rgba(8, 8, 8, .1);
    border-radius: 999px;
    background: #fafafa;
    padding: 6px 10px;
    color: #333;
    font-size: .84rem;
    font-weight: 750;
}

.open-contract {
    justify-self: start;
    border-radius: 6px;
    background: #111;
    color: #fff;
    padding: 10px 13px;
    font-weight: 850;
    text-decoration: none;
}

.quote-row {
    gap: 7px;
}

.schedule-section {
    overflow: hidden;
}

.schedule-scale {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    margin: 0 10px 5px 48px;
    color: #64748b;
    font-size: .66rem;
    font-weight: 500;
}

.schedule-scale span:last-child {
    text-align: right;
}

.schedule-day {
    border-top: 1px solid rgba(8, 8, 8, .08);
    padding: 6px 10px 8px;
}

.schedule-day-title {
    margin: 0 0 5px;
    color: #1d4ed8;
    font-size: .78rem;
    font-weight: 600;
}

.schedule-row {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 7px;
    align-items: center;
    min-height: 28px;
}

.schedule-row + .schedule-row {
    margin-top: 5px;
}

.schedule-avatar {
    position: relative;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: #111827;
    color: #fff;
    font-size: .62rem;
    font-weight: 600;
    box-shadow: 0 0 0 1px #fff, 0 0 0 2px rgba(8, 8, 8, .1);
}

.schedule-avatar img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.schedule-track {
    position: relative;
    height: 24px;
    border: 1px solid #dbe4ef;
    background:
        repeating-linear-gradient(90deg, transparent 0, transparent calc(12.5% - 1px), #dbe4ef calc(12.5% - 1px), #dbe4ef 12.5%),
        linear-gradient(90deg, #f8fafc, #eef4ff);
}

.schedule-segment {
    position: absolute;
    top: 3px;
    bottom: 3px;
    left: var(--left);
    width: var(--width);
    min-width: 34px;
    display: flex;
    gap: 4px;
    align-items: center;
    overflow: hidden;
    border-left: 2px solid rgba(255, 255, 255, .75);
    background: linear-gradient(90deg, #2563eb, #7c3aed);
    color: #fff;
    padding: 0 5px 0 4px;
    font-size: .66rem;
    font-weight: 400;
    white-space: nowrap;
}

.schedule-segment:nth-child(2n) {
    background: linear-gradient(90deg, #ea580c, #f97316);
}

.schedule-segment:nth-child(3n) {
    background: linear-gradient(90deg, #047857, #0d9488);
}

.schedule-segment span,
.schedule-segment strong {
    color: inherit;
    font-size: inherit;
}

.schedule-segment strong {
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 400;
}

@media (max-width: 720px) {
    .schedule-scale {
        margin-left: 40px;
    }

    .schedule-row {
        grid-template-columns: 28px minmax(240px, 1fr);
    }

    .schedule-day {
        overflow-x: auto;
    }

    .schedule-track {
        min-width: 620px;
    }
}

.quote-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 2px;
}

.small-link-btn {
    justify-self: start;
    border: 1px solid rgba(8, 8, 8, .14);
    border-radius: 6px;
    background: #fff;
    color: #111;
    padding: 6px 9px;
    font-size: .78rem;
    font-weight: 800;
    text-decoration: none;
}

.small-link-btn:hover {
    background: #f1f5f9;
}

.response-pill {
    justify-self: start;
    border-radius: 999px;
    padding: 4px 8px;
    font-size: .76rem;
    font-weight: 850;
}

.response-pill.approved {
    background: #dcfce7;
    color: #166534;
}

.response-pill.question {
    background: #fff3c4;
    color: #6b4e00;
}

.response-pill.rejected {
    background: #fee2e2;
    color: #991b1b;
}

.response-pill.comment {
    background: #e0f2fe;
    color: #075985;
}

.quote-response-form {
    display: grid;
    gap: 8px;
    margin-top: 8px;
}

.quote-response-form textarea {
    width: 100%;
    border: 1px solid rgba(8, 8, 8, .14);
    border-radius: 6px;
    padding: 10px;
    font: inherit;
    resize: vertical;
}

.quote-response-form div {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.quote-response-form button {
    min-height: 40px;
    padding: 0 12px;
    font-size: .88rem;
}

.client-feedback-form {
    display: grid;
    gap: 8px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(8, 8, 8, .08);
}

.feedback-thread {
    display: grid;
    gap: 7px;
    margin-top: 8px;
}

.feedback-note {
    border: 1px solid rgba(8, 8, 8, .08);
    border-radius: 8px;
    background: #fff;
    padding: 9px 10px;
}

.feedback-note-head {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
}

.feedback-note-head strong {
    font-size: .84rem;
}

.feedback-note-head span:last-child {
    color: var(--muted);
    font-size: .76rem;
}

.feedback-note p {
    margin: 7px 0 0;
    color: #242424;
    font-size: .86rem;
    line-height: 1.4;
}

.feedback-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px;
}

.feedback-actions label,
.admin-share-form label {
    display: inline-flex;
    width: auto;
    gap: 6px;
    align-items: center;
    color: #202020;
    font-size: .8rem;
    font-weight: 800;
}

.feedback-actions input,
.admin-share-form input {
    width: auto;
    min-height: auto;
    padding: 0;
}

.feedback-actions span {
    border: 1px solid rgba(8, 8, 8, .08);
    border-radius: 999px;
    background: #f8fafc;
    color: #475569;
    padding: 4px 8px;
    font-size: .74rem;
}

.feedback-actions input:checked + span {
    border-color: rgba(8, 8, 8, .18);
    background: #f1f5f9;
    color: #111;
}

.client-feedback-form textarea {
    width: 100%;
    min-height: 76px;
    border: 1px solid rgba(8, 8, 8, .14);
    border-radius: 6px;
    padding: 10px;
    font: inherit;
    resize: vertical;
}

.client-feedback-form:not(.is-commenting) textarea {
    display: none;
}

.client-feedback-form button {
    display: none;
    justify-self: start;
    min-height: 38px;
    padding: 0 12px;
    font-size: .84rem;
}

.admin-share-form {
    margin-top: 8px;
}

.doc-link,
.thumb-grid a {
    display: block;
    padding: 8px 0;
    border-top: 1px solid rgba(8, 8, 8, .08);
}

@media (max-width: 820px) {
    .contract-quick-overview,
    .contract-cover-upload {
        grid-template-columns: 1fr;
    }

    .quick-overview-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .login-shell {
        min-height: 100dvh;
        grid-template-columns: 1fr;
        align-content: end;
        padding: 22px;
    }

    .hero-shade {
        background:
            linear-gradient(0deg, rgba(255, 255, 255, .97) 0%, rgba(255, 255, 255, .78) 48%, rgba(255, 255, 255, .12) 100%);
    }

    .login-copy {
        align-self: auto;
        padding-bottom: 0;
    }

    h1 {
        max-width: 8ch;
        font-size: clamp(3rem, 18vw, 5.2rem);
    }

    .lead {
        font-size: 1rem;
    }

    .login-panel {
        justify-self: stretch;
        padding: 22px;
    }

    .brand-lockup {
        gap: 10px;
    }

    .brand-lockup img {
        width: 165px;
    }

    .portal-shell {
        padding: 16px;
    }

    .company-intro {
        grid-template-columns: 1fr;
    }

    .company-actions {
        justify-content: flex-start;
    }

    .portal-top {
        flex-wrap: wrap;
    }

    .portal-top a {
        margin-left: 0;
    }

}
