body {
    font-size: 16px;
    line-height: 1.6;
}

.navbar {
    min-height: 56px;
    padding-top: 0.32rem;
    padding-bottom: 0.32rem;
}

.navbar .container-fluid {
    flex-wrap: nowrap;
    gap: 0.35rem;
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    max-width: 55vw;
    font-size: 1.125rem;
    font-weight: 700;
}

.navbar-brand-logo {
    flex: 0 0 auto;
    width: auto;
    height: 32px;
}

.navbar-brand-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.navbar-brand:not(a),
.auth-brand,
.account-navbar-brand {
    cursor: default;
}


.navbar-user-menu {
    flex: 0 1 auto;
    min-width: 0;
}

.navbar-user-button {
    display: inline-flex;
    align-items: center;
    max-width: clamp(10rem, 22vw, 18rem);
}

.navbar-user-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.navbar-admin-menu {
    flex: 0 0 auto;
}

.navbar-admin-button {
    min-width: 4.25rem;
}

.navbar-admin-button.is-admin-active {
    border-color: #ffc107;
    color: #ffc107;
}

.navbar-admin-mode-action.is-edit-active {
    background: #fff3cd;
    color: #664d03;
    font-weight: 800;
}

.navbar-context {
    flex: 0 1 auto;
    min-width: 0;
}

.navbar-field-switcher {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    min-width: 0;
}

.navbar-field-switcher-label {
    color: #f8f9fa;
    flex: 0 0 auto;
    font-size: 0.95rem;
    font-weight: 700;
    white-space: nowrap;
}

.navbar-field-select {
    min-height: 44px;
    width: clamp(12rem, 18vw, 16.5rem);
    max-width: 18rem;
    font-size: 1rem;
    font-weight: 700;
}

.navbar-field-name {
    display: inline-block;
    max-width: 16rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-footer {
    color: #6c757d;
    font-size: 0.9rem;
    padding: 0.75rem 0 1rem;
    text-align: center;
}

.btn {
    min-height: 44px;
    font-size: 1rem;
}

.btn-sm,
.btn-group-sm > .btn {
    min-height: 44px;
    font-size: 1rem;
}

.app-menu-offcanvas {
    --bs-offcanvas-width: clamp(320px, 28vw, 360px);
    width: min(var(--bs-offcanvas-width), 100vw);
}

.app-menu-item {
    min-height: 54px;
    display: flex;
    align-items: center;
    font-size: 1.05rem;
    font-weight: 700;
    text-align: left;
}

.app-menu-note {
    color: #6c757d;
    font-size: 0.95rem;
}

.app-menu-settings {
    border-bottom: 1px solid rgba(33, 37, 41, 0.1);
    background: #f8f9fa;
}

.app-menu-settings-body {
    display: grid;
    gap: 0.8rem;
    padding: 1rem;
}

.app-menu-settings-section {
    display: grid;
    gap: 0.62rem;
}

.app-menu-settings-section + .app-menu-settings-section {
    border-top: 1px solid rgba(33, 37, 41, 0.12);
    padding-top: 0.9rem;
}

.app-menu-settings-title {
    color: #212529;
    font-size: 0.95rem;
    font-weight: 800;
}

.app-menu-settings-subtitle {
    color: #495057;
    font-size: 0.88rem;
    font-weight: 800;
}

.app-menu-settings-options {
    display: grid;
    gap: 0.6rem;
}

.app-menu-settings-option {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.65rem;
    align-items: flex-start;
    margin: 0;
    cursor: pointer;
}

.app-menu-settings-option .form-check-input {
    margin-top: 0.2rem;
}

.app-menu-settings-option-title,
.app-menu-settings-option-text {
    display: block;
}

.app-menu-settings-option-title {
    color: #212529;
    font-weight: 800;
    line-height: 1.35;
}

.app-menu-settings-option-text {
    color: #6c757d;
    font-size: 0.88rem;
    line-height: 1.45;
}

.app-menu-cluster-range {
    display: grid;
    gap: 0.38rem;
    margin-top: 0.12rem;
}

.app-menu-cluster-range input[type="range"] {
    display: block;
    width: 100%;
    margin: 0.08rem 0 0;
}

.app-menu-cluster-range-guidance {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    color: #6c757d;
    font-size: 0.76rem;
    line-height: 1.2;
}

.app-info-list {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.app-info-list div {
    display: grid;
    grid-template-columns: 7rem minmax(0, 1fr);
    gap: 0.75rem;
}

.app-info-list dt {
    color: #6c757d;
    font-weight: 700;
}

.app-info-list dd {
    margin-bottom: 0;
    min-width: 0;
    overflow-wrap: anywhere;
}

.app-help-list {
    padding-left: 1.25rem;
}

.app-help-list li {
    margin-bottom: 0.35rem;
}

.app-modal-note {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    color: #495057;
    font-size: 0.98rem;
    padding: 0.85rem;
}

.main-content {
    width: min(100%, 1440px);
    max-width: 1440px;
    margin: 0 auto;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-header h1 {
    font-size: 1.6rem;
    font-weight: 600;
}

.page-header .text-muted {
    font-size: 0.95rem;
}

.summary-card {
    min-width: 0;
}

.summary-card .card-body {
    display: grid;
    grid-template-rows: 1.1rem 2rem 1.05rem;
    align-items: center;
    min-height: 5.1rem;
    padding: 0.62rem 0.55rem;
    text-align: center;
}

.summary-label {
    font-size: 0.9rem;
    color: #6c757d;
    white-space: nowrap;
}

.summary-value {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.05;
}

.summary-note {
    font-size: 0.82rem;
    color: #6c757d;
}

.dashboard-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(8.25rem, 1fr));
    gap: 0.5rem;
}


.card-header {
    font-size: 1rem;
    font-weight: 600;
    padding: 0.85rem 1rem;
}

.card-body {
    padding: 1rem;
}

.list-group-item {
    padding: 1rem;
}

.list-group-item .fw-semibold {
    font-size: 1.05rem;
}

.list-group-item .small {
    font-size: 0.9rem;
}

.badge {
    font-size: 0.9rem;
    padding: 0.45em 0.65em;
}

.tree-filter-area {
    background: #fff;
    padding: 1rem;
}

.tree-filter-label {
    color: #495057;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.tree-search-input,
.tree-status-filter {
    min-height: 50px;
    font-size: 1rem;
}

.tree-filter-empty {
    padding: 1.25rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
}

.tree-list-limit-note {
    background: #f8f9fa;
    font-size: 0.95rem;
    font-weight: 700;
    text-align: center;
}

.bulk-inspection-modal-dialog .modal-content {
    max-height: min(720px, calc(100dvh - 1rem));
}

.bulk-inspection-modal-dialog .modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding-bottom: 1rem;
}

.bulk-inspection-modal-dialog .modal-footer {
    flex-shrink: 0;
    background: #fff;
}

.bulk-inspection-modal-dialog {
    --bs-modal-width: min(880px, calc(100vw - 2rem));
}

.bulk-inspection-scope-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.6rem;
}

.bulk-inspection-scope-options .form-check,
.bulk-inspection-zone-choice {
    min-height: 3.1rem;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    background: #fff;
    padding: 0.72rem 0.85rem 0.72rem 2.35rem;
}

.bulk-inspection-zone-summary-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

.bulk-inspection-zone-summary-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 3rem;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    background: #fff;
    padding: 0.62rem 0.75rem;
}

.bulk-inspection-zone-summary-total {
    border-color: #9ec5fe;
    background: #f8fbff;
}

.bulk-inspection-zone-name {
    min-width: 0;
    color: #495057;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.bulk-inspection-zone-summary-item strong {
    color: #212529;
    font-size: 1rem;
    white-space: nowrap;
}

.bulk-inspection-zone-selection-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
}

.bulk-inspection-tree-list {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    max-height: min(18rem, 32dvh);
    overflow-y: auto;
}

.bulk-inspection-tree-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.75rem;
    padding: 0.75rem 0.85rem;
    border-bottom: 1px solid #e9ecef;
}

.bulk-inspection-tree-item:last-child {
    border-bottom: 0;
}

.bulk-inspection-tree-item .form-check-input {
    margin-top: 0.3rem;
}

.bulk-inspection-tree-label {
    display: grid;
    gap: 0.25rem;
    min-width: 0;
}

.bulk-inspection-tree-main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
}

.bulk-inspection-tree-code {
    color: #212529;
    font-weight: 700;
}

.bulk-inspection-tree-meta {
    color: #6c757d;
    font-size: 0.9rem;
    overflow-wrap: anywhere;
}

#bulkInspectionMemoInput {
    min-height: 5.5rem;
}


.tree-bulk-create-modal-dialog {
    --bs-modal-width: min(980px, calc(100vw - 2rem));
}

.tree-bulk-create-modal-dialog .modal-content {
    max-height: min(740px, calc(100dvh - 1rem));
}

.tree-bulk-create-modal-dialog .modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding-bottom: 1rem;
}

.tree-bulk-create-modal-dialog .modal-footer {
    flex-shrink: 0;
    background: #fff;
}

.tree-bulk-create-form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem 0.85rem;
}

.tree-bulk-create-form-grid .form-label {
    color: #495057;
    font-size: 0.92rem;
    font-weight: 800;
    margin-bottom: 0.28rem;
}

.tree-bulk-create-form-grid .form-control,
.tree-bulk-create-form-grid .form-select {
    min-height: 42px;
}

.tree-bulk-create-note-field {
    grid-column: 1 / -1;
}

.tree-bulk-create-preview-panel {
    border-top: 1px solid #e9ecef;
    padding-top: 0.9rem;
}

.tree-bulk-create-preview-list {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    background: #fff;
    max-height: min(17rem, 30dvh);
    overflow: auto;
}

.tree-bulk-create-preview-list .table {
    min-width: 760px;
}

.tree-bulk-create-preview-list th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f8f9fa;
    color: #495057;
    font-size: 0.85rem;
    white-space: nowrap;
}

.tree-bulk-create-preview-list td {
    font-size: 0.9rem;
    white-space: nowrap;
}

.tree-bulk-create-preview-empty {
    color: #6c757d;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 1rem;
    text-align: center;
}

.tree-bulk-create-preview-empty.d-none {
    display: none !important;
}


.tree-bulk-create-map-check-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    border: 1px solid #9ec5fe;
    border-radius: 0.5rem;
    background: #f8fbff;
    color: #052c65;
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
}

.tree-bulk-create-map-check-panel.d-none {
    display: none !important;
}

.tree-bulk-create-map-check-text {
    color: #052c65;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.45;
    min-width: 0;
    overflow-wrap: anywhere;
}

.orchard-map-header {
    display: grid;
    grid-template-columns: minmax(9.5rem, auto) minmax(18rem, 1fr) auto;
    align-items: center;
    gap: 0.65rem 1rem;
}

.orchard-map-title-stack {
    display: grid;
    gap: 0.15rem;
    min-width: 0;
}

.orchard-map-title-text {
    color: #212529;
    font-size: 1.12rem;
    font-weight: 800;
    line-height: 1.25;
}

.orchard-map-mode-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.45rem;
    min-width: 0;
}

.orchard-mode-current,
.orchard-map-mode-badge {
    display: inline-flex;
    align-items: center;
    min-height: 2.1rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.2;
}

.orchard-mode-current {
    border: 1px solid #dee2e6;
    background: #fff;
    color: #6c757d;
    padding: 0.4rem 0.72rem;
}

.orchard-mode-current strong {
    color: #212529;
}

.orchard-map-mode-badge {
    padding: 0.42rem 0.72rem;
}

.orchard-map-header-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    min-width: 0;
}

.orchard-bulk-inspection-open,
.orchard-bulk-create-open {
    min-width: 8.5rem;
    font-weight: 800;
}

.orchard-mode-toggle {
    white-space: nowrap;
}

.orchard-edit-mode-notice {
    border-color: #ffda6a;
    color: #664d03;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.35;
}

.orchard-map-card.is-orchard-edit-mode .orchard-mode-current strong {
    color: #664d03;
}

.orchard-edit-selection-panel,
.orchard-add-tree-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    border: 1px solid #ffda6a;
    border-radius: 0.5rem;
    background: #fff8e1;
    color: #664d03;
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
}

.orchard-edit-selection-panel.d-none,
.orchard-add-tree-panel.d-none {
    display: none !important;
}

.orchard-edit-selection-panel {
    align-items: start;
    display: grid;
    gap: 0.5rem 0.75rem;
    grid-template-columns: minmax(0, 1fr) auto;
    margin-bottom: 0.65rem;
    padding: 0.5rem 0.7rem;
}

.orchard-add-tree-panel {
    border-color: #75b798;
    background: #f0fff6;
    color: #0f5132;
}

