html, body {
    background: #f5f7f8;
    color: #182025;
    font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.5rem;
    padding-bottom: 3rem;
}

.profile-chip {
    align-items: center;
    display: flex;
    gap: .75rem;
    margin-left: auto;
}

.profile-chip a {
    color: #1c3030;
    font-weight: 700;
    text-decoration: none;
}

.profile-link {
    align-items: flex-end;
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.profile-link small {
    color: #60706f;
    font-size: .75rem;
    font-weight: 600;
    margin-top: .2rem;
}

.landing-hero {
    align-items: center;
    background:
        linear-gradient(90deg, rgba(13, 30, 26, .78), rgba(13, 30, 26, .34), rgba(13, 30, 26, .08)),
        url("/images/pool-waterfall-hero.png") center / cover no-repeat;
    border-radius: 8px;
    display: flex;
    min-height: min(66vh, 620px);
    padding: clamp(2rem, 6vw, 5rem);
}

.landing-copy {
    color: #ffffff;
    max-width: 620px;
}

.landing-copy .eyebrow {
    color: #d9f5ea;
}

.landing-copy h1 {
    font-size: clamp(3rem, 7vw, 5.75rem);
    font-weight: 800;
    letter-spacing: 0;
    line-height: .95;
    margin: 0;
}

.landing-copy p:not(.eyebrow) {
    font-size: 1.15rem;
    line-height: 1.6;
    margin: 1rem 0 0;
    max-width: 540px;
}

.landing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.5rem;
}

.button.light {
    background: rgba(255, 255, 255, .92);
    border-color: rgba(255, 255, 255, .92);
    color: #173632;
}

.landing-band {
    align-items: start;
    display: grid;
    gap: 1.5rem;
    grid-template-columns: minmax(240px, .55fr) minmax(0, 1fr);
    margin-top: 1.5rem;
}

.landing-band h2 {
    font-size: 1.45rem;
    margin: 0 0 .5rem;
}

.landing-band p {
    color: #58706d;
    margin: 0;
}

.dashboard-hero {
    align-items: flex-end;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 8px;
    color: #ffffff;
    display: flex;
    min-height: 220px;
    margin-bottom: 1.25rem;
    padding: clamp(1.25rem, 4vw, 2.5rem);
}

.dashboard-hero h1 {
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 800;
    letter-spacing: 0;
    margin: 0;
}

.dashboard-hero .eyebrow {
    color: #e7f6ed;
}

.landing-feature-grid {
    display: grid;
    gap: .85rem;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.landing-feature-grid article,
.form-panel,
.auth-panel {
    background: #ffffff;
    border: 1px solid #dce5e3;
    border-radius: 8px;
    padding: 1rem;
}

.landing-feature-grid strong,
.landing-feature-grid span {
    display: block;
}

.landing-feature-grid span {
    color: #60706f;
    margin-top: .35rem;
}

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

.page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    justify-content: flex-end;
}

.page-header h1 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0;
    margin: 0;
}

.eyebrow {
    color: #58706d;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    margin-bottom: .25rem;
    text-transform: uppercase;
}

.lede {
    color: #58706d;
    margin: .35rem 0 0;
}

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

.metric, .callout {
    background: #ffffff;
    border: 1px solid #dce5e3;
    border-radius: 8px;
    padding: 1rem;
}

.metric-link,
.metric-button {
    color: inherit;
    text-align: left;
    text-decoration: none;
}

.metric-button {
    cursor: pointer;
    font: inherit;
    width: 100%;
}

.metric-link:hover,
.metric-button:hover {
    border-color: #7bb0a6;
}

.metric span {
    color: #60706f;
    display: block;
    font-size: .85rem;
}

.metric strong {
    display: block;
    font-size: 1.8rem;
    margin-top: .2rem;
}

.section {
    margin-top: 1.5rem;
}

.section h2 {
    font-size: 1.1rem;
    margin-bottom: .75rem;
}

.split {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, .6fr);
}

.data-list, .route-list {
    display: grid;
    gap: .75rem;
}

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

.management-panel {
    background: #ffffff;
    border: 1px solid #dce5e3;
    border-radius: 8px;
    margin-top: 1rem;
    overflow: hidden;
}

.management-panel-header {
    align-items: center;
    border-bottom: 1px solid #e4ebe9;
    display: flex;
    gap: .75rem;
    justify-content: space-between;
    padding: .8rem 1rem;
}

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

.management-panel-actions {
    align-items: center;
    display: flex;
    gap: .5rem;
}

.management-panel-body {
    padding: 1rem;
}

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

.management-table {
    border-collapse: collapse;
    font-size: .9rem;
    min-width: 760px;
    width: 100%;
}

.management-table th,
.management-table td {
    border-bottom: 1px solid #e4ebe9;
    padding: .65rem .55rem;
    text-align: left;
    vertical-align: top;
}

