:root {
    --color-primary: #174f3a;
    --color-primary-dark: #103c2b;
    --color-accent: #dfb95f;
    --color-ink: #17231d;
    --color-muted: #68756e;
    --color-border: #dfe4e0;
    --color-canvas: #f3f5f2;
    --color-surface: #ffffff;
    --bs-primary: #174f3a;
    --bs-primary-rgb: 23, 79, 58;
    --bs-link-color: #174f3a;
    --bs-link-hover-color: #103c2b;
    --bs-body-color: #212a25;
    --bs-body-bg: #f3f5f2;
    --bs-body-font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.daily-log-card {
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: 1rem;
    background: var(--color-surface);
    box-shadow: 0 10px 28px rgba(23, 35, 29, 0.08);
}

.daily-log-card__photo {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #e9eef4;
}

.daily-log-card__photo img,
.daily-log-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.daily-log-card__body {
    padding: 1.25rem;
}

.daily-log-card__body h2 {
    margin: 0.65rem 0;
    font-size: 1.2rem;
}

.daily-log-card__body h2 a,
.daily-log-card__link {
    color: inherit;
    text-decoration: none;
}

.daily-log-card__link {
    color: var(--color-primary);
    font-weight: 700;
}

.daily-log-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    color: var(--color-muted);
    font-size: 0.9rem;
}

.daily-log-summary__content {
    font-size: 1.05rem;
    line-height: 1.7;
}

.daily-log-summary footer {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
    color: var(--color-muted);
    font-size: 0.9rem;
}

.daily-log-photo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.daily-log-photo {
    margin: 0;
    padding: 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 0.85rem;
    background: var(--color-surface);
}

.daily-log-photo a {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 0.6rem;
    background: #e9eef4;
}

.daily-log-photo figcaption {
    margin: 0.75rem 0;
    color: var(--color-muted);
}

.daily-log-photo form {
    margin-top: 0.75rem;
}

@media (max-width: 768px) {
    .daily-log-grid,
    .daily-log-photo-grid {
        grid-template-columns: 1fr;
    }

    .daily-log-card__meta {
        align-items: flex-start;
        flex-direction: column;
    }
}

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    color: var(--bs-body-color);
    background: var(--color-canvas);
    font-family: var(--bs-body-font-family);
}

h1, h2, h3 {
    color: var(--color-ink);
    font-weight: 700;
    letter-spacing: -0.025em;
}

a { color: var(--color-primary); }
a:hover { color: var(--color-primary-dark); }

.app-header {
    padding: 0;
    background: #123d2d;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.app-nav {
    display: flex;
    gap: 1rem;
    align-items: center;
    min-height: 68px;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.app-nav__menu {
    display: flex;
    flex: 1;
    gap: 1rem;
    align-items: center;
}

.app-nav__toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 8px;
    color: white;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
}

.app-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    margin-right: 1.5rem;
    color: white;
    font-weight: 700;
    text-decoration: none;
}

.app-brand:hover, .app-nav__link:hover { color: white; }

.app-brand__mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    color: #123d2d;
    background: var(--color-accent);
}

.app-nav__link {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
}

.app-nav__identity {
    margin-left: auto;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.875rem;
}

.app-nav__logout { margin: 0; }

.app-main {
    min-height: calc(100vh - 136px);
    padding-top: 2.25rem;
    padding-bottom: 3rem;
}

.app-footer {
    min-height: 68px;
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-top: 1px solid var(--color-border);
    color: var(--color-muted);
    background: rgba(255, 255, 255, 0.55);
}

.app-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.app-footer__copyright { margin: 0; }

.app-footer__links {
    display: flex;
    gap: 1rem;
}

.app-footer__links a { text-decoration: none; }

.legal-document {
    max-width: 900px;
    margin: 0 auto;
    padding: clamp(1.25rem, 4vw, 3rem);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    background: var(--color-surface);
    box-shadow: 0 12px 36px rgba(35, 53, 44, 0.06);
}