.orchard-edit-selection-body {
    align-items: start;
    display: grid;
    gap: 0.38rem 0.7rem;
    grid-template-columns: minmax(14rem, 0.9fr) minmax(17rem, 1.1fr);
    min-width: 0;
}

.orchard-edit-selection-summary {
    min-width: 0;
}

.orchard-edit-location-editor {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
}

.orchard-edit-location-editor .row {
    --bs-gutter-x: 0.5rem;
    --bs-gutter-y: 0.25rem;
}

.orchard-edit-location-editor .form-label {
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.1;
}

.orchard-edit-location-editor .form-control {
    font-size: 0.94rem;
    font-weight: 700;
}

.orchard-edit-location-message,
.orchard-edit-status-message,
.orchard-edit-save-message {
    font-size: 0.85rem;
    line-height: 1.3;
    padding: 0.35rem 0.5rem !important;
}

.orchard-edit-ledger-editor {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.55rem;
    grid-column: 1 / -1;
    min-width: 0;
}

.orchard-edit-ledger-editor .small {
    line-height: 1.3;
}

.orchard-edit-save-message {
    grid-column: 1 / -1;
}

.orchard-edit-selection-label {
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.2;
}

.orchard-edit-selection-value {
    color: #212529;
    font-size: 1.04rem;
    font-weight: 800;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.orchard-edit-position-preview {
    border-top: 1px solid rgba(102, 77, 3, 0.18);
    grid-column: 1 / -1;
    margin-top: 0.08rem;
    padding-top: 0.32rem;
}

.orchard-edit-position-preview.d-none {
    display: none !important;
}

.orchard-edit-position-grid {
    display: grid;
    gap: 0.32rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
}

.orchard-edit-position-grid div {
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(102, 77, 3, 0.16);
    border-radius: 0.35rem;
    padding: 0.25rem 0.38rem;
}

.orchard-edit-position-grid dt {
    color: #6c5714;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.05rem;
}

.orchard-edit-position-grid dd {
    color: #212529;
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0;
    overflow-wrap: anywhere;
}

.orchard-edit-unsaved-note {
    color: #9a6700;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.3;
    margin-top: 0.24rem;
}

.orchard-edit-unsaved-note.d-none {
    display: none !important;
}

.orchard-edit-selection-actions {
    align-content: flex-start;
    align-self: stretch;
    display: flex;
    flex: 0 1 18rem;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: flex-end;
}

.orchard-edit-selection-actions .btn {
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
}

.orchard-edit-selection-note {
    color: #6c5714;
    font-size: 0.84rem;
    font-weight: 700;
    grid-column: 1 / -1;
    line-height: 1.3;
}

.orchard-edit-position-reset,
.orchard-edit-selection-clear {
    flex: 0 0 auto;
}

.orchard-map-summary {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.5rem;
}

.orchard-map-summary-progress {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.orchard-progress-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-top: -0.25rem;
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 700;
}

.orchard-progress-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.orchard-progress-swatch {
    position: relative;
    display: inline-block;
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 999px;
    background: #fff;
}

.orchard-progress-swatch-done {
    background: #198754;
    box-shadow: inset 0 0 0 2px #fff, 0 0 0 1px rgba(25, 135, 84, 0.5);
}

.orchard-progress-swatch-done::after {
    content: "";
    position: absolute;
    left: 0.38rem;
    top: 0.3rem;
    width: 0.38rem;
    height: 0.62rem;
    border: solid #fff;
    border-width: 0 0.12rem 0.12rem 0;
    transform: rotate(45deg);
}

.orchard-progress-swatch-pending {
    border: 2px dashed rgba(108, 117, 125, 0.72);
    box-shadow: 0 0 0 3px rgba(108, 117, 125, 0.12);
}

.orchard-map-summary-item {
    min-width: 0;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    background: #fff;
    padding: 0.75rem;
}

.orchard-map-summary-item span {
    display: block;
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
}

.orchard-map-summary-item strong {
    display: block;
    color: #212529;
    font-size: 1.35rem;
    line-height: 1.2;
}

.orchard-map {
    position: relative;
    overflow: hidden;
    min-height: 360px;
    border: 2px solid #8eb97d;
    border-radius: 0.5rem;
    background:
        radial-gradient(circle at 18% 22%, rgba(77, 145, 68, 0.16) 0 8px, transparent 9px),
        radial-gradient(circle at 76% 32%, rgba(77, 145, 68, 0.14) 0 9px, transparent 10px),
        linear-gradient(135deg, rgba(255, 255, 255, 0.42) 0 25%, transparent 25% 50%, rgba(255, 255, 255, 0.28) 50% 75%, transparent 75%),
        #e3f2d7;
    background-size: 64px 64px, 72px 72px, 34px 34px, auto;
    box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.36);
}

.orchard-map-label,
.orchard-map-north,
.orchard-map-scale {
    position: absolute;
    z-index: 5;
    border: 1px solid rgba(59, 100, 52, 0.2);
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 0.15rem 0.35rem rgba(33, 37, 41, 0.08);
}

.orchard-map-label {
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.55rem 0.75rem;
}

.orchard-map-label strong,
.orchard-map-label span {
    display: block;
    line-height: 1.25;
}

.orchard-map-label span {
    color: #6c757d;
    font-size: 0.9rem;
}

.orchard-map-north {
    top: 0.75rem;
    right: 0.75rem;
    display: grid;
    place-items: center;
    width: 2.35rem;
    height: 2.35rem;
    color: #2f5d2a;
    font-weight: 800;
}

.orchard-map-north::before {
    content: "";
    position: absolute;
    top: 0.18rem;
    border-right: 0.35rem solid transparent;
    border-left: 0.35rem solid transparent;
    border-bottom: 0.55rem solid #2f5d2a;
}

.orchard-row,
.orchard-road {
    position: absolute;
    pointer-events: none;
}

.orchard-row {
    left: 10%;
    right: 14%;
    height: 13%;
    border: 1px dashed rgba(60, 112, 48, 0.28);
    border-radius: 999px;
    background: repeating-linear-gradient(
        90deg,
        rgba(88, 148, 70, 0.18) 0 12px,
        rgba(255, 255, 255, 0.2) 12px 28px
    );
}

.orchard-row-1 {
    top: 20%;
}

.orchard-row-2 {
    top: 42%;
    left: 16%;
    right: 8%;
}

.orchard-row-3 {
    top: 58%;
    left: 12%;
    right: 18%;
}

.orchard-row-4 {
    top: 76%;
    left: 14%;
    right: 7%;
    height: 10%;
}

.orchard-road {
    z-index: 1;
    border: 1px solid rgba(181, 151, 88, 0.22);
    background: rgba(246, 236, 199, 0.72);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.orchard-road-main {
    top: 8%;
    bottom: 9%;
    left: 4%;
    width: 6%;
    border-radius: 65% 35% 55% 45% / 22% 46% 54% 78%;
    transform: rotate(3deg);
}

.orchard-road-main::before {
    content: "";
    position: absolute;
    top: 31%;
    left: 72%;
    width: 560%;
    height: 9%;
    border: 1px solid rgba(181, 151, 88, 0.18);
    border-radius: 999px 58% 70% 999px;
    background: rgba(246, 236, 199, 0.68);
    transform: rotate(4deg);
    transform-origin: left center;
}

.orchard-road-lower {
    right: 8%;
    bottom: 3%;
    left: -3%;
    height: 8%;
    border-right: 0;
    border-left: 0;
    border-radius: 45% 65% 55% 40% / 60% 45% 55% 40%;
    transform: rotate(-1deg);
}

.orchard-marker {
    position: absolute;
    z-index: 4;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1;
    padding: 0;
}

.orchard-marker-node {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 3px solid rgba(255, 255, 255, 0.96);
    border-radius: 999px;
    background: #6c757d;
    box-shadow: 0 0.22rem 0.5rem rgba(33, 37, 41, 0.24);
}

.orchard-marker-normal .orchard-marker-node,
.orchard-marker-active .orchard-marker-node {
    background: #2f8f46;
}

.orchard-marker-alert .orchard-marker-node {
    background: #c7362f;
}

.orchard-marker-checking .orchard-marker-node {
    background: #d8a216;
    color: #212529;
}

.orchard-marker-code {
    display: block;
    white-space: nowrap;
}

.orchard-marker-label {
    position: absolute;
    top: 48px;
    left: 50%;
    min-width: max-content;
    transform: translateX(-50%);
    border: 1px solid rgba(33, 37, 41, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: #212529;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.2;
    opacity: 0;
    padding: 0.2rem 0.45rem;
    pointer-events: none;
    transition: opacity 0.15s ease;
    white-space: nowrap;
}

.orchard-marker:hover,
.orchard-marker:focus-visible {
    z-index: 8;
}

.orchard-marker:hover .orchard-marker-label,
.orchard-marker:focus-visible .orchard-marker-label {
    opacity: 1;
}

.orchard-marker:focus-visible .orchard-marker-node {
    outline: 3px solid rgba(13, 110, 253, 0.45);
    outline-offset: 2px;
}

.orchard-marker-alert-icon {
    position: absolute;
    top: 0;
    right: 0;
    display: inline-grid;
    place-items: center;
    min-width: 1.35rem;
    height: 1.35rem;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #dc3545;
    color: #fff;
    box-shadow: 0 0.12rem 0.32rem rgba(33, 37, 41, 0.22);
    font-size: 0.875rem;
    font-weight: 900;
}

.orchard-map-scale {
    bottom: 0.75rem;
    left: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: #495057;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.45rem 0.6rem;
}

.orchard-map-scale span {
    display: inline-block;
    width: 3.8rem;
    height: 0.45rem;
    border: 2px solid #495057;
    border-top: 0;
}

.orchard-map-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.85rem;
    border: 1px solid rgba(59, 100, 52, 0.2);
    border-radius: 0.5rem;
    background: #fff;
    color: #495057;
    font-size: 0.9rem;
    padding: 0.65rem 0.8rem;
}

.orchard-map-legend-title {
    color: #212529;
    font-weight: 800;
}

.orchard-map-legend-note {
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 700;
}

.orchard-map-legend div:not(.orchard-map-legend-title) {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.legend-dot {
    display: inline-block;
    width: 0.75rem;
    height: 0.75rem;
    border: 2px solid #fff;
    border-radius: 999px;
    box-shadow: 0 0 0 1px rgba(33, 37, 41, 0.18);
}

.legend-dot-normal {
    background: #2f8f46;
}

.legend-dot-checking {
    background: #d8a216;
}

.legend-dot-alert {
    background: #c7362f;
}

.legend-dot-unknown {
    background: #6c757d;
}

.orchard-map-empty {
    position: absolute;
    inset: 0;
    z-index: 6;
    display: grid;
    place-items: center;
    color: #6c757d;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    padding: 1rem;
}

.orchard-leaflet-shell {
    position: relative;
    overflow: hidden;
    border: 2px solid #8eb97d;
    border-radius: 0.5rem;
    background: #e3f2d7;
}

.orchard-leaflet-map {
    width: 100%;
    height: clamp(540px, 68vh, 760px);
    min-height: 520px;
    background: #e3f2d7;
}

.orchard-map-overlay-status {
    position: absolute;
    top: 0.75rem;
    left: 50%;
    z-index: 500;
    max-width: min(90%, 30rem);
    transform: translateX(-50%);
    border: 1px solid rgba(59, 100, 52, 0.22);
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 0.18rem 0.55rem rgba(33, 37, 41, 0.14);
    color: #2f5d2a;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.4;
    padding: 0.48rem 0.75rem;
    pointer-events: none;
    text-align: center;
}

.orchard-map-overlay-status.is-error {
    border-color: #f1aeb5;
    background: rgba(248, 215, 218, 0.94);
    color: #842029;
}

.orchard-map-overlay-status.d-none {
    display: none !important;
}

.orchard-map-attribution {
    position: absolute;
    bottom: calc(0.75rem + 2.8rem + 5rem);
    left: 0.75rem;
    z-index: 720;
    max-width: calc(100% - 4.75rem);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.76);
    color: #111;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.35;
    padding: 4px 8px;
    pointer-events: none;
}

.orchard-leaflet-map .leaflet-control-zoom {
    display: none;
}

.orchard-map-quick-actions {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 730;
    display: grid;
    justify-items: end;
    gap: 0.36rem;
    pointer-events: auto;
}

.orchard-map-icon-button,
.orchard-map-edge-pan {
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(33, 37, 41, 0.22);
    border-radius: 0.45rem;
    background: rgba(255, 255, 255, 0.76);
    color: #212529;
    box-shadow: 0 0.16rem 0.5rem rgba(33, 37, 41, 0.18);
    font-weight: 800;
    line-height: 1;
    padding: 0;
    touch-action: manipulation;
    user-select: none;
}

.orchard-map-icon-button {
    width: 2.45rem;
    min-width: 2.45rem;
    height: 2.45rem;
    min-height: 2.45rem;
    font-size: 1.16rem;
}

.orchard-map-edge-pan {
    position: absolute;
    z-index: 725;
    display: none;
    width: 2.8rem;
    min-width: 2.8rem;
    height: 2.8rem;
    min-height: 2.8rem;
    font-size: 1.22rem;
    opacity: 0.68;
    pointer-events: auto;
}

.orchard-map-icon-button:hover,
.orchard-map-icon-button:focus-visible,
.orchard-map-edge-pan:hover,
.orchard-map-edge-pan:focus-visible {
    background: rgba(255, 255, 255, 0.94);
    opacity: 0.95;
}

.orchard-map-icon-button:active,
.orchard-map-edge-pan:active {
    background: rgba(233, 236, 239, 0.95);
    transform: translateY(1px);
}

.orchard-leaflet-shell.is-locked-operation .orchard-map-edge-pan {
    display: inline-grid;
}

.orchard-map-edge-pan-up {
    top: 0.65rem;
    left: 50%;
    transform: translateX(-50%);
}

.orchard-map-edge-pan-down {
    bottom: 0.65rem;
    left: 50%;
    transform: translateX(-50%);
}

.orchard-map-edge-pan-left {
    top: 50%;
    left: 0.65rem;
    transform: translateY(-50%);
}

.orchard-map-edge-pan-right {
    top: 50%;
    right: 0.65rem;
    transform: translateY(-50%);
}

.orchard-map-edge-pan-up:active,
.orchard-map-edge-pan-down:active {
    transform: translateX(-50%) translateY(1px);
}

.orchard-map-edge-pan-left:active,
.orchard-map-edge-pan-right:active {
    transform: translateY(calc(-50% + 1px));
}

.orchard-minimap {
    position: absolute;
    right: 0.75rem;
    bottom: 0.75rem;
    z-index: 720;
    width: min(24vw, 200px);
    max-width: calc(100% - 1.5rem);
    overflow: hidden;
    border: 1px solid rgba(33, 37, 41, 0.24);
    border-radius: 0.45rem;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 0.22rem 0.72rem rgba(33, 37, 41, 0.22);
    cursor: crosshair;
    pointer-events: auto;
    touch-action: none;
    user-select: none;
}

.orchard-minimap-title {
    color: #2f5d2a;
    font-size: 0.875rem;
    font-weight: 800;
    line-height: 1.2;
    padding: 0.32rem 0.45rem;
}

.orchard-minimap-stage {
    position: relative;
    overflow: hidden;
    aspect-ratio: 8 / 5;
    border-top: 1px solid rgba(33, 37, 41, 0.14);
    background: #d8ead0;
}

.orchard-minimap-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

.orchard-minimap-viewport {
    position: absolute;
    min-width: 0.5rem;
    min-height: 0.5rem;
    border: 2px solid #0d6efd;
    background: rgba(13, 110, 253, 0.14);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.94), 0 0.12rem 0.34rem rgba(13, 110, 253, 0.28);
    box-sizing: border-box;
    pointer-events: none;
}

