html, body {
    font-family: 'Helvetica Neue', 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.1rem;
}

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+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) 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;
}

/* Theme refresh: flat surfaces with a hairline border instead of Material's drop shadows. */
.mud-paper:not(.mud-popover):not(.mud-dialog):not(.mud-snackbar):not(.mud-paper-outlined):not(.mud-appbar):not(.mud-drawer) {
    box-shadow: none !important;
    border: 1px solid var(--mud-palette-lines-default);
}
.app-bar { border-bottom: 1px solid var(--mud-palette-lines-default); }
.app-bar .app-name { font-weight: 700; color: var(--mud-palette-primary); }
.app-drawer { border-right: 1px solid var(--mud-palette-lines-default); }
.mud-nav-link.active:not(.mud-nav-link-disabled) { border-radius: 8px; margin: 0 8px; width: calc(100% - 16px); }
.mud-table-head .mud-table-cell { font-weight: 600; color: var(--mud-palette-text-secondary); font-size: 0.8rem; }
.mud-chip { font-weight: 500; }

/* Sentence-case tabs, like the rest of the app (Material 2 shouts them in capitals). */
.mud-tab { text-transform: none; font-weight: 600; letter-spacing: 0; }
/* Breadcrumbs: readable, with the current page in the normal text colour. */
.mud-breadcrumbs { font-size: 0.85rem; }
.mud-breadcrumbs .mud-breadcrumb-item.mud-disabled > a, .mud-breadcrumbs .mud-breadcrumb-item.mud-disabled { color: var(--mud-palette-text-secondary); opacity: 1; }
.mud-breadcrumbs .mud-breadcrumb-item:last-child, .mud-breadcrumbs .mud-breadcrumb-item:last-child > a { color: var(--mud-palette-text-primary); }
/* Header actions keep their own width rather than stretching across the title row. */
.page-actions .mud-input-control { flex: 0 1 280px; }

/* Quick search in the top bar. */
.quick-search { max-width: 460px; flex: 1 1 460px; }
.quick-search .mud-input-outlined-border { border-radius: 8px; }
.quick-search-results { min-width: 420px; }

/* Compliance by property: one line per property, opened when something needs doing. */
.compliance-properties .mud-expand-panel-header { padding-top: 6px; padding-bottom: 6px; }
.compliance-title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; width: 100%; }
.compliance-name { flex: 1 1 14rem; min-width: 0; }
.compliance-strip { display: flex; flex-wrap: wrap; gap: 2px; justify-content: flex-end; flex: 2 1 20rem; }
.compliance-units td { vertical-align: middle; }
.compliance-unit { width: 14rem; min-width: 10rem; }
@media (max-width: 600px) {
    .compliance-strip { justify-content: flex-start; }
    .compliance-units table, .compliance-units tbody { display: block; }
    .compliance-units tr { display: flex !important; flex-direction: column; }
    .compliance-units td { display: block !important; width: auto !important; border-bottom: none !important; padding-top: 2px !important; padding-bottom: 2px !important; }
    .compliance-units tr { border-bottom: 1px solid var(--mud-palette-table-lines); padding: 4px 0; }
}

/* Tenancy page */
.tenancy-tile { height: 100%; }
.tenancy-contact, .tenancy-doc { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; }
.tenancy-contact + .tenancy-contact { border-top: 1px solid var(--mud-palette-lines-default); }
@media (max-width: 600px) {
    .rent-account .mud-table-cell { padding-left: 6px !important; padding-right: 6px !important; font-size: 0.8rem; }
}

