:root {
    --pm-teal: #a34858;
    --pm-ink: #29272b;
    --pm-muted: #625b60;
    --pm-line: #e5e1e4;
    --pm-paper: #fff;
    --pm-ground: #f8f8f9;
    font-family: "Public Sans", sans-serif;
    color: var(--pm-ink);
    background: var(--pm-ground);
}
* {
    box-sizing: border-box;
    letter-spacing: 0 !important;
}
body {
    margin: 0;
}
a,
button,
input,
textarea {
    -webkit-tap-highlight-color: transparent;
}
button,
input,
textarea,
select {
    font: inherit;
}
button,
a {
    touch-action: manipulation;
}
:focus-visible {
    outline: 3px solid #d09b40;
    outline-offset: 3px;
}
.site-content h1:focus {
    outline: none;
}
.site-header {
    min-height: 76px;
    padding: 14px max(24px, calc((100% - 1440px) / 2));
    background: #fff;
    border-bottom: 1px solid var(--pm-line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.brand {
    display: inline-flex;
    gap: 12px;
    align-items: center;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--pm-ink);
    white-space: nowrap;
}
.brand svg {
    color: var(--pm-teal);
}
.brand-monogram {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 62px;
    height: 48px;
    padding-bottom: 5px;
    color: #fff;
    background: var(--pm-teal);
    clip-path: polygon(10% 0, 100% 0, 90% 86%, 48% 100%, 0 86%);
    font-size: 1.35rem;
    font-style: italic;
    font-weight: 800;
}
.brand-monogram::after {
    content: "";
    position: absolute;
    bottom: 7px;
    width: 38px;
    height: 4px;
    background: #f2cbd1;
    clip-path: polygon(0 0, 50% 45%, 100% 0, 100% 55%, 50% 100%, 0 55%);
}
.photo-credit {
    margin: 0;
    padding: 0 24px 20px;
    text-align: center;
    color: var(--pm-muted);
    font-size: 0.75rem;
}
.photo-credit a {
    text-decoration: underline;
}
.site-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}
.site-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    color: var(--pm-muted);
    border: 0;
    background: transparent;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 4px;
    white-space: nowrap;
}
.site-nav-link:hover,
.site-nav-link.active {
    background: #f8edef;
    color: #913d4d;
}
.register-link {
    background: var(--pm-teal);
    color: #fff;
}
.register-link:hover {
    background: #913d4d;
    color: #fff;
}
.site-content {
    min-height: calc(100dvh - 146px);
}
.site-content:not(:has(.welcome)):not(:has(.workspace)) {
    max-width: 1120px;
    margin: auto;
    padding: 36px 24px 56px;
}
.site-content
    form
    input:not(.mud-input-slot):not([type="hidden"]):not([type="checkbox"]) {
    max-width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--pm-line);
    border-radius: 4px;
    background: white;
}
.site-content form label:not(.mud-input-label) {
    display: block;
    margin-bottom: 6px;
    font-size: 0.85rem;
}
.site-content
    > :not(.welcome):not(.welcome-next):not(.workspace):not(
        .mud-dialog-container
    ):not(.mud-popover-provider) {
    margin-left: auto;
    margin-right: auto;
}
.site-content > .mud-container {
    padding-top: 40px;
    padding-bottom: 40px;
}
.site-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 24px max(24px, calc((100% - 1440px) / 2));
    border-top: 1px solid var(--pm-line);
    color: var(--pm-muted);
    font-size: 0.75rem;
    background: #fff;
}
.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    background: white;
    padding: 12px;
    z-index: 9999;
}
.skip-link:focus {
    top: 8px;
}
.workspace {
    max-width: 1440px;
    margin: auto;
    padding: 36px 32px 64px;
}
.workspace-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
}
.workspace-heading .mud-typography-overline {
    color: var(--pm-muted);
    font-size: 0.7rem;
}
.metrics-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--pm-line);
    border-bottom: 1px solid var(--pm-line);
    margin-bottom: 28px;
    background: #fff;
}
.metrics-strip > div {
    padding: 22px 24px;
    border-right: 1px solid var(--pm-line);
}
.metrics-strip > div:last-child {
    border: 0;
}
.metrics-strip strong {
    display: block;
    font-size: 1.8rem;
    line-height: 1.2;
    margin-bottom: 8px;
    font-weight: 650;
}
.metrics-strip span {
    color: var(--pm-muted);
    font-size: 0.8rem;
}
.workspace-fields {
    border: 0;
    margin: 0;
    padding: 0;
    min-width: 0;
}
.mud-alert-message {
    min-width: 0;
    overflow-wrap: anywhere;
}
.mud-alert-position {
    min-width: 0;
    max-width: 100%;
}
.workspace-panel {
    padding-top: 28px;
}
.setup-panel {
    padding-top: 24px;
}
.mud-tabs-toolbar {
    border-bottom: 1px solid var(--pm-line);
    background: transparent !important;
}
.mud-tab {
    min-height: 52px;
}
.form-section {
    max-width: 760px;
    min-width: 0;
}
.form-section > .mud-input-control {
    margin-bottom: 16px;
}
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin: 18px 0 22px;
}
.form-grid > * {
    min-width: 0;
}
.form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
}
.section-band {
    border-top: 1px solid var(--pm-line);
    padding-top: 28px;
    margin-top: 32px;
}
.section-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 22px;
}
.section-toolbar > .mud-typography {
    flex: 1;
}
.section-toolbar > .mud-input-control {
    width: 260px;
    flex: 0 1 260px;
}
.mud-table {
    border-radius: 0 !important;
    background: #fff;
}
.mud-table-head .mud-table-cell {
    font-size: 0.75rem;
    color: var(--pm-muted);
    font-weight: 700;
    background: #f2f0f3;
}
.mud-table-cell {
    padding: 16px !important;
    overflow-wrap: anywhere;
}
.mud-table-cell small {
    color: var(--pm-muted);
}
.mud-table-cell .mud-input-control {
    min-width: 145px;
}
.payment-details {
    max-width: 760px;
    padding: 24px 0;
}
.payment-details dl {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 12px 24px;
    margin: 20px 0;
}
.payment-details dt {
    color: var(--pm-muted);
    font-size: 0.85rem;
}
.payment-details dd {
    margin: 0;
    font-weight: 600;
    overflow-wrap: anywhere;
}
.result-editor {
    padding-top: 24px;
    border-top: 1px solid var(--pm-line);
    margin: 20px 0;
}
.stopwatch-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
}
.stopwatch-controls output {
    min-width: 120px;
    font-size: 1.25rem;
    font-variant-numeric: tabular-nums;
}
.filter-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.filter-grid > * {
    min-width: 0;
}
.progress-chart {
    background: #fff;
    border-bottom: 1px solid var(--pm-line);
    padding: 20px 12px;
    min-height: 340px;
    margin-bottom: 24px;
    overflow: hidden;
}
.empty-state {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 12px;
    min-height: 200px;
    color: var(--pm-muted);
    border-bottom: 1px solid var(--pm-line);
    margin-bottom: 24px;
}
.editor-layout {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(0, 1.3fr);
    gap: 40px;
    align-items: start;
}
.welcome {
    min-height: min(660px, calc(100dvh - 170px));
    position: relative;
    display: flex;
    align-items: center;
    color: white;
    isolation: isolate;
    background: #29272b;
}
.welcome-photo {
    position: absolute;
    inset: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
    z-index: -2;
}
.welcome::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        90deg,
        rgba(32, 24, 29, 0.86),
        rgba(32, 24, 29, 0.58) 45%,
        rgba(32, 24, 29, 0.06)
    );
}
.welcome-content {
    max-width: 1440px;
    width: 100%;
    margin: auto;
    padding: 56px 48px;
}
.welcome-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    color: #f2cbd1;
    margin: 0 0 22px;
}
.welcome h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 800;
    margin: 0 0 22px;
}
.welcome-lead {
    font-size: 1.7rem;
    font-weight: 500;
    line-height: 1.45;
    margin: 0 0 18px;
}
.welcome-copy {
    max-width: 410px;
    font-size: 1rem;
    line-height: 1.65;
    color: #eee7eb;
}
.welcome-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}
.welcome-next {
    display: flex;
    align-items: center;
    gap: 56px;
    padding: 40px 48px;
    max-width: 1440px;
    margin: auto;
}
.welcome-next > span {
    font-size: 0.75rem;
    color: var(--pm-teal);
    font-weight: 700;
    white-space: nowrap;
}
.welcome-next h2 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}
.welcome-next p {
    color: var(--pm-muted);
    font-size: 0.9rem;
}
.welcome-next svg {
    margin-left: auto;
    flex-shrink: 0;
}
#blazor-error-ui {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff0d6;
    padding: 16px 24px;
    z-index: 10000;
    box-shadow: 0 -2px 6px #0002;
}
#blazor-error-ui .dismiss {
    float: right;
    border: 0;
    background: transparent;
    cursor: pointer;
}
.validation-message {
    color: #b33a3a;
}
@media (max-width: 960px) {
    .workspace {
        padding: 28px 20px 48px;
    }
    .editor-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }
    .filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .welcome h1 {
        font-size: 2.8rem;
    }
}
@media (max-width: 600px) {
    .site-header {
        padding: 16px;
        flex-wrap: wrap;
        gap: 14px;
    }
    .brand {
        font-size: 1rem;
        white-space: normal;
        max-width: 100%;
    }
    .site-nav {
        gap: 0;
        flex-wrap: wrap;
    }
    .site-nav-link {
        padding: 9px 10px;
        font-size: 0.8rem;
    }
    .site-header:has(.site-nav form) .site-nav {
        width: 100%;
        justify-content: space-between;
    }
    .site-footer {
        padding: 20px 16px;
        flex-wrap: wrap;
    }
    .site-footer span:nth-child(2) {
        display: none;
    }
    .workspace {
        padding: 24px 16px 40px;
    }
    .workspace-heading {
        margin-bottom: 20px;
    }
    .metrics-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .metrics-strip > div {
        padding: 18px 16px;
        border-bottom: 1px solid var(--pm-line);
    }
    .metrics-strip > div:nth-child(2) {
        border-right: 0;
    }
    .metrics-strip > div:nth-child(3),
    .metrics-strip > div:nth-child(4) {
        border-bottom: 0;
    }
    .metrics-strip strong {
        font-size: 1.5rem;
    }
    .form-grid,
    .filter-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .form-grid > div:empty {
        display: none;
    }
    .section-toolbar {
        gap: 12px;
    }
    .section-toolbar > .mud-input-control {
        flex-basis: 100%;
        width: 100%;
    }
    .payment-details dl {
        grid-template-columns: minmax(0, 1fr);
        gap: 6px;
    }
    .payment-details dd {
        margin-bottom: 12px;
    }
    .mud-table-cell {
        padding: 12px !important;
    }
    .mud-table-cell .mud-input-control {
        max-width: 190px;
    }
    .welcome {
        min-height: 580px;
    }
    .welcome-content {
        padding: 44px 24px;
    }
    .welcome h1 {
        font-size: 2.4rem;
    }
    .welcome-lead {
        font-size: 1.35rem;
    }
    .welcome::before {
        background: rgba(32, 24, 29, 0.65);
    }
    .welcome-next {
        padding: 30px 24px;
        gap: 18px;
        align-items: start;
        flex-wrap: wrap;
    }
    .welcome-next > span {
        width: 100%;
    }
    .welcome-next > div {
        flex: 1;
    }
    .welcome-next h2 {
        font-size: 1.2rem;
    }
    .welcome-next svg {
        display: none;
    }
}