.orchard-minimap.is-viewport-empty .orchard-minimap-viewport {
    display: none;
}

.orchard-map-empty-message {
    position: absolute;
    inset: 0;
    z-index: 500;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.72);
    color: #6c757d;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    padding: 1rem;
}

.orchard-map-empty-message.d-none {
    display: none !important;
}

.orchard-leaflet-marker-icon {
    border: 0;
    background: transparent;
}

.orchard-leaflet-cluster-icon {
    border: 0;
    background: transparent;
}

.orchard-leaflet-cluster-node {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.98);
    border-radius: 999px;
    background: rgba(47, 93, 42, 0.94);
    color: #fff;
    box-shadow: 0 0.28rem 0.72rem rgba(33, 37, 41, 0.34), 0 0 0 0.22rem rgba(47, 93, 42, 0.18);
    font-weight: 900;
    line-height: 1;
}

.orchard-leaflet-cluster-node strong {
    font-size: 1rem;
}

.orchard-leaflet-cluster-node small {
    margin-left: 0.1rem;
    font-size: 0.65rem;
}

.orchard-leaflet-cluster-statuses {
    position: absolute;
    top: -0.32rem;
    right: -0.42rem;
    display: inline-flex;
    flex-direction: column;
    gap: 0.08rem;
    pointer-events: none;
}

.orchard-leaflet-cluster-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.12rem;
    height: 1.12rem;
    padding: 0 0.2rem;
    border: 2px solid #fff;
    border-radius: 999px;
    box-shadow: 0 0.12rem 0.3rem rgba(33, 37, 41, 0.38);
    color: #fff;
    font-size: 0.64rem;
    font-weight: 900;
    line-height: 1;
}

.orchard-leaflet-cluster-status-badge.is-alert {
    background: #dc3545;
}

.orchard-leaflet-cluster-status-badge.is-checking {
    background: #f59f00;
    color: #212529;
}

.orchard-leaflet-cluster-icon:hover .orchard-leaflet-cluster-node,
.orchard-leaflet-cluster-icon:focus .orchard-leaflet-cluster-node {
    background: #245c2f;
    box-shadow: 0 0.34rem 0.86rem rgba(33, 37, 41, 0.4), 0 0 0 0.3rem rgba(47, 93, 42, 0.24);
    transform: scale(1.06);
}

.orchard-leaflet-marker-node {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 3px solid rgba(255, 255, 255, 0.96);
    border-radius: 999px;
    background: #6c757d;
    color: #fff;
    box-shadow: 0 0.24rem 0.55rem rgba(33, 37, 41, 0.3);
    font-size: 0.875rem;
    font-weight: 800;
    line-height: 1;
    transition: box-shadow 0.16s ease, outline-color 0.16s ease, transform 0.16s ease;
}

.orchard-leaflet-marker-icon.inspection-pending .orchard-leaflet-marker-node::before {
    content: "";
    position: absolute;
    inset: -0.48rem;
    border: 2px dashed rgba(108, 117, 125, 0.72);
    border-radius: 999px;
    box-shadow: 0 0 0 0.18rem rgba(108, 117, 125, 0.12);
    pointer-events: none;
}

.orchard-leaflet-marker-progress-badge {
    position: absolute;
    right: -0.28rem;
    bottom: -0.28rem;
    display: inline-block;
    width: 1.18rem;
    height: 1.18rem;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #198754;
    box-shadow: 0 0.12rem 0.34rem rgba(33, 37, 41, 0.26);
    z-index: 2;
}

.orchard-leaflet-marker-progress-badge::after {
    content: "";
    position: absolute;
    left: 0.36rem;
    top: 0.24rem;
    width: 0.34rem;
    height: 0.58rem;
    border: solid #fff;
    border-width: 0 0.12rem 0.12rem 0;
    transform: rotate(45deg);
}

.orchard-leaflet-marker-icon.is-active .orchard-leaflet-marker-node {
    outline: 4px solid rgba(13, 110, 253, 0.54);
    outline-offset: 3px;
    box-shadow: 0 0.34rem 0.8rem rgba(13, 110, 253, 0.34), 0 0.16rem 0.45rem rgba(33, 37, 41, 0.28);
    transform: scale(1.16);
}

@keyframes orchard-marker-spotlight-pulse {
    0%, 100% {
        transform: scale(1.18);
        box-shadow: 0 0.42rem 1rem rgba(13, 202, 240, 0.34), 0 0 0 0.2rem rgba(13, 202, 240, 0.16), 0 0.16rem 0.45rem rgba(33, 37, 41, 0.26);
    }

    50% {
        transform: scale(1.3);
        box-shadow: 0 0.5rem 1.2rem rgba(13, 202, 240, 0.44), 0 0 0 0.36rem rgba(13, 202, 240, 0.2), 0 0.18rem 0.5rem rgba(33, 37, 41, 0.28);
    }
}

.orchard-leaflet-marker-icon.is-next-uninspected-spotlight .orchard-leaflet-marker-node {
    outline: 5px solid rgba(13, 202, 240, 0.86);
    outline-offset: 5px;
    animation: orchard-marker-spotlight-pulse 1.1s ease-in-out 0s 3;
    box-shadow: 0 0.42rem 1rem rgba(13, 202, 240, 0.34), 0 0 0 0.2rem rgba(13, 202, 240, 0.16), 0 0.16rem 0.45rem rgba(33, 37, 41, 0.26);
    transform: scale(1.18);
}

.orchard-leaflet-marker-icon.inspection-pending.is-next-uninspected-spotlight .orchard-leaflet-marker-node::before {
    border-color: rgba(13, 202, 240, 0.95);
    box-shadow: 0 0 0 0.24rem rgba(13, 202, 240, 0.18);
}

.orchard-leaflet-marker-icon.is-edit-selected .orchard-leaflet-marker-node {
    outline: 4px solid rgba(255, 193, 7, 0.9);
    outline-offset: 4px;
    box-shadow: 0 0.35rem 0.85rem rgba(255, 193, 7, 0.42), 0 0.16rem 0.45rem rgba(33, 37, 41, 0.3);
    transform: scale(1.18);
}

.orchard-leaflet-marker-icon.is-edit-selected .orchard-leaflet-marker-node::after {
    content: "";
    position: absolute;
    inset: -0.68rem;
    border: 2px solid rgba(102, 77, 3, 0.58);
    border-radius: 999px;
    pointer-events: none;
}

.orchard-leaflet-marker-normal .orchard-leaflet-marker-node,
.orchard-leaflet-marker-active .orchard-leaflet-marker-node {
    background: #2f8f46;
}

.orchard-leaflet-marker-alert .orchard-leaflet-marker-node {
    background: #c7362f;
}

.orchard-leaflet-marker-checking .orchard-leaflet-marker-node {
    background: #d8a216;
    color: #212529;
}

.orchard-leaflet-marker-cut_down .orchard-leaflet-marker-node {
    background: #6c757d;
    opacity: 0.64;
    filter: grayscale(0.35);
}

.orchard-leaflet-marker-add .orchard-leaflet-marker-node {
    border: 2px dashed #0f5132;
    background: #d1e7dd;
    color: #0f5132;
}

.orchard-leaflet-marker-bulk-preview .orchard-leaflet-marker-node {
    border: 2px solid #fff;
    outline: 3px dashed rgba(13, 110, 253, 0.9);
    outline-offset: 3px;
    background: #0dcaf0;
    color: #052c65;
    box-shadow: 0 0.3rem 0.7rem rgba(5, 44, 101, 0.34);
}

.orchard-leaflet-marker-icon.inspection-excluded .orchard-leaflet-marker-node {
    box-shadow: 0 0.16rem 0.42rem rgba(33, 37, 41, 0.22);
}

.orchard-leaflet-marker-compact .orchard-leaflet-marker-node {
    width: 22px;
    height: 22px;
    border-width: 2px;
    border-color: rgba(255, 255, 255, 0.96);
    box-shadow: 0 0.1rem 0.26rem rgba(33, 37, 41, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.16);
    font-size: 0;
}

.orchard-leaflet-marker-compact.orchard-leaflet-marker-checking .orchard-leaflet-marker-node {
    box-shadow: 0 0.1rem 0.26rem rgba(33, 37, 41, 0.3), inset 0 0 0 2px rgba(33, 37, 41, 0.18);
}

.orchard-leaflet-marker-compact.orchard-leaflet-marker-alert .orchard-leaflet-marker-node {
    box-shadow: 0 0 0 2px rgba(199, 54, 47, 0.28), 0 0.14rem 0.34rem rgba(33, 37, 41, 0.34);
}

.orchard-leaflet-marker-compact.inspection-pending .orchard-leaflet-marker-node {
    border-style: dashed;
}

.orchard-leaflet-marker-compact.inspection-pending .orchard-leaflet-marker-node::before {
    display: none;
}

.orchard-leaflet-marker-compact .orchard-leaflet-marker-progress-badge {
    right: -0.12rem;
    bottom: -0.12rem;
    width: 0.62rem;
    height: 0.62rem;
    border-width: 1px;
    box-shadow: 0 0.08rem 0.2rem rgba(33, 37, 41, 0.24);
}

.orchard-leaflet-marker-compact .orchard-leaflet-marker-progress-badge::after {
    display: none;
}

.orchard-leaflet-marker-compact .orchard-leaflet-marker-alert-icon {
    top: -0.36rem;
    right: -0.36rem;
    min-width: 0.72rem;
    height: 0.72rem;
    border-width: 1px;
    box-shadow: 0 0.08rem 0.2rem rgba(33, 37, 41, 0.26);
    font-size: 0.58rem;
    line-height: 1;
}