/* Photos */
.photo-drop { border: 2px dashed var(--mud-palette-lines-default); border-radius: 8px; padding: 12px; transition: background-color .15s, border-color .15s; }
.photo-drop-over { border-color: var(--mud-palette-primary); background-color: rgba(47, 93, 98, .08); }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 6px; }
.photo-tile { position: relative; cursor: pointer; }
.photo-thumb { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; background: var(--mud-palette-background-gray); }
.photo-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--mud-palette-text-secondary); }
.photo-selected .photo-thumb { outline: 3px solid var(--mud-palette-primary); outline-offset: -3px; }
.photo-tile:not(.photo-selected) .photo-thumb { opacity: .55; }
.photo-grid .photo-tile:not(:has(.photo-check)) .photo-thumb { opacity: 1; }
.photo-check { position: absolute; top: 4px; right: 4px; color: #fff; filter: drop-shadow(0 0 2px rgba(0,0,0,.7)); }
.photo-badge { position: absolute; left: 4px; bottom: 4px; font-size: 11px; padding: 1px 5px; border-radius: 3px; background: rgba(0,0,0,.6); color: #fff; }
.photo-full { display: block; max-width: 100%; max-height: 70vh; margin: 0 auto; border-radius: 4px; }

/* Property cards */
.property-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.property-card { display: flex; flex-direction: column; overflow: hidden; }
.property-card-cover { display: flex; align-items: center; justify-content: center; height: 120px; background: var(--mud-palette-background-gray); text-decoration: none; }
.property-card-cover img { width: 100%; height: 100%; object-fit: cover; }
.property-card-code { font-size: 1.6rem; font-weight: 600; letter-spacing: 0.08em; color: var(--mud-palette-text-secondary); }
.property-card-body { padding: 12px 16px 14px; display: flex; flex-direction: column; flex: 1; }
.property-card-figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.property-card-status { display: flex; flex-wrap: wrap; gap: 2px; margin: 6px 0 0 -6px; min-height: 8px; }
.needs-you { margin-top: 8px; border-top: 1px solid var(--mud-palette-lines-default); padding-top: 6px; }
.needs-you-title { color: var(--mud-palette-text-secondary); line-height: 1.6; }
.needs-you-item { display: flex; gap: 8px; align-items: flex-start; padding: 3px 0; color: var(--mud-palette-text-primary); text-decoration: none; font-size: 0.875rem; }
.needs-you-item:hover span { text-decoration: underline; }
@media (max-width: 600px) {
    .property-card-cover { height: 72px; }
}

/* Repairs: the report box's suggestions, the job list and the job dialog. */
.repair-advice { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px 24px; }
.repair-advice ul { margin: 2px 0 0; padding-left: 18px; }
.repair-advice li { margin: 2px 0; }
.repair-reply { grid-column: 1 / -1; }
.repair-reply-text { white-space: pre-wrap; background: var(--mud-palette-background-gray); border-radius: 8px; padding: 8px 12px; }
.repair-description { white-space: pre-wrap; }
.repair-list { display: flex; flex-direction: column; border: 1px solid var(--mud-palette-lines-default); border-radius: 8px; overflow: hidden; background: var(--mud-palette-surface); }
.repair-row { display: flex; gap: 12px; align-items: center; justify-content: space-between; width: 100%; padding: 10px 14px; border: 0; border-top: 1px solid var(--mud-palette-lines-default); border-left: 3px solid transparent; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.repair-row:first-child { border-top: 0; }
.repair-row:hover { background: var(--mud-palette-action-default-hover); }
.repair-row:focus-visible { outline: 2px solid var(--mud-palette-primary); outline-offset: -2px; }
.repair-row-draft { border-left-color: var(--mud-palette-info); }
.repair-row-emergency { border-left-color: var(--mud-palette-error); }
.repair-row-main { min-width: 0; flex: 1; }
.repair-row-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.repair-row-side { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex-shrink: 0; }
.repair-history { display: flex; flex-direction: column; gap: 8px; border-left: 2px solid var(--mud-palette-lines-default); padding-left: 12px; }
.tenancy-note { padding: 6px 0; border-top: 1px solid var(--mud-palette-lines-default); }
.tenancy-note:first-of-type { border-top: 0; }
@media (max-width: 600px) {
    .repair-row { flex-direction: column; align-items: flex-start; }
    .repair-row-side { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px; }
    .repair-row-title { white-space: normal; }
}

/* Walk-rounds */
.walkround-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.walkround-issues { display: flex; flex-direction: column; gap: 4px; }
.walkround-issue { padding: 8px 12px 12px; border: 1px solid var(--mud-palette-lines-default); border-radius: 8px; }
.walkround-issue-logged { background: var(--mud-palette-background-gray); }
.checkout-step { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--mud-palette-lines-default); }
.checkout-step:first-of-type { border-top: none; }
.checkout-step-body { flex: 1; min-width: 0; }
.checkout-step-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 4px; }
.checkout-step-set-aside { text-decoration: line-through; color: var(--mud-palette-text-secondary); }
.dictation-on { animation: dictation-pulse 1.5s ease-in-out infinite; }
.dictation-interim { font-style: italic; max-width: 40ch; }
@keyframes dictation-pulse { 50% { opacity: 0.7; } }
@media (prefers-reduced-motion: reduce) { .dictation-on { animation: none; } }

/* Contractors */
.who-to-use { display: flex; flex-direction: column; gap: 4px; }
.who-to-use-row { display: flex; align-items: flex-start; gap: 10px; padding: 6px 8px; border-radius: 8px; }
.who-to-use-row:hover { background: var(--mud-palette-action-default-hover); }
.who-to-use-picked { background: var(--mud-palette-success-hover, rgba(76, 175, 80, 0.08)); }
.who-to-use-text { flex: 1; min-width: 0; }
.contract-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.contract-card { cursor: pointer; }
.contract-card:hover { border-color: var(--mud-palette-primary); }
.cursor-pointer { cursor: pointer; }

/* Parts and quotes on a repair */
.job-parts, .job-quotes { display: flex; flex-direction: column; gap: 2px; }
.job-part, .job-quote { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.job-part-name { flex: 2 1 180px; }
.job-part-qty { flex: 0 0 56px; }
.job-part-cost { flex: 0 0 96px; }
.job-part-status { flex: 0 0 110px; }
.job-part-links, .job-quote-actions { display: flex; align-items: center; gap: 8px; }
.job-quote-firm { flex: 1 1 160px; }
.job-quote-amount { flex: 0 0 120px; }
.job-quote-notes { flex: 2 1 200px; }
.job-quote-accepted { background: var(--mud-palette-success-hover, rgba(76, 175, 80, 0.08)); border-radius: 8px; padding: 0 6px; }
.parts-to-buy { display: flex; flex-direction: column; gap: 4px; }

/* Key register */
.key-photos { display: flex; flex-wrap: wrap; gap: 8px; }
.key-photo { position: relative; }
.key-photo img { width: 120px; height: 120px; object-fit: cover; border-radius: 6px; display: block; }
.key-photo-remove { position: absolute; top: 2px; right: 2px; background: rgba(0,0,0,.45); color: #fff !important; }
.lock-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.lock-card { cursor: pointer; }
.lock-card:hover { border-color: var(--mud-palette-primary); }
.tag-sheet { display: grid; grid-template-columns: repeat(auto-fill, 52mm); gap: 4mm; }
.tag-label { width: 52mm; height: 28mm; border: 1px dashed #999; border-radius: 3mm; padding: 2mm; display: flex; gap: 2mm; align-items: center; background: #fff; color: #000; }
.tag-label svg { width: 22mm; height: 22mm; flex: none; }
.tag-label .tag-code { font: 700 11pt monospace; }
.tag-label .tag-colour { display: inline-block; width: 3mm; height: 3mm; border-radius: 50%; border: 1px solid #000; margin-right: 1mm; }
@media print {
    .mud-appbar, .mud-drawer, .no-print { display: none !important; }
    .mud-main-content { padding: 0 !important; }
    .tag-label { break-inside: avoid; }
}

/* Key audit: the camera preview with a frame to put the key and ruler in. */
.key-camera { position: relative; background: var(--mud-palette-background-gray); border-radius: 8px; overflow: hidden; min-height: 120px; }
.key-camera video { display: block; width: 100%; max-height: 420px; object-fit: contain; background: #000; }
.key-camera-guide { position: absolute; inset: 12% 8%; border: 2px dashed rgba(255,255,255,.75); border-radius: 6px; pointer-events: none; }
.key-camera-guide span { position: absolute; left: 8px; bottom: 6px; color: #fff; font-size: 12px; text-shadow: 0 1px 2px #000; }
.key-viewer img { display: block; max-width: 100%; margin: 0 auto 12px; border-radius: 6px; }

/* Printable key photo mat: drawn in millimetres, printed at actual size. */
.photo-mat { display: flex; justify-content: center; }
.photo-mat svg { background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.2); max-width: 100%; height: auto; }
@media print {
    .photo-mat svg { box-shadow: none; max-width: none; width: 190mm; height: 277mm; }
}

/* Appliances and consumer units */
.inventory-row { display: flex; align-items: center; gap: 12px; padding: 6px 4px; border-top: 1px solid var(--mud-palette-lines-default); cursor: pointer; }
.inventory-row:hover { background: var(--mud-palette-action-default-hover); }
.inventory-thumb { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 4px; overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--mud-palette-background-gray); }
.inventory-thumb img { width: 100%; height: 100%; object-fit: cover; }
.inventory-chips { max-width: 45%; }
.circuit-table td { padding: 0 4px !important; vertical-align: middle; }
.inventory-row > .flex-grow-1 { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 600px) { .inventory-row { align-items: flex-start; } .inventory-chips { max-width: 40%; } .inventory-chips .mud-chip { height: auto; min-height: 24px; } .inventory-chips .mud-chip-content { white-space: normal; text-align: right; } }

/* Inspection checklist printed for whoever gets the building ready: plain tables, a box to tick and room for notes. */
.print-sheet { max-width: 1000px; font-size: 14px; }
.print-sheet h1 { font-size: 1.5rem; margin: 0 0 4px; }
.print-sheet h2 { font-size: 1.1rem; margin: 18px 0 6px; }
.print-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.print-meta { margin: 0 0 8px; }
.print-muted { color: var(--mud-palette-text-secondary); font-size: .85em; }
.print-evidence { font-size: .85em; font-style: italic; }
.print-asked { border-left: 3px solid var(--mud-palette-lines-default); padding-left: 8px; margin: 8px 0; }
.print-table { width: 100%; border-collapse: collapse; }
.print-table th, .print-table td { border: 1px solid var(--mud-palette-lines-default); padding: 4px 6px; vertical-align: top; text-align: left; }
.print-table th { background: var(--mud-palette-background-gray); font-weight: 600; }
.print-table tr { break-inside: avoid; }
.print-compact td { padding: 2px 6px; font-size: .9em; }
.print-box { width: 28px; text-align: center !important; font-size: 1.2em; }
.print-due { width: 90px; white-space: nowrap; }
.print-notes { width: 30%; }
.print-lines { height: 120px; background: repeating-linear-gradient(transparent, transparent 27px, var(--mud-palette-lines-default) 28px); }
/* Notice letters: one per page, to print and deliver by hand. */
.notice-letter { max-width: 700px; margin-bottom: 48px; font-size: 15px; line-height: 1.5; }
.notice-letter-from { text-align: right; }
@media print {
    .print-sheet { max-width: none; font-size: 10pt; color: #000; }
    .print-sheet h2 { break-after: avoid; }
    .print-table th, .print-table td { border-color: #999; }
    .print-table th { background: #eee; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .print-muted { color: #444; }
    .print-lines { background: repeating-linear-gradient(transparent, transparent 27px, #999 28px); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .notice-letter { max-width: none; margin: 0; font-size: 11pt; break-after: page; }
    .notice-letter:last-child { break-after: auto; }
}

/* Photo viewer: a photo at screen size that can be turned and zoomed */
.photo-viewer { position: relative; }
.photo-viewer-frame { overflow: auto; border-radius: 4px; background: var(--mud-palette-background-gray); text-align: center; touch-action: pan-x pan-y pinch-zoom; }
.photo-viewer-frame img { display: block; max-width: 100%; margin: 0 auto; cursor: zoom-in; }
.photo-viewer-frame.zoomed { text-align: left; }
.photo-viewer-frame.zoomed img { cursor: zoom-out; }
.photo-viewer-tools { justify-content: center; }

/* Item dialog with its label photo alongside, so the plate can be read while typing */
.item-with-photo { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; align-items: start; }
.item-photo { position: sticky; top: 0; z-index: 1; background: var(--mud-palette-surface); }
.item-photo-strip { display: flex; gap: 6px; margin-top: 6px; overflow-x: auto; }
.item-photo-strip img { width: 56px; height: 56px; object-fit: cover; border-radius: 4px; cursor: pointer; opacity: .7; border: 2px solid transparent; }
.item-photo-strip img.picked { opacity: 1; border-color: var(--mud-palette-primary); }
@media (max-width: 959px) {
    .item-with-photo { grid-template-columns: 1fr; }
    .item-photo { position: static; }
}
.meter-photos { display: grid; grid-template-columns: repeat(auto-fill, 56px); gap: 4px; margin-top: 4px; }

/* Phone bottom bar (Layout/BottomNav.razor). Phones only: wider screens keep the menu on the left. The camera button
   sits just above it, and pages get room at the bottom so nothing ends up hidden behind it. */
.bottom-nav { display: none; }
@media (max-width: 599.98px) {
    .bottom-nav {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1100;
        height: calc(60px + env(safe-area-inset-bottom));
        padding: 0 env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
        background: var(--mud-palette-surface);
        border-top: 1px solid var(--mud-palette-lines-default);
    }
    .bottom-nav-item {
        flex: 1 1 0;
        min-width: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        border: 0;
        background: none;
        padding: 6px 2px 4px;
        font: 500 11px/1.2 Inter, system-ui, sans-serif;
        color: var(--mud-palette-text-secondary);
        text-decoration: none;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    .bottom-nav-item .mud-icon-root { font-size: 24px; padding: 2px 16px; border-radius: 14px; box-sizing: content-box; }
    .bottom-nav-item span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .bottom-nav-item.active { color: var(--mud-palette-primary); font-weight: 700; }
    .bottom-nav-item.active .mud-icon-root { background: var(--mud-palette-primary-hover); }
    .bottom-nav-item:focus-visible { outline: 2px solid var(--mud-palette-primary); outline-offset: -4px; border-radius: 10px; }

    .mud-main-content { padding-bottom: calc(96px + env(safe-area-inset-bottom)) !important; }
    html .qc-fab { bottom: calc(76px + env(safe-area-inset-bottom)); }
    .mud-snackbar-location-bottom-right, .mud-snackbar-location-bottom-center, .mud-snackbar-location-bottom-left { bottom: calc(68px + env(safe-area-inset-bottom)) !important; }
    .quick-search-results { min-width: 0; max-width: calc(100vw - 24px); }
}
@media print { .bottom-nav { display: none !important; } }
