:root {
    --gold: #c79a2b;
    --gold-soft: #e8d7a8;
    --black: #141414;
    --sidebar: #17191d;
    --sidebar-elevated: #22252b;
    --sidebar-border: #2c3038;
    --cream: #f4f2ee;
    --workspace: #f6f5f2;
    --white: #ffffff;
    --muted: #6b6f76;
    --text: #1c1f24;
    --border: #e2ddd4;
    --focus: #c79a2b;
    --sidebar-width: 248px;
    --sidebar-collapsed-width: 76px;
    --header-height: 64px;
    --shadow-soft: 0 1px 2px rgba(20, 20, 20, 0.04), 0 8px 24px rgba(20, 20, 20, 0.04);
    font-family: "IBM Plex Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

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

body.app-shell {
    background: var(--workspace);
    color: var(--text);
    font-family: "IBM Plex Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
    line-height: 1.45;
}

a {
    color: inherit;
}

a:focus-visible,
button:focus-visible,
.sidebar-link:focus-visible,
.header-icon-btn:focus-visible,
.header-user-btn:focus-visible,
.button:focus-visible,
.button-link:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
}

/* ----- Shell layout ----- */

.shell-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sidebar-width);
    background: var(--sidebar);
    color: #f3f4f6;
    display: flex;
    flex-direction: column;
    z-index: 40;
    border-right: 1px solid var(--sidebar-border);
    transition: width 0.22s ease, transform 0.22s ease;
}

.shell-main {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.22s ease;
}

body[data-sidebar-collapsed="true"] .shell-sidebar {
    width: var(--sidebar-collapsed-width);
}

body[data-sidebar-collapsed="true"] .shell-main {
    margin-left: var(--sidebar-collapsed-width);
}

body[data-sidebar-collapsed="true"] .sidebar-link-label,
body[data-sidebar-collapsed="true"] .sidebar-soon,
body[data-sidebar-collapsed="true"] .sidebar-footer-text {
    opacity: 0;
    width: 0;
    overflow: hidden;
    white-space: nowrap;
}

body[data-sidebar-collapsed="true"] .sidebar-brand-link {
    justify-content: center;
}

body[data-sidebar-collapsed="true"] .sidebar-logo {
    width: 36px;
    max-width: 36px;
    height: 36px;
    aspect-ratio: auto;
    flex: 0 0 36px;
    object-fit: contain;
    object-position: center center;
}

body[data-sidebar-collapsed="true"] .sidebar-link {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
}

body[data-sidebar-collapsed="true"] .sidebar-link i {
    margin: 0;
}

.shell-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 12, 0.45);
    z-index: 35;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 18px 14px 14px;
    border-bottom: 1px solid var(--sidebar-border);
    min-height: var(--header-height);
}

.sidebar-brand-link {
    display: flex;
    align-items: center;
    min-width: 0;
    text-decoration: none;
}

.sidebar-logo {
    display: block;
    width: auto;
    max-width: min(168px, 100%);
    height: auto;
    aspect-ratio: 1678 / 937;
    object-fit: contain;
    object-position: left center;
}