.orchard-leaflet-marker-compact-code {
    position: absolute;
    left: 50%;
    top: -2.1rem;
    z-index: 4;
    display: none;
    transform: translateX(-50%);
    border: 1px solid rgba(33, 37, 41, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    color: #212529;
    box-shadow: 0 0.14rem 0.36rem rgba(33, 37, 41, 0.24);
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1;
    padding: 0.2rem 0.42rem;
    white-space: nowrap;
    pointer-events: none;
}

.orchard-leaflet-marker-compact:hover .orchard-leaflet-marker-compact-code,
.orchard-leaflet-marker-compact.is-active .orchard-leaflet-marker-compact-code,
.orchard-leaflet-marker-compact.is-edit-selected .orchard-leaflet-marker-compact-code {
    display: block;
}

.orchard-leaflet-marker-compact.is-active .orchard-leaflet-marker-node {
    outline: 3px solid rgba(13, 110, 253, 0.7);
    outline-offset: 2px;
    box-shadow: 0 0 0 0.26rem rgba(13, 110, 253, 0.16), 0 0.2rem 0.48rem rgba(13, 110, 253, 0.32), 0 0.1rem 0.28rem rgba(33, 37, 41, 0.3);
    transform: scale(1.38);
}

.orchard-leaflet-marker-compact.is-edit-selected .orchard-leaflet-marker-node {
    outline: 3px solid rgba(255, 193, 7, 0.94);
    outline-offset: 3px;
    box-shadow: 0 0 0 0.28rem rgba(255, 193, 7, 0.18), 0 0.2rem 0.5rem rgba(255, 193, 7, 0.34), 0 0.1rem 0.28rem rgba(33, 37, 41, 0.3);
    transform: scale(1.42);
}

.orchard-leaflet-marker-compact.is-edit-selected .orchard-leaflet-marker-node::after {
    inset: -0.46rem;
    border-width: 1px;
}

.orchard-leaflet-marker-compact.is-next-uninspected-spotlight .orchard-leaflet-marker-node {
    transform: scale(1.52);
}

.orchard-leaflet-marker-detail-lite .orchard-leaflet-marker-node {
    width: 34px;
    height: 34px;
    border-width: 3px;
    font-size: 0;
    box-shadow: 0 0.2rem 0.48rem rgba(33, 37, 41, 0.3);
}

.orchard-leaflet-marker-detail-lite.inspection-pending .orchard-leaflet-marker-node::before {
    inset: -0.36rem;
    border-width: 2px;
}

.orchard-leaflet-marker-detail-lite .orchard-leaflet-marker-progress-badge {
    right: -0.22rem;
    bottom: -0.22rem;
    width: 0.95rem;
    height: 0.95rem;
    border-width: 2px;
}

.orchard-leaflet-marker-detail-lite .orchard-leaflet-marker-progress-badge::after {
    display: none;
}

.orchard-leaflet-marker-detail-lite .orchard-leaflet-marker-alert-icon {
    top: -0.28rem;
    right: -0.28rem;
    min-width: 0.95rem;
    height: 0.95rem;
    border-width: 2px;
    font-size: 0.7rem;
    line-height: 1;
}

.orchard-leaflet-marker-detail-lite:hover .orchard-leaflet-marker-compact-code,
.orchard-leaflet-marker-detail-lite.is-active .orchard-leaflet-marker-compact-code,
.orchard-leaflet-marker-detail-lite.is-edit-selected .orchard-leaflet-marker-compact-code {
    display: block;
}

.orchard-leaflet-marker-detail-lite.is-active .orchard-leaflet-marker-node {
    outline: 4px solid rgba(13, 110, 253, 0.62);
    outline-offset: 3px;
    box-shadow: 0 0.28rem 0.7rem rgba(13, 110, 253, 0.34), 0 0.14rem 0.4rem rgba(33, 37, 41, 0.28);
    transform: scale(1.2);
}

.orchard-leaflet-marker-detail-lite.is-edit-selected .orchard-leaflet-marker-node {
    outline: 4px solid rgba(255, 193, 7, 0.9);
    outline-offset: 4px;
    box-shadow: 0 0.3rem 0.72rem rgba(255, 193, 7, 0.4), 0 0.14rem 0.4rem rgba(33, 37, 41, 0.3);
    transform: scale(1.22);
}

.orchard-leaflet-marker-code {
    position: relative;
    z-index: 1;
    display: block;
    white-space: nowrap;
}

.orchard-leaflet-marker-alert-icon {
    position: absolute;
    top: -0.15rem;
    right: -0.15rem;
    display: inline-grid;
    place-items: center;
    min-width: 1.12rem;
    height: 1.12rem;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #dc3545;
    color: #fff;
    box-shadow: 0 0.12rem 0.32rem rgba(33, 37, 41, 0.22);
    font-size: 0.875rem;
    font-weight: 900;
}

.orchard-leaflet-map .leaflet-tooltip {
    border: 1px solid rgba(33, 37, 41, 0.14);
    border-radius: 999px;
    color: #212529;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.2;
    padding: 0.25rem 0.5rem;
}

.detail-offcanvas {
    --bs-offcanvas-width: min(640px, 92vw);
    width: var(--bs-offcanvas-width);
    max-width: 680px;
}

.offcanvas-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid #e9ecef;
    font-size: 1rem;
}

.info-row span {
    color: #6c757d;
    flex: 0 0 7.5rem;
}

.info-row strong {
    text-align: right;
    overflow-wrap: anywhere;
}

.info-row:last-child {
    border-bottom: none;
}

.detail-offcanvas .offcanvas-header {
    align-items: flex-start;
    padding: 1rem 1.1rem;
}

.detail-offcanvas .offcanvas-body {
    padding: 0 1rem 1rem;
}

.detail-summary {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 0.9rem 0.95rem;
}

.detail-summary-main {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(230px, 0.95fr);
    gap: 0.8rem;
    align-items: start;
}

.detail-summary-identity {
    min-width: 0;
}

.detail-summary-label {
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.detail-summary h2 {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.3;
}

.detail-tree-title {
    min-width: 0;
    overflow-wrap: anywhere;
}

.detail-badge-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
}

.detail-today-inspection-badge {
    font-weight: 800;
}

.detail-summary-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem 0.65rem;
    min-width: 0;
}

.detail-summary-facts div {
    min-width: 0;
}

.detail-summary-facts dt {
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.25;
}

.detail-summary-facts dd {
    color: #212529;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.3;
    margin: 0.1rem 0 0;
    overflow-wrap: anywhere;
}

.detail-section-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

.detail-section-nav .btn {
    min-height: 46px;
    font-size: 1rem;
    font-weight: 700;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.detail-section-nav .btn:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

.detail-section-stack {
    min-width: 0;
}

.detail-section {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    overflow: hidden;
}

.detail-section-title {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
    padding: 0.9rem 1rem;
}

.detail-section-body {
    padding: 1rem;
}

.detail-section-records .detail-section-title {
    padding: 0.75rem 0.95rem;
}

.detail-section-records .detail-section-body {
    padding: 0.85rem 0.95rem 0.95rem;
}

.detail-section-basic .detail-section-title {
    padding: 0.82rem 0.95rem;
}

.detail-basic-body {
    padding: 0.9rem 0.95rem 0.95rem;
}

.detail-basic-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(220px, 0.95fr);
    gap: 0.85rem;
    align-items: start;
}

.detail-basic-photo-panel,
.detail-basic-status-panel {
    min-width: 0;
}

.detail-basic-status-panel {
    border-left: 4px solid #0d6efd;
    background: #f8fbff;
    padding: 0.8rem 0.85rem;
    display: grid;
    gap: 0.5rem;
}

.detail-basic-eyebrow {
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.2;
}

.detail-basic-status-text {
    font-size: 1.18rem;
    font-weight: 800;
    line-height: 1.25;
}