.management-table th {
    color: #60706f;
    font-size: .76rem;
    text-transform: uppercase;
}

.management-table tr.selected-row {
    background: #e8f2ef;
}

.management-table .actions {
    text-align: right;
    white-space: nowrap;
}

.icon-button {
    align-items: center;
    background: #ffffff;
    border: 1px solid #bccbc8;
    border-radius: 6px;
    color: #1c3030;
    cursor: pointer;
    display: inline-flex;
    font-weight: 800;
    height: 2rem;
    justify-content: center;
    margin-left: .25rem;
    min-width: 2rem;
    padding: 0 .45rem;
}

.icon-button.danger {
    border-color: #c9a4a4;
    color: #7a2f2f;
}

.icon-button.icon-only {
    padding: 0;
}

.action-icon {
    background-color: currentColor;
    display: inline-block;
    height: 1rem;
    width: 1rem;
}

.edit-icon {
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 20h4l11-11-4-4L4 16v4zm13-13 2-2 0 0 0 0 0 0 2 2-2 2-2-2z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.delete-icon {
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 21h10l1-13H6l1 13zM9 4l1-1h4l1 1h4v2H5V4h4z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.copy-icon {
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 7h11v14H8V7zm-3 10H3V3h11v2H5v12z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.table-sort-button {
    background: transparent;
    border: 0;
    color: inherit;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    padding: 0;
    text-align: left;
}

.table-sort-button:hover {
    text-decoration: underline;
}

.power-icon {
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13 3h-2v10h2V3zm4.8 2.8-1.4 1.4A7 7 0 1 1 7.6 7.2L6.2 5.8A9 9 0 1 0 17.8 5.8z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.switch-control {
    align-items: center;
    cursor: pointer;
    display: inline-flex;
    min-height: 2rem;
}

.switch-control input {
    height: 1px;
    opacity: 0;
    position: absolute;
    width: 1px;
}

.switch-control span {
    background: #bccbc8;
    border-radius: 999px;
    display: inline-block;
    height: 1.35rem;
    position: relative;
    transition: background-color .15s ease;
    width: 2.45rem;
}

.switch-control span::after {
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .25);
    content: "";
    height: 1rem;
    left: .18rem;
    position: absolute;
    top: .17rem;
    transition: transform .15s ease;
    width: 1rem;
}

.switch-control input:checked + span {
    background: #2f7d70;
}

.switch-control input:checked + span::after {
    transform: translateX(1.1rem);
}

.switch-control input:focus-visible + span {
    outline: 2px solid #1f6feb;
    outline-offset: 2px;
}

.editor-panel {
    background: #f8fbfa;
    border: 1px solid #dce5e3;
    border-radius: 8px;
    margin-bottom: 1rem;
    padding: 1rem;
}

.editor-panel h3 {
    font-size: 1rem;
    margin: 0 0 .75rem;
}

.category-heading {
    align-items: flex-start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: .75rem;
}

.category-heading p {
    color: #60706f;
    margin: .25rem 0 0;
}

.row-card, .visit-card {
    background: #ffffff;
    border: 1px solid #dce5e3;
    border-radius: 8px;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 1rem;
}

.row-card.compact {
    padding: .75rem;
}

.equipment-thumb {
    aspect-ratio: 1;
    border-radius: 6px;
    height: 56px;
    object-fit: cover;
    width: 56px;
}

.quick-link-grid {
    display: grid;
    gap: .75rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.quick-link {
    color: inherit;
    text-decoration: none;
}

.quick-link:hover {
    border-color: #7fb2a6;
}

.row-card p, .row-card small, .visit-card p, .visit-card small {
    color: #60706f;
    margin: .25rem 0 0;
}

.photo-thumb-button {
    background: transparent;
    border: 0;
    cursor: zoom-in;
    padding: 0;
    text-align: left;
}

.photo-thumb-button img {
    border-radius: 8px;
    display: block;
    max-height: 160px;
    max-width: 220px;
    object-fit: cover;
}

.photo-modal-backdrop {
    align-items: center;
    background: rgba(7, 20, 17, .76);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 1.5rem;
    position: fixed;
    z-index: 1000;
}

.photo-modal {
    background: #f8fbfa;
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .32);
    max-height: 92vh;
    max-width: min(980px, 94vw);
    overflow: hidden;
}

.photo-modal-header {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: .8rem 1rem;
}

.photo-modal img {
    display: block;
    max-height: calc(92vh - 4rem);
    max-width: 100%;
    object-fit: contain;
}

.row-actions {
    align-items: flex-end;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.row-actions.role-actions {
    min-width: 180px;
}

.compact-select {
    min-width: 170px;
}

.status-pill {
    align-self: flex-start;
    background: #e9f4f0;
    border: 1px solid #cde2dc;
    border-radius: 999px;
    color: #21594f;
    font-size: .78rem;
    font-weight: 700;
    padding: .25rem .55rem;
    white-space: nowrap;
}

.nav-section-title {
    color: rgba(255, 255, 255, .58);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: 0;
    margin-top: .75rem;
    text-transform: uppercase;
}

.nav-section-toggle {
    background: transparent;
    border: 0;
    color: rgba(255, 255, 255, .72);
    font-size: .78rem;
    font-weight: 800;
    margin-top: .75rem;
    padding-bottom: .35rem;
    padding-top: .35rem;
    text-align: left;
    text-transform: uppercase;
    width: 100%;
}

.nav-section-toggle span {
    display: inline-block;
    width: 1rem;
}

.nav-link.nested {
    padding-left: 1.5rem;
}

.price {
    color: #1d5e8c;
    font-weight: 700;
}

.button {
    background: #ffffff;
    border: 1px solid #bccbc8;
    border-radius: 6px;
    color: #1c3030;
    cursor: pointer;
    display: inline-flex;
    font-weight: 700;
    padding: .5rem .75rem;
    text-decoration: none;
}

.button.primary {
    background: #176b65;
    border-color: #176b65;
    color: #ffffff;
}

.button.danger {
    border-color: #c9a4a4;
    color: #7a2f2f;
}

.notice {
    background: #eef7ff;
    border: 1px solid #c9def0;
    border-radius: 8px;
    color: #1b4b68;
    margin-bottom: 1rem;
    padding: .75rem 1rem;
}

.notice.error {
    background: #fff1f1;
    border-color: #e7c5c5;
    color: #823131;
}

.notice.success {
    background: #eef8f1;
    border-color: #c8e5d1;
    color: #20583a;
}

.notice p {
    margin: .35rem 0 .75rem;
}

.onboarding-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(260px, .8fr) minmax(260px, .8fr);
}

.form-panel h2,
.auth-panel h2 {
    font-size: 1.05rem;
    margin: 0 0 .75rem;
}

.form-panel label,
.auth-panel label {
    color: #465856;
    display: grid;
    font-size: .88rem;
    font-weight: 700;
    gap: .35rem;
    margin-bottom: .75rem;
}

.form-panel .form-control,
.auth-panel .form-control {
    border: 1px solid #cbd8d6;
    border-radius: 6px;
    padding: .55rem .65rem;
}

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

.choice-grid {
    display: grid;
    gap: .65rem;
}

.choice-card {
    align-items: flex-start;
    border: 1px solid #d7e2df;
    border-radius: 8px;
    cursor: pointer;
    display: flex !important;
    gap: .65rem !important;
    margin: 0 !important;
    padding: .8rem;
}

.choice-card input {
    margin-top: .2rem;
}

.choice-card strong,
.choice-card small {
    display: block;
}

.choice-card small,
.form-note {
    color: #60706f;
    font-weight: 400;
}

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

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

.role-form-grid label {
    color: #465856;
    display: grid;
    font-size: .88rem;
    font-weight: 700;
    gap: .35rem;
}

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

.role-form-grid .check-row {
    align-items: center;
    display: flex;
    gap: .5rem;
}

.form-panel .check-row {
    align-items: center;
    display: flex;
    gap: .5rem;
}

.permission-list {
    min-height: 110px;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1rem;
}

.auth-panel {
    max-width: 520px;
}

.visit-card {
    justify-content: flex-start;
}

.visit-order {
    align-items: center;
    background: #203735;
    border-radius: 999px;
    color: #ffffff;
    display: flex;
    flex: 0 0 2rem;
    font-weight: 800;
    height: 2rem;
    justify-content: center;
}

.visit-body {
    flex: 1;
}

.visit-heading {
    align-items: center;
    display: flex;
    gap: .75rem;
    justify-content: space-between;
}

.completion-panel {
    border-top: 1px solid #e4ebe9;
    display: grid;
    gap: .75rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: .85rem;
    padding-top: .85rem;
}

.completion-panel label {
    color: #465856;
    display: grid;
    font-size: .85rem;
    font-weight: 700;
    gap: .25rem;
}

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

.completion-panel input,
.completion-panel select,
.completion-panel textarea {
    border: 1px solid #cbd8d6;
    border-radius: 6px;
    padding: .5rem;
}

.completion-panel textarea {
    min-height: 80px;
}

.completed-note {
    background: #f0f6f2;
    border-radius: 6px;
    padding: .6rem;
}

.profile-summary {
    align-self: start;
    display: grid;
    gap: .35rem;
}

.profile-summary img {
    border-radius: 999px;
    height: 64px;
    object-fit: cover;
    width: 64px;
}

@media (max-width: 720px) {
    .page-header, .row-card, .visit-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .split, .completion-panel, .landing-band, .landing-feature-grid, .onboarding-grid, .form-grid, .role-form-grid, .category-grid {
        grid-template-columns: 1fr;
    }

    .row-actions {
        align-items: flex-start;
    }

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

    .landing-hero {
        min-height: 560px;
    }
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUx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I2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}