.sidebar-company {
    margin: 0;
    padding: 16px 18px 0;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 650;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

body[data-sidebar-collapsed="true"] .sidebar-company {
    opacity: 0;
    height: 0;
    padding: 0;
    overflow: hidden;
}

.sidebar-collapse-btn,
.header-icon-btn,
.header-user-btn {
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.sidebar-collapse-btn {
    width: 34px;
    height: 34px;
    color: #c5cad3;
    flex-shrink: 0;
}

.sidebar-collapse-btn:hover {
    background: var(--sidebar-elevated);
    color: var(--gold);
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 16px 10px;
}

.sidebar-section + .sidebar-section {
    margin-top: 18px;
}

.sidebar-section-label {
    margin: 0 12px 8px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8b919c;
}

a.sidebar-section-label {
    display: block;
    text-decoration: none;
}

a.sidebar-section-label:hover {
    color: #d7dbe2;
}

body[data-sidebar-collapsed="true"] .sidebar-section-label {
    opacity: 0;
    height: 0;
    margin: 0;
    overflow: hidden;
}

.sidebar-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 4px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 10px;
    color: #d7dbe2;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: background 0.15s ease, color 0.15s ease;
}

.sidebar-link i {
    font-size: 1.1rem;
    width: 1.25rem;
    text-align: center;
    color: #9aa1ac;
}

.sidebar-link:hover {
    background: var(--sidebar-elevated);
    color: #fff;
}

.sidebar-link:hover i {
    color: var(--gold);
}

.sidebar-link.is-active {
    background: linear-gradient(90deg, rgba(199, 154, 43, 0.22), rgba(199, 154, 43, 0.08));
    color: #fff;
    box-shadow: inset 3px 0 0 var(--gold);
}

.sidebar-link.is-active i {
    color: var(--gold);
}

.sidebar-link.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.sidebar-link-label {
    flex: 1;
    min-width: 0;
    transition: opacity 0.18s ease;
}

.sidebar-soon {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #9aa1ac;
    border: 1px solid #3a404a;
    border-radius: 999px;
    padding: 2px 7px;
}

.sidebar-footer {
    padding: 14px 16px 18px;
    border-top: 1px solid var(--sidebar-border);
}

.sidebar-footer-text {
    margin: 0;
    font-size: 0.75rem;
    color: #8b919c;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.shell-header {
    position: sticky;
    top: 0;
    z-index: 20;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 28px;
    background: rgba(246, 245, 242, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.header-page-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-icon-btn {
    width: 38px;
    height: 38px;
    color: var(--muted);
    background: var(--white);
    border: 1px solid var(--border);
}

.header-icon-btn:hover:not(:disabled),
.header-user-btn:hover:not(:disabled) {
    color: var(--text);
    border-color: #d2cbbf;
}

a.header-icon-btn {
    text-decoration: none;
}

.header-icon-btn:disabled,
.header-user-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.header-user-btn {
    gap: 8px;
    padding: 4px 10px 4px 4px;
    color: var(--text);
    background: var(--white);
    border: 1px solid var(--border);
    height: 38px;
}

.header-user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--black);
    color: var(--gold);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
}

.header-user-label {
    font-size: 0.9rem;
    font-weight: 500;
}

.header-company {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 16rem;
    height: 38px;
    padding: 0 12px 0 10px;
    color: var(--muted);
    background: var(--white);
    border: 1px solid var(--border);
    text-decoration: none;
}

.header-company:hover {
    color: var(--text);
    border-color: #d2cbbf;
}

.header-company-label {
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-nav-toggle {
    display: none;
}

.shell-workspace {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 28px 0 56px;
}

.flash-stack {
    margin-bottom: 18px;
}

.breadcrumbs {
    margin-bottom: 18px;
}

.breadcrumbs-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.breadcrumbs-list li:not(:last-child)::after {
    content: "/";
    margin-left: 8px;
    color: #b0aaa0;
}

.breadcrumbs-list a {
    color: var(--muted);
    text-decoration: none;
}

.breadcrumbs-list a:hover {
    color: var(--text);
}

.breadcrumbs-list [aria-current="page"] {
    color: var(--text);
    font-weight: 600;
}

/* ----- Dashboard ----- */

.dash-intro {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.dash-heading {
    margin: 6px 0 8px;
    font-size: 1.75rem;
    letter-spacing: -0.02em;
}

.dash-intro-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.dash-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.metric-card,
.panel,
.form-panel,
.empty-state,
.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow-soft);
}

.metric-card {
    padding: 18px 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 140px;
}

.metric-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--muted);
}

.metric-card-top i {
    color: var(--gold);
    font-size: 1.15rem;
}