.detail-basic-next-action {
    color: #495057;
    font-size: 1rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.detail-basic-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.detail-basic-chip-row span {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 999px;
    color: #495057;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    min-height: 1.9rem;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.35rem 0.65rem;
}

.detail-basic-info-grid {
    border-top: 1px solid #e9ecef;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 0.85rem;
    margin-top: 0.85rem;
}

.detail-basic-info-item {
    border-bottom: 1px solid #e9ecef;
    min-width: 0;
    padding: 0.58rem 0;
}

.detail-basic-info-item span {
    color: #6c757d;
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 0.1rem;
}

.detail-basic-info-item strong {
    display: block;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.detail-basic-note-row {
    margin-top: 0.55rem;
}

.detail-note {
    font-size: 1.05rem;
    line-height: 1.7;
}

.representative-media {
    margin-bottom: 1rem;
}

.detail-basic-photo-panel .representative-media {
    margin-bottom: 0;
}

.representative-media-main,
.representative-media-thumb {
    display: block;
    width: 100%;
    overflow: hidden;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    background: #f8f9fa;
    padding: 0;
}

.representative-media-image,
.representative-media-thumb-image {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.representative-media-image {
    max-height: 240px;
}

.detail-basic-photo-panel .representative-media-main {
    display: flex;
    align-items: center;
    justify-content: center;
    height: clamp(250px, 36vh, 300px);
    max-height: 300px;
}

.detail-basic-photo-panel .representative-media-image {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: center center;
}

.representative-media-caption {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 700;
    margin-top: 0.45rem;
}

.representative-media-thumbs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.representative-media-empty {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    background: #fff;
    color: #6c757d;
    padding: 1rem;
    text-align: center;
}

.detail-action-button {
    min-height: 50px;
    font-size: 1.05rem;
    font-weight: 700;
}

.recent-media-section {
    border-top: 1px solid #e9ecef;
    padding-top: 1rem;
}

.recent-media-title {
    color: #495057;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.recent-inspection-media {
    border-top: 1px solid #e9ecef;
    margin-top: 0.85rem;
    padding-top: 0.85rem;
}

.recent-inspection-media-title {
    color: #495057;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.recent-inspection-media .recent-media-thumbnail-wrap {
    max-width: 220px;
}

.tree-issues-section-body {
    padding: 0.9rem 0.95rem 0.95rem;
}

.tree-issues-block {
    min-width: 0;
}

.tree-issues-heading-row {
    align-items: center;
    display: flex;
    gap: 0.65rem;
    justify-content: space-between;
    margin-bottom: 0.65rem;
}

.tree-issues-heading {
    color: #212529;
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 0;
}

.tree-issue-list {
    display: grid;
    gap: 0.75rem;
}

.tree-issue-item,
.tree-issue-empty {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 0.82rem 0.9rem;
}

.tree-issue-item {
    border-left: 4px solid #dc3545;
    display: grid;
    gap: 0.65rem;
}

.tree-issue-item-resolved {
    border-left-color: #198754;
    background: #f8fbf9;
}

.tree-issue-empty {
    color: #6c757d;
    font-size: 0.98rem;
    text-align: center;
}

.tree-issue-item-header,
.tree-issue-badges,
.tree-issue-form-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.tree-issue-item-header {
    justify-content: space-between;
}

.tree-issue-title {
    color: #212529;
    font-size: 1.03rem;
    font-weight: 800;
    min-width: 0;
}

.tree-issue-meta {
    display: grid;
    gap: 0.35rem;
}

.tree-issue-meta div {
    display: grid;
    gap: 0.5rem;
    grid-template-columns: 5.8rem minmax(0, 1fr);
}

.tree-issue-meta dt {
    color: #6c757d;
    font-weight: 700;
}

.tree-issue-meta dd {
    margin-bottom: 0;
    min-width: 0;
}

.tree-issue-note,
.tree-issue-resolved-at {
    color: #495057;
    font-size: 0.95rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.tree-issue-update-form {
    border-top: 1px solid #e9ecef;
    padding-top: 0.7rem;
}

.tree-issue-update-form .form-label {
    color: #495057;
    font-size: 0.9rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.tree-issue-form-actions {
    margin-top: 0.65rem;
}

.tree-issue-update-message {
    font-size: 0.9rem;
    font-weight: 700;
}

.history-filter-control {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.35rem;
    margin-bottom: 0.75rem;
}

.history-filter-control .btn {
    font-size: 0.95rem;
    font-weight: 800;
    min-width: 0;
}

.inspection-history-list {
    display: grid;
    gap: 0.62rem;
}

.inspection-history-item,
.inspection-history-empty {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    background: #fff;
    padding: 0.92rem 1rem;
}

.inspection-history-item {
    border-left: 4px solid #adb5bd;
    display: grid;
    gap: 0.58rem;
}

.inspection-history-item.is-latest {
    border-left-color: #0d6efd;
    background: #f8fbff;
}

.inspection-history-item-status-change {
    border-left-color: #fd7e14;
}

.inspection-history-item-status-change.is-latest {
    border-left-color: #fd7e14;
    background: #fffaf4;
}

.inspection-history-empty {
    color: #6c757d;
    font-size: 1rem;
    text-align: center;
}

.inspection-history-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.inspection-history-primary {
    display: grid;
    gap: 0.35rem;
    min-width: 0;
}

.inspection-history-date-row,
.inspection-history-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.45rem;
}

.inspection-history-date {
    font-size: 1.1rem;
    font-weight: 800;
}

.inspection-history-latest-badge,
.inspection-history-photo-badge,
.inspection-history-event-type,
.inspection-history-operation-badge,
.inspection-result-chip {
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    min-height: 1.8rem;
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.1;
    padding: 0.35rem 0.65rem;
}

.inspection-history-latest-badge {
    background: #0d6efd;
    color: #fff;
}

.inspection-history-photo-badge {
    background: #fff;
    border: 1px solid #ced4da;
    color: #495057;
}

.inspection-history-event-type-inspection {
    background: #cfe2ff;
    color: #084298;
}

.inspection-history-event-type-status-change {
    background: #ffe5d0;
    color: #8a3c00;
}

.inspection-history-operation-badge {
    background: #e9ecef;
    color: #495057;
}

.inspection-result-normal {
    background: #d1e7dd;
    color: #0f5132;
}

.inspection-result-checking {
    background: #fff3cd;
    color: #664d03;
}

.inspection-result-alert {
    background: #f8d7da;
    color: #842029;
}

.inspection-result-undetermined,
.inspection-result-other,
.inspection-result-unset {
    background: #e9ecef;
    color: #495057;
}

.inspection-history-summary {
    font-size: 1.05rem;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.inspection-history-actor {
    color: #495057;
    font-size: 1rem;
    line-height: 1.5;
    min-width: 0;
    overflow-wrap: anywhere;
}

.inspection-history-actor span {
    color: #6c757d;
    font-weight: 700;
}

.inspection-history-status-change {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    font-size: 1.12rem;
    font-weight: 800;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.inspection-history-status-change span {
    color: #6c757d;
}

.inspection-history-note {
    color: #6c757d;
    font-size: 1.02rem;
    line-height: 1.6;
    margin-top: 0.35rem;
    overflow-wrap: anywhere;
    white-space: pre-line;
}

.inspection-history-note span {
    color: #495057;
    font-weight: 700;
    margin-right: 0.45rem;
}

.inspection-history-thumbnails {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.inspection-history-thumbnail-wrap {
    overflow: hidden;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    background: #f8f9fa;
}

.inspection-history-thumbnail {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.inspection-history-thumbnail-label {
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.4rem 0.5rem;
    text-align: center;
}

.recent-media-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.recent-media-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.recent-media-title-sub {
    color: #6c757d;
    font-size: 0.92rem;
    font-weight: 700;
}

.recent-media-item,
.recent-media-empty,
.recent-media-more-note {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    background: #fff;
}

.recent-media-item {
    display: grid;
    gap: 0.7rem;
    min-width: 0;
    padding: 0.85rem;
}

.recent-media-item.is-latest {
    grid-column: 1 / -1;
    border-color: #9ec5fe;
    background: #f8fbff;
}

.recent-media-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.7rem;
}

.recent-media-label-stack {
    display: grid;
    gap: 0.18rem;
    min-width: 0;
}

.recent-media-card-title {
    color: #212529;
    font-size: 1.06rem;
    font-weight: 800;
    line-height: 1.25;
}

.recent-media-card-subtitle {
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.35;
}

.recent-media-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.35rem;
    min-width: 7rem;
}

.recent-media-badge {
    display: inline-flex;
    align-items: center;
    min-height: 1.85rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.1;
    padding: 0.36rem 0.62rem;
    white-space: nowrap;
}

.recent-media-badge-latest {
    background: #0d6efd;
    color: #fff;
}

.recent-media-badge-inspection {
    background: #d1e7dd;
    color: #0f5132;
}

.recent-media-badge-muted {
    background: #e9ecef;
    color: #495057;
}

.recent-media-thumbnail-wrap {
    position: relative;
    overflow: hidden;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    background: #f8f9fa;
    min-height: 144px;
}

.recent-media-thumbnail {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.recent-media-item.is-latest .recent-media-thumbnail {
    aspect-ratio: 16 / 9;
    max-height: 280px;
    object-fit: contain;
}

#mediaListArea .recent-media-thumbnail {
    object-fit: contain;
}

.recent-media-thumbnail-action {
    position: absolute;
    right: 0.55rem;
    bottom: 0.55rem;
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    border-radius: 999px;
    background: rgba(33, 37, 41, 0.78);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.1;
    padding: 0.4rem 0.65rem;
}

.recent-media-empty {
    grid-column: 1 / -1;
    display: grid;
    gap: 0.35rem;
    color: #6c757d;
    font-size: 1rem;
    line-height: 1.55;
    padding: 1.25rem;
    text-align: center;
}

.recent-media-empty strong {
    color: #495057;
    font-size: 1.05rem;
}

.recent-media-more-note {
    grid-column: 1 / -1;
    color: #6c757d;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.45;
    padding: 0.75rem 0.85rem;
}

.recent-media-meta {
    display: grid;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.recent-media-meta div {
    display: grid;
    grid-template-columns: 5.25rem minmax(0, 1fr);
    gap: 0.65rem;
    min-height: 1.65rem;
}

.recent-media-meta dt {
    color: #6c757d;
    font-weight: 800;
}

.recent-media-meta dd {
    color: #212529;
    font-weight: 700;
    margin-bottom: 0;
    overflow-wrap: anywhere;
}

.photo-viewer-trigger {
    display: block;
    width: 100%;
    cursor: zoom-in;
    padding: 0;
    text-align: left;
}

.photo-viewer-trigger:hover,
.photo-viewer-trigger:focus-visible {
    border-color: var(--bs-primary);
    outline: 3px solid rgba(13, 110, 253, 0.18);
    outline-offset: 2px;
}

.photo-viewer-overlay {
    position: fixed;
    inset: 0;
    z-index: 1090;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, 0.86);
    padding: 1rem;
}

.photo-viewer-shell {
    position: relative;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 0.75rem;
    width: min(1120px, 100%);
    height: calc(100dvh - 2rem);
    max-height: calc(100dvh - 2rem);
}

.photo-viewer-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 2;
    display: inline-grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.62);
    color: #fff;
    font-size: 1.8rem;
    line-height: 1;
}

.photo-viewer-close:hover,
.photo-viewer-close:focus-visible {
    background: rgba(255, 255, 255, 0.18);
    outline: 3px solid rgba(255, 255, 255, 0.28);
}

.photo-viewer-ai-toggle {
    position: absolute;
    top: 0.65rem;
    right: 3.85rem;
    z-index: 3;
    min-width: 8.5rem;
    min-height: 2.75rem;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.66);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.1;
    padding: 0.55rem 0.9rem;
}

.photo-viewer-ai-toggle:hover,
.photo-viewer-ai-toggle:focus-visible {
    background: rgba(255, 255, 255, 0.18);
    outline: 3px solid rgba(255, 255, 255, 0.28);
}

.photo-viewer-image-stage {
    position: relative;
    display: grid;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    place-items: center;
}

.photo-viewer-image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    border-radius: 0.5rem;
    object-fit: contain;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.42);
}

.photo-viewer-ai-bbox-overlay {
    position: absolute;
    inset: auto;
    z-index: 2;
    overflow: visible;
    pointer-events: none;
}

.photo-viewer-ai-status {
    position: absolute;
    left: 0.85rem;
    bottom: 0.85rem;
    z-index: 3;
    max-width: min(22rem, calc(100% - 1.7rem));
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.66);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.2;
    padding: 0.45rem 0.75rem;
}

.photo-viewer-info {
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 0.5rem;
    background: rgba(18, 18, 18, 0.9);
    color: #f8f9fa;
    padding: 0.35rem 0.5rem;
}

.photo-viewer-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0;
}

.photo-viewer-nav-button {
    min-width: 5.5rem;
}

.photo-viewer-position {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.92rem;
    font-weight: 700;
    text-align: center;
}

.photo-viewer-review {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    margin-top: 0.75rem;
    padding-top: 0.75rem;
}

.photo-viewer-review:not(.d-none) + .photo-viewer-navigation {
    margin-top: 0.65rem;
}

.photo-viewer-review-summary {
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.95rem;
    font-weight: 800;
    margin-bottom: 0.55rem;
}

.photo-viewer-review-body {
    display: grid;
    gap: 0.55rem;
}

