﻿/*@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');*/
.bold-adornment .mud-input-adornment-text {
    font-weight: 700;
}

.flow-step {
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
padding: 14px 40px;
min-width: 180px;
white-space: nowrap;
color: #353535;
font-weight: 400;
clip-path: polygon( 0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%, 18px 50% );
transition: transform .15s ease, filter .15s ease;
/* Fake border using shadows that follow the clip-path */
filter: drop-shadow( 1px 0 #666) drop-shadow(-1px 0 #666) drop-shadow( 0 1px #666) drop-shadow( 0 -1px #666);
}

.flow-step-left {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 40px;
    min-width: 180px;
    white-space: nowrap;
    color: #353535;
    font-weight: 400;
    clip-path: polygon( 0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100% );
    transition: transform .15s ease, filter .15s ease;
    /* Fake border using shadows that follow the clip-path */
    filter: drop-shadow( 1px 0 #666) drop-shadow(-1px 0 #666) drop-shadow( 0 1px #666) drop-shadow( 0 -1px #666);
}

.flow-step-right {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 40px;
    min-width: 180px;
    white-space: nowrap;
    color: #353535;
    font-weight: 400;
    clip-path: polygon( 0 0, 100% 0, 100% 100%, 0% 100%, 18px 50% );
    /*clip-path: polygon( 18px 0, 100% 0, 100% 100%, 18px 100%, 0 50% );*/
    transition: transform .15s ease, filter .15s ease;
    /* Fake border using shadows that follow the clip-path */
    filter: drop-shadow( 1px 0 #666) drop-shadow(-1px 0 #666) drop-shadow( 0 1px #666) drop-shadow( 0 -1px #666);
}

.flow-step-flat {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 40px;
    min-width: 180px;
    white-space: nowrap;
    color: #353535;
    font-weight: 400;
    clip-path: polygon( 0 0, 100% 0, 100% 100%, 0 100% );
    transition: transform .15s ease, filter .15s ease;
    /* Fake border using shadows that follow the clip-path */
    filter: drop-shadow( 1px 0 #666) drop-shadow(-1px 0 #666) drop-shadow( 0 1px #666) drop-shadow( 0 -1px #666);
}

.flow-step:hover {
    filter: brightness(.92) drop-shadow( 5px 0 #555) drop-shadow(-5px 0 #555) drop-shadow( 0 5px #555) drop-shadow( 0 -5px #555);
}

.flow-normal {
    transform: scale(1);
}

.flow-selected {
    transform: scale(1.08);
    font-weight: 600;
    color: #111111;
    filter: drop-shadow( 2px 0 #444) drop-shadow(-2px 0 #444) drop-shadow( 0 2px #444) drop-shadow( 0 -2px #444);
    z-index: 2;
}

.section-divider {
    flex: 1;
    height: 1px;
    background-color: var(--mud-palette-divider); /* Uses MudBlazor theme */
    opacity: 0.7; /* Optional */
}

.library-empty-state {
    min-height: 360px;
    border: 1px solid var(--mud-palette-divider);
    border-radius: 6px;
    background: var(--app-surface-subtle);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 35px 20px;
    text-align: center;
}

.library-empty-icon {
    position: relative;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: var(--app-tint-info);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

    .library-empty-icon .mud-icon-root {
        color: var(--mud-palette-info);
        font-size: 42px;
    }

.library-empty-plus {
    position: absolute;
    right: -4px;
    bottom: -2px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--mud-palette-info);
    color: var(--mud-palette-info-text);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--app-surface-subtle);
}

    .library-empty-plus .mud-icon-root {
        font-size: 20px;
        color: var(--mud-palette-info-text);
    }

.library-empty-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--mud-palette-text-primary);
    margin-bottom: 8px;
}

.library-empty-description {
    max-width: 700px;
    font-size: 16px;
    line-height: 1.55;
    color: var(--mud-palette-text-secondary);
}

.library-empty-divider {
    width: 560px;
    max-width: 80%;
    height: 1px;
    background: var(--mud-palette-divider);
    margin: 24px 0 14px;
}

.library-empty-prompt {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: var(--mud-palette-text-secondary);
    margin-bottom: 5px;
}

.library-empty-arrow {
    color: var(--mud-palette-info);
}

.gantt-clickable {
    cursor: pointer;
}

.gantt-clickable:hover {
    transform: scale(1.03, 1.18);
}

.gantt-dependency-target {
    cursor: crosshair;
    outline: 3px solid #9C27B0;
    outline-offset: 2px;
    box-shadow: 0 0 0 2px rgba(156,39,176,.35), 0 0 10px rgba(156,39,176,.45);
    transition: all .15s ease;
}

.gantt-dependency-predecessor {
    cursor: cell;
    background-color: coral !important;
    box-shadow: 0 0 6px rgba(240,128,128,.6);
}

.gantt-dependency-driving {
    cursor: cell;
    outline: 3px solid lightcoral;
    outline-offset: 1px;
    box-shadow: 0 0 6px rgba(240,128,128,.45);
}

.gantt-dependency-predecessor-clipped {
    cursor: cell;
    background-color: coral !important;

}

/*div.Milestone.Milestone-gantt-dependency-predecessor {
    background: lightcoral !important;
    clip-path: none;
    width: 20px;
    height: 20px;
}

div.Milestone.Milestone-gantt-dependency-predecessor::after {
    content: "";
    position: absolute;
    width: 14px;
    height: 14px;
    left: 3px;
    top: 3px;
    background: black;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}*/

div.Summary.Milestone-gantt-dependency-predecessor {
    background: coral !important;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%) !important;
}

.Milestone-gantt-dependency-predecessor {
    background-color: coral !important;
}

.gantt-dependency-select {
    cursor: cell;
    transition: transform .12s ease, filter .12s ease;
    opacity: .85;
}

.gantt-dependency-select:hover {
    opacity: 1;
    transform: scale(1.03, 1.18);
}

.template-dialog-layout {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    column-gap: 1.5rem;
    row-gap: 1.5rem;
}

.template-dialog-layout .template-layout-row {
    display: contents;
}

.template-dialog-layout .template-layout-section {
    width: 100%;
    max-width: 100%;
}

.template-layout-general {
    grid-column: 1;
    grid-row: 1;
}

.template-layout-notes {
    grid-column: 1;
    grid-row: 2;
}

.template-layout-options {
    grid-column: 1;
    grid-row: 3;
}

.template-layout-scheduling {
    grid-column: 2;
    grid-row: 1;
}

.template-layout-measurement {
    grid-column: 2;
    grid-row: 2;
}

.template-layout-commercial {
    grid-column: 2;
    grid-row: 3;
}

@media (max-width: 1199.98px) {
    .template-dialog-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .template-layout-general {
        grid-column: 1;
        grid-row: 1;
    }

    .template-layout-notes {
        grid-column: 1;
        grid-row: 2;
    }

    .template-layout-options {
        grid-column: 1;
        grid-row: 3;
    }

    .template-layout-scheduling {
        grid-column: 1;
        grid-row: 4;
    }

    .template-layout-measurement {
        grid-column: 1;
        grid-row: 5;
    }

    .template-layout-commercial {
        grid-column: 1;
        grid-row: 6;
    }
}

.gantt-mode-banner {
    position: sticky;
    top: 10px;
    margin: auto;
    width: 360px;
    z-index: 1000;
    background: #F3E5F5;
    border-left: 5px solid #9C27B0;
}

/*Resource Cards*/

.resource-card {
    border-radius: 10px;
    transition: box-shadow .15s;
    border: 1px solid var(--mud-palette-lines-default);
    margin-top:4px;
}

.resource-card:hover {
    box-shadow: var(--mud-elevation-4);
}

.resource-card-grid {
    display: grid;
    grid-template-columns: 30px 30px minmax(250px, 2fr) 160px 150px 32px;
    grid-template-rows: auto auto;
    column-gap: 12px;
    row-gap: 6px;
    align-items: center;
}

/*.resource-zone {
    background: rgba(0,0,0,0.025);*/ /* subtle grey */
    /*border: 1px solid var(--mud-palette-lines-default);
    border-radius: 10px;
    min-height: 250px;
    padding: 12px;
    transition: background .15s ease;
}*/

.resource-zone {
    background: rgba(0,0,0,0.025); /* subtle grey */
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 3px;
    min-height: 150px;
    padding: 6px;
    transition: background .15s ease;
}

.drag-handle {
    grid-column: 1;
    grid-row: 1 / span 2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mud-palette-text-secondary);
}

.resource-type-icon {
    grid-column: 2;
    grid-row: 1 / span 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.name {
    grid-column: 3;
    grid-row: 1;
    font-weight: 600;
}

.qty {
    grid-column: 4;
    grid-row: 1;
    white-space: nowrap;
}

.cost {
    grid-column: 5;
    grid-row: 1;
    text-align: right;
    font-weight: 600;
}

.menu {
    grid-column: 6;
    grid-row: 1 / span 2;
    display: flex;
    justify-content: flex-end;
}

.rate {
    grid-column: 3;
    grid-row: 2;
}

.calc {
    grid-column: 4;
    grid-row: 2;
    white-space: nowrap;
}

.comments {
    grid-column: 5;
    grid-row: 2;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/*End Resource Cards*/

/*Resource Card Compact*/

.resource-card-compact {
    border-radius: 8px;
    border: 1px solid var(--mud-palette-lines-default);
    margin-top: 1px;
}

.resource-card-compact:hover {
    box-shadow: var(--mud-elevation-2);
}


.resource-card-compact-grid {
    display: grid;
    grid-template-columns: 24px 28px minmax(180px, 2fr) 170px 170px 90px 110px minmax(120px, 1fr) 32px;
    align-items: center;
    column-gap: 12px;
}


.compact-drag {
    display: flex;
    justify-content: center;
    cursor: grab;
    color: var(--mud-palette-text-secondary);
}


.compact-type {
    display: flex;
    justify-content: center;
}

.compact-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

.compact-qty,
.compact-rate{
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: right;
}

.compact-cost {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: right;
    font-weight: 500;
}

.compact-calc,
.compact-comments {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.compact-usage {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: right;
}

.compact-menu {
    display: flex;
    justify-content: flex-end;
}

.resource-row-grid {
    cursor: pointer;
    display: grid;
    grid-template-columns: 32px 36px 20% 10% 10% 10% 10% 10% 1fr 40px;
    align-items: center;
    column-gap: 12px;
    min-height: 44px;
    border-bottom: 1px solid var(--mud-palette-lines-default);
    padding: 4px 8px;
}

.resource-row-grid-edit {
    display: grid;
    grid-template-columns: 32px 36px 20% 14% 15% 7% 7% 7% 1fr 85px;
    align-items: center;
    column-gap: 12px;
    min-height: 44px;
    border-bottom: 1px solid var(--mud-palette-lines-default);
    padding: 4px 8px;
}

.resource-row-grid:hover {
    background-color: rgba(0,0,0,0.03);
}

.resource-header {
    display: grid;
    grid-template-columns: 32px 36px 20% 10% 10% 10% 10% 10% 1fr 40px;
    align-items: center;
    column-gap: 12px;
    min-height: 22px;
    font-size: 0.8rem;
    font-weight: 500;
    margin: 8px 8px 8px 8px;
}

.resource-footer {
    display: grid;
    grid-template-columns: 32px 36px 20% 10% 10% 10% 10% 10% 1fr 40px;
    align-items: center;
    column-gap: 12px;
    min-height: 22px;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 8px 8px 0px 8px;
}

.resource-drop-zone {
    padding-top: 4px;
}

/*End Resource Card Compact*/

.svg-white {
    filter: brightness(0) invert(1);
}

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

.status-bar-safe-area {
    display: none;
}

.cell-editable:hover {
    background-color: #f6f7f7;
}

table-gantt-sticky {
    overflow-x: auto;
}

table-gantt-sticky-row td:first-child {
    position: sticky;
    left: 0;
}

table-gantt-sticky-row td:first-child {
    position: sticky;
    left: 0;
}

.parent-container {
    position: relative;
}

.parent-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.5); /* Example background */
    filter: blur(3px); /* Adjust blur strength as needed */
    z-index: -1; /* Place it behind the content */
}

.child-element {
    position: relative; /* Or absolute, fixed, sticky */
    z-index: 1; /* Or any value greater than -1 */
}

.status-chip-light {
    padding: 2px 8px 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid rgba(0,0,0,0.05);
}

.status-chip-light:hover {
    filter: brightness(0.95);
}

.PendingPricing {
    background-color: #D6E9FF;
    color: #0B3C6F;
}

.PricingInProgress {
    background-color: #4DA3FF;
    color: white;
}

.PricingCompleted {
    background-color: #1F6FD1;
    color: white;
}

.WonStartDatePending {
    background-color: #DDF5E3;
    color: #1B5E20;
}

.WorksInProgress {
    background-color: #4CAF50;
    color: white;
}

.WorksCompleted {
    background-color: #2E7D32;
    color: white;
}

.Template {
    background-color: #757575;
    color: white;
}

.DidNotWin {
    /*background-color: #F2B3B3;*/
    background-color: #7a7a7a;
    color: white;
}

.CurrentUser {
    background-color: #651FFF;
    color: white;
}
 
:root {
    --ganttHeight: 15px;
}

:root {
    --ganttTopMargin: 20px;
}

.gantt-table {
    height: 100%;
}

.gantt-row {
    max-height: 25px;
    padding: 0;
    margin: 0;
    border-spacing: 0px;
    border-collapse: collapse;
}

.hybrid-gantt-row::after {
    content: "";
    position: absolute;
    inset: 0;
    background: transparent;
    pointer-events: none;
    transition: background 0.15s ease;
}

.hybrid-gantt-row:hover::after {
    background: rgba(0, 0, 0, 0.05);
}

.gantt-td {
    max-height: 25px;
    padding: 0;
    margin: 0;
    border-spacing: 0px;
    border-collapse: collapse;
}

.Provisional {
    background: transparent !important;
    border: 2px solid #808080;
    box-sizing: border-box;
}

.BgDimGrey {
    background: black;
}

.BgBlue {
    background: #1E90FF;
}

.BgBlack {
    background: black;
}

.BgDimGrey {
    background: dimgrey;
}

.BgCritical {
    background: coral;
}

.BgCompleted {
    background: limegreen;
}

.ByParent {
    background: dimgrey;
}

.Standard {
    width: 100%;
    /*height: 15px;*/
    height: var(--ganttHeight);
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    /*background: #1E90FF;*/
    padding: 0px;
    padding-top: 5px;
    margin: 0px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.Hourly {
    width: 100%;
    /*height: 15px;*/
    height: var(--ganttHeight);
    /*background: #1E90FF;*/
    padding: 0px;
    padding-top: 5px;
    margin: 0px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.Summary {
    width: 100%;
    /*height: 15px;*/
    height: var(--ganttHeight);
    /*background: dimgrey;*/
    padding: 0px;
    margin: 0px;
    margin: 0px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/*.ByParent {
    width: 100%;
    height: 5px;*/
    /*background: dimgrey;*/
    /*padding: 0px;
    margin: 0px;
    margin: 0px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}*/

.ByParent {
    width: 100%;
    height: 4px;
    /*background: dimgrey;*/
    padding: 0px;
    margin: 0px;
    border-radius: 4px;
    
}

.Milestone {
    width: 16px;
    height: 16px;
    background: black;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    position: relative;
}

.Milestone.BgCritical {
    background: coral;
}

/*.Milestone {
    width: 0;
    height: 0;
    border: 8px solid transparent;
    border-bottom-color: black;
    position: relative;
    top: -8px;
}

.Milestone:after {
    content: '';
    position: absolute;
    left: -8px;
    top: 8px;
    width: 0;
    height: 0;
    border: 8px solid transparent;
    border-top-color: black;
}*/

/*
.Milestone {
    width: 0;
    height: 0;
    border: 8px solid transparent;
    border-bottom-color: black;
    position: relative;
}

.Milestone:after {
    content: '';
    position: absolute;
    left: -8px;
    top: 8px;
    border: 8px solid transparent;
    border-top-color: black;
}*/

/*.taskbar-label {
    position: relative;
    overflow: visible;
    width:40px;
    max-width:40px;
    height:15px;
    max-height: 15px;
    line-height: 15px;
}*/
    
/*.milestone-crit {
    width: 0;
    height: 0;
    border: 8px solid transparent;
    border-bottom-color: coral;
    position: relative;
    top: -8px;
}

.milestone-crit:after {
    content: '';
    position: absolute;
    left: -8px;
    top: 8px;
    width: 0;
    height: 0;
    border: 8px solid transparent;
    border-top-color: coral;
}*/

/*.taskbar-left {
    width: 100%;*/
    /*height: 15px;*/
    /*height: var(--ganttHeight);
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
    background: #1E90FF;
    padding: 0px;
    margin: 0px;
}

.taskbar-right {
    width: 100%;*/
    /*height: 15px;*/
    /*height: var(--ganttHeight);
    margin: 0px;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    background: #1E90FF;
    padding: 0px;
}

.taskbar-center {
    width: 100%;*/
    /*height: 15px;*/
    /*height: var(--ganttHeight);
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    background: #1E90FF;
    padding: 0px;
    padding-top: 5px;
    margin: 0px;
}*/

/*.taskbar-middle {
    width: 100%;*/
    /*height: 15px;*/
    /*height: var(--ganttHeight);
    background: #1E90FF;
    padding: 0px;
    margin: 0px;
}

.taskbar-middle-left {
    width: 100%;*/
    /*height: 15px;*/
    /*height: var(--ganttHeight);
    background: #1E90FF;
    padding: 0px;
    margin: 0px;
}

.taskbar-middle-left-crit {
    width: 100%;*/
    /*height: 15px;*/
    /*height: var(--ganttHeight);
    background: coral;
    padding: 0px;
    margin: 0px;
}

.taskbar-left-crit {
    width: 100%;*/
    /*height: 15px;*/
    /*height: var(--ganttHeight);
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
    background: coral;
    padding: 0px;
    margin: 0px;
}

.taskbar-right-crit {
    width: 100%;*/
    /*height: 15px;*/
    /*height: var(--ganttHeight);
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    background: coral;
    padding: 0px;
    margin: 0px;
}

.taskbar-center-crit {
    width: 100%;*/
    /*height: 15px;*/
    /*height: var(--ganttHeight);
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    background: coral;
    padding: 0px;
    margin: 0px;
}

.taskbar-middle-crit {
    width: 100%;*/
    /*height: 15px;*/
    /*height: var(--ganttHeight);
    background: coral;
    padding: 0px;
    margin: 0px;
    margin: 0px;
}

.taskbar-middle-left-crit-comp {
    width: 100%;*/
    /*height: 15px;*/
    /*height: var(--ganttHeight);
    background: repeating-linear-gradient(to bottom, coral, coral 5px, limegreen 5px, limegreen 10px );
    padding: 0px;
    margin: 0px;
}

.taskbar-left-crit-comp {
    width: 100%;*/
    /*height: 15px;*/
    /*height: var(--ganttHeight);
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
    background: repeating-linear-gradient(to bottom, coral, coral 5px, limegreen 5px, limegreen 10px );
    padding: 0px;
    margin: 0px;
}

.taskbar-right-crit-comp {
    width: 100%;*/
    /*height: 15px;*/
    /*height: var(--ganttHeight);
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    background: repeating-linear-gradient(to bottom, coral, coral 5px, limegreen 5px, limegreen 10px );
    padding: 0px;
    margin: 0px;
}

.taskbar-center-crit-comp {
    width: 100%;*/
    /*height: 15px;*/
    /*height: var(--ganttHeight);
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    background: repeating-linear-gradient(to bottom, coral, coral 5px, limegreen 5px, limegreen 10px );
    margin: 0px;
}

.taskbar-middle-crit-comp {
    width: 100%;*/
    /*height: 15px;*/
    /*height: var(--ganttHeight);
    background: repeating-linear-gradient(to bottom, coral, coral 5px, limegreen 5px, limegreen 10px );
    padding: 0px;
    margin: 0px;
    margin: 0px;
}

.taskbar-left-comp {
    width: 100%;*/
    /*height: 15px;*/
    /*height: var(--ganttHeight);
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
    background: limegreen;
    padding: 0px;
    margin: 0px;
    margin: 0px;
}

.taskbar-right-comp {
    width: 100%;*/
    /*height: 15px;*/
    /*height: var(--ganttHeight);
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    background: limegreen;
    padding: 0px;
    margin: 0px;
    margin: 0px;
}

.taskbar-center-comp {
    width: 100%;*/
    /*height: 15px;*/
    /*height: var(--ganttHeight);
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    background: limegreen;
    padding: 0px;
    margin: 0px;
    margin: 0px;
}

.taskbar-middle-comp {
    width: 100%;*/
    /*height: 15px;*/
    /*height: var(--ganttHeight);
    background: limegreen;
    padding: 0px;
    margin: 0px;
    margin: 0px;
}

.taskbar-middle-comp-left {
    width: 100%;*/
    /*height: 15px;*/
    /*height: var(--ganttHeight);
    background: limegreen;
    padding: 0px;
    margin: 0px;
    margin: 0px;
}

.taskbar-summary-left {
    width: 100%;*/
    /*height: 15px;*/
    /*height: var(--ganttHeight);
    background: dimgrey;
    padding: 0px;
    margin: 0px;
    margin: 0px;
}*/


/*.taskbar-summary-middle {
    width: 100%;*/
    /*height: 15px;*/
    /*height: var(--ganttHeight);
    background: dimgrey;
    padding: 0px;
    margin: 0px;
    margin: 0px;
}

.taskbar-summary-right {
    width: 100%;*/
    /*height: 15px;*/
    /*height: var(--ganttHeight);
    background: dimgrey;
    padding: 0px;
    margin: 0px;
    margin: 0px;
}

.taskbar-summary-left-crit {
    width: 100%;*/
    /*height: 15px;*/
    /*height: var(--ganttHeight);
    background: coral;
    padding: 0px;
    margin: 0px;
    margin: 0px;
}

.taskbar-summary-middle-crit {
    width: 100%;*/
    /*height: 15px;*/
    /*height: var(--ganttHeight);
    background: coral;
    padding: 0px;
    margin: 0px;
    margin: 0px;
}

.taskbar-summary-right-crit {
    width: 100%;*/
    /*height: 15px;*/
    /*height: var(--ganttHeight);
    background: coral;
    padding: 0px;
    margin: 0px;
    margin: 0px;
}

.taskbar-summary-left-crit-comp {
    width: 100%;*/
    /*height: 15px;*/
    /*height: var(--ganttHeight);
    background: repeating-linear-gradient(to bottom, coral, coral 5px, limegreen 5px, limegreen 10px );
    padding: 0px;
    margin: 0px;
    margin: 0px;
}

.taskbar-summary-middle-crit-comp {
    width: 100%;*/
    /*height: 15px;*/
    /*height: var(--ganttHeight);
    background: repeating-linear-gradient(to bottom, coral, coral 5px, limegreen 5px, limegreen 10px );
    padding: 0px;
    margin: 0px;
    margin: 0px;
}

.taskbar-summary-right-crit-comp {
    width: 100%;*/
    /*height: 15px;*/
    /*height: var(--ganttHeight);
    background: repeating-linear-gradient(to bottom, coral, coral 5px, limegreen 5px, limegreen 10px );
    padding: 0px;
    margin: 0px;
    margin: 0px;
}

.taskbar-overheadSubtask-left {
    width: 100%;
    height: 3px;
    background: dimgrey;
    padding: 0px;
    margin: 0px;
    margin: 0px;
}

.taskbar-overheadSubtask-middle {
    width: 100%;
    height: 3px;
    background: dimgrey;
    padding: 0px;
    margin: 0px;
    margin: 0px;
}*/

/*
.taskbar-overheadSubtask-middle-left {
    width: 100%;
    height: 3px;
    background: dimgrey;
    padding: 0px;
    margin: 0px;
    margin: 0px;
}

.taskbar-overheadSubtask-right {
    width: 100%;
    height: 3px;
    background: dimgrey;
    padding: 0px;
    margin: 0px;
    margin: 0px;
}

.taskbar-overheadSubtask-middle-completed {
    position: relative;
    width: 100%;
    height: 3px;
    background: limegreen;
    padding: 0px;
    margin: 0px;
    margin: 0px;
}

.taskbar-overheadSubtask-middle-completed-left {
    position: relative;
    width: 100%;
    height: 3px;
    background: limegreen;
    padding: 0px;
    margin: 0px;
    margin: 0px;
}

.taskbar-overheadSubtask-middle-completed:after {
    position: absolute;
    left: 0px;
    bottom: 6px;
    width: 100%;
    height: 3px;
    background: dimgrey;
    padding: 0px;
    margin: 0px;
    margin: 0px;
}

.taskbar-hybrid {
    height: 15px;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    background: #1E90FF;
    padding: 0px;
    padding-top: 5px;
    margin: 0px;
}
*/
.meter { 
    height: 20px;
    position: relative;
    background: #555;
    border-radius: 25px;
    padding: 10px;
    box-shadow: inset 0 -1px 1px rgba(255, 255, 255, 0.3);
}

.meter > span {
    display: block;
    height: 100%;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
    background-color: rgb(43,194,83);
    background-image: linear-gradient(
      center bottom,
      rgb(43,194,83) 37%,
      rgb(84,240,84) 69%
    );
    box-shadow: 
      inset 0 2px 9px  rgba(255,255,255,0.3),
      inset 0 -2px 6px rgba(0,0,0,0.4);
    position: relative;
    overflow: hidden;
}

.taskbar-name {
    line-height: 80px;
    vertical-align:central;
}

.blur-bg-custom {
    backdrop-filter: blur(3px);
}

.text-muted-more {
    color: darkgrey;
}

.table-responsive-sticky {
    overflow-x: auto;
}

.table-responsive-sticky th.sticky-column,
.table-responsive-sticky td.sticky-column {
    position: sticky;
    left: 0; /* Adjust as needed for multiple sticky columns */
    background-color: white; /* Ensure visibility over scrolling content */
    z-index: 1; /* Keep sticky columns on top */
}

body, html {
    height: 100%;
}

/* The hero image */
.hero-image {
    /* Original decorative background, with no third-party image dependency. */
    background-image: linear-gradient(135deg, #142b43 0%, #245d89 55%, #4289b7 100%);
    /* Set a specific height */
    height: 50%;
    /* Position and center the image to scale nicely on all screens */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

/* Place text in the middle of the image */
.hero-text {
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
}

.blur-darken {
    filter: blur(1px) brightness(80%);
}


@supports (-webkit-touch-callout: none) {
    .status-bar-safe-area {
        display: flex;
        position: sticky;
        top: 0;
        height: env(safe-area-inset-top);
        background-color: #f7f7f7;
        width: 100%;
        z-index: 1;
    }

	.flex-column, .navbar-brand {
		padding-left: env(safe-area-inset-left);
	}
}


/* NEW HOMEPAGE CSS - DELETE ME IF I BREAK IT */
/* =========================================================
   BASE
   ========================================================= */

:root {
    --cl-ink: #101820;
    --cl-ink-soft: #52606a;
    --cl-dark: #26343e;
    --cl-paper: #ffffff;
    --cl-surface: #f7f8f8;
    --cl-surface-alt: #f2f4f5;
    --cl-border: #d9dee1;
    --cl-border-dark: #34434d;
    --cl-orange: #f26a2e;
    --cl-orange-dark: #cf4f18;
}

/* =========================================================
   PUBLIC FEATURE PAGES
   ========================================================= */

.marketing-page {
    color: var(--cl-ink);
    background: var(--cl-paper);
}

.feature-index-hero,
.feature-detail-hero {
    overflow: hidden;
    padding: 150px 0 110px;
    background: var(--cl-surface);
}

.feature-index-intro {
    max-width: 1120px;
}

.feature-index-intro h1,
.feature-detail-copy h1 {
    max-width: 920px;
    font-size: clamp(2.8rem, 5.2vw, 5.1rem);
}

.feature-index-lead {
    max-width: 760px;
    margin-top: 30px;
    color: var(--cl-ink-soft);
    font-size: clamp(1.1rem, 1.5vw, 1.35rem);
    line-height: 1.55;
}

.feature-index-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--cl-border);
    border-left: 1px solid var(--cl-border);
}

.feature-index-card {
    display: flex;
    min-height: 350px;
    flex-direction: column;
    padding: 34px;
    border-right: 1px solid var(--cl-border);
    border-bottom: 1px solid var(--cl-border);
    color: var(--cl-ink);
    background: var(--cl-paper);
    text-decoration: none;
    transition: box-shadow 160ms ease;
}

.feature-index-card:hover,
.feature-index-card:focus-visible {
    z-index: 2;
    color: var(--cl-ink);
    box-shadow: 0 20px 50px rgba(16, 24, 32, .12);
}

.feature-index-card .icon-block { margin: 0 0 28px; }
.feature-index-card:focus-visible { outline: 2px solid var(--cl-orange-dark); outline-offset: -3px; }
.feature-index-card h3 { margin-bottom: 16px; font-size: 1.55rem; }
.feature-index-card p { color: var(--cl-ink-soft); line-height: 1.6; }
.feature-card-link { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 28px; color: var(--cl-orange-dark); font-weight: 700; }
.feature-index-card-dark { color: #fff; background: var(--cl-dark); }
.feature-index-card-dark:hover, .feature-index-card-dark:focus-visible { color: #fff; }
.feature-index-card-dark p { color: #c2cbd0; }
.feature-index-card-dark .feature-card-link { color: #ffb18e; }

.connected-model-section {
    padding: 64px 0 80px;
    color: #fff;
    background: var(--cl-band, #101820);
}

.connected-model-layout {
    display: grid;
    grid-template-columns: minmax(320px, .8fr) minmax(480px, 1.2fr);
    align-items: center;
    gap: clamp(50px, 7vw, 110px);
}

.connected-model-layout h2 { margin-bottom: 25px; }
.connected-model-layout > div > p:last-child { max-width: 560px; color: #b8c2c8; font-size: 1.08rem; line-height: 1.65; }

.feature-detail-hero-layout {
    display: grid;
    grid-template-columns: minmax(360px, .85fr) minmax(500px, 1.15fr);
    align-items: center;
    gap: clamp(55px, 7vw, 110px);
}

.feature-detail-copy .hero-actions { margin-top: 34px; }
.feature-detail-hero-visual { min-width: 0; }

.wireframe-placeholder {
    position: relative;
    min-height: clamp(360px, 34vw, 520px);
    overflow: hidden;
    border: 1px solid var(--cl-border);
    color: var(--cl-ink);
    background: var(--cl-surface-alt);
}

.wireframe-toolbar {
    display: flex;
    height: 38px;
    align-items: center;
    gap: 6px;
    padding: 0 14px;
    border-bottom: 1px solid var(--cl-border);
    background: var(--cl-paper);
}

.wireframe-toolbar span { width: 8px; height: 8px; border-radius: 50%; background: #c6ccd0; }
.wireframe-canvas { position: absolute; inset: 62px 24px 96px; border: 1px dashed #b3bbc0; }
.wireframe-sidebar { position: absolute; inset: 0 auto 0 0; width: 22%; border-right: 1px dashed #b3bbc0; background: rgba(255,255,255,.42); }
.wireframe-line, .wireframe-block { position: absolute; display: block; background: rgba(151,161,167,.3); }
.wireframe-line-one { top: 13%; left: 28%; width: 44%; height: 8px; }
.wireframe-line-two { top: 22%; left: 28%; width: 29%; height: 6px; }
.wireframe-block-one { top: 36%; left: 28%; width: 30%; height: 43%; }
.wireframe-block-two { top: 36%; right: 5%; width: 31%; height: 43%; }
.wireframe-placeholder > p { position: absolute; right: 20px; bottom: 18px; left: 20px; display: flex; gap: 12px; align-items: baseline; font-size: .76rem; }
.wireframe-placeholder > p strong { flex: 0 0 auto; color: var(--cl-orange-dark); font-size: .62rem; letter-spacing: .12em; }
.wireframe-placeholder > p span { color: var(--cl-ink-soft); }
.wireframe-placeholder-dark { border-color: #4d5b64; color: #fff; background: #35434c; }
.wireframe-placeholder-dark .wireframe-toolbar { border-color: #4d5b64; background: #26343e; }
.wireframe-placeholder-dark .wireframe-canvas, .wireframe-placeholder-dark .wireframe-sidebar { border-color: #60707a; }
.wireframe-placeholder-dark > p span { color: #c3cdd2; }
.wireframe-placeholder-dark > p strong { color: #ffb18e; }

.capability-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--cl-border);
    border-left: 1px solid var(--cl-border);
}

.capability-card { padding: 30px; border-right: 1px solid var(--cl-border); border-bottom: 1px solid var(--cl-border); }
.capability-card h3 { margin: 0 0 14px; }
.capability-card p { color: var(--cl-ink-soft); line-height: 1.6; }
/* Section padding supplies the spacing; do not add a second layer on the row. */
.detail-story-section > .feature-row { padding-top: 0; padding-bottom: 0; border-top: 0; }
.detail-story-alt { background: var(--cl-surface); }

.feature-next-section { padding: 64px 0 80px; border-top: 1px solid var(--cl-border); }
.feature-next-layout { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 50px; }
.feature-next-layout h2 { max-width: 800px; font-size: clamp(2.2rem, 4vw, 3.8rem); }
.feature-next-layout > div > p:last-child { max-width: 720px; margin-top: 22px; color: var(--cl-ink-soft); font-size: 1.05rem; }
.feature-next-layout > a { display: flex; align-items: center; gap: 16px; padding-bottom: 8px; border-bottom: 1px solid var(--cl-orange); color: var(--cl-ink); font-weight: 800; text-decoration: none; white-space: nowrap; }

@media (max-width: 1050px) {
    .feature-index-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .connected-model-layout, .feature-detail-hero-layout { grid-template-columns: 1fr; }
    .capability-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
    .feature-index-hero, .feature-detail-hero { padding: 120px 0 76px; }
    .feature-index-grid, .capability-grid { grid-template-columns: 1fr; }
    .feature-index-card { min-height: 0; padding: 28px; }
    .connected-model-section, .feature-next-section { padding: 40px 0 56px; }
    .connected-model-layout, .feature-detail-hero-layout { grid-template-columns: minmax(0, 1fr); }
    .feature-next-layout > a { white-space: normal; }
    .wireframe-placeholder { min-height: 330px; }
    .wireframe-placeholder > p { flex-direction: column; gap: 5px; }
    .feature-next-layout { grid-template-columns: 1fr; align-items: start; }
}

* {
    box-sizing: border-box;
}

.page-container {
    width: min(calc(100% - clamp(32px, 6vw, 96px)), 1440px);
    margin-inline: auto;
}

h1,
h2,
h3 {
    margin: 0;
    color: inherit;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

h1 {
    max-width: 970px;
    font-size: clamp(3.2rem, 6.5vw, 5.9rem);
    font-weight: 700;
}

    h1 strong {
        display: block;
        color: var(--cl-orange);
    }

h2 {
    font-size: clamp(2.4rem, 4.3vw, 4.25rem);
    font-weight: 700;
}

h3 {
    font-size: 1.25rem;
}

p {
    margin: 0;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    color: var(--cl-orange-dark);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

    .eyebrow > span {
        width: 24px;
        height: 2px;
        background: currentColor;
    }

.eyebrow-light {
    color: #ffb18e;
}


/* =========================================================
   HEADER
   ========================================================= */

.landing-header {
    position: fixed;
    z-index: 100;
    top: 0;
    right: 0;
    left: 0;
    height: 64px;
    border-bottom: 1px solid var(--cl-border);
    background: var(--cl-header, rgba(255, 255, 255, 0.97));
}

.header-content {
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 11px;
    color: var(--cl-ink);
    font-size: 1.08rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-decoration: none;
}

.brand-accent {
    color: var(--cl-orange);
}

.brand-mark {
    display: grid;
    height: 24px;
    grid-template-columns: repeat(3, 4px);
    align-items: end;
    gap: 3px;
}

    .brand-mark > span {
        display: block;
        width: 4px;
        background: var(--cl-band, #101820);
    }

        .brand-mark > span:nth-child(1) {
            height: 12px;
        }

        .brand-mark > span:nth-child(2) {
            height: 18px;
        }

        .brand-mark > span:nth-child(3) {
            height: 24px;
            background: var(--cl-orange);
        }

.desktop-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(20px, 2.7vw, 40px);
}

    .desktop-nav a {
        position: relative;
        color: var(--cl-ink);
        font-size: 0.9rem;
        font-weight: 600;
        white-space: nowrap;
        text-decoration: none;
    }

        .desktop-nav a::after {
            position: absolute;
            right: 100%;
            bottom: -8px;
            left: 0;
            height: 2px;
            background: var(--cl-orange);
            content: "";
            transition: right 160ms ease;
        }

        .desktop-nav a:hover::after,
        .desktop-nav a:focus-visible::after {
            right: 0;
        }

.header-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 12px;
}

.mobile-menu-button {
    display: none !important;
}

.mobile-nav {
    display: none;
}


/* =========================================================
   BUTTONS
   ========================================================= */

::deep .mud-button-root {
    letter-spacing: normal;
    text-transform: none;
}

.primary-button {
    min-height: 44px;
    padding-inline: 20px;
    border-radius: 2px;
    color: #ffffff !important;
    background: var(--cl-orange) !important;
    font-weight: 700;
    white-space: nowrap;
}

    .primary-button:hover {
        background: var(--cl-orange-dark) !important;
    }

.outline-button {
    min-height: 44px;
    padding-inline: 20px;
    border-color: var(--cl-ink) !important;
    border-radius: 2px;
    color: var(--cl-ink) !important;
    background: var(--cl-paper);
    font-weight: 700;
    white-space: nowrap;
}

.large-button {
    min-height: 52px;
    padding-inline: 25px;
}

.white-button {
    min-height: 52px;
    padding-inline: 25px;
    border-radius: 2px;
    color: var(--cl-ink) !important;
    background: var(--cl-paper) !important;
    font-weight: 700;
    white-space: nowrap;
}

.light-outline-button {
    min-height: 52px;
    padding-inline: 25px;
    border-color: rgba(255, 255, 255, 0.65) !important;
    border-radius: 2px;
    color: #ffffff !important;
    font-weight: 700;
    white-space: nowrap;
}


/* =========================================================
   HERO
   ========================================================= */

.hero-section {
    position: relative;
    overflow: hidden;
    padding: 150px 0 110px;
    background: var(--cl-surface);
}

.hero-layout {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(420px, 0.9fr) minmax(520px, 1.1fr);
    align-items: center;
    gap: clamp(60px, 7vw, 120px);
}

.hero-content {
    position: relative;
    z-index: 2;
    min-width: 0;
}

.hero-content h1 {
    max-width: 720px;
    font-size: clamp(2.8rem, 3.6vw, 4rem);
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.hero-content h1 strong {
    white-space: nowrap;
}

@media (max-width: 1050px) {
    .hero-content h1 {
        font-size: clamp(2.7rem, 4.8vw, 3.7rem);
    }

    .hero-content h1 strong {
        white-space: normal;
    }
}

@media (max-width: 850px) {
    .hero-content h1 {
        max-width: 680px;
        font-size: clamp(2.6rem, 8vw, 3.5rem);
    }
}

.hero-lead {
    max-width: 650px;
    margin-top: 30px;
    color: var(--cl-ink);
    font-size: clamp(1.15rem, 1.5vw, 1.45rem);
    line-height: 1.45;
}

.hero-secondary {
    max-width: 600px;
    margin-top: 10px;
    color: var(--cl-ink-soft);
    font-size: 1.04rem;
}

.hero-screenshot-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    min-width: 0;
    margin: 0;
    transform: none;
}

.hero-screenshot {
    min-height: clamp(420px, 38vw, 610px);
}

.why-section {
    padding-top: 128px;
}

@media (max-width: 1050px) {
    .hero-layout {
        grid-template-columns: minmax(340px, 0.85fr) minmax(420px, 1.15fr);
        gap: 45px;
    }

    .hero-content h1 {
        font-size: clamp(2.8rem, 5vw, 4.2rem);
    }

    .hero-screenshot {
        min-height: 400px;
    }
}

@media (max-width: 850px) {
    .hero-section {
        padding: 126px 0 80px;
    }

    .hero-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hero-content h1 {
        max-width: 700px;
    }

    .hero-screenshot {
        min-height: clamp(280px, 62vw, 460px);
    }
}

/* =========================================================
   SCREENSHOT PLACEHOLDERS
   ========================================================= */

.screenshot-placeholder {
    display: block;
    width: 100%;
    background: var(--cl-surface-alt);
}

.hero-screenshot {
    min-height: clamp(380px, 43vw, 620px);
}

.variation-screenshot {
    min-height: clamp(400px, 34vw, 540px);
    border: 1px solid #4d5b64;
    background: #35434c;
}


/* =========================================================
   SHARED SECTION LAYOUT
   ========================================================= */

.content-section {
    padding: 64px 0 80px;
}

.split-heading {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    align-items: end;
    gap: 80px;
    margin-bottom: 40px;
}

.section-introduction {
    max-width: 520px;
    padding-bottom: 10px;
    color: var(--cl-ink-soft);
    font-size: 1.08rem;
}

.section-heading {
    margin-bottom: 40px;
}

.centred-heading {
    max-width: 760px;
    margin: 0 auto 40px;
    text-align: center;
}

    .centred-heading .eyebrow {
        justify-content: center;
    }

    .centred-heading > p:last-child {
        max-width: 620px;
        margin: 20px auto 0;
        color: var(--cl-ink-soft);
    }


/* =========================================================
   BENEFITS
   ========================================================= */

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid var(--cl-border);
}

.benefit-card {
    min-width: 0;
    min-height: 330px;
    padding: 32px 28px;
    border-right: 1px solid var(--cl-border);
    background: var(--cl-paper);
}

.benefit-card:last-child {
    border-right: 0;
}

.card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.icon-block {
    display: inline-grid;
    flex: 0 0 auto;
    width: 80px;
    height: 80px;
    place-items: center;
    color: var(--cl-orange);
    background: var(--cl-accent-wash, #fff0e9);
}

.card-number {
    color: #98a1a6;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.benefit-card h3 {
    margin-bottom: 14px;
}

.benefit-card p {
    color: var(--cl-ink-soft);
    font-size: 0.93rem;
}

.benefit-card-dark {
    color: #ffffff;
    background: var(--cl-dark);
}

    .benefit-card-dark p {
        color: #c2cbd0;
    }

    .benefit-card-dark .card-number {
        color: #829099;
    }


/* =========================================================
   WORKFLOW
   ========================================================= */

.workflow-more { margin-top: 28px; text-align: center; }

.workflow-section {
    overflow: hidden;
    background: var(--cl-surface-alt);
}

    .workflow-section .page-container {
        overflow-x: auto;
        scrollbar-width: thin;
        scrollbar-color: var(--cl-border) transparent;
    }

.workflow-grid {
    --workflow-number-height: 18px;
    --workflow-number-gap: 24px;
    --workflow-icon-size: 70px;
    --workflow-arrow-height: 10px;
    position: relative;
    display: grid;
    grid-template-columns: repeat(6, minmax(150px, 1fr));
    min-width: 960px;
    margin: 0;
    padding: 0 0 20px;
    list-style: none;
}

    .workflow-grid::before {
        display: none;
    }

    .workflow-grid li {
        position: relative;
        min-width: 0;
        padding: 0 18px;
        text-align: center;
    }

.workflow-number {
    display: block;
    height: var(--workflow-number-height);
    margin-bottom: var(--workflow-number-gap);
    color: #8a949a;
    font-size: 0.7rem;
    font-weight: 800;
    line-height: var(--workflow-number-height);
}

.workflow-icon {
    position: relative;
    z-index: 2;
    display: grid;
    width: var(--workflow-icon-size);
    height: var(--workflow-icon-size);
    margin: 0 auto 24px;
    place-items: center;
    border: 1px solid var(--cl-border);
    border-radius: 50%;
    color: var(--cl-ink);
    background: var(--cl-surface-alt);
}

.workflow-grid li:not(:last-child)::after {
    position: absolute;
    z-index: 1;
    top: calc( var(--workflow-number-height) + var(--workflow-number-gap) + (var(--workflow-icon-size) / 2) - (var(--workflow-arrow-height) / 2) );
    left: calc(50% + (var(--workflow-icon-size) / 2) + 10px);
    width: calc(100% - var(--workflow-icon-size) - 20px);
    height: var(--workflow-arrow-height);
    background: var(--cl-orange);
    clip-path: polygon( 0 44%, calc(100% - 7px) 44%, calc(100% - 7px) 0, 100% 50%, calc(100% - 7px) 100%, calc(100% - 7px) 56%, 0 56% );
    content: "";
}


/* =========================================================
   FEATURES
   ========================================================= */

.features-section {
    overflow: hidden;
}

.feature-row {
    display: grid;
    grid-template-columns: minmax(300px, 0.8fr) minmax(440px, 1.2fr);
    align-items: center;
    gap: clamp(50px, 7vw, 110px);
    padding: 48px 0;
    border-top: 1px solid var(--cl-border);
}

.features-section .feature-row:last-child {
    padding-bottom: 0;
}

.feature-row-reverse {
    grid-template-columns: minmax(440px, 1.2fr) minmax(300px, 0.8fr);
}

    .feature-row-reverse .feature-copy {
        order: 2;
    }

    .feature-row-reverse .screenshot-frame {
        order: 1;
    }

.feature-copy {
    min-width: 0;
}

    .feature-copy > .icon-block {
        margin-bottom: 25px;
    }

.feature-label {
    margin-bottom: 18px;
    color: var(--cl-orange-dark);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.feature-copy h3 {
    max-width: 480px;
    margin-bottom: 20px;
    font-size: clamp(1.8rem, 3vw, 2.65rem);
}

.feature-copy > p:not(.feature-label) {
    color: var(--cl-ink-soft);
    font-size: 1.02rem;
}

.feature-list {
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

    .feature-list li {
        padding: 10px 0 10px 30px;
        border-top: 1px solid var(--cl-border);
        font-size: 0.9rem;
        font-weight: 600;
    }

        .feature-list li::before {
            float: left;
            margin-left: -29px;
            color: var(--cl-orange-dark);
            content: "✓";
        }

.screenshot-frame {
    position: relative;
    z-index: 1;
    width: 100%;
    min-width: 0;
    /* Match the uncropped website captures and prevent focus from scrolling the frame. */
    aspect-ratio: 16 / 10;
    overflow: clip;
    border: 1px solid var(--cl-border);
    /* Carousel controls inherit this instead of the surrounding section's text colour. */
    color: var(--cl-ink-soft);
    background: var(--cl-paper);
    box-shadow: 0 18px 55px rgba(16, 24, 32, 0.1);
}



.screenshot-open-button {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.screenshot-open-button:focus-visible {
    outline: 3px solid var(--mud-palette-primary);
    outline-offset: -3px;
}

.feature-screenshot {
    display: block;
    width: 100%;
    height: 100%;
    min-height: clamp(340px, 31vw, 480px);
    object-fit: contain;
}


/* =========================================================
   VARIATIONS
   ========================================================= */

.variation-section {
    overflow: hidden;
    color: #ffffff;
    background: var(--cl-band, #101820);
}

.variation-layout {
    display: grid;
    grid-template-columns: minmax(340px, 0.85fr) minmax(460px, 1.15fr);
    align-items: center;
    gap: clamp(50px, 7vw, 110px);
}

.variation-copy {
    min-width: 0;
}

    .variation-copy > p:not(.eyebrow) {
        max-width: 560px;
        margin-top: 24px;
        color: #b8c2c8;
        font-size: 1.08rem;
    }

.variation-list {
    margin: 42px 0 34px;
}

    .variation-list > div {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
        padding: 18px 0;
        border-top: 1px solid var(--cl-border-dark);
    }

    .variation-list span {
        color: #ffb18e;
        font-size: 0.7rem;
        font-weight: 800;
    }

    .variation-list p {
        color: #aeb9c0;
        font-size: 0.9rem;
    }

    .variation-list strong {
        color: #ffffff;
    }

.inline-link {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--cl-orange);
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
}

.variation-visual {
    position: relative;
    width: 100%;
    min-width: 0;
    padding-top: 28px;
}

.variation-label {
    position: absolute;
    z-index: 2;
    top: 0;
    left: 28px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    color: var(--cl-ink);
    background: var(--cl-orange);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.1em;
}


/* =========================================================
   INDUSTRIES
   ========================================================= */

.industries-section {
    background: var(--cl-surface);
}

.industries-container {
    width: min(calc(100% - clamp(32px, 6vw, 96px)), 1440px);
    max-width: 1440px;
    margin-inline: auto;
}

.industry-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--cl-border);
    border-left: 1px solid var(--cl-border);
}

    .industry-grid article {
        display: flex;
        min-width: 0;
        min-height: 340px;
        flex-direction: column;
        align-items: center;
        padding: 38px 30px;
        border-right: 1px solid var(--cl-border);
        border-bottom: 1px solid var(--cl-border);
        background: var(--cl-paper);
        text-align: center;
    }

.industry-icon {
    display: grid;
    width: 68px;
    height: 68px;
    margin-bottom: 42px;
    place-items: center;
    color: var(--cl-orange);
    background: var(--cl-accent-wash, #fff0e9);
}

    .industry-icon ::deep .mud-icon-root {
        width: 38px !important;
        height: 38px !important;
        color: inherit !important;
        font-size: 38px !important;
    }

.industry-number {
    display: block;
    margin-bottom: 12px;
    color: #9aa3a8;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.industry-grid h3 {
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.industry-grid p {
    max-width: 240px;
    color: var(--cl-ink-soft);
    font-size: 0.9rem;
}

@media (max-width: 1050px) {
    .industry-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .industry-grid {
        grid-template-columns: 1fr;
    }

        .industry-grid article {
            min-height: 280px;
        }
}


/* =========================================================
   TESTIMONIAL
   ========================================================= */

.testimonial-section {
    padding: 100px 0;
}

.testimonial-layout {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr) 220px;
    align-items: center;
    gap: 50px;
}

.quote-mark {
    align-self: start;
    color: var(--cl-orange);
    font-family: Georgia, serif;
    font-size: 8rem;
    line-height: 0.8;
}

blockquote {
    min-width: 0;
    margin: 0;
}

    blockquote > p {
        max-width: 800px;
        font-size: clamp(1.7rem, 3.1vw, 2.9rem);
        font-weight: 600;
        line-height: 1.3;
        letter-spacing: -0.025em;
    }

    blockquote footer {
        display: flex;
        align-items: center;
        gap: 14px;
        margin-top: 34px;
    }

.avatar-placeholder {
    width: 45px;
    height: 45px;
    flex: 0 0 auto;
    border: 1px dashed #aab2b7;
    border-radius: 50%;
    background: var(--cl-surface-alt);
}

blockquote footer > span:last-child {
    display: flex;
    flex-direction: column;
}

blockquote footer strong {
    font-size: 0.88rem;
}

blockquote footer small {
    color: var(--cl-ink-soft);
    font-size: 0.78rem;
}

.testimonial-highlight {
    padding-left: 34px;
    border-left: 1px solid var(--cl-border);
}

    .testimonial-highlight strong {
        display: block;
        color: var(--cl-orange);
        font-size: 3.2rem;
        line-height: 1;
    }

    .testimonial-highlight span {
        display: block;
        margin-top: 10px;
        color: var(--cl-ink-soft);
        font-size: 0.86rem;
    }


/* =========================================================
   FINAL CTA
   ========================================================= */

.cta-section {
    position: relative;
    overflow: hidden;
    padding: 64px 0 80px;
    color: #ffffff;
    background: var(--cl-cta-background, var(--cl-orange-dark));
}

.cta-grid-background {
    opacity: 0.18;
    background-image: linear-gradient( rgba(255, 255, 255, 0.35) 1px, transparent 1px ), linear-gradient( 90deg, rgba(255, 255, 255, 0.35) 1px, transparent 1px );
}

.cta-layout {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);
    align-items: end;
    gap: 80px;
}

.cta-content {
    min-width: 0;
}

    .cta-content > p {
        max-width: 440px;
        color: #ffe3d6;
        font-size: 1.05rem;
    }

    .cta-content .hero-actions {
        justify-content: flex-start;
    }

        .cta-content .hero-actions ::deep .mud-button-root {
            flex: 0 0 auto;
            width: auto;
            max-width: max-content;
        }


/* =========================================================
   FOOTER
   ========================================================= */

.landing-footer {
    padding: 80px 0 60px;
    color: #d8dfe3;
    background: var(--cl-band, #101820);
}

.footer-layout {
    display: grid;
    grid-template-columns: minmax(280px, 2fr) repeat(3, minmax(120px, 1fr));
    gap: 50px;
}

.footer-brand .brand {
    color: #ffffff;
}

.footer-brand .brand-mark span:not(:last-child) {
    background: var(--cl-paper);
}

.footer-brand p {
    max-width: 290px;
    margin-top: 24px;
    color: #88969e;
    font-size: 0.9rem;
}

.footer-brand a[href^="mailto:"] {
    color: inherit;
}

.footer-brand a[href^="mailto:"]:hover {
    color: #ffffff;
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

    .footer-column h3 {
        margin-bottom: 20px;
        color: #ffffff;
        font-size: 0.75rem;
        letter-spacing: 0.11em;
        text-transform: uppercase;
    }

    .footer-column a {
        margin: 6px 0;
        color: #9eabb2;
        font-size: 0.86rem;
        text-decoration: none;
    }

        .footer-column a:hover {
            color: #ffffff;
        }


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1050px) {
    .desktop-nav,
    .header-login {
        display: none;
    }

    .mobile-menu-button {
        display: inline-flex !important;
    }

    .mobile-open .mobile-nav {
        position: absolute;
        top: 77px;
        right: 0;
        left: 0;
        display: flex;
        flex-direction: column;
        padding: 18px 24px;
        border-bottom: 1px solid var(--cl-border);
        background: var(--cl-paper);
    }

    .mobile-nav a {
        padding: 12px 0;
        color: var(--cl-dark);
        font-weight: 600;
        text-decoration: none;
    }

    .split-heading {
        grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
        gap: 50px;
    }

    .benefit-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .benefit-card {
        border-bottom: 1px solid var(--cl-border);
    }

        .benefit-card:nth-child(2n) {
            border-right: 0;
        }

        .benefit-card:nth-last-child(-n + 2) {
            border-bottom: 0;
        }

    .feature-row,
    .feature-row-reverse,
    .variation-layout {
        grid-template-columns: 1fr;
    }

        .feature-row-reverse .feature-copy,
        .feature-row-reverse .screenshot-frame {
            order: initial;
        }

    .testimonial-layout {
        grid-template-columns: 60px minmax(0, 1fr);
    }

    .testimonial-highlight {
        display: none;
    }

    .cta-layout {
        grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
        gap: 50px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 720px) {
    .page-container {
        width: calc(100% - 32px);
    }

    .landing-header {
        height: 68px;
    }

    .mobile-open .mobile-nav {
        top: 67px;
    }

    .header-trial {
        display: none;
    }

    .hero-section {
        padding-top: 126px;
        padding-bottom: 72px;
    }

    .hero-circle {
        top: 60px;
        right: -210px;
        width: 360px;
        height: 360px;
        border-width: 70px;
    }

    h1 {
        font-size: clamp(2.65rem, 12vw, 4rem);
    }

    h2 {
        font-size: clamp(2.05rem, 9vw, 3.1rem);
    }

    .hero-screenshot-wrapper {
        margin-top: 45px;
        transform: none;
    }

    .hero-screenshot {
        min-height: 280px;
    }

    .hero-actions {
        flex-direction: row;
        align-items: center;
    }

        .hero-actions ::deep .mud-button-root {
            flex: 0 0 auto;
            width: auto;
            max-width: 100%;
        }

    .hero-points {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .content-section {
        padding: 40px 0 56px;
    }

    .split-heading {
        grid-template-columns: 1fr;
        gap: 26px;
        margin-bottom: 28px;
    }

    .section-heading,
    .centred-heading {
        margin-bottom: 28px;
    }

    .benefit-grid {
        grid-template-columns: 1fr;
    }

    .benefit-card {
        min-height: 275px;
        border-right: 0;
        border-bottom: 1px solid var(--cl-border);
    }

        .benefit-card:nth-last-child(2) {
            border-bottom: 1px solid var(--cl-border);
        }

        .benefit-card:last-child {
            border-bottom: 0;
        }

    .workflow-grid {
        grid-template-columns: repeat(6, 160px);
        min-width: 960px;
    }

    .feature-row {
        gap: 42px;
        padding: 32px 0;
    }

    .feature-screenshot {
        min-height: 280px;
    }

    .screenshot-frame::before {
        inset: 14px -14px -14px 14px;
    }

    .variation-screenshot {
        min-height: 340px;
    }

    .testimonial-section {
        padding: 80px 0;
    }

    .testimonial-layout {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .quote-mark {
        font-size: 5rem;
    }

    .cta-section {
        padding: 40px 0 56px;
    }

    .cta-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-layout {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 440px) {
    .hero-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero-actions ::deep .mud-button-root {
        width: auto;
    }

    .footer-layout {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        grid-column: auto;
    }
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    .desktop-nav a::after {
        transition: none;
    }
}

/* Variation-context non-work days are ignored while a project is in pricing. */
.nwd-ignored-row > td:not(:last-child) {
    color: var(--mud-palette-text-disabled) !important;
    opacity: 0.6;
    text-decoration: line-through;
}

.nwd-ignored-detail,
.nwd-ignored-detail * {
    color: var(--mud-palette-text-disabled) !important;
}

.nwd-calendar-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 230px;
    gap: 16px;
}

.nwd-calendar-card,
.nwd-calendar-summary,
.nwd-context-card {
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 6px;
    background: var(--mud-palette-surface);
    overflow: hidden;
}

.nwd-calendar-header,
.nwd-context-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 58px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--mud-palette-lines-default);
}

.nwd-calendar-weekdays,
.nwd-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.nwd-calendar-weekdays > div {
    padding: 9px 6px;
    border-right: 1px solid var(--mud-palette-lines-default);
    color: var(--mud-palette-text-secondary);
    font-size: .8rem;
    text-align: center;
}

.nwd-calendar-weekdays > div:last-child {
    border-right: 0;
}

.nwd-calendar-day {
    min-width: 0;
    min-height: 112px;
    padding: 7px;
    border-top: 1px solid var(--mud-palette-lines-default);
    border-right: 1px solid var(--mud-palette-lines-default);
    background: var(--mud-palette-surface);
}

.nwd-calendar-day:nth-child(7n) {
    border-right: 0;
}

.nwd-calendar-day-weekend {
    background: var(--nwd-calendar-nonworking, #f1f3f5);
}

.nwd-calendar-day-outside {
    color: var(--mud-palette-text-disabled);
}

.nwd-calendar-day-outside-project,
.nwd-calendar-day-outside.nwd-calendar-day-outside-project,
.nwd-calendar-day-weekend.nwd-calendar-day-outside-project {
    color: var(--mud-palette-text-disabled);
    background: var(--nwd-outside-project, #d9dde2);
}

.nwd-calendar-day-current {
    box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--mud-palette-primary) 45%, transparent);
}

.nwd-calendar-day-number {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    font-size: .78rem;
    font-weight: 600;
}

.nwd-calendar-today {
    color: var(--mud-palette-primary);
    font-size: .62rem;
    font-weight: 700;
    text-transform: uppercase;
}

.nwd-calendar-event {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    min-width: 0;
    margin-bottom: 4px;
    padding: 5px 6px;
    border-radius: 4px;
    background: #168f91;
    color: white;
    font-size: .69rem;
    line-height: 1.15;
    cursor: default;
}

.nwd-calendar-event-pending {
    background: #538a8b;
    background-image: repeating-linear-gradient(135deg, transparent, transparent 5px, rgba(255,255,255,.12) 5px, rgba(255,255,255,.12) 10px);
}

.nwd-calendar-event-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nwd-calendar-event-badge {
    flex: 0 0 auto;
    padding: 1px 4px;
    border: 1px solid rgba(255,255,255,.7);
    border-radius: 8px;
    font-size: .58rem;
}

.nwd-calendar-milestone {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    margin-top: 4px;
    overflow: hidden;
    color: var(--mud-palette-text-primary);
    font-size: .66rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nwd-calendar-milestone > span {
    width: 3px;
    height: 15px;
    flex: 0 0 auto;
    border-radius: 2px;
    background: #f28c00;
}

.nwd-calendar-summary {
    padding: 18px;
}

.nwd-summary-stat {
    display: flex;
    flex-direction: column;
    padding: 16px 8px 22px;
    border-bottom: 1px solid var(--mud-palette-lines-default);
}

.nwd-summary-stat:last-child {
    border-bottom: 0;
}

.nwd-summary-stat strong {
    color: var(--mud-palette-primary-darken);
    font-size: 2.3rem;
    line-height: 1;
}

.nwd-summary-stat span {
    margin-top: 8px;
    color: var(--mud-palette-text-secondary);
}

.nwd-context-card {
    margin-top: 16px;
}

.nwd-context-scroll {
    overflow-x: auto;
    padding: 18px 20px 10px;
}

.nwd-context-grid {
    display: grid;
    grid-template-rows: 24px 24px repeat(3, 26px);
    column-gap: 4px;
    row-gap: 6px;
    align-items: center;
}

.nwd-context-month {
    overflow: visible;
    color: var(--mud-palette-text-primary);
    font-size: .72rem;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
}

.nwd-context-date {
    color: var(--mud-palette-text-secondary);
    font-size: .7rem;
    text-align: center;
}

.nwd-context-label {
    padding-right: 10px;
    color: var(--mud-palette-text-secondary);
    font-size: .78rem;
    white-space: nowrap;
}

.nwd-context-workday,
.nwd-context-weekend,
.nwd-context-event,
.nwd-context-empty {
    height: 21px;
    border-radius: 2px;
}

.nwd-context-workday { background: var(--nwd-timeline-working, #d9ecfb); }
.nwd-context-weekend { background: var(--nwd-timeline-nonworking, #d4d7dc); }
.nwd-context-event { background: #168f91; }
.nwd-context-empty { background: transparent; }

.nwd-context-keydate {
    position: relative;
    height: 26px;
    text-align: center;
    overflow: visible;
}

.nwd-context-keydate-marker {
    display: inline-block;
    width: 4px;
    height: 24px;
    border-radius: 2px;
    background: #f28c00;
}

.nwd-context-keydate-label {
    position: absolute;
    z-index: 2;
    top: 4px;
    left: calc(50% + 7px);
    color: var(--mud-palette-text-secondary);
    font-size: .72rem;
    line-height: 1rem;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
}

.nwd-calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    width: fit-content;
    margin: 12px 20px 20px;
    padding: 10px 14px;
    border: 1px solid #9da3aa;
    border-radius: 6px;
    color: var(--mud-palette-text-secondary);
    font-size: .76rem;
}

.nwd-calendar-legend span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.nwd-calendar-legend .nwd-calendar-legend-title {
    color: var(--mud-palette-text-disabled);
}

.nwd-calendar-legend i {
    display: inline-block;
    width: 17px;
    height: 17px;
    border-radius: 2px;
}

.nwd-legend-workday { background: var(--nwd-timeline-working, #d9ecfb); }
.nwd-legend-weekend { background: var(--nwd-timeline-nonworking, #d4d7dc); }
.nwd-legend-event { background: #168f91; }
.nwd-legend-keydate { width: 3px !important; background: #f28c00; }

@media (max-width: 960px) {
    .nwd-calendar-layout {
        grid-template-columns: 1fr;
    }

    .nwd-calendar-summary {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .nwd-calendar-summary > .mud-typography {
        grid-column: 1 / -1;
    }

    .nwd-summary-stat {
        border-right: 1px solid var(--mud-palette-lines-default);
        border-bottom: 0;
    }

    .nwd-summary-stat:last-child {
        border-right: 0;
    }

}

@media (max-width: 700px) {
    .nwd-calendar-card {
        overflow-x: auto;
    }

    .nwd-calendar-header,
    .nwd-calendar-weekdays,
    .nwd-calendar-grid {
        min-width: 720px;
    }

    .nwd-calendar-summary {
        grid-template-columns: 1fr;
    }

    .nwd-calendar-summary > .mud-typography {
        grid-column: auto;
    }

    .nwd-summary-stat {
        border-right: 0;
        border-bottom: 1px solid var(--mud-palette-lines-default);
    }
}

/* Guest screenshot review notes and capture briefs. Existing image styling is retained. */
.screenshot-review-group { min-width: 0; width: 100%; }
.feature-row-reverse > .screenshot-review-group { order: -1; }
.screenshot-frame .feature-screenshot,
.hero-programme-image .feature-screenshot {
    min-height: 0;
}

.hero-programme-image .feature-screenshot {
    height: auto;
}

.screenshot-brief-frame { aspect-ratio: auto; overflow: visible; }
.screenshot-brief-frame .wireframe-placeholder { display: flex; flex-direction: column; }
.screenshot-brief-frame .wireframe-canvas { position: relative; inset: auto; height: 180px; margin: 24px; flex: 1 0 180px; }
.screenshot-brief-frame .wireframe-placeholder > p { position: static; margin: 0; padding: 0 24px 24px; flex-direction: column; gap: 8px; font-size: .9rem; line-height: 1.6; }
.variation-section .screenshot-review-note { color: #8fc7ff; }
#about, #contact { scroll-margin-top: 100px; }
@media (max-width: 1050px) {
    .feature-row-reverse > .screenshot-review-group { order: initial; }
}

/* Opaque fills keep outlined buttons consistent over striped rows and surfaces.
   Mix interaction colours into that solid fill so underlying rows never show through. */
:root {
    /* Follow the active Mud theme, including before account appearance loads. */
    --app-outlined-button-background: var(--mud-palette-background-gray, #eeeeee);
}
.mud-button-root.mud-button-outlined:not(:disabled):not(.mud-disabled) {
    background-color: var(--app-outlined-button-background, #eeeeee);
}
.mud-button-root.mud-button-outlined:not(:disabled):not(.mud-disabled):is(:hover, :focus-visible, :active, [aria-pressed="true"]),
.mud-pagination-item-selected .mud-button-root.mud-button-outlined:not(:disabled):not(.mud-disabled) {
    background-color: color-mix(in srgb, currentColor 10%, var(--app-outlined-button-background, #eeeeee));
}

/* Project and library dialogs are rendered in MudDialogProvider's portal.
   Scope legacy Bootstrap utilities to this opt-in class, including nested controls. */
:is(.project-dialog-theme, .library-theme) .project-dialog-heading {
    background: var(--app-surface-raised);
    color: var(--mud-palette-text-primary);
}
:is(.project-dialog-theme, .library-theme) .text-black,
:is(.project-dialog-theme, .library-theme) .text-dark { color: var(--mud-palette-text-primary) !important; }
:is(.project-dialog-theme, .library-theme) .text-muted-more,
:is(.project-dialog-theme, .library-theme) .text-muted,
:is(.project-dialog-theme, .library-theme) .text-black-50 { color: var(--mud-palette-text-secondary) !important; }
:is(.project-dialog-theme, .library-theme) .text-primary { color: var(--mud-palette-primary) !important; }
:is(.project-dialog-theme, .library-theme) .text-info { color: var(--mud-palette-info) !important; }
:is(.project-dialog-theme, .library-theme) .text-success { color: var(--mud-palette-success) !important; }
:is(.project-dialog-theme, .library-theme) .text-warning { color: var(--mud-palette-warning) !important; }
:is(.project-dialog-theme, .library-theme) .text-danger { color: var(--mud-palette-error) !important; }
:is(.project-dialog-theme, .library-theme) .border-light { border-color: var(--mud-palette-divider) !important; }
:is(.project-dialog-theme, .library-theme) .bg-dark.bg-opacity-10,
:is(.project-dialog-theme, .library-theme) .bg-dark.bg-opacity-25,
:is(.project-dialog-theme, .library-theme) .bg-light { background-color: var(--app-surface-hover) !important; background-image: none; }
:is(.project-dialog-theme, .library-theme) .table {
    --bs-table-color: var(--mud-palette-text-primary);
    --bs-table-bg: transparent;
    --bs-table-border-color: var(--mud-palette-divider);
    --bs-table-striped-color: var(--mud-palette-text-primary);
    --bs-table-striped-bg: var(--app-surface-subtle);
    --bs-table-hover-color: var(--mud-palette-text-primary);
    --bs-table-hover-bg: var(--app-surface-hover);
    color: var(--mud-palette-text-primary);
    border-color: var(--mud-palette-divider);
}

/* Visitor appearance is independent of signed-in account preferences. */
html[data-guest-theme="dark"] {
    color-scheme: dark;
    --cl-ink: #edf1f4;
    --cl-ink-soft: #b3bec6;
    --cl-dark: #10161b;
    --cl-paper: #181c20;
    --cl-surface: #22282d;
    --cl-surface-alt: #2b333a;
    --cl-border: #414b53;
    --cl-border-dark: #4b5862;
    --cl-orange-dark: #ff985e;
    --cl-accent-wash: #3c2a22;
    --cl-header: rgba(24,28,32,.97);
}
html[data-guest-theme="light"] { color-scheme: light; }
.guest-layout { min-height:100vh; background:var(--cl-paper); color:var(--cl-ink); }
html[data-guest-theme="dark"] .guest-layout .text-muted { color:var(--cl-ink-soft) !important; }
html[data-guest-theme="dark"] .primary-button:hover { background:#cf4f18 !important; }
html[data-guest-theme="dark"] .mud-dialog-container .mud-dialog {
    box-shadow:0 0 0 1px rgba(255,255,255,.18),0 0 18px 1px rgba(255,255,255,.06),0 16px 48px rgba(0,0,0,.45);
}
@media (max-width: 600px) { .guest-layout .header-content { gap:8px; } .guest-layout .header-actions { gap:4px; } }

html[data-guest-theme="dark"] { --cl-band:#10161b; --cl-review-note:#8fc7ff; }
html[data-guest-theme="dark"] { --cl-cta-background:#70351f; }
html[data-guest-theme="dark"] .guest-layout .brand-mark span:not(:last-child) { background:var(--cl-ink); }
@media (min-width: 481px) {
    html[data-guest-theme="dark"] .landing-header .ripplebuild-brand {
        box-sizing: border-box;
        width: clamp(9rem, 16vw, 11rem);
        padding: 0.15rem 0.35rem;
    }
}
html[data-guest-theme="dark"] .guest-layout .mobile-nav a { color:var(--cl-ink); }
@media (max-width:480px) { .guest-layout .header-trial { display:none; } }

/* Keep the complete production story legible in the homepage hero. */
.demo-hero { padding: 110px 0 56px; }
.demo-hero .hero-layout { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 4vw, 64px); }
.demo-hero .hero-content h1 { font-size: clamp(2.4rem, 3.5vw, 3.8rem); }
.demo-hero .hero-content h1 strong { white-space: normal; }
.hero-demo-prompt { margin-top: 24px; max-width: 370px; padding-left: 16px; border-left: 2px solid var(--cl-orange-dark); color: var(--cl-ink-soft); font-size: .9rem; }
@media (max-width: 900px) {
    .demo-hero .hero-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .demo-hero { padding-top: 100px; }
    .demo-hero .hero-screenshot-wrapper { max-width: 680px; }
}

/* Guest-site reading rhythm and adoption guidance. */
.guest-layout .desktop-nav a.guest-nav-active,
.guest-layout .mobile-nav a.guest-nav-active { color: var(--cl-orange-dark); }
.guest-layout .desktop-nav a.guest-nav-active::after { width: 100%; }
.demo-hero .hero-content h1 strong { display: block; margin-top: 8px; }
.guest-layout .icon-block { width: 48px; height: 48px; margin-bottom: 20px; }
.guest-layout .feature-copy > .icon-block { width: 48px; height: 48px; }
.concise-benefits { padding: 56px 0; }
.concise-benefits h2 { margin-bottom: 24px; }
.outcome-grid, .setup-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.outcome-grid article { border-top: 1px solid var(--cl-border); padding-top: 20px; }
.outcome-grid article > span { font-size: .75rem; color: var(--cl-orange-dark); font-weight: 700; }
.outcome-grid h3, .setup-steps h3 { font-size: 1.3rem; margin: 10px 0; }
.outcome-grid p, .setup-steps p { color: var(--cl-ink-soft); line-height: 1.6; }
.getting-started { background: var(--cl-surface); scroll-margin-top: 80px; }
.setup-steps { padding-left: 24px; margin: 32px 0 48px; }
.setup-steps li { padding-left: 8px; }
.setup-steps li::marker { color: var(--cl-orange-dark); font-weight: 700; }
.guest-faq { max-width: 900px; }
.guest-faq > h3 { margin-bottom: 20px; }
.guest-faq details { padding: 18px 0; border-top: 1px solid var(--cl-border); }
.guest-faq summary { cursor: pointer; font-size: 1.05rem; font-weight: 600; }
.guest-faq details p { color: var(--cl-ink-soft); margin: 14px 0 0; line-height: 1.65; max-width: 760px; }
.guest-faq a { color: var(--cl-orange-dark); text-decoration: underline; }
.guest-faq summary:focus-visible { outline: 2px solid var(--cl-orange-dark); outline-offset: 5px; }
#about, #workflow { scroll-margin-top: 80px; }
@media (max-width: 700px) { .outcome-grid, .setup-steps { grid-template-columns: 1fr; gap: 18px; } .concise-benefits { padding: 40px 0; } }

.guest-layout .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Lock the document while daily cost entry is open, including nested dialogs.
   Tying this to the dialog DOM restores scrolling automatically on close. */
html:has(.add-daily-cost-dialog),
body:has(.add-daily-cost-dialog) {
    overflow: hidden !important;
}

.add-daily-cost-dialog .mud-dialog-content {
    overscroll-behavior: contain;
}