.metric-label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.metric-value {
    margin: 0;
    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.metric-sub {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.metric-link {
    margin-top: auto;
    color: var(--text);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
}

.metric-link:hover {
    color: #8f6d16;
}

.dash-panels {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.panel {
    padding: 18px 20px 12px;
}

.panel-wide {
    grid-column: 1 / -1;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.panel-header h2 {
    margin: 0;
    font-size: 1.05rem;
}

.panel-header a {
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
}

.panel-header a:hover {
    color: var(--text);
}

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

.activity-list li + li {
    border-top: 1px solid var(--border);
}

.activity-list a {
    display: grid;
    gap: 2px;
    padding: 12px 2px;
    text-decoration: none;
}

.activity-list a:hover .activity-title {
    color: #8f6d16;
}

.activity-kind {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--gold);
}

.activity-title {
    font-weight: 600;
}

.activity-meta {
    color: var(--muted);
    font-size: 0.86rem;
}

.empty-state-compact {
    padding: 22px 8px 18px;
    border: 0;
    box-shadow: none;
    background: transparent;
    text-align: left;
}

.empty-state-compact h3 {
    margin: 0 0 6px;
    font-size: 1rem;
}

.empty-state-compact p {
    margin: 0 0 12px;
    color: var(--muted);
}

/* ----- Shared page chrome (legacy class names preserved) ----- */

.page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.page-heading h1 {
    margin: 4px 0 0;
    font-size: 1.55rem;
    letter-spacing: -0.02em;
}

.project-lifecycle-view {
    display: flex;
    gap: 32px;
    margin-top: 18px;
}

.project-lifecycle-view a {
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--muted);
    padding-bottom: 8px;
    border-bottom: 3px solid transparent;
}

.project-lifecycle-view a.is-current {
    color: var(--text);
    border-bottom-color: var(--gold);
}

.eyebrow {
    color: var(--gold);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    font-size: 0.75rem;
    margin: 0;
}

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

.button,
button,
.button-link {
    display: inline-block;
    border: 0;
    background: var(--gold);
    color: var(--black);
    padding: 11px 16px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border-radius: 10px;
    font: inherit;
}

.button:hover,
button:hover,
.button-link:hover {
    opacity: 0.9;
}

.form-panel,
.empty-state {
    padding: 28px;
}

.hub-heading-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: flex-end;
}

.hub-operating-identity {
    margin: 12px 0 0;
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.punch-list-summary {
    margin: 8px 0 16px;
    font-size: 1.7rem;
    font-weight: 650;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.punch-list {
    list-style: none;
    margin: 28px 0 0;
    padding: 0;
    display: grid;
    gap: 28px;
}

.punch-list-item {
    padding: 28px 32px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--white);
}

.punch-list-item-description {
    margin: 0;
    font-size: 1.28rem;
    line-height: 1.5;
    max-width: 46rem;
}

.punch-list-item-meta {
    margin: 12px 0 0;
    font-size: 1.05rem;
    color: var(--muted, #5c6570);
}

.punch-list-item.is-complete .punch-list-item-description {
    color: var(--muted, #5c6570);
}

.punch-list-add,
.punch-list-edit {
    margin-top: 28px;
    max-width: 42rem;
}

.punch-list-add h3 {
    margin: 0 0 20px;
    font-size: 1.45rem;
    letter-spacing: -0.02em;
}

.punch-list-add textarea,
.punch-list-edit textarea {
    min-height: 8rem;
    font-size: 1.1rem;
    line-height: 1.5;
}

.punch-list-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    margin-top: 8px;
}

.punch-list-action {
    margin-top: 20px;
}

.walkthrough-copy-link input {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 10px 12px;
    font: inherit;
}

.walkthrough-review-list {
    margin-bottom: 24px;
}

.button-quiet,
.button-secondary,
a.button-secondary {
    background: transparent;
    color: inherit;
    border: 1px solid var(--border);
}

.button-destructive,
button.button-destructive {
    background: transparent;
    color: #8a3b32;
    border: 1px solid #e6d5d2;
}

.lifecycle-confirm {
    max-width: 760px;
    padding: 40px 44px;
}

.lifecycle-confirm h1 {
    margin: 8px 0 0;
    font-size: 2.1rem;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.lifecycle-confirm .lede {
    margin: 20px 0 32px;
    font-size: 1.22rem;
    line-height: 1.6;
    max-width: 42rem;
}

.lifecycle-confirm .warning-copy {
    margin: 0 0 24px;
    padding: 16px 18px;
    border: 1px solid var(--border);
    background: #fff8e8;
    font-size: 1.05rem;
    line-height: 1.55;
    max-width: 42rem;
}

.lifecycle-confirm-check {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 24px;
    font-weight: 700;
    max-width: 42rem;
}

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

label {
    display: block;
    margin-bottom: 20px;
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    margin-top: 8px;
    padding: 12px;
    border: 1px solid var(--border);
    background: var(--white);
    font: inherit;
    border-radius: 10px;
}

textarea {
    resize: vertical;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 8px;
}

.form-actions a {
    color: var(--text);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.data-table th,
.data-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.data-table th {
    background: var(--black);
    color: var(--white);
}

.data-table .num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.table-wrap {
    overflow-x: auto;
}

@media print {
    .site-header,
    .sidebar,
    .form-actions,
    .page-heading .form-actions {
        display: none !important;
    }
}

.status {
    display: inline-block;
    padding: 5px 9px;
    background: #f3eee4;
    border: 1px solid var(--border);
    font-size: 14px;
    border-radius: 999px;
}

.alert {
    padding: 14px 18px;
    margin-bottom: 12px;
    background: var(--white);
    border-left: 5px solid var(--gold);
    border-radius: 10px;
    box-shadow: var(--shadow-soft);
}

.alert-error {
    border-left-color: #a12626;
}

.field-hint {
    display: block;
    margin-top: 6px;
    font-weight: 400;
    color: var(--muted);
    font-size: 14px;
}

.form-divider {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 8px 0 24px;
}

.version-current {
    border-left: 5px solid var(--gold);
}

.version-locked {
    background: #f8f3ea;
}

.status-current {
    background: #efe4c8;
    border-color: var(--gold);
    color: var(--black);
    font-weight: 700;
}

.status-locked {
    background: #f0d9d9;
    border-color: #a12626;
    color: #a12626;
    font-weight: 700;
}

.section-panel h3 {
    margin-top: 28px;
    margin-bottom: 12px;
}

.line-item-forms form {
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.pricing-summary strong {
    color: #8f6d16;
}

.co-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.co-tab {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--muted);
}

.co-tab:hover {
    color: var(--text);
}

.co-tab.is-active {
    background: var(--black);
    border-color: var(--black);
    color: var(--white);
}

.status-co-draft { background: #e9ecef; }
.status-co-pending-approval { background: #fff3cd; }
.status-co-approved { background: #d1e7dd; }
.status-co-rejected { background: #f8d7da; }
.status-co-invoiced { background: #cff4fc; }
.status-co-cancelled { background: #dee2e6; }
.status-sign-unsigned { background: #e9ecef; }
.status-sign-awaiting-signature { background: #fff3cd; }
.status-sign-signed { background: #d1e7dd; }
.status-sign-executed { background: #cff4fc; }
.sign-office-check {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
}

.hero {
    padding: 36px;
    background: var(--white);
    border-left: 6px solid var(--gold);
    margin-bottom: 24px;
    border-radius: 14px;
    box-shadow: var(--shadow-soft);
}

.hero h1 {
    margin: 8px 0 12px;
    font-size: 2rem;
}

.hero p {
    color: var(--muted);
    font-size: 1.05rem;
    max-width: 700px;
}

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

.card {
    padding: 28px;
}

.card h2 {
    margin-top: 0;
}

.card p {
    color: var(--muted);
    min-height: 48px;
}

.card strong {
    color: #8f6d16;
}

/* ----- Responsive ----- */

@media (max-width: 1200px) {
    .dash-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .shell-sidebar {
        transform: translateX(-105%);
        width: min(86vw, 280px);
        box-shadow: 12px 0 40px rgba(0, 0, 0, 0.25);
    }

    body.sidebar-open .shell-sidebar {
        transform: translateX(0);
    }

    .shell-main,
    body[data-sidebar-collapsed="true"] .shell-main {
        margin-left: 0;
    }

    .mobile-nav-toggle {
        display: inline-flex;
    }

    .sidebar-collapse-btn {
        display: none;
    }

    body[data-sidebar-collapsed="true"] .sidebar-link-label,
    body[data-sidebar-collapsed="true"] .sidebar-soon,
    body[data-sidebar-collapsed="true"] .sidebar-footer-text {
        opacity: 1;
        width: auto;
    }

    body[data-sidebar-collapsed="true"] .sidebar-logo {
        width: auto;
        max-width: min(168px, 100%);
        height: auto;
    }

    body[data-sidebar-collapsed="true"] .sidebar-link {
        justify-content: flex-start;
        padding-left: 12px;
        padding-right: 12px;
    }

    .shell-header {
        padding: 0 16px;
    }

    .shell-workspace {
        width: min(100% - 32px, 1180px);
        padding-top: 20px;
    }

    .header-user-label {
        display: none;
    }

    .dash-intro,
    .page-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .dash-metrics,
    .dash-panels,
    .grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .data-table {
        display: block;
        overflow-x: auto;
    }
}

.hub-lifecycle {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 12px;
}

.hub-lifecycle-step {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--white);
    color: var(--text);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
}

.hub-lifecycle-step:hover {
    color: #8f6d16;
    border-color: var(--gold-soft);
}

.hub-lifecycle-step.is-future {
    background: transparent;
    color: var(--muted);
    border-style: dashed;
}

.hub-lifecycle-note {
    margin: 0 0 20px;
    font-size: 0.9rem;
}

.hub-section-label {
    margin: 8px 0 10px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold);
}

.contextual-help {
    margin: 0 0 12px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--white);
}

.contextual-help > summary {
    cursor: pointer;
    list-style: none;
    padding: 8px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
}

.contextual-help > summary::-webkit-details-marker {
    display: none;
}

.contextual-help > summary::after {
    content: "Show";
    float: right;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted);
}

.contextual-help[open] > summary::after {
    content: "Hide";
}

.contextual-help-body {
    padding: 0 12px 12px;
}

.contextual-help-body p {
    margin: 0 0 8px;
    font-size: 0.92rem;
    line-height: 1.45;
}

.contextual-help-body p:last-child {
    margin-bottom: 0;
}

.contextual-help.is-future {
    background: var(--cream);
}

.contextual-help-ask {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.contextual-help-ask-label {
    display: block;
    margin: 0 0 8px;
    font-size: 0.9rem;
    font-weight: 600;
}

.contextual-help-ask-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: stretch;
}

.contextual-help-question {
    flex: 1 1 12rem;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font: inherit;
}

.contextual-help-ask-btn,
.contextual-help-voice-btn,
.contextual-help-speak-btn,
.contextual-help-stop-btn {
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--white);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.contextual-help-answer {
    margin: 10px 0 0;
    font-size: 0.95rem;
    line-height: 1.45;
}

.contextual-help-speak-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.hub-future-note {
    margin-top: 16px;
    padding: 14px 16px;
    border: 1px dashed var(--border);
    border-radius: 4px;
    background: var(--cream);
}

.hub-future-note p {
    margin: 0;
}

.hub-future-note p + p {
    margin-top: 6px;
}

@media (max-width: 640px) {
    .dash-heading {
        font-size: 1.45rem;
    }

    .metric-value {
        font-size: 1.55rem;
    }
}

.header-logout-form {
    display: inline-flex;
    margin: 0;
}

body.login-page {
    min-height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--workspace);
    font-family: "IBM Plex Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: var(--text);
}

.login-card {
    width: min(420px, calc(100% - 32px));
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    padding: 32px 28px;
}

.login-logo {
    display: block;
    margin: 0 auto 16px;
    max-width: 180px;
    height: auto;
}

.login-card h1 {
    margin: 0 0 8px;
    font-size: 1.35rem;
    text-align: center;
}

.login-lede {
    margin: 0 0 20px;
    color: var(--muted);
    text-align: center;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.login-form label {
    font-weight: 600;
    font-size: 0.9rem;
}

.login-form input[type="email"],
.login-form input[type="password"] {
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font: inherit;
    margin-bottom: 8px;
}

.login-form .button {
    margin-top: 8px;
}

.scope-extra-work-banner {
    background: #fff3cd;
    border: 2px solid #c79a2b;
    border-radius: 8px;
    padding: 12px 14px;
    font-weight: 600;
}

.scope-extra-work-panel {
    border-color: #c79a2b;
}

.scope-extra-work-row {
    background: #fff8e8;
}

.status-extra-work {
    background: #fff3cd;
    border-color: #c79a2b;
}

.schedule-bar-track {
    position: relative;
    height: 12px;
    background: #ece8df;
    border-radius: 6px;
    margin: 8px 0 14px;
    overflow: hidden;
}

.schedule-bar-fill {
    position: absolute;
    top: 0;
    height: 100%;
    background: var(--gold);
    border-radius: 6px;
}

.schedule-unscheduled-list {
    margin: 8px 0 0;
    padding-left: 18px;
}

.schedule-unscheduled-list li {
    margin: 4px 0;
}

.schedule-assignment-list,
.schedule-conflict-list {
    margin: 8px 0 14px;
    padding-left: 18px;
}

.schedule-conflict-list {
    color: #7a4a00;
}

.schedule-warning-actions {
    display: block;
    margin-top: 4px;
    color: #4a4a4a;
    font-weight: normal;
}

.schedule-work-order {
    margin-top: 16px;
}

.schedule-work-order-list {
    margin: 8px 0 14px;
    padding-left: 18px;
}

.inline-form {
    display: inline;
    margin-left: 8px;
}

/* ----- Company Attention (PERF-C) ----- */

.company-attention-heading {
    margin-bottom: 40px;
}

.company-attention-heading h1 {
    font-size: clamp(1.7rem, 2.4vw, 2.35rem);
    line-height: 1.2;
    letter-spacing: -0.03em;
    max-width: 28ch;
}

.company-attention-positive {
    font-size: 1.2rem;
    line-height: 1.5;
    max-width: 36rem;
    margin: 0;
}

.company-attention-list {
    display: flex;
    flex-direction: column;
    gap: 36px;
    max-width: 52rem;
}

.company-attention-project-identity h2 {
    margin: 0;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
}

.company-attention-project-identity .muted-copy {
    margin: 6px 0 0;
}

.company-attention-items {
    list-style: none;
    margin: 18px 0 0;
    padding: 0;
}

.company-attention-items li {
    padding: 18px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.company-attention-items li:last-child {
    padding-bottom: 0;
}

.company-attention-items strong {
    display: block;
    font-size: 1.08rem;
}

.company-attention-items p {
    margin: 8px 0 0;
    max-width: 42rem;
}

.company-attention-items a {
    font-weight: 600;
}

@media (min-width: 960px) {
    .company-attention-list {
        max-width: 68rem;
    }

    .company-attention-project {
        display: grid;
        grid-template-columns: minmax(14rem, 22rem) minmax(0, 1fr);
        column-gap: 48px;
        align-items: start;
    }

    .company-attention-items {
        margin-top: 0;
    }
}

@media (max-width: 959px) {
    .company-attention-heading h1 {
        max-width: none;
    }

    .company-attention-list {
        gap: 28px;
    }
}

/* ----- Home planning (V2.2) ----- */

.page-header,
.home-intro {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
}

.page-title,
.home-greeting {
    margin: 0 0 6px;
    font-size: 1.85rem;
    font-weight: 500;
    letter-spacing: -0.03em;
}

.page-purpose {
    margin: 0;
    max-width: 42rem;
    color: var(--muted);
    line-height: 1.5;
}

.page-section {
    margin-top: 32px;
}

.page-section > h2 {
    margin: 0 0 12px;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.button-primary,
.home-start {
    display: inline-block;
    background: var(--black);
    color: #fff;
    text-decoration: none;
    padding: 13px 18px 12px;
    letter-spacing: 0.08em;
    font-size: 12px;
    font-weight: 600;
    box-shadow: inset 0 -2px 0 var(--gold);
}

.home-pulse {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 12px 18px;
    padding: 10px 0 16px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 22px;
    font-size: 13px;
}

.home-pulse a {
    text-decoration: none;
}

.home-pulse b {
    font-weight: 600;
}

.home-pulse-sep {
    color: var(--gold);
}

.home-counts {
    list-style: none;
    margin: 0 0 8px;
    padding: 0;
    max-width: 28rem;
    border-top: 1px solid var(--border);
}

.home-counts a {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 24px;
    padding: 11px 0;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
}

.home-counts b {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.home-calendar {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 18px 0 8px;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-left: 3px solid var(--gold);
    text-decoration: none;
    color: inherit;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.home-calendar i {
    font-size: 1.15rem;
}

/* Joel, 15 Oct 2026: Company Calendar sits immediately below Start New Project. */
.home-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    flex-shrink: 0;
}

.home-actions .home-calendar {
    margin: 0;
    justify-content: center;
}

@media (max-width: 640px) {
    .home-intro {
        flex-direction: column;
        align-items: stretch;
    }
}

.home-briefing {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    margin: 8px 0 22px;
}

.home-briefing h2 {
    margin: 0 0 6px;
    font-size: 1.05rem;
    font-weight: 600;
}

.home-briefing h3 {
    margin: 12px 0 4px;
    font-size: 0.95rem;
    font-weight: 600;
}

.home-briefing ul {
    margin: 0;
    padding-left: 1.1rem;
}

.home-briefing a {
    color: inherit;
}

.contract-review-body {
    white-space: pre-wrap;
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 0.95rem;
}

.desk-print {
    letter-spacing: 0.04em;
}

@media (max-width: 800px) {
    .home-briefing {
        grid-template-columns: 1fr;
    }
}

.home-period-heading {
    margin: 8px 0 14px;
    font-size: 1.35rem;
    font-weight: 500;
    letter-spacing: -0.03em;
}

.home-planning {
    display: grid;
    grid-template-columns: minmax(0, 1.72fr) minmax(280px, 0.72fr);
    gap: 36px;
    align-items: start;
}

.home-cal-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.home-cal-head h2 {
    margin: 0;
    font-size: 1.55rem;
    font-weight: 500;
    letter-spacing: -0.03em;
}

.home-cal-nav {
    display: flex;
    gap: 12px;
    color: var(--muted);
    font-size: 13px;
}

.home-cal-nav a {
    text-decoration: none;
    padding: 0 4px;
}

.home-cal-today {
    color: var(--text);
    border-bottom: 1px solid var(--gold);
}

.home-month {
    background: #fffcf8;
    border-top: 1px solid var(--text);
}

.home-dow {
    display: grid;
    grid-template-columns: 52px repeat(7, 1fr);
    border-bottom: 1px solid var(--border);
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.home-dow span {
    padding: 8px 8px;
}

.home-week {
    display: grid;
    grid-template-columns: 52px 1fr;
    border-bottom: 1px solid var(--border);
    min-height: 112px;
}

.home-week-rail {
    padding: 10px 6px 8px 0;
    color: var(--muted);
    font-size: 11px;
}

.home-week-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    position: relative;
}

.home-day {
    min-height: 112px;
    padding: 7px 8px 22px;
    border-left: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    position: relative;
}

.home-week-grid > .home-day:first-child {
    border-left: 0;
}

.home-day.is-out {
    color: #b7b3ab;
}

.home-day.is-weekend {
    background: #fbfaf7;
}

.home-day.is-selected {
    box-shadow: inset 0 2px 0 var(--gold);
}

.home-day.is-today .home-day-num {
    border-bottom: 1px solid var(--gold);
}

/* Capability only. Do not apply until payday / closed / holiday authority exists. */
.home-day.is-payday { background: #dcefe0; }
.home-day.is-closed { background: #f6e4e4; }
.home-day.is-holiday { background: #efe8dc; }

.home-day-num {
    font-size: 15px;
    font-weight: 500;
}

.home-overflow {
    position: absolute;
    right: 6px;
    bottom: 6px;
    font-size: 10px;
    color: var(--muted);
}

.home-bands {
    position: absolute;
    inset: 32px 0 20px;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-auto-rows: 15px;
    row-gap: 3px;
    align-content: start;
    pointer-events: none;
}

.home-band {
    pointer-events: auto;
    height: 15px;
    margin: 0 4px;
    padding: 0 6px 0 5px;
    background: rgba(26, 31, 40, 0.055);
    border: 1px solid rgba(26, 31, 40, 0.18);
    border-left-width: 2px;
    color: var(--text);
    font-size: 11px;
    font-weight: 500;
    line-height: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-decoration: none;
}

.home-band.accent-a { border-left-color: #1d2a3a; }
.home-band.accent-b { border-left-color: #6a5f52; }
.home-band.accent-c { border-left-color: #3d4a3f; }
.home-band.accent-none { border-left-color: rgba(26, 31, 40, 0.28); }
.home-band.is-conflict { border-left-color: #8a3b32; }

.home-band-crew {
    flex: none;
    font-size: 9px;
    letter-spacing: 0.06em;
    font-weight: 600;
    padding-right: 6px;
    border-right: 1px solid rgba(26, 31, 40, 0.18);
}

.home-band-ttl {
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.home-band-mark {
    flex: none;
    width: 5px;
    height: 5px;
    border: 1px solid #8a3b32;
    border-radius: 50%;
}

.home-cal-empty {
    margin-top: 12px;
}

.home-aside h3 {
    margin: 0 0 10px;
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 600;
}

.home-unscheduled {
    margin-bottom: 28px;
}

.home-unscheduled-item {
    padding: 10px 0;
    border-top: 1px solid var(--border);
}

.home-unscheduled-item:last-of-type {
    border-bottom: 1px solid var(--border);
}

.home-unscheduled-name {
    font-weight: 600;
}

.home-unscheduled-meta {
    color: var(--muted);
    font-size: 13px;
}

.home-detail-date {
    font-size: 1.35rem;
    margin: 0 0 18px;
    letter-spacing: -0.03em;
}

.home-block {
    margin-bottom: 16px;
}

.home-block h4 {
    margin: 0 0 6px;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 600;
}

.home-block p {
    margin: 0 0 3px;
}

.home-attn {
    color: #8a3b32;
}

@media (max-width: 1100px) {
    .home-planning {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

/* Calibrayt register pattern — first use: office Projects. Later Clients / Estimates may inherit. */

.projects-intro {
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.projects-view {
    display: flex;
    gap: 28px;
    margin: 0 0 8px;
    border-bottom: 1px solid var(--border);
}

.cost-category-view {
    flex-wrap: wrap;
    max-width: 100%;
    min-width: 0;
    row-gap: 4px;
}

.projects-view a {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    padding: 0 0 9px;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
}

.projects-view a.is-current {
    color: var(--text);
    border-bottom: 2px solid var(--gold);
}

.projects-view-count {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--muted);
}

.projects-view a.is-current .projects-view-count {
    color: var(--text);
}

.register-head,
.projects-head,
.register-row,
.projects-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(8.5rem, 14rem);
    gap: 12px 48px;
    align-items: center;
}

.register-head,
.projects-head {
    padding: 14px 4px 8px 0;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.register-row,
.projects-row {
    padding: 20px 4px 20px 0;
    border-bottom: 1px solid var(--border);
    color: inherit;
    text-decoration: none;
}

.register-row:hover .projects-row-name,
.projects-row:hover .projects-row-name {
    color: var(--gold);
}

.register-row.is-static {
    cursor: default;
}

.register-row.is-static:hover .projects-row-name {
    color: inherit;
}

.document-warning {
    color: #8a3b32;
    font-size: 0.9rem;
    font-weight: 600;
}

.register-row.cost-row {
    grid-template-columns: minmax(0, 1.8fr) 8.5rem 5.5rem 7.5rem 6.5rem;
}

@media (max-width: 720px) {
    .register-row.cost-row {
        grid-template-columns: minmax(0, 1fr) auto;
    }
}

.projects-row:hover .projects-row-go {
    color: var(--text);
}

.projects-row-identity {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.projects-row-name {
    font-size: 1.12rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.projects-row-client {
    color: var(--muted);
    font-size: 0.9rem;
}

.projects-row-location {
    color: #8a8e95;
    font-size: 0.84rem;
}

.projects-row-stage {
    justify-self: start;
    color: var(--text);
    font-size: 0.88rem;
    font-weight: 500;
}

.projects-row-go {
    justify-self: end;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.projects-row-go::after {
    content: " ›";
    letter-spacing: 0;
    text-transform: none;
}

.projects-workspace.is-closed-view .projects-row-name {
    color: #3d4148;
}

.projects-empty-title {
    margin-top: 10px;
    font-weight: 600;
    color: var(--text);
}

.estimate-index-head,
.estimate-index-row {
    display: grid;
    grid-template-columns: 8.5rem minmax(0, 1.4fr) minmax(0, 1.2fr) 8rem 7.5rem;
    gap: 12px 24px;
    align-items: baseline;
}

.estimate-index-head {
    padding: 4px 4px 8px 0;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.estimate-index-row {
    padding: 16px 4px 16px 0;
    border-bottom: 1px solid var(--border);
    color: inherit;
    text-decoration: none;
}

.estimate-index-row:hover .estimate-index-title {
    color: var(--gold);
}

.estimate-index-number,
.estimate-index-title {
    font-weight: 500;
}

.estimate-index-project,
.estimate-index-stage,
.estimate-index-total {
    color: var(--text);
}

.register-table {
    width: 100%;
    border-collapse: collapse;
    background: transparent;
    box-shadow: none;
}

.register-table th,
.register-table td {
    padding: 16px 16px 16px 0;
    text-align: left;
    border-bottom: 1px solid var(--border);
    vertical-align: baseline;
}

.register-table th {
    padding-top: 14px;
    padding-bottom: 8px;
    background: transparent;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.register-table td:first-child {
    font-weight: 500;
}

@media (max-width: 720px) {
    .page-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .register-head,
    .projects-head,
    .register-row,
    .projects-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 4px;
    }

    .register-head span:last-child,
    .projects-head span:last-child {
        display: none;
    }

    .register-row,
    .projects-row {
        padding: 16px 0;
    }

    .estimate-index-head {
        display: none;
    }

    .estimate-index-row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 2px 16px;
        padding: 16px 0;
    }

    .estimate-index-project,
    .estimate-index-stage {
        grid-column: 1 / -1;
        color: var(--muted);
        font-size: 0.88rem;
    }
}

.build-drawings {
    padding: 18px 20px 8px;
    margin: 24px 0;
    max-width: 100%;
}

.build-drawings-note {
    margin: 0 0 16px;
    max-width: 42rem;
    line-height: 1.5;
}

.build-drawings .warning-copy {
    margin: 0 0 20px;
    padding: 16px 18px;
    border: 1px solid var(--border);
    background: #fff8e8;
    line-height: 1.5;
    max-width: 42rem;
}

.build-drawings .warning-copy p {
    margin: 0 0 8px;
    font-weight: 700;
}

.build-member-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 16px;
    padding: 12px;
    border: 1px solid var(--border);
    min-width: 0;
}

.build-member-row legend {
    padding: 0 6px;
    font-weight: 700;
}

.build-candidate-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.build-candidate-list li {
    margin: 0 0 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

@media (max-width: 720px) {
    .build-drawings {
        padding: 16px 14px 4px;
    }

    .build-member-row {
        grid-template-columns: 1fr;
    }
}

.drawing-requirement {
    margin: 0 0 16px;
    max-width: 42rem;
}

.drawing-requirement p {
    margin: 0 0 12px;
    line-height: 1.5;
}

.drawing-requirement-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 100%;
}

.drawing-requirement-actions button {
    max-width: 100%;
}

[data-wall-framing-calculator] fieldset {
    margin: 0 0 16px;
    padding: 12px;
    min-width: 0;
    max-width: 100%;
    border: 1px solid var(--border);
    border-radius: 10px;
}

[data-wall-elevation] {
    max-width: 100%;
    overflow: hidden;
}

[data-wall-elevation] svg {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 520px) {
    .header-left {
        flex: 1;
        overflow: hidden;
    }

    .header-page-title {
        min-width: 0;
    }

    .header-company-label {
        display: none;
    }

    .header-company {
        width: 38px;
        max-width: none;
        justify-content: center;
        padding: 0;
    }
}

@media (max-width: 520px) {
    .drawing-requirement-actions {
        flex-direction: column;
    }

    .drawing-requirement-actions button {
        width: 100%;
    }
}

.scope-heading-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 100%;
}

@media (max-width: 520px) {
    .scope-heading-actions {
        width: 100%;
    }

    .scope-heading-actions .button-link {
        display: block;
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }
}

.project-setup {
    max-width: 42rem;
}

.project-setup h2 {
    margin: 0 0 8px;
    font-size: 1.05rem;
}

.project-setup ul {
    margin: 0 0 16px;
    padding-left: 1.2rem;
}

.project-setup-action {
    margin: 16px 0;
}

.project-setup-action .button {
    max-width: 100%;
}

@media (max-width: 520px) {
    .project-setup-action .button {
        display: block;
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }
}


/* Estimate versions table (defect 3, 21 Oct 2026): eleven columns must fit the 1280 px desktop
   content area without the page scrolling sideways. Tighter cells, the lock shown under the status,
   and the action buttons stacked in their column; the wrapper scrolls only on narrower screens. */
.estimate-versions-wrap {
    margin-bottom: 24px;
}
.estimate-versions-table th,
.estimate-versions-table td {
    padding: 10px 8px;
}
.estimate-versions-table .status {
    margin-top: 4px;
}
.estimate-version-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
}
.estimate-version-actions form {
    display: block !important;
}
.estimate-version-actions .button-link,
.estimate-version-actions button {
    width: 100%;
    padding: 6px 10px;
    text-align: center;
    white-space: nowrap;
}

/* Original or extra work, asked when the office adds work (defect 7, 21 Oct 2026). */
.scope-choice {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 14px;
    margin: 10px 0;
    display: grid;
    gap: 6px;
}
.scope-choice legend {
    font-weight: 600;
    padding: 0 4px;
}
.scope-choice label {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    font-weight: 400;
}
.scope-choice input[type="radio"] {
    width: auto;
    margin-top: 3px;
}