.photo-viewer-review-selected {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.photo-viewer-review-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.photo-viewer-review-button,
.photo-viewer-review-submit {
    min-height: 2.5rem;
    font-size: 0.95rem;
    font-weight: 800;
}

.photo-viewer-review-reject {
    display: grid;
    grid-template-columns: minmax(9rem, 0.8fr) minmax(14rem, 1.2fr) auto;
    gap: 0.45rem 0.55rem;
    align-items: end;
}

.photo-viewer-review-label {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.9rem;
    font-weight: 800;
    margin-bottom: 0.1rem;
}

.photo-viewer-review-reject .photo-viewer-review-label:first-of-type,
.photo-viewer-review-reject .form-select {
    grid-column: 1;
}

.photo-viewer-review-reject .photo-viewer-review-label:nth-of-type(2),
.photo-viewer-review-reject .form-control {
    grid-column: 2;
}

.photo-viewer-review-submit {
    grid-column: 3;
    grid-row: 2;
}

.photo-viewer-review-message {
    font-size: 0.95rem;
    font-weight: 800;
}

.recent-media-meta dd {
    margin-bottom: 0;
    min-width: 0;
}

.media-upload-form {
    border-top: 1px solid #e9ecef;
    padding-top: 1rem;
}

.media-upload-field .form-label {
    font-size: 1rem;
    font-weight: 700;
}

.media-upload-form .form-control,
.media-upload-form .form-select {
    min-height: 50px;
    font-size: 1rem;
}

.media-upload-button {
    min-height: 52px;
    font-size: 1.05rem;
    font-weight: 700;
}

.media-upload-message {
    font-size: 1rem;
    font-weight: 700;
}


.ai-empty-state {
    border: 1px dashed #adb5bd;
    border-radius: 0.5rem;
    background: #f8f9fa;
    color: #6c757d;
    font-size: 1rem;
    padding: 1rem;
    text-align: center;
}

.ai-result-box {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    background: #f8f9fa;
    padding: 1rem;
}

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

.ai-result-title {
    font-size: 1.05rem;
    font-weight: 700;
}

.ai-result-status-text {
    color: #6c757d;
    font-size: 0.95rem;
    margin-top: 0.15rem;
}

.ai-judgement-card {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    margin-bottom: 0.85rem;
    padding: 0.9rem;
}

.ai-judgement-text {
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.3;
}

.ai-result-grid {
    display: grid;
    gap: 0.75rem;
}

.ai-result-row {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    font-size: 1rem;
    padding: 0.85rem;
}

.ai-media-box {
    border-top: 1px solid #dee2e6;
    margin-top: 1rem;
    padding-top: 1rem;
}

.ai-media-title {
    color: #495057;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.65rem;
}

.ai-media-preview {
    display: block;
    position: relative;
    width: 100%;
    overflow: hidden;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    background: #fff;
    margin-bottom: 0.75rem;
    padding: 0;
    text-align: left;
}

.ai-media-preview:hover,
.ai-media-preview:focus-visible {
    border-color: var(--bs-primary);
    outline: 3px solid rgba(13, 110, 253, 0.18);
    outline-offset: 2px;
}

.ai-media-image {
    display: block;
    width: 100%;
    max-height: 220px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.ai-media-preview.has-bbox-overlay .ai-media-image {
    background: #111827;
    object-fit: contain;
}

.ai-bbox-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.ai-bbox {
    position: absolute;
    border: 2px solid #ffc107;
    box-shadow: 0 0 0 1px rgba(33, 37, 41, 0.65);
    min-width: 14px;
    min-height: 14px;
}

.ai-bbox-label {
    position: absolute;
    left: 0;
    max-width: min(13rem, 72vw);
    overflow: visible;
    background: rgba(33, 37, 41, 0.82);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 800;
    line-height: 1.2;
    padding: 0.15rem 0.25rem;
    text-overflow: clip;
    white-space: nowrap;
    z-index: 2;
}

.ai-bbox-label-above {
    top: 0;
    transform: translateY(-100%);
}

.ai-bbox-label-below {
    top: 100%;
}

.ai-bbox.is-reviewable {
    cursor: pointer;
    pointer-events: auto;
}

.ai-bbox.is-selected {
    border-width: 4px;
    box-shadow: 0 0 0 2px #fff, 0 0 0 5px rgba(13, 110, 253, 0.78);
}

.ai-bbox-review-accepted {
    border-color: #20c997;
}

.ai-bbox-review-rejected {
    border-color: #adb5bd;
    border-style: dashed;
    opacity: 0.72;
}

.ai-bbox-review-hold {
    border-color: #fd7e14;
    border-style: dashed;
}

.ai-bbox-review-accepted .ai-bbox-label {
    background: rgba(8, 111, 82, 0.9);
}

.ai-bbox-review-rejected .ai-bbox-label {
    background: rgba(73, 80, 87, 0.88);
}

.ai-bbox-review-hold .ai-bbox-label {
    background: rgba(173, 83, 0, 0.9);
}

.ai-yolo-details {
    border-top: 1px solid #dee2e6;
    margin-top: 1rem;
    padding-top: 1rem;
}

.ai-yolo-table {
    font-size: 0.92rem;
}

.ai-yolo-history {
    border-top: 1px dashed rgba(108, 117, 125, 0.35);
    margin-top: 0.9rem;
    opacity: 0.86;
    padding-top: 0.85rem;
}

.ai-yolo-history-table {
    color: #6c757d;
    font-size: 0.875rem;
}

.ai-yolo-history-table th,
.ai-yolo-history-table td {
    white-space: nowrap;
}

.ai-analyze-dev-box {
    border: 1px solid rgba(25, 135, 84, 0.26);
    border-radius: 0.5rem;
    background: rgba(25, 135, 84, 0.06);
    padding: 0.85rem;
}

.ai-analyze-dev-note {
    color: #495057;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.ai-analyze-message {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.5;
    margin-top: 0.65rem;
}

.ai-demo-note {
    border: 1px solid rgba(13, 110, 253, 0.18);
    border-radius: 0.5rem;
    background: rgba(13, 110, 253, 0.06);
    color: #495057;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.55;
    margin-top: 0.85rem;
    padding: 0.75rem;
}

.ai-media-meta {
    display: grid;
    gap: 0.55rem;
    font-size: 0.98rem;
}

.ai-media-meta div {
    display: grid;
    grid-template-columns: 5.5rem minmax(0, 1fr);
    gap: 0.75rem;
}

.ai-media-meta dt {
    color: #6c757d;
    font-weight: 700;
}

.ai-media-meta dd {
    margin-bottom: 0;
    min-width: 0;
}

.inspection-section-body {
    padding: 0.9rem 0.95rem 0.95rem;
}

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

.inspection-form-intro {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    color: #495057;
    font-size: 1rem;
    font-weight: 700;
    grid-column: 1 / -1;
    line-height: 1.55;
    padding: 0.72rem 0.8rem;
}

.inspection-field {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    min-width: 0;
    padding: 0.78rem 0.82rem;
}

.inspection-field-summary,
.inspection-issue-area,
.inspection-field-note,
.inspection-error,
.inspection-form-actions {
    grid-column: 1 / -1;
}

.inspection-issue-register-check .form-check-input {
    min-height: 1.15rem;
}

.inspection-issue-fields {
    border-top: 1px solid #e9ecef;
    margin-top: 0.7rem;
    padding-top: 0.75rem;
}

.inspection-form .form-label {
    color: #212529;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.45rem;
}

.inspection-form .form-text {
    font-size: 0.95rem;
}

.inspection-form .form-control,
.inspection-form .form-select {
    min-height: 52px;
    font-size: 1.05rem;
}

.inspection-form textarea.form-control {
    min-height: auto;
    line-height: 1.6;
}

.inspection-summary-input {
    min-height: 7rem;
}

.inspection-submit-button {
    min-height: 56px;
    font-size: 1.1rem;
}

.inspection-error {
    font-size: 1rem;
    font-weight: 700;
}

pre {
    white-space: pre-wrap;
}

@media (min-width: 992px) {
    .dashboard-summary-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .main-content {
        width: min(calc(100% - 2rem), 1440px);
    }

    .orchard-leaflet-map {
        height: clamp(580px, 70vh, 780px);
        min-height: 580px;
    }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
    .main-content {
        width: 100%;
    }

    .orchard-leaflet-map {
        height: clamp(500px, 66vh, 640px);
        min-height: 500px;
    }

    .orchard-minimap {
        width: 170px;
    }

    .orchard-map-quick-actions {
        top: 0.65rem;
        right: 0.65rem;
    }

    .orchard-map-header-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 767.98px) {
    .bulk-inspection-scope-options,
    .bulk-inspection-zone-summary-list,
    .bulk-inspection-zone-selection-list,
    .tree-bulk-create-form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    body {
        font-size: 16px;
    }

    .main-content {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .navbar-brand {
        font-size: 1.0625rem;
        gap: 0.5rem;
        max-width: 48vw;
    }

    .navbar-brand-logo {
        height: 26px;
    }

    .navbar-admin-menu {
        margin-right: 0.35rem !important;
    }

    .app-info-list div {
        grid-template-columns: 1fr;
        gap: 0.15rem;
    }

    .summary-label {
        font-size: 0.9rem;
    }

    .summary-value {
        font-size: 1.6rem;
    }

     .summary-note {
        font-size: 0.9rem;
    }

    .card-header {
        padding: 0.75rem;
    }

    .card-body {
        padding: 0.85rem;
    }

    .list-group-item {
        padding: 0.9rem;
    }

    .tree-filter-area {
        padding: 0.9rem;
    }

    .tree-filter-label {
        font-size: 1rem;
    }

    .tree-search-input,
    .tree-status-filter {
        min-height: 52px;
        font-size: 1rem;
    }

    .orchard-map-header {
        grid-template-columns: 1fr;
        align-items: flex-start;
    }

    .orchard-map-mode-strip,
    .orchard-map-header-actions {
        justify-content: flex-start;
        width: 100%;
    }

    .orchard-edit-selection-panel,
    .orchard-add-tree-panel,
    .tree-bulk-create-map-check-panel {
        align-items: stretch;
        flex-direction: column;
    }

    .orchard-edit-selection-panel,
    .orchard-edit-selection-body {
        grid-template-columns: 1fr;
    }

    .orchard-edit-location-editor,
    .orchard-edit-position-preview,
    .orchard-edit-ledger-editor,
    .orchard-edit-save-message,
    .orchard-edit-selection-note {
        grid-column: 1;
        grid-row: auto;
    }

    .orchard-edit-position-grid {
        grid-template-columns: 1fr;
    }

    .orchard-edit-selection-actions {
        justify-content: stretch;
        max-width: none;
        width: 100%;
    }

    .orchard-edit-selection-actions .btn {
        flex: 1 1 100%;
    }

    .orchard-map-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .orchard-map {
        min-height: 320px;
    }

    .orchard-leaflet-map {
        height: 58vh;
        min-height: 320px;
    }

    .orchard-minimap {
        right: 0.5rem;
        bottom: 0.5rem;
        width: 132px;
    }

    .orchard-map-quick-actions {
        top: 0.5rem;
        right: 0.5rem;
    }

    .orchard-map-icon-button {
        width: 2.35rem;
        min-width: 2.35rem;
        height: 2.35rem;
        min-height: 2.35rem;
    }

    .orchard-map-edge-pan {
        width: 2.5rem;
        min-width: 2.5rem;
        height: 2.5rem;
        min-height: 2.5rem;
    }

    .orchard-minimap-title {
        font-size: 0.875rem;
        padding: 0.26rem 0.4rem;
    }

    .orchard-minimap-viewport {
        border-width: 1px;
    }

    .orchard-leaflet-marker-node {
        width: 38px;
        height: 38px;
        font-size: 0.875rem;
    }

    .orchard-marker {
        width: 48px;
        height: 48px;
        font-size: 0.875rem;
    }

    .orchard-marker-node {
        width: 40px;
        height: 40px;
    }

    .orchard-map-legend {
        font-size: 0.875rem;
        gap: 0.35rem 0.65rem;
        padding: 0.55rem 0.65rem;
    }

    .orchard-map-scale {
        bottom: 0.5rem;
        left: 0.5rem;
    }

    .photo-viewer-overlay {
        padding: 0.75rem;
    }

    .photo-viewer-shell {
        height: calc(100dvh - 1.5rem);
        max-height: calc(100dvh - 1.5rem);
    }

    .photo-viewer-review-reject {
        grid-template-columns: 1fr;
    }

    .photo-viewer-review-reject .photo-viewer-review-label:first-of-type,
    .photo-viewer-review-reject .form-select,
    .photo-viewer-review-reject .photo-viewer-review-label:nth-of-type(2),
    .photo-viewer-review-reject .form-control,
    .photo-viewer-review-submit {
        grid-column: 1;
        grid-row: auto;
    }

}

@media (max-width: 575.98px) {
    .detail-offcanvas {
        --bs-offcanvas-width: 100vw;
        width: var(--bs-offcanvas-width);
    }

    .detail-offcanvas .offcanvas-header {
        padding: 0.9rem;
    }

    .detail-offcanvas .offcanvas-body {
        padding: 0 0.75rem 0.9rem;
    }

    .detail-summary {
        padding: 0.9rem;
    }

    .detail-summary-main,
    .detail-basic-hero,
    .detail-basic-info-grid {
        grid-template-columns: 1fr;
    }

    .detail-summary h2 {
        font-size: 1.2rem;
    }

    .detail-section-nav {
        gap: 0.45rem;
    }

    .detail-section-nav .btn {
        min-height: 48px;
        font-size: 0.95rem;
        padding-left: 0.35rem;
        padding-right: 0.35rem;
    }

    .detail-section-title {
        font-size: 1rem;
        padding: 0.85rem 0.9rem;
    }

    .detail-section-body {
        padding: 0.9rem;
    }

    .info-row {
        display: block;
        gap: 0;
        padding: 0.75rem 0;
    }

    .info-row span,
    .info-row strong {
        display: block;
        text-align: left;
    }

    .info-row strong {
        margin-top: 0.2rem;
    }

    .detail-action-button {
        min-height: 52px;
    }


    .recent-media-list {
        grid-template-columns: 1fr;
    }

    .recent-media-item,
    .recent-media-empty {
        padding: 0.85rem;
    }

    .recent-media-card-header {
        flex-direction: column;
    }

    .recent-media-badges {
        justify-content: flex-start;
        min-width: 0;
    }

    .recent-media-item.is-latest .recent-media-thumbnail,
    .recent-media-thumbnail {
        aspect-ratio: 4 / 3;
    }

    .recent-media-meta div {
        grid-template-columns: 1fr;
        gap: 0.15rem;
    }

    .media-upload-form .form-control,
    .media-upload-form .form-select {
        min-height: 54px;
    }

    .media-upload-button {
        min-height: 56px;
    }


    .inspection-form {
        grid-template-columns: 1fr;
    }

    .inspection-form-intro,
    .inspection-field {
        padding: 0.85rem;
    }

    .inspection-form .form-control,
    .inspection-form .form-select {
        min-height: 54px;
        font-size: 1.05rem;
    }

    .inspection-submit-button {
        min-height: 58px;
    }


    .ai-result-header {
        display: block;
    }

    .ai-result-header .badge {
        margin-top: 0.5rem;
    }

    .ai-media-meta div {
        grid-template-columns: 1fr;
        gap: 0.15rem;
    }
}


/* 認証基盤 Phase 1 */
.auth-page {
    min-height: 100vh;
}

.auth-shell,
.account-shell {
    width: min(100%, 960px);
    margin: 0 auto;
    padding: 48px 20px;
}

.auth-panel,
.account-panel {
    width: min(100%, 520px);
    margin: 0 auto;
    padding: 32px;
    background: #fff;
    border: 1px solid rgba(33, 37, 41, 0.12);
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(33, 37, 41, 0.08);
}

.auth-panel-wide,
.account-panel {
    width: min(100%, 720px);
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    font-weight: 700;
    color: #1f5130;
}

.auth-brand img {
    width: 142px;
    padding: 6px 10px;
    background: #212529;
    border-radius: 6px;
}

.auth-panel h1,
.account-panel h1 {
    margin: 0 0 24px;
    font-size: 1.8rem;
    letter-spacing: 0;
}

.account-panel h2 {
    margin: 28px 0 12px;
    font-size: 1.2rem;
    letter-spacing: 0;
}

.auth-form {
    display: grid;
    gap: 18px;
}

.auth-password-input-group .form-control {
    min-width: 0;
}

.auth-password-toggle {
    display: inline-grid;
    place-items: center;
    min-width: 3rem;
    min-height: 3rem;
    padding: 0.5rem 0.75rem;
}

.auth-password-toggle:focus-visible {
    z-index: 5;
}

.auth-password-visibility-icon {
    position: relative;
    display: block;
    width: 1.35rem;
    height: 1rem;
}

.auth-password-visibility-eye {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1rem;
    height: 1rem;
    border: 2px solid currentColor;
    border-radius: 75% 15%;
    transform: translate(-50%, -50%) rotate(45deg);
}

.auth-password-visibility-eye::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0.3rem;
    height: 0.3rem;
    border-radius: 50%;
    background: currentColor;
    content: "";
    transform: translate(-50%, -50%);
}

.auth-password-visibility-slash {
    position: absolute;
    top: 50%;
    left: 50%;
    display: none;
    width: 1.55rem;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 0 0 2px #fff;
    transform: translate(-50%, -50%) rotate(45deg);
}

.auth-password-toggle[aria-pressed="true"] .auth-password-visibility-slash {
    display: block;
}

.auth-note {
    margin: 20px 0 0;
    color: #5f6b62;
}

.auth-summary {
    display: grid;
    gap: 10px;
    margin: 0 0 24px;
}

.auth-summary div {
    display: grid;
    grid-template-columns: minmax(96px, 150px) 1fr;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(33, 37, 41, 0.08);
}

.auth-summary dt {
    color: #5f6b62;
    font-weight: 700;
}

.auth-summary dd {
    margin: 0;
    min-width: 0;
    overflow-wrap: anywhere;
}

@media (max-width: 576px) {
    .auth-shell,
    .account-shell {
        padding: 24px 12px;
    }

    .auth-panel,
    .account-panel {
        padding: 22px;
    }

    .auth-summary div {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

.inspection-report-page {
    max-width: 1440px;
    margin: 0 auto;
}

.inspection-report-summary-grid {
    display: grid;
    grid-template-columns: minmax(150px, 0.7fr) minmax(150px, 0.7fr) minmax(360px, 2fr);
    gap: 0.75rem;
}

.inspection-report-summary-card .card-body,
.inspection-report-result-summary .card-body {
    min-height: 108px;
}

.inspection-report-summary-label {
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 700;
}

.inspection-report-summary-value {
    color: #1f5130;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-top: 0.35rem;
}

.inspection-report-summary-value span {
    color: #495057;
    font-size: 0.95rem;
    font-weight: 700;
    margin-left: 0.25rem;
}

.inspection-report-result-counts {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.55rem 0.8rem;
}

.inspection-report-result-count {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.inspection-report-table {
    min-width: 1040px;
    table-layout: fixed;
}

.inspection-report-table th:nth-child(1) { width: 120px; }
.inspection-report-table th:nth-child(2) { width: 140px; }
.inspection-report-table th:nth-child(3) { width: 125px; }
.inspection-report-table th:nth-child(4) { width: 170px; }
.inspection-report-table th:nth-child(5) { width: 25%; }
.inspection-report-table th:nth-child(6) { width: 25%; }

.inspection-report-table th,
.inspection-report-table td {
    padding: 0.8rem 0.75rem;
    vertical-align: top;
}

.inspection-report-time-cell time {
    display: block;
    font-size: 1rem;
    font-weight: 800;
}

.inspection-report-session {
    display: block;
    max-width: 100%;
    margin-top: 0.3rem;
    color: #6c757d;
    font-size: 0.75rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.inspection-report-text-cell {
    line-height: 1.55;
    overflow-wrap: anywhere;
    white-space: pre-line;
}

.inspection-report-empty {
    padding: 3.5rem 1rem;
    text-align: center;
}

@media (max-width: 767.98px) {
    .inspection-report-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .inspection-report-result-summary {
        grid-column: 1 / -1;
    }
}

/* Dashboard UI Phase 1: map-first shell */
body.dashboard-page {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
}

@supports (height: 100dvh) {
    body.dashboard-page {
        height: 100dvh;
        min-height: 100dvh;
    }
}

.dashboard-page > .dashboard-navbar {
    flex: 0 0 auto;
}

.dashboard-navbar {
    min-height: 52px;
    padding-top: 0.18rem;
    padding-bottom: 0.18rem;
}

.dashboard-navbar .container-fluid {
    gap: 0.25rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.dashboard-navbar .navbar-brand {
    gap: 0.45rem;
    max-width: clamp(10rem, 23vw, 19rem);
    margin-right: auto !important;
    font-size: 1rem;
}

.dashboard-navbar .navbar-brand-logo {
    height: 28px;
}

.dashboard-navbar .navbar-context {
    gap: 0.35rem !important;
    margin-right: 0.35rem !important;
}

.dashboard-navbar .navbar-field-select {
    width: clamp(10rem, 17vw, 15rem);
    max-width: 15rem;
}

.dashboard-navbar .navbar-user-menu,
.dashboard-navbar .navbar-admin-menu {
    margin-right: 0.35rem !important;
}

.dashboard-navbar .navbar-user-button {
    max-width: clamp(8rem, 18vw, 15rem);
}

.dashboard-main {
    flex: 1 1 auto;
    width: 100%;
    max-width: none;
    min-height: 0;
    margin: 0;
    padding: 0 !important;
}

.dashboard-map-first-shell {
    display: flex;
    width: 100%;
    height: 100%;
    min-height: 0;
    flex-direction: column;
    overflow: hidden;
}

.dashboard-map-status-bar {
    display: grid;
    width: 100%;
    height: 38px;
    min-height: 38px;
    flex: 0 0 38px;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.65rem;
    overflow: hidden;
    border-bottom: 1px solid #cbd4ce;
    background: #eef2ef;
    color: #344238;
    padding: 0 0.65rem;
}

.dashboard-map-status-context {
    display: flex;
    min-width: 0;
    height: 100%;
    align-items: center;
    overflow: hidden;
}

.dashboard-map-status-title {
    flex: 0 0 auto;
    color: #1e422d;
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}

.dashboard-map-status-context-item {
    display: inline-flex;
    min-width: 0;
    max-width: min(18vw, 14rem);
    flex: 0 1 auto;
    align-items: center;
    gap: 0.25rem;
    margin-left: 0.65rem;
    border: 0;
    border-left: 1px solid #bdc8c0;
    border-radius: 0;
    background: transparent;
    color: #5c6860;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.2;
    padding: 0 0 0 0.65rem;
    white-space: nowrap;
}

.dashboard-map-status-context-item strong {
    min-width: 0;
    overflow: hidden;
    color: #212529;
    font-size: 0.82rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-map-status-label {
    flex: 0 0 auto;
}

.dashboard-map-status-summary {
    display: flex;
    min-width: 0;
    height: 100%;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    overflow: hidden;
    color: #343a40;
    font-size: clamp(0.76rem, 0.9vw, 0.86rem);
    font-weight: 600;
    line-height: 1.2;
}

.dashboard-map-control-source {
    display: none;
}

.dashboard-page .orchard-map-card {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 0;
    flex: 1 1 auto;
    margin: 0 !important;
    overflow: hidden;
    border: 0;
    border-radius: 0;
}

.dashboard-page .orchard-map-card > .card-body > :not(.orchard-leaflet-shell) {
    display: none;
}

.dashboard-page .orchard-map-card > .card-body {
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 0;
}

.dashboard-page .orchard-leaflet-shell,
.dashboard-page .orchard-leaflet-map {
    width: 100%;
    height: 100%;
    min-height: 0;
}

.dashboard-page .orchard-leaflet-shell {
    border: 0;
    border-radius: 0;
}

.dashboard-summary-item {
    display: inline-flex;
    align-items: baseline;
    gap: 0.22rem;
    white-space: nowrap;
    padding: 0 0.62rem;
}

.dashboard-summary-item + .dashboard-summary-item {
    border-left: 1px solid #ced4da;
}

.dashboard-summary-filter-shortcut {
    display: inline-flex;
    align-items: baseline;
    gap: 0.22rem;
    margin: -0.08rem -0.16rem;
    border: 0;
    border-radius: 0.28rem;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: inherit;
    line-height: inherit;
    padding: 0.08rem 0.16rem;
    touch-action: manipulation;
    white-space: nowrap;
}

.dashboard-summary-filter-shortcut:hover {
    background: rgba(25, 135, 84, 0.09);
}

.dashboard-summary-filter-shortcut:focus-visible {
    outline: 2px solid rgba(13, 110, 253, 0.55);
    outline-offset: 1px;
}

.dashboard-summary-filter-shortcut:active {
    background: rgba(25, 135, 84, 0.16);
    transform: translateY(1px);
}

.dashboard-summary-filter-shortcut[aria-pressed="true"] {
    background: rgba(25, 135, 84, 0.1);
    font-weight: 800;
    text-decoration: underline;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.16em;
}

.dashboard-summary-filter-shortcut:disabled {
    background: transparent;
    cursor: default;
    opacity: 0.62;
    text-decoration: none;
    transform: none;
}

.dashboard-summary-alert strong {
    color: #b02a37;
}

.dashboard-summary-checking strong {
    color: #8a6700;
}

.dashboard-summary-inspected strong {
    color: #146c43;
}

.dashboard-page .orchard-map-overlay-status {
    top: 4rem;
}

.dashboard-tool-rail {
    position: absolute;
    top: 5.3rem;
    left: 0.75rem;
    z-index: 740;
    display: grid;
    width: 3.5rem;
    gap: 0.25rem;
    border: 1px solid rgba(33, 37, 41, 0.2);
    border-radius: 0.65rem;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 0.2rem 0.65rem rgba(33, 37, 41, 0.2);
    padding: 0.2rem;
    pointer-events: auto;
}

.dashboard-tool-rail-button {
    position: relative;
    display: inline-flex;
    width: 3rem;
    min-width: 3rem;
    min-height: 3.5rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.12rem;
    overflow: visible;
    border: 1px solid transparent;
    border-radius: 0.48rem;
    background: transparent;
    color: #344238;
    line-height: 1;
    padding: 0.2rem 0.08rem;
    touch-action: manipulation;
    user-select: none;
}

.dashboard-tool-rail-button:hover {
    border-color: rgba(25, 135, 84, 0.2);
    background: #eef7f1;
    color: #146c43;
}

.dashboard-tool-rail-button:focus-visible {
    outline: 3px solid rgba(13, 110, 253, 0.42);
    outline-offset: 1px;
}

.dashboard-tool-rail-button:active {
    background: #dfeee4;
    transform: translateY(1px);
}

.dashboard-tool-rail-button:disabled {
    border-color: transparent;
    background: transparent;
    color: #6c757d;
    cursor: not-allowed;
    opacity: 0.58;
    transform: none;
}

.dashboard-tool-rail-button.is-active,
.dashboard-tool-rail-button[aria-expanded="true"] {
    border-color: rgba(25, 135, 84, 0.34);
    background: #dcefe3;
    color: #0f5132;
    box-shadow: inset 0.2rem 0 #198754;
}

.dashboard-tool-rail-button.is-active::before,
.dashboard-tool-rail-button[aria-expanded="true"]::before {
    position: absolute;
    top: 50%;
    left: 0.12rem;
    width: 0.2rem;
    height: 1.25rem;
    transform: translateY(-50%);
    border-radius: 999px;
    background: currentColor;
    content: "";
}

.dashboard-tool-rail-button::after {
    position: absolute;
    top: 50%;
    left: calc(100% + 0.55rem);
    z-index: 760;
    display: none;
    transform: translateY(-50%);
    border-radius: 0.35rem;
    background: rgba(33, 37, 41, 0.94);
    color: #fff;
    content: attr(title);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.2;
    padding: 0.38rem 0.5rem;
    pointer-events: none;
    white-space: nowrap;
}

@media (hover: hover) and (pointer: fine) {
    .dashboard-tool-rail-button:hover::after {
        display: block;
    }
}

.dashboard-tool-rail-button:focus-visible::after {
    display: block;
}

.dashboard-tool-rail-icon {
    display: inline-grid;
    width: 1.35rem;
    height: 1.35rem;
    place-items: center;
}

.dashboard-tool-rail-icon svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.dashboard-tool-rail-label {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 1rem;
    font-size: 0.65rem;
    font-weight: 800;
    line-height: 1.35;
    overflow-wrap: normal;
    text-align: center;
    white-space: normal;
    word-break: keep-all;
}

.dashboard-map-display-panel {
    position: absolute;
    top: 5.3rem;
    left: 4.75rem;
    z-index: 750;
    display: grid;
    width: min(18rem, calc(100% - 5.5rem));
    max-height: calc(100% - 6.1rem);
    overflow-y: auto;
    border: 1px solid rgba(33, 37, 41, 0.2);
    border-radius: 0.65rem;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 0.3rem 0.9rem rgba(33, 37, 41, 0.22);
    color: #26352b;
    padding: 0.7rem;
    pointer-events: auto;
}

.dashboard-map-display-panel[hidden] {
    display: none;
}

.dashboard-map-display-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    border-bottom: 1px solid rgba(33, 37, 41, 0.12);
    padding: 0 0 0.55rem;
}

.dashboard-map-display-panel-header h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
}

.dashboard-map-display-panel-close {
    display: inline-grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    border: 0;
    border-radius: 0.4rem;
    background: transparent;
    color: #5c665f;
    font-size: 1.35rem;
    line-height: 1;
}

.dashboard-map-display-panel-close:hover,
.dashboard-map-display-panel-close:focus-visible {
    background: #edf3ef;
    color: #146c43;
}

.dashboard-map-display-panel-close:focus-visible {
    outline: 3px solid rgba(13, 110, 253, 0.42);
    outline-offset: 1px;
}

.dashboard-map-display-panel-section {
    display: grid;
    gap: 0.4rem;
    min-width: 0;
    margin: 0;
    border: 0;
    padding: 0.7rem 0 0;
}

.dashboard-map-display-panel-section + .dashboard-map-display-panel-section {
    margin-top: 0.65rem;
    border-top: 1px solid rgba(33, 37, 41, 0.12);
}

.dashboard-map-display-panel-section legend,
.dashboard-map-display-panel-section h3 {
    width: auto;
    margin: 0 0 0.1rem;
    color: #56635a;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.3;
}

.dashboard-map-display-option {
    display: flex;
    min-height: 2.75rem;
    align-items: center;
    gap: 0.55rem;
    border: 1px solid rgba(33, 37, 41, 0.15);
    border-radius: 0.5rem;
    background: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.55rem 0.65rem;
    cursor: pointer;
}

.dashboard-map-display-option:hover {
    border-color: rgba(25, 135, 84, 0.36);
    background: #f3f9f5;
}

.dashboard-map-display-option:focus-within {
    outline: 3px solid rgba(13, 110, 253, 0.35);
    outline-offset: 1px;
}

.dashboard-map-display-option:has(input:checked) {
    border-color: rgba(25, 135, 84, 0.55);
    background: #e6f4eb;
    color: #0f5132;
}

.dashboard-map-display-option input {
    width: 1rem;
    height: 1rem;
    margin: 0;
    accent-color: #198754;
}

.dashboard-map-display-option .dashboard-map-display-badge {
    margin-left: auto;
}

.dashboard-map-display-option.is-disabled,
.dashboard-map-display-future-option.is-disabled {
    color: #6c757d;
    cursor: not-allowed;
    opacity: 0.78;
}

.dashboard-map-display-option.is-disabled:hover {
    border-color: rgba(33, 37, 41, 0.15);
    background: #fff;
}

.dashboard-map-display-future-option {
    display: grid;
    width: 100%;
    gap: 0.22rem;
    border: 0;
    border-radius: 0.45rem;
    background: #f4f5f4;
    font: inherit;
    padding: 0.55rem 0.65rem;
    text-align: left;
}

.dashboard-map-display-option-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.88rem;
    font-weight: 800;
}

.dashboard-map-display-badge {
    display: inline-flex;
    align-items: center;
    min-height: 1.35rem;
    border: 1px solid #adb5bd;
    border-radius: 999px;
    background: #fff;
    color: #596168;
    font-size: 0.66rem;
    font-weight: 800;
    padding: 0.12rem 0.42rem;
    white-space: nowrap;
}

.dashboard-map-display-future-description {
    display: block;
    color: #69716b;
    font-size: 0.75rem;
    line-height: 1.4;
}

.offcanvas.dashboard-search-panel {
    top: var(--dashboard-header-height, 56px);
    bottom: 0;
    width: clamp(20rem, 34vw, 27rem);
    height: auto;
    border-right-color: rgba(33, 37, 41, 0.2);
}

.dashboard-search-panel .offcanvas-header {
    min-height: 4.5rem;
    padding: 0.75rem 1rem;
}

.dashboard-search-panel-body {
    display: block;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0.85rem;
}

.dashboard-search-panel-section {
    display: grid;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.dashboard-search-panel-section-title {
    margin: 0;
    color: #495057;
    font-weight: 800;
}

#dashboardSearchPanelControls {
    display: grid;
    gap: 0.75rem;
}

#dashboardSearchPanelControls .orchard-map-header-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

#dashboardSearchPanelControls .orchard-map-header-actions > * {
    min-width: 0;
    width: 100%;
}

#dashboardSearchPanelControls .dashboard-bulk-actions {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    border-radius: 0.45rem;
}

#dashboardSearchPanelControls .dashboard-bulk-actions:focus-visible {
    outline: 3px solid rgba(13, 110, 253, 0.35);
    outline-offset: 0.2rem;
}

#dashboardSearchPanelControls .dashboard-bulk-actions > * {
    width: 100%;
    min-width: 0;
}

#dashboardSearchPanelControls .orchard-display-filter,
#dashboardSearchPanelControls .orchard-map-legend {
    margin: 0 !important;
}