.legal-document__header {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

.legal-document__header h1 { margin-bottom: 0.5rem; }
.legal-document__header p { margin-bottom: 0; color: var(--color-muted); }
.legal-document section { margin-top: 2rem; }
.legal-document h2 { font-size: 1.3rem; }
.legal-document h3 { margin-top: 1.25rem; font-size: 1.05rem; }
.legal-document li + li { margin-top: 0.45rem; }
.legal-document address { white-space: pre-line; }

@media (max-width: 600px) {
    .app-footer__inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

.messages {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}

.message {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
}

.message--success { background: #d1e7dd; color: #0a3622; }
.message--error { background: #f8d7da; color: #58151c; }
.message--warning { background: #fff3cd; color: #664d03; }
.message--info { background: #cff4fc; color: #055160; }

.eyebrow {
    margin: 0 0 0.45rem;
    color: #66756e;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.page-heading, .project-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 1.75rem;
}

.page-heading h1, .project-hero h1 {
    margin-bottom: 0.35rem;
    font-size: clamp(2rem, 5vw, 3rem);
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 1.5rem;
    color: #6b756f;
    font-size: 0.875rem;
}

.breadcrumb-nav a { color: #45554d; text-decoration: none; }

.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    color: #46534d;
    background: #e7ebe8;
    font-size: 0.75rem;
    font-weight: 700;
}

.status-pill--active { color: #0f5132; background: #d7ecdf; }
.status-pill--on_hold { color: #72520d; background: #fff0c2; }
.selection-status--unreleased { color: #202227; background: #c7d0d9; }
.selection-status--pending { color: #653200; background: #fbe9b1; }
.selection-status--selected { color: #005c35; background: #c4fae2; }
.selection-status--expired { color: #7a1d1d; background: #f6d3d3; }
.notification-row--unread { border-left: 4px solid var(--color-primary, #123d2d); padding-left: 1rem; }
.notification-count { display: inline-grid; place-items: center; min-width: 1.3rem; height: 1.3rem; padding: 0 0.3rem; border-radius: 999px; background: #fff; color: #123d2d; font-size: 0.75rem; font-weight: 700; }
.public-share-panel { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.5rem; align-items: center; }
.public-share-panel img { background: #fff; border: 1px solid #d8ded9; border-radius: 0.75rem; padding: 0.5rem; }
.public-share-panel input { width: 100%; margin-top: 0.5rem; }
.status-pill--declined { color: #8a2530; background: #f8dfe2; }
.status-pill--completed { color: #38516f; background: #dfeaf7; }

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.project-card {
    display: flex;
    flex-direction: column;
    min-height: 225px;
    padding: 1.35rem;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    color: inherit;
    background: var(--color-surface);
    box-shadow: 0 8px 28px rgba(35, 53, 44, 0.05);
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.project-card:hover {
    transform: translateY(-2px);
    border-color: #aabbb2;
    color: inherit;
    box-shadow: 0 14px 36px rgba(35, 53, 44, 0.1);
}

.project-card__topline, .project-hero__meta {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    justify-content: space-between;
    color: #627069;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.project-card h2 { margin: 2rem 0 0.3rem; font-size: 1.35rem; }
.project-code { color: #78837e; }

.project-card__attention {
    display: flex;
    margin: 0.55rem 0 1rem;
}

.project-card__attention .status-pill { gap: 0.25rem; }

.project-card__action {
    margin-top: auto;
    color: var(--color-primary);
    font-weight: 700;
}

.project-filter-bar {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: 0.8rem;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.75);
}

.project-filter-form {
    display: flex;
    gap: 0.55rem;
    align-items: center;
    flex-wrap: wrap;
    flex: 1;
}

.project-filter-form__search {
    position: relative;
    flex: 1;
    max-width: 420px;
}

.project-filter-form__search i {
    position: absolute;
    top: 50%;
    left: 0.75rem;
    color: var(--color-muted);
    transform: translateY(-50%);
}

.project-filter-form__search input {
    width: 100%;
    padding-left: 2.2rem;
}

.project-filter-form select { min-width: 150px; }
.project-filter-form .btn-link { color: var(--color-muted); }
.project-filter-bar > p { margin: 0; color: var(--color-muted); font-size: 0.78rem; white-space: nowrap; }

.project-filter-form__date {
    display: flex;
    gap: 0.3rem;
    align-items: center;
    margin: 0;
    color: var(--color-muted);
    font-size: 0.72rem;
    font-weight: 700;
}

.project-filter-form__date input { width: 145px; }

.empty-state {
    padding: 4rem 1rem;
    border: 1px dashed #c8d0cb;
    border-radius: 14px;
    text-align: center;
    background: rgba(255, 255, 255, 0.65);
}

.empty-state > i, .empty-state__icon {
    display: block;
    margin-bottom: 1rem;
    color: #7d8c84;
    font-size: 2.5rem;
}

.empty-state__actions {
    display: flex;
    gap: 0.65rem;
    justify-content: center;
    margin-top: 1.25rem;
}

.landing-hero {
    max-width: 850px;
    margin: 8vh auto;
    padding: clamp(2rem, 6vw, 5rem);
    border: 1px solid #dce3de;
    border-radius: 24px;
    background: linear-gradient(140deg, #ffffff 10%, #e8eee9 100%);
    box-shadow: 0 24px 70px rgba(27, 52, 40, 0.1);
}

.landing-hero h1 {
    max-width: 720px;
    font-size: clamp(2.35rem, 6vw, 4.7rem);
}

.landing-hero > p:not(.eyebrow) {
    max-width: 680px;
    margin: 1.25rem 0 2rem;
    color: #55645d;
    font-size: 1.18rem;
}

.help-hero {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: clamp(1.5rem, 5vw, 3.25rem);
    border: 1px solid #d7e1da;
    border-radius: 20px;
    background: linear-gradient(140deg, #ffffff 10%, #e8f0eb 100%);
    box-shadow: 0 16px 50px rgba(27, 52, 40, 0.08);
}

.help-hero h1 {
    max-width: 760px;
    margin-bottom: 0.75rem;
    font-size: clamp(2.1rem, 5vw, 3.75rem);
}

.help-hero p:not(.eyebrow) {
    max-width: 760px;
    margin: 0;
    color: #55645d;
    font-size: 1.05rem;
}

.help-hero > .btn { flex: 0 0 auto; }

.help-index {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    padding: 0.85rem;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.82);
}

.help-index a {
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    color: #345244;
    background: #edf3ef;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
}

.help-index a:hover { color: #173e2e; background: #dce9e1; }

.guide-section {
    scroll-margin-top: 1.5rem;
    margin-bottom: 1.25rem;
    padding: clamp(1.35rem, 4vw, 2.25rem);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    background: var(--color-surface);
    box-shadow: 0 8px 28px rgba(35, 53, 44, 0.04);
}

.guide-section--last { margin-bottom: 0; }

.guide-section__heading {
    max-width: 850px;
    margin-bottom: 1.4rem;
}

.guide-section__heading h2 { margin-bottom: 0.5rem; }
.guide-section__heading p:last-child { margin: 0; color: var(--color-muted); }

.guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.guide-steps li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.8rem;
    align-items: start;
    padding: 1rem;
    border-radius: 12px;
    background: #f6f8f6;
}

.guide-steps li > span {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: #123d2d;
    background: var(--color-accent);
    font-weight: 800;
}

.guide-steps h3, .guide-module-grid h3, .guide-two-column h3 {
    margin: 0 0 0.35rem;
    font-size: 1rem;
}

.guide-steps p, .guide-module-grid p { margin: 0; color: var(--color-muted); font-size: 0.88rem; }
.guide-steps--compact { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }

.guide-module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
    gap: 0.85rem;
}

.guide-module-grid article {
    padding: 1rem;
    border: 1px solid #e3e8e5;
    border-radius: 12px;
}

.guide-module-grid i {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin-bottom: 0.75rem;
    border-radius: 9px;
    color: var(--color-primary);
    background: #e3efe8;
}

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

.guide-two-column ol, .guide-two-column ul { margin: 0; padding-left: 1.25rem; }
.guide-two-column li + li { margin-top: 0.55rem; }

.guide-note {
    margin: 1.5rem 0 0;
    padding-top: 1rem;
    border-top: 1px solid #e3e8e5;
    color: #495b52;
}

.guide-table {
    width: 100%;
    border-collapse: collapse;
}

.guide-table th, .guide-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #e4e8e5;
    text-align: left;
    vertical-align: top;
}

.guide-table th { color: #3e5047; background: #f3f6f4; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }
.guide-table td:first-child { width: 28%; color: var(--color-ink); font-weight: 700; }

.guide-checklist {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 1.5rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.guide-checklist li { display: flex; gap: 0.6rem; align-items: flex-start; }
.guide-checklist i { color: var(--color-primary); }

.role-banner {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1.2rem;
    padding: 0.75rem 1rem;
    border: 1px solid #d7e2db;
    border-radius: 10px;
    color: #305441;
    background: #edf4ef;
    font-size: 0.875rem;
    font-weight: 700;
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.module-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    min-height: 150px;
    padding: 1.25rem;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: var(--color-surface);
}

.module-card > i {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    color: #526059;
    background: #eef1ef;
    font-size: 1.2rem;
}

.module-card--ready > i { color: #174f3a; background: #deebe3; }
.module-card h2 { margin: 0 0 0.25rem; font-size: 1.05rem; }
.module-card p { margin: 0; color: #68756e; font-size: 0.9rem; }

.module-card > span {
    grid-column: 2;
    align-self: end;
    color: #78837e;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.module-card--link {
    color: inherit;
    text-decoration: none;
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.module-card--link:hover {
    transform: translateY(-2px);
    border-color: #aabbb2;
    color: inherit;
    box-shadow: 0 10px 28px rgba(35, 53, 44, 0.08);
}

.module-card--featured {
    border-color: #bfd1c7;
    background: linear-gradient(135deg, #ffffff 0%, #edf5f0 100%);
}

input[type="text"], input[type="email"], input[type="password"],
input[type="date"], select, textarea {
    display: block;
    width: 100%;
    max-width: 400px;
    padding: 0.65rem 0.8rem;
    border: 1px solid #cbd3ce;
    border-radius: 0.5rem;
    font-size: 1rem;
}

textarea { resize: vertical; }

select {
    appearance: auto;
    background: white;
}

input:focus {
    border-color: #4c826b;
    outline: 3px solid rgba(23, 79, 58, 0.12);
}

.auth-shell, .form-shell {
    display: grid;
    place-items: center;
    min-height: calc(100vh - 210px);
}

.auth-card, .form-card {
    width: min(100%, 520px);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border: 1px solid #dce2de;
    border-radius: 16px;
    background: white;
    box-shadow: 0 18px 50px rgba(32, 51, 42, 0.08);
}

.auth-card--wide { width: min(100%, 620px); }
.form-card--wide { width: min(100%, 820px); }
.form-shell--top { place-items: start center; }

.stacked-form {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

.form-field label {
    display: block;
    margin-bottom: 0.35rem;
    color: #34453d;
    font-size: 0.875rem;
    font-weight: 700;
}

.form-field input { max-width: none; }

.form-field select, .form-field textarea { max-width: none; }

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

.form-field--wide { grid-column: 1 / -1; }

.form-field .errorlist, .form-errors .errorlist {
    margin: 0.35rem 0 0;
    padding-left: 1.2rem;
    color: #9d2b35;
    font-size: 0.85rem;
}

.help-text {
    margin: 0.4rem 0 0;
    color: #6f7b75;
    font-size: 0.8rem;
}

.help-text ul { margin: 0.4rem 0 0; padding-left: 1.2rem; }

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.auth-card__footer {
    margin: 1.2rem 0 0;
    text-align: center;
    font-size: 0.875rem;
}

.btn-primary {
    --bs-btn-bg: #174f3a;
    --bs-btn-border-color: #174f3a;
    --bs-btn-hover-bg: #103c2b;
    --bs-btn-hover-border-color: #103c2b;
}

.btn.is-submitting {
    display: inline-flex;
    gap: 0.55rem;
    align-items: center;
    justify-content: center;
    cursor: wait;
}

.btn.is-submitting::after {
    width: 0.9em;
    height: 0.9em;
    border: 2px solid currentcolor;
    border-right-color: transparent;
    border-radius: 50%;
    content: '';
    animation: submission-spinner 0.7s linear infinite;
}

@keyframes submission-spinner {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .btn.is-submitting::after {
        border-right-color: currentcolor;
        opacity: 0.55;
        animation: none;
    }
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.admin-panel, .activity-panel {
    margin-top: 1rem;
    padding: 1.25rem;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    background: white;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.section-heading h2 { margin: 0; font-size: 1.25rem; }

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th, .admin-table td {
    padding: 0.85rem 0.7rem;
    border-bottom: 1px solid #e7ebe8;
    vertical-align: middle;
}

.admin-table th {
    color: #64716a;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.admin-table tbody tr:last-child td { border-bottom: 0; }

.inline-form {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0 0 0 0.35rem;
}

.inline-form--controls { justify-content: flex-end; }
.inline-form select { width: auto; min-width: 120px; padding: 0.35rem 0.55rem; font-size: 0.875rem; }

.check-label {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: #526059;
    font-size: 0.85rem;
}

.empty-copy { margin: 0; color: var(--color-muted); }

.muted-label {
    display: inline-block;
    margin-left: 0.4rem;
    padding: 0.12rem 0.4rem;
    border-radius: 999px;
    color: #5f6e66;
    background: #edf0ee;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.activity-list {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.activity-list li {
    position: relative;
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 0.75rem;
    padding: 0.7rem 0;
}

.activity-list__marker {
    width: 10px;
    height: 10px;
    margin-top: 0.35rem;
    border: 2px solid white;
    border-radius: 50%;
    background: var(--color-primary);
    box-shadow: 0 0 0 2px #b9c9c0;
}

.activity-list strong { display: block; font-size: 0.9rem; }
.activity-list div span { color: #758079; font-size: 0.78rem; }

.activity-list__link {
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.activity-list__link:hover { color: inherit; }
.activity-list__link:hover > strong { color: var(--color-primary); }
.activity-list__link > span:last-child { color: #758079; font-size: 0.78rem; }

.activity-list__context {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.15rem;
}

.activity-list__context strong { font-size: 0.75rem; }
.activity-list__context span { color: var(--color-muted); font-size: 0.7rem; }
.portfolio-activity { margin-top: 1.5rem; }
.activity-panel--standalone { margin-top: 0; }

.pagination-bar {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    color: var(--color-muted);
    font-size: 0.8rem;
}

.pagination-bar > div { display: flex; gap: 0.5rem; }

.thread-list {
    display: grid;
    gap: 0.75rem;
}

.thread-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    padding: 1.1rem 1.25rem;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    color: inherit;
    background: white;
    text-decoration: none;
}

.thread-row:hover,
.thread-row:focus-visible {
    border-color: #8da197;
    color: inherit;
    box-shadow: 0 6px 18px rgba(28, 59, 45, 0.08);
}

.thread-row__icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    color: var(--color-primary);
    background: #deebe3;
}

.thread-row__body h2 { margin: 0 0 0.2rem; font-size: 1rem; }
.thread-row__body p { margin: 0; color: var(--color-muted); font-size: 0.82rem; }

.thread-row__body .thread-row__preview {
    overflow: hidden;
    margin-bottom: 0.3rem;
    color: var(--color-text);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.thread-row__preview strong { margin-right: 0.25rem; font-size: 0.78rem; }

.thread-row__meta {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    color: #748078;
    font-size: 0.78rem;
}

.conversation-heading {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.conversation-heading h1 { margin-bottom: 0.25rem; }
.conversation-heading p:not(.eyebrow) { margin: 0; color: var(--color-muted); }

.conversation {
    display: grid;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.message-bubble {
    max-width: min(780px, 92%);
    padding: 1rem 1.1rem;
    border: 1px solid var(--color-border);
    border-radius: 14px 14px 14px 4px;
    background: white;
}

.message-bubble--own {
    justify-self: end;
    border-color: #c9dbd0;
    border-radius: 14px 14px 4px 14px;
    background: #eaf2ed;
}

.message-bubble header {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.7rem;
    align-items: baseline;
    margin-bottom: 0.55rem;
    font-size: 0.78rem;
}

.message-bubble header span, .message-bubble header time { color: #728078; }
.message-bubble header time { margin-left: auto; }
.message-bubble > div { line-height: 1.6; }

.reply-panel {
    margin-top: 1rem;
    padding: 1.25rem;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    background: white;
}

.reply-panel h2 { margin: 0; font-size: 1.2rem; }

.document-list {
    display: grid;
    gap: 0.75rem;
}

.document-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    padding: 1.1rem 1.25rem;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    color: inherit;
    background: white;
    text-decoration: none;
}

.document-row:hover,
.document-row:focus-visible {
    border-color: #8da197;
    color: inherit;
    box-shadow: 0 6px 18px rgba(28, 59, 45, 0.08);
}

.document-row__icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    color: var(--color-primary);
    background: #deebe3;
}

.document-row__body h2 { margin: 0 0 0.2rem; font-size: 1rem; }
.document-row__body p { margin: 0; color: var(--color-muted); font-size: 0.82rem; }
.document-row__body .document-row__description { margin-top: 0.3rem; color: var(--color-text); }

.document-row__meta {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    color: #748078;
    font-size: 0.78rem;
}

.decision-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
    gap: 2rem;
    margin-top: 1rem;
    padding: 1.4rem;
    border: 1px solid #c9dbd0;
    border-radius: 14px;
    background: #f3f8f5;
}

.decision-panel h2 { margin: 0 0 0.4rem; font-size: 1.25rem; }
.decision-panel p:last-child { margin-bottom: 0; color: var(--color-muted); }
.decision-panel ul { display: flex; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.decision-panel li label { display: flex; gap: 0.4rem; align-items: center; }

.decision-panel--recorded {
    grid-template-columns: auto 1fr;
    align-items: center;
}

.decision-panel--recorded > i { color: var(--color-primary); font-size: 2rem; }
.signature-panel code { overflow-wrap: anywhere; font-size: 0.78rem; }

.version-list { display: grid; }

.version-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #e7ebe8;
}

.version-row:last-child { border-bottom: 0; }
.version-row h3 { margin: 0 0 0.35rem; font-size: 1rem; }
.version-row p { margin: 0.2rem 0 0; color: var(--color-muted); font-size: 0.84rem; }
.version-decisions { display: flex; grid-column: 1 / -1; flex-wrap: wrap; gap: 0.5rem; }

.change-order-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.change-order-summary article {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1.1rem;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: white;
}

.change-order-summary span, .change-order-summary small {
    color: var(--color-muted);
    font-size: 0.78rem;
}

.change-order-summary strong { color: var(--color-ink); font-size: 1.35rem; }
.change-order-summary__internal { background: #f8faf8 !important; }

.change-order-scope {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.change-order-scope h2 { margin: 0 0 0.75rem; font-size: 1.2rem; }
.change-order-scope p:last-child { margin-bottom: 0; }

.selection-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.selection-option {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    min-height: 260px;
    padding: 1.2rem;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    background: white;
}

.selection-option:has(.selection-option__radio:checked) {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(23, 79, 58, 0.12);
}

.selection-option--chosen {
    border-color: #86ad98;
    background: #f1f8f4;
}

.selection-option header {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    justify-content: space-between;
}

.selection-option header h2 { margin: 0 0 0.45rem; font-size: 1.1rem; }
.selection-option header > strong { color: var(--color-ink); font-size: 1.25rem; }
.selection-option__description { color: var(--color-muted); font-size: 0.9rem; }
.selection-option__description p:last-child { margin-bottom: 0; }

.selection-option__image { border-radius: 10px; overflow: hidden; }
.selection-option__image img { display: block; width: 100%; max-height: 180px; object-fit: cover; }

.selection-option__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem 0.9rem;
    color: var(--color-muted);
    font-size: 0.82rem;
}

.selection-option__variance {
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    color: #38516f;
    background: #e7eef6;
    font-size: 0.84rem;
    font-weight: 700;
}

.selection-option__variance--over { color: #72520d; background: #fff0c2; }
.selection-option__variance--under { color: #0f5132; background: #d7ecdf; }

.selection-option__internal {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1rem;
    color: var(--color-muted);
    font-size: 0.78rem;
}

.selection-option footer { display: flex; gap: 0.5rem; margin-top: auto; }
.selection-option__radio { position: relative; z-index: 2; width: 1.1rem; height: 1.1rem; }
.selection-option__click-target { position: absolute; z-index: 1; inset: 0; cursor: pointer; }
.selection-option__chosen { margin-top: auto; color: var(--color-primary); font-size: 0.85rem; font-weight: 700; }

.schedule-calendar {
    overflow: hidden;
    margin-bottom: 2rem;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    background: white;
    box-shadow: 0 8px 28px rgba(18, 61, 45, 0.06);
}

.schedule-calendar__header {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    padding: 1.15rem 1.25rem;
    border-bottom: 1px solid var(--color-border);
}

.schedule-calendar__header h2 { margin: 0; font-size: 1.35rem; }
.schedule-calendar__navigation { display: flex; gap: 0.45rem; }
.schedule-calendar__viewport { overflow-x: auto; }
.schedule-calendar__viewport:focus-visible { outline: 3px solid rgba(23, 79, 58, 0.28); outline-offset: -3px; }

.schedule-calendar__grid {
    width: 100%;
    min-width: 780px;
    table-layout: fixed;
    border-collapse: collapse;
}

.schedule-calendar__grid th {
    padding: 0.6rem 0.7rem;
    border-right: 1px solid var(--color-border);
    color: var(--color-muted);
    background: #f7f8f7;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-align: left;
    text-transform: uppercase;
}

.schedule-calendar__grid th:last-child,
.schedule-calendar__day:last-child { border-right: 0; }

.schedule-calendar__day {
    height: 126px;
    padding: 0.55rem;
    border-right: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    vertical-align: top;
    background: white;
}

.schedule-calendar__grid tbody tr:last-child .schedule-calendar__day {
    border-bottom: 0;
}

.schedule-calendar__day > time {
    display: grid;
    place-items: center;
    width: 1.7rem;
    height: 1.7rem;
    margin-bottom: 0.4rem;
    border-radius: 50%;
    color: var(--color-ink);
    font-size: 0.78rem;
    font-weight: 800;
}

.schedule-calendar__day--outside { background: #f8f9f8; }
.schedule-calendar__day--outside > time { color: #9aa39e; }
.schedule-calendar__day--today > time { color: white; background: var(--color-primary); }
.schedule-calendar__events { display: grid; gap: 0.3rem; }

.schedule-calendar__event {
    position: relative;
    display: block;
    min-width: 0;
    padding: 0.38rem 1.45rem 0.38rem 0.48rem;
    border-left: 3px solid #607a92;
    border-radius: 5px;
    color: #29435c;
    background: #e8f0f7;
    font-size: 0.68rem;
    line-height: 1.2;
    text-decoration: none;
}

.schedule-calendar__event:hover { color: inherit; filter: brightness(0.97); }
.schedule-calendar__event strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.schedule-calendar__event small { display: block; margin-top: 0.12rem; font-size: 0.62rem; font-weight: 700; }
.schedule-calendar__event > i { position: absolute; top: 0.42rem; right: 0.42rem; }
.schedule-calendar__event--in_progress { border-left-color: #b88616; color: #664a0c; background: #fff0c2; }
.schedule-calendar__event--delayed { border-left-color: #b6424f; color: #75222b; background: #f8dfe2; }
.schedule-calendar__event--completed { border-left-color: #258252; color: #135b37; background: #d7ecdf; }
.schedule-calendar__event--cancelled { border-left-color: #7d8782; color: #56605b; background: #e7ebe8; }

.schedule-calendar__legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 1rem;
    padding: 0.75rem 1.25rem;
    border-top: 1px solid var(--color-border);
    color: var(--color-muted);
    font-size: 0.72rem;
}

.schedule-calendar__legend span { display: inline-flex; gap: 0.35rem; align-items: center; }

.schedule-calendar__legend-mark {
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 2px;
    background: #607a92;
}

.schedule-calendar__legend-mark.schedule-calendar__event--in_progress { background: #b88616; }
.schedule-calendar__legend-mark.schedule-calendar__event--delayed { background: #b6424f; }
.schedule-calendar__legend-mark.schedule-calendar__event--completed { background: #258252; }
.schedule-calendar__legend-mark.schedule-calendar__event--cancelled { background: #7d8782; }

.schedule-details { margin-top: 2rem; }
.schedule-timeline { display: grid; }

.schedule-milestone {
    display: grid;
    grid-template-columns: 76px 24px minmax(0, 1fr);
    gap: 0.75rem;
    min-height: 145px;
}

.schedule-milestone__date {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding-top: 1.05rem;
    color: var(--color-muted);
    font-size: 0.72rem;
    line-height: 1.2;
}

.schedule-milestone__date strong { color: var(--color-ink); font-size: 0.9rem; }
.schedule-milestone__date i { margin: 0.25rem 0; }

.schedule-milestone__marker {
    position: relative;
    display: flex;
    justify-content: center;
}

.schedule-milestone__marker::after {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    content: '';
    background: #cad5ce;
}

.schedule-milestone:last-child .schedule-milestone__marker::after { bottom: 50%; }

.schedule-milestone__marker span {
    position: relative;
    z-index: 1;
    width: 13px;
    height: 13px;
    margin-top: 1.35rem;
    border: 3px solid white;
    border-radius: 50%;
    background: var(--color-primary);
    box-shadow: 0 0 0 2px #9db4a7;
}

.schedule-milestone__body {
    align-self: start;
    margin-bottom: 1rem;
    padding: 1rem 1.15rem;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: white;
}

.schedule-milestone__body header {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    justify-content: space-between;
}

.schedule-milestone__body h2 { margin: 0 0 0.25rem; font-size: 1.05rem; }
.schedule-milestone__body header small { color: var(--color-muted); }
.schedule-milestone__description { margin-top: 0.8rem; color: var(--color-muted); font-size: 0.9rem; }
.schedule-milestone__description p:last-child { margin-bottom: 0; }

.schedule-milestone__internal {
    margin-top: 0.8rem;
    padding: 0.75rem;
    border-radius: 8px;
    color: #59645e;
    background: #f2f4f2;
    font-size: 0.82rem;
}

.schedule-milestone__internal strong { display: block; margin-bottom: 0.25rem; }
.schedule-milestone__internal p:last-child { margin-bottom: 0; }
.schedule-milestone__body footer { margin-top: 0.8rem; }

.action-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.action-summary article {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    padding: 1rem;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: white;
}

.action-summary article > i { color: var(--color-primary); font-size: 1.4rem; }
.action-summary strong { display: block; color: var(--color-ink); font-size: 1.35rem; line-height: 1; }
.action-summary span { color: var(--color-muted); font-size: 0.78rem; }

.portfolio-overview {
    margin-bottom: 1.5rem;
    padding: clamp(1rem, 3vw, 1.4rem);
    border: 1px solid #cfdad3;
    border-radius: 16px;
    background: linear-gradient(145deg, #f7faf8, #eef4f0);
}

.portfolio-overview__heading {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.portfolio-overview__heading h2 { margin: 0 0 0.25rem; font-size: 1.4rem; }
.portfolio-overview__heading p:not(.eyebrow) { margin: 0; color: var(--color-muted); }

.portfolio-overview__total {
    min-width: 150px;
    padding: 0.75rem 0.9rem;
    border: 1px solid #d0ddd5;
    border-radius: 10px;
    color: var(--color-muted);
    background: rgba(255, 255, 255, 0.72);
    font-size: 0.76rem;
    text-align: right;
}

.portfolio-overview__total strong {
    display: block;
    color: var(--color-ink);
    font-size: 1.45rem;
    line-height: 1;
}

.portfolio-overview .action-summary { margin-bottom: 0.8rem; }
.portfolio-priority-list { display: grid; }

.portfolio-project-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 1rem;
    align-items: center;
    padding: 0.85rem 0.25rem;
    border-top: 1px solid #d9e1dc;
    color: inherit;
    text-decoration: none;
}

.portfolio-project-row:hover { color: inherit; background: rgba(255, 255, 255, 0.5); }
.portfolio-project-row > div:first-child > span { color: var(--color-muted); font-size: 0.72rem; }
.portfolio-project-row h3 { margin: 0.1rem 0 0; font-size: 0.95rem; }
.portfolio-project-row > i { color: #7b8880; font-size: 0.8rem; }

.portfolio-project-row__counts {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.portfolio-project-row__counts span {
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    color: #526159;
    background: white;
    font-size: 0.72rem;
}

.action-clear--compact { margin: 0.8rem 0 0; }
.action-clear--compact h3 { margin: 0 0 0.2rem; font-size: 1rem; }

.action-clear {
    display: flex;
    gap: 0.9rem;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1rem 1.15rem;
    border: 1px solid #c9dbd0;
    border-radius: 12px;
    background: #eef6f1;
}

.action-clear > i { color: var(--color-primary); font-size: 1.6rem; }
.action-clear h2 { margin: 0 0 0.2rem; font-size: 1rem; }
.action-clear p { margin: 0; color: var(--color-muted); font-size: 0.84rem; }

.action-group {
    margin-top: 1rem;
    padding: 1.15rem;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    background: white;
}

.action-group .section-heading { margin-bottom: 0.7rem; }
.action-group .section-heading > a { font-size: 0.84rem; }
.action-list { display: grid; }

.integration-panel {
    margin-bottom: 1.25rem;
    padding: 1.25rem;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    background: white;
}

.integration-panel > h2 { margin-bottom: 1rem; font-size: 1.1rem; }

.integration-panel__heading {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.integration-panel__heading h2 { margin: 0; font-size: 1.15rem; }
.integration-list { display: grid; gap: 0.75rem; }

.integration-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    border: 1px solid #e3e8e5;
    border-radius: 12px;
}

.integration-row h3 { margin: 0 0 0.25rem; font-size: 1rem; }
.integration-row p { margin: 0.2rem 0 0; color: var(--color-muted); font-size: 0.8rem; }
.integration-disconnected { text-align: center; }
.integration-disconnected__icon { color: var(--color-primary); font-size: 2.5rem; }
.integration-list--spaced { margin-top: 1.25rem; }

.integration-mapping-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: 0.85rem;
    align-items: end;
    padding: 1rem;
    border-radius: 12px;
    background: #f5f8f6;
}

.integration-mapping-form .form-field { margin: 0; }
.integration-mapping-form small { display: block; margin-top: 0.3rem; color: var(--color-muted); font-size: 0.72rem; }
.integration-sync-form, .integration-error-actions, .integration-resolution-form { display: flex; gap: 0.5rem; align-items: center; }
.integration-sync-form select, .integration-resolution-form input { min-height: 31px; border: 1px solid var(--color-border); border-radius: 6px; background: white; }
.integration-error-actions { align-items: stretch; flex-direction: column; }

.summary-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.summary-strip article {
    padding: 1rem;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: white;
}

.summary-strip span { display: block; color: var(--color-muted); font-size: 0.8rem; }
.summary-strip strong { display: block; margin-top: 0.25rem; font-size: 1.25rem; }

.action-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    gap: 0.85rem;
    align-items: center;
    padding: 0.85rem 0.25rem;
    border-bottom: 1px solid #e7ebe8;
    color: inherit;
    text-decoration: none;
}

.action-row:last-child { border-bottom: 0; }
.action-row:hover { color: inherit; background: #fafbfa; }
.action-row > i:first-child { color: var(--color-primary); font-size: 1.15rem; }
.action-row > i:last-child { color: #879089; font-size: 0.8rem; }
.action-row h3 { margin: 0 0 0.2rem; font-size: 0.95rem; }
.action-row p { margin: 0; color: var(--color-muted); font-size: 0.78rem; }

@media (max-width: 720px) {
    .app-nav { gap: 0.55rem; flex-wrap: wrap; padding: 0.65rem 1rem; }
    .app-brand { margin-right: 0.15rem; }
    .app-brand span:last-child { display: none; }
    .app-nav__toggle:not([hidden]) { display: grid; place-items: center; margin-left: auto; }
    .app-nav__menu {
        flex: 0 0 100%;
        align-items: stretch;
        flex-direction: column;
        gap: 0.25rem;
        padding: 0.35rem 0 0.45rem;
    }
    .app-nav__menu[data-collapsible] { display: none; }
    .app-nav__menu[data-collapsible][data-open] { display: flex; }
    .app-nav__link { padding: 0.6rem 0.2rem; font-size: 0.95rem; }
    .app-nav__identity { margin: 0.4rem 0 0; }
    .app-nav__logout, .app-nav__logout .btn, .app-nav__login { width: 100%; }
    .app-main { padding-top: 1.5rem; }
    .page-heading, .project-hero { flex-direction: column; gap: 1rem; }
    .project-hero .btn { width: 100%; }
    .module-grid { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .form-field--wide { grid-column: auto; }
    .button-row { width: 100%; }
    .button-row .btn { flex: 1; }
    .inline-form--controls { align-items: flex-end; flex-direction: column; }
    .thread-row { grid-template-columns: auto 1fr; }
    .thread-row__meta { grid-column: 2; flex-wrap: wrap; }
    .conversation-heading { flex-direction: column; }
    .message-bubble { max-width: 100%; }
    .document-row { grid-template-columns: auto 1fr; }
    .document-row__meta { grid-column: 2; flex-wrap: wrap; }
    .decision-panel { grid-template-columns: 1fr; }
    .version-row { grid-template-columns: 1fr; }
    .schedule-calendar__header { align-items: stretch; flex-direction: column; }
    .schedule-calendar__navigation { width: 100%; }
    .schedule-calendar__navigation .btn:nth-child(2) { flex: 1; }
    .schedule-milestone { grid-template-columns: 58px 18px minmax(0, 1fr); }
    .action-row { grid-template-columns: auto minmax(0, 1fr) auto; }
    .action-row .status-pill { grid-column: 2; justify-self: start; }
    .action-row > i:last-child { grid-column: 3; grid-row: 1 / span 2; }
    .portfolio-overview__heading { flex-direction: column; }
    .portfolio-overview__total { width: 100%; text-align: left; }
    .portfolio-project-row { grid-template-columns: minmax(0, 1fr) auto; }
    .portfolio-project-row__counts { grid-column: 1; justify-content: flex-start; }
    .portfolio-project-row > i { grid-column: 2; grid-row: 1 / span 2; }
    .project-filter-bar { align-items: stretch; flex-direction: column; }
    .project-filter-form { align-items: stretch; flex-direction: column; }
    .project-filter-form__search { max-width: none; }
    .project-filter-form__date { justify-content: space-between; }
    .project-filter-form__date input { flex: 1; width: auto; }
    .project-filter-form select { width: 100%; }
    .project-filter-form .btn { width: 100%; }
    .integration-panel__heading { align-items: stretch; flex-direction: column; }
    .integration-panel__heading .btn { width: 100%; }
    .integration-row { grid-template-columns: 1fr; }
    .integration-row .status-pill { justify-self: start; }
    .integration-mapping-form { grid-template-columns: 1fr; }
    .integration-sync-form, .integration-resolution-form { align-items: stretch; flex-direction: column; }
    .help-hero { align-items: flex-start; flex-direction: column; }
    .help-hero > .btn { width: 100%; }
    .guide-two-column, .guide-checklist { grid-template-columns: 1fr; }
    .public-share-panel { grid-template-columns: 1fr; }
    .empty-state__actions { align-items: stretch; flex-direction: column; }
}