#dashboardSearchPanelControls .orchard-edit-selection-panel,
#dashboardSearchPanelControls .orchard-add-tree-panel {
    margin-bottom: 0;
}

#dashboardSearchPanelControls .orchard-edit-selection-panel {
    width: 100%;
    max-width: 100%;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
    overflow: hidden;
    padding: 0.75rem;
}

#dashboardSearchPanelControls .orchard-edit-selection-body {
    display: grid;
    width: 100%;
    max-width: 100%;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.7rem;
}

#dashboardSearchPanelControls .orchard-edit-selection-summary,
#dashboardSearchPanelControls .orchard-edit-location-editor,
#dashboardSearchPanelControls .orchard-edit-ledger-editor,
#dashboardSearchPanelControls .orchard-edit-position-preview,
#dashboardSearchPanelControls .orchard-edit-save-message,
#dashboardSearchPanelControls .orchard-edit-selection-note {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    grid-column: 1;
    grid-row: auto;
}

#dashboardSearchPanelControls .orchard-edit-location-editor .row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.6rem;
    margin: 0;
}

#dashboardSearchPanelControls .orchard-edit-location-editor .row > * {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 0;
}

#dashboardSearchPanelControls .orchard-edit-location-editor .form-label {
    display: block;
    width: 100%;
    max-width: 100%;
    white-space: normal;
}

#dashboardSearchPanelControls .orchard-edit-location-editor .form-control,
#dashboardSearchPanelControls .orchard-edit-selection-actions .btn {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

#dashboardSearchPanelControls .orchard-edit-position-grid {
    grid-template-columns: minmax(0, 1fr);
}

#dashboardSearchPanelControls .orchard-edit-selection-actions {
    display: grid;
    width: 100%;
    max-width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    justify-content: stretch;
}

#dashboardSearchPanelControls .orchard-edit-selection-actions .btn {
    white-space: normal;
}

.dashboard-tree-list-card {
    overflow: visible;
}

.dashboard-tree-list-card .card-header,
.dashboard-tree-list-card .tree-filter-area,
.dashboard-tree-list-card .list-group-item {
    padding: 0.75rem;
}

.dashboard-tree-list-card .tree-filter-area .row {
    display: grid;
    grid-template-columns: 1fr;
}

.dashboard-tree-list-card .tree-filter-area .row > * {
    width: 100%;
}

.dashboard-tree-list-card .tree-search-input,
.dashboard-tree-list-card .tree-status-filter {
    min-height: 44px;
}

@media (max-width: 991.98px) {
    .dashboard-navbar .navbar-brand-text {
        display: none;
    }

    .dashboard-navbar .navbar-brand {
        max-width: 8rem;
    }

    .dashboard-map-status-bar {
        gap: 0.35rem;
        padding: 0 0.4rem;
    }

    .dashboard-map-status-context-item {
        max-width: min(17vw, 10rem);
        gap: 0.18rem;
        margin-left: 0.4rem;
        padding-left: 0.4rem;
    }

    .dashboard-summary-item {
        padding: 0 0.32rem;
    }
}

@media (max-width: 767.98px) {
    .dashboard-navbar .navbar-context {
        display: none !important;
    }

    .dashboard-navbar .navbar-user-button {
        max-width: 9rem;
    }

    .dashboard-map-status-bar {
        height: 68px;
        min-height: 68px;
        flex-basis: 68px;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: 30px 38px;
        gap: 0;
        padding: 0;
    }

    .dashboard-map-status-context {
        padding: 0 0.5rem;
    }

    .dashboard-map-status-context-item {
        max-width: min(30vw, 11rem);
    }

    .dashboard-map-status-summary {
        display: grid;
        width: 100%;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        border-top: 1px solid #d7ded9;
    }

    .dashboard-summary-item {
        min-width: 0;
        height: 100%;
        justify-content: center;
        overflow: hidden;
        padding: 0 0.15rem;
    }

    .dashboard-summary-filter-shortcut {
        max-width: 100%;
        justify-content: center;
        gap: 0.12rem;
        margin: 0;
        font-size: 0.7rem;
        padding: 0.08rem;
    }

    .dashboard-page .orchard-map-overlay-status {
        top: 8.5rem;
    }

    .dashboard-tool-rail {
        top: 12.25rem;
        left: 0.5rem;
    }

    .dashboard-map-display-panel {
        top: 12.25rem;
        left: 4.5rem;
        max-height: calc(100% - 13rem);
    }

    .dashboard-search-panel {
        width: min(92vw, 27rem);
    }
}

@media (max-height: 620px) {
    body.dashboard-page {
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
    }

    .dashboard-main,
    .dashboard-map-first-shell,
    .dashboard-page .orchard-leaflet-shell,
    .dashboard-page .orchard-leaflet-map {
        min-height: 32rem;
    }
}

.dashboard-context-action-bar {
    position: absolute;
    z-index: 745;
    left: 4.75rem;
    right: calc(min(24vw, 200px) + 1.5rem);
    bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-width: 0;
    padding: 0.65rem 0.75rem;
    color: #fff;
    background: rgba(24, 54, 35, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.9rem;
    box-shadow: 0 0.75rem 1.75rem rgba(17, 39, 25, 0.28);
    backdrop-filter: blur(8px);
}

.orchard-leaflet-shell.is-locked-operation .dashboard-context-action-bar {
    bottom: calc(0.65rem + 2.8rem + 0.5rem);
}

.dashboard-context-action-bar-identity {
    display: grid;
    min-width: 7rem;
    line-height: 1.25;
}

.dashboard-context-action-bar-kicker {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.72);
}

.dashboard-context-action-bar-identity strong {
    max-width: min(18rem, 28vw);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-context-action-bar-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.45rem;
}

.dashboard-context-action-bar .btn {
    min-height: 44px;
    white-space: nowrap;
}

.dashboard-context-selection-clear-button {
    flex: 0 0 44px;
    width: 44px;
    min-width: 44px;
    padding: 0;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.tree-list-item.is-context-selected {
    color: #163d25;
    background: #e7f5eb;
    box-shadow: inset 4px 0 #2f7d4d;
}

.tree-list-item.is-context-selected[aria-pressed="true"] {
    border-color: #55a56d;
}

.orchard-leaflet-marker-icon.is-context-selected .orchard-leaflet-marker-node {
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.96), 0 0 0 8px rgba(37, 105, 61, 0.92);
}

@media (max-width: 991.98px) {
    .dashboard-context-action-bar {
        left: 4.5rem;
        right: 0.6rem;
        overflow-x: auto;
    }

    .dashboard-context-action-bar-identity {
        position: sticky;
        left: 0;
        flex: 0 0 auto;
        padding-right: 0.5rem;
        background: rgba(24, 54, 35, 0.96);
    }

    .dashboard-context-action-bar-actions {
        flex-wrap: nowrap;
        flex: 0 0 auto;
    }
}

@media (max-width: 575.98px) {
    .dashboard-context-action-bar {
        left: 0.5rem;
        right: 0.5rem;
        bottom: 0.5rem;
    }

    .orchard-leaflet-shell.is-locked-operation .dashboard-context-action-bar {
        bottom: 3.85rem;
    }
}

.account-navbar-inner {
    gap: 12px;
}

.account-navbar-brand {
    display: flex;
    align-items: center;
    min-width: 0;
}

.account-navbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.account-navbar-action-form {
    display: flex;
    align-items: stretch;
    height: 44px;
    margin: 0;
}

.account-navbar-action {
    display: inline-flex;
    height: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    line-height: 1.5;
    padding: 0.25rem 0.5rem;
}

.support-contact-box {
    margin-top: 20px;
    padding: 14px 16px;
    background: #f8faf9;
    border: 1px solid rgba(33, 37, 41, 0.12);
    border-radius: 8px;
}

.support-contact-box-compact {
    margin-top: 18px;
}

.support-contact-title {
    margin-bottom: 8px;
    font-weight: 700;
    color: #1f5130;
}

.support-contact-box dl {
    display: grid;
    gap: 6px;
    margin: 0;
}

.support-contact-box dl div {
    display: grid;
    grid-template-columns: minmax(120px, 160px) 1fr;
    gap: 10px;
}

.support-contact-box dt {
    color: #5f6b62;
}

.support-contact-box dd {
    margin: 0;
    min-width: 0;
    overflow-wrap: anywhere;
}

.activation-status p:last-child {
    margin-bottom: 0 !important;
}

@media (max-width: 576px) {
    .account-navbar-inner {
        align-items: flex-start;
    }

    .account-navbar-brand {
        width: 100%;
    }

    .account-navbar-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .support-contact-box dl div {
        grid-template-columns: 1fr;
        gap: 2px;
    }
}
